File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
CodeGeneration/Sources/generate-swiftbasicformat
Sources/SwiftBasicFormat/generated
Tests/SwiftSyntaxBuilderTest Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,8 @@ let basicFormatFile = SourceFile {
141141 switch (token.tokenKind, token.nextToken(viewMode: .sourceAccurate)?.tokenKind) {
142142 case (.asKeyword, .exclamationMark),
143143 (.asKeyword, .postfixQuestionMark),
144- (.initKeyword, .postfixQuestionMark),
145144 (.initKeyword, .leftParen),
145+ (.initKeyword, .postfixQuestionMark),
146146 (.tryKeyword, .exclamationMark),
147147 (.tryKeyword, .postfixQuestionMark):
148148 return false
Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ open class BasicFormat: SyntaxRewriter {
140140 switch ( token. tokenKind, token. nextToken ( viewMode: . sourceAccurate) ? . tokenKind) {
141141 case ( . asKeyword, . exclamationMark) ,
142142 ( . asKeyword, . postfixQuestionMark) ,
143- ( . initKeyword, . postfixQuestionMark) ,
144143 ( . initKeyword, . leftParen) ,
144+ ( . initKeyword, . postfixQuestionMark) ,
145145 ( . tryKeyword, . exclamationMark) ,
146146 ( . tryKeyword, . postfixQuestionMark) :
147147 return false
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ final class InitializerDeclTests: XCTestCase {
2222 }
2323 """ )
2424
25- print ( builder. formatted ( ) . description)
26-
2725 AssertBuildResult ( builder, """
2826 public init(errorCode: Int) {
2927 self.code = errorCode
@@ -39,8 +37,6 @@ final class InitializerDeclTests: XCTestCase {
3937 }
4038 """ )
4139
42- print ( builder. formatted ( ) . description)
43-
4440 AssertBuildResult ( builder, """
4541 public init?(errorCode: Int) {
4642 guard errorCode > 0 else {
You can’t perform that action at this time.
0 commit comments