Skip to content

Commit ce47be2

Browse files
committed
tweak
1 parent e8bbace commit ce47be2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CodeGeneration/Sources/SyntaxSupport/Node.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ public class Node: NodeChoiceConvertible {
141141
self.documentation = SwiftSyntax.Trivia.docCommentTrivia(from: documentation)
142142
self.parserFunction = parserFunction
143143

144-
let childrenWithUnexpected = (kind.isBase || noInterleaveUnexpected) ? children : interleaveUnexpectedChildren(children)
144+
let childrenWithUnexpected =
145+
(kind.isBase || noInterleaveUnexpected) ? children : interleaveUnexpectedChildren(children)
145146

146147
self.data = .layout(children: childrenWithUnexpected, childHistory: childHistory, traits: traits)
147148
}

Tests/SwiftParserTest/DirectiveTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,5 +610,4 @@ final class DirectiveTests: ParserTestCase {
610610
"""
611611
)
612612
}
613-
614613
}

Tests/SwiftParserTest/ExpressionTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,13 +2715,13 @@ final class StatementExpressionTests: ParserTestCase {
27152715
diagnostics: [
27162716
DiagnosticSpec(
27172717
locationMarker: "1️⃣",
2718-
// FIXME: "expected attribute name after '@'".
2718+
// FIXME: "expected attribute name after '@'". https://github.com/swiftlang/swift-syntax/issues/3159
27192719
message: "expected type in attribute",
27202720
fixIts: ["insert type"]
27212721
),
27222722
DiagnosticSpec(
27232723
locationMarker: "2️⃣",
2724-
// FIXME: "expected pattern and ':' in switch case"
2724+
// FIXME: "expected pattern and ':' in switch case". https://github.com/swiftlang/swift-syntax/issues/3158
27252725
message: "expected expression and ':' in switch case",
27262726
fixIts: ["insert expression and ':'"]
27272727
),

Tests/SwiftParserTest/translated/ErrorsTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ final class ErrorsTests: ParserTestCase {
279279
assertParse(
280280
"""
281281
func incompleteThrowType() {
282-
let _: ()1️⃣ 2️⃣throws
282+
let _: () 1️⃣throws
283283
}
284284
""",
285285
substructure: CodeBlockSyntax(
@@ -311,7 +311,7 @@ final class ErrorsTests: ParserTestCase {
311311
])
312312
),
313313
diagnostics: [
314-
DiagnosticSpec(locationMarker: "2️⃣", message: "unexpected 'throws' keyword in function")
314+
DiagnosticSpec(message: "unexpected 'throws' keyword in function")
315315
]
316316
)
317317
}

0 commit comments

Comments
 (0)