We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a97187 + cf79572 commit 4c46b31Copy full SHA for 4c46b31
Sources/SwiftSyntaxBuilder/gyb_generated/Tokens.swift
@@ -674,6 +674,8 @@ public extension ExpressibleAsTokenSyntax where Self == TokenSyntax {
674
675
static func `spacedBinaryOperator`(_ text: String) -> TokenSyntax {
676
SyntaxFactory.makeSpacedBinaryOperator(text)
677
+ .withLeadingTrivia(.spaces(1))
678
+ .withTrailingTrivia(.spaces(1))
679
}
680
681
static func `postfixOperator`(_ text: String) -> TokenSyntax {
Tests/SwiftSyntaxBuilderTest/FunctionTests.swift
@@ -59,7 +59,7 @@ final class FunctionTests: XCTestCase {
59
if n<=1{
60
return n
61
62
- return fibonacci(n-1)+fibonacci(n-2)
+ return fibonacci(n-1) + fibonacci(n-2)
63
64
""")
65
0 commit comments