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 {
141
141
switch (token.tokenKind, token.nextToken(viewMode: .sourceAccurate)?.tokenKind) {
142
142
case (.asKeyword, .exclamationMark),
143
143
(.asKeyword, .postfixQuestionMark),
144
- (.initKeyword, .postfixQuestionMark),
145
144
(.initKeyword, .leftParen),
145
+ (.initKeyword, .postfixQuestionMark),
146
146
(.tryKeyword, .exclamationMark),
147
147
(.tryKeyword, .postfixQuestionMark):
148
148
return false
Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ open class BasicFormat: SyntaxRewriter {
140
140
switch ( token. tokenKind, token. nextToken ( viewMode: . sourceAccurate) ? . tokenKind) {
141
141
case ( . asKeyword, . exclamationMark) ,
142
142
( . asKeyword, . postfixQuestionMark) ,
143
- ( . initKeyword, . postfixQuestionMark) ,
144
143
( . initKeyword, . leftParen) ,
144
+ ( . initKeyword, . postfixQuestionMark) ,
145
145
( . tryKeyword, . exclamationMark) ,
146
146
( . tryKeyword, . postfixQuestionMark) :
147
147
return false
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ final class InitializerDeclTests: XCTestCase {
22
22
}
23
23
""" )
24
24
25
- print ( builder. formatted ( ) . description)
26
-
27
25
AssertBuildResult ( builder, """
28
26
public init(errorCode: Int) {
29
27
self.code = errorCode
@@ -39,8 +37,6 @@ final class InitializerDeclTests: XCTestCase {
39
37
}
40
38
""" )
41
39
42
- print ( builder. formatted ( ) . description)
43
-
44
40
AssertBuildResult ( builder, """
45
41
public init?(errorCode: Int) {
46
42
guard errorCode > 0 else {
You can’t perform that action at this time.
0 commit comments