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.
1 parent 5736dff commit 84aa2a8Copy full SHA for 84aa2a8
Sources/generate-swift-syntax-builder/Templates/BuildableNodesFile.swift
@@ -355,11 +355,9 @@ private func createWithTrailingCommaFunction(node: Node) -> FunctionDecl {
355
label: child.swiftName,
356
expression: child.name == "TrailingComma" ? SequenceExpr {
357
TernaryExpr(
358
- conditionExpression: "withComma",
359
- questionMark: .infixQuestionMark.withLeadingTrivia(.space).withTrailingTrivia(.space),
360
- firstChoice: MemberAccessExpr(name: "comma"),
361
- colonMark: .colon.withLeadingTrivia(.space).withTrailingTrivia(.space),
362
- secondChoice: NilLiteralExpr()
+ if: "withComma",
+ then: MemberAccessExpr(name: "comma"),
+ else: NilLiteralExpr()
363
)
364
} : child.swiftName
365
0 commit comments