Skip to content

BasicFormat doesn't add spaces between first and second parameter name #1505

Closed
@stevapple

Description

@stevapple

Description

When using FunctionParameterSyntax with SwiftSyntaxBuilder, the build result (formatted by BasicFormat) doesn't have spaces between first and second parameter names, which is "lexically legal" but far against user intention.

Steps to Reproduce

let parameter = FunctionParameterSyntax(firstName: "on", secondName: "eventLoop", colon: .colonToken(), type: TypeSyntax("EventLoop"))
print(parameter) // oneventLoop: EventLoop

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions