Skip to content

Update gyb after updating async to contextual keyword #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Sources/SwiftSyntax/gyb_generated/SyntaxClassification.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,14 @@ extension SyntaxClassification {
switch (parentKind, indexInParent) {
case (.awaitExpr, 0):
return (.keyword, false)
case (.arrowExpr, 0):
return (.keyword, false)
case (.closureSignature, 3):
return (.keyword, false)
case (.expressionSegment, 2):
return (.stringInterpolationAnchor, true)
case (.functionSignature, 1):
return (.keyword, false)
case (.ifConfigClause, 0):
return (.buildConfigId, false)
case (.ifConfigDecl, 1):
return (.buildConfigId, false)
case (.declModifier, 0):
return (.attribute, false)
case (.accessorDecl, 4):
return (.keyword, false)
case (.precedenceGroupRelation, 0):
return (.keyword, false)
case (.precedenceGroupAssociativity, 0):
Expand All @@ -97,8 +89,6 @@ extension SyntaxClassification {
return (.typeIdentifier, false)
case (.constrainedSugarType, 0):
return (.keyword, false)
case (.functionType, 3):
return (.keyword, false)
case (.availabilityVersionRestriction, 0):
return (.keyword, false)
default: return nil
Expand Down
12 changes: 6 additions & 6 deletions Sources/SwiftSyntaxBuilder/gyb_generated/BuildableNodes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ public struct ArrowExpr: ExprBuildable, ExpressibleAsArrowExpr {
arrowToken: TokenSyntax = TokenSyntax.`arrow`
) {
self.init(
asyncKeyword: asyncKeyword.map(TokenSyntax.identifier),
asyncKeyword: asyncKeyword.map(TokenSyntax.contextualKeyword),
throwsToken: throwsToken,
arrowToken: arrowToken
)
Expand Down Expand Up @@ -2464,7 +2464,7 @@ public struct ClosureSignature: SyntaxBuildable, ExpressibleAsClosureSignature {
attributes: attributesBuilder(),
capture: capture,
input: input,
asyncKeyword: asyncKeyword.map(TokenSyntax.identifier),
asyncKeyword: asyncKeyword.map(TokenSyntax.contextualKeyword),
throwsTok: throwsTok,
output: output,
inTok: inTok
Expand Down Expand Up @@ -4356,7 +4356,7 @@ public struct FunctionSignature: SyntaxBuildable, ExpressibleAsFunctionSignature
) {
self.init(
input: input,
asyncOrReasyncKeyword: asyncOrReasyncKeyword.map(TokenSyntax.identifier),
asyncOrReasyncKeyword: asyncOrReasyncKeyword.map(TokenSyntax.contextualKeyword),
throwsOrRethrowsKeyword: throwsOrRethrowsKeyword,
output: output
)
Expand Down Expand Up @@ -6533,7 +6533,7 @@ public struct AccessorDecl: DeclBuildable, ExpressibleAsAccessorDecl {
modifier: modifier,
accessorKind: accessorKind,
parameter: parameter,
asyncKeyword: asyncKeyword.map(TokenSyntax.identifier),
asyncKeyword: asyncKeyword.map(TokenSyntax.contextualKeyword),
throwsKeyword: throwsKeyword,
body: body
)
Expand Down Expand Up @@ -12433,7 +12433,7 @@ public struct FunctionType: TypeBuildable, ExpressibleAsFunctionType {
public init(
leftParen: TokenSyntax = TokenSyntax.`leftParen`,
rightParen: TokenSyntax = TokenSyntax.`rightParen`,
asyncKeyword: String?,
asyncKeyword: TokenSyntax? = nil,
throwsOrRethrowsKeyword: TokenSyntax? = nil,
arrow: TokenSyntax = TokenSyntax.`arrow`,
returnType: ExpressibleAsTypeBuildable,
Expand All @@ -12443,7 +12443,7 @@ public struct FunctionType: TypeBuildable, ExpressibleAsFunctionType {
leftParen: leftParen,
arguments: argumentsBuilder(),
rightParen: rightParen,
asyncKeyword: asyncKeyword.map(TokenSyntax.identifier),
asyncKeyword: asyncKeyword,
throwsOrRethrowsKeyword: throwsOrRethrowsKeyword,
arrow: arrow,
returnType: returnType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
extension SyntaxParser {
static func verifyNodeDeclarationHash() -> Bool {
return String(cString: swiftparse_syntax_structure_versioning_identifier()!) ==
"91db81d59d0370360363fd7286f85bafe5b7f36f"
"2b7169e5259d030d7e9f3c2765dda6d21c113706"
}
}