Skip to content

Commit 27bc2a1

Browse files
authored
Merge pull request swiftlang#233 from DougGregor/concurrency-syntax-fixes
[Concurrency] Regenerate syntax for async/__await fixes.
2 parents 1032559 + cf9f0d3 commit 27bc2a1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Sources/SwiftSyntax/gyb_generated/Misc.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1944,6 +1944,6 @@ extension Syntax {
19441944
extension SyntaxParser {
19451945
static func verifyNodeDeclarationHash() -> Bool {
19461946
return String(cString: swiftparse_syntax_structure_versioning_identifier()!) ==
1947-
"fd719aaf2e0dab2620af2d4d123d123b3d0de28d"
1947+
"9700f84ac29d74406d59a6433d59aebb33227ade"
19481948
}
19491949
}

Sources/SwiftSyntax/gyb_generated/SyntaxClassification.swift

+6
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ extension SyntaxClassification {
6565
// Separate checks for token nodes (most common checks) versus checks for layout nodes.
6666
if childKind == .token {
6767
switch (parentKind, indexInParent) {
68+
case (.arrowExpr, 0):
69+
return (.keyword, false)
6870
case (.expressionSegment, 2):
6971
return (.stringInterpolationAnchor, true)
72+
case (.functionSignature, 1):
73+
return (.keyword, false)
7074
case (.ifConfigClause, 0):
7175
return (.buildConfigId, false)
7276
case (.ifConfigDecl, 1):
@@ -85,6 +89,8 @@ extension SyntaxClassification {
8589
return (.typeIdentifier, false)
8690
case (.someType, 0):
8791
return (.keyword, false)
92+
case (.functionType, 3):
93+
return (.keyword, false)
8894
case (.availabilityVersionRestriction, 0):
8995
return (.keyword, false)
9096
default: return nil

0 commit comments

Comments
 (0)