Skip to content

Commit 8abecc4

Browse files
committed
Let PrecedenceGroupDeclSyntax conform to BracedSyntax
1 parent 6e708c4 commit 8abecc4

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,7 @@ public let DECL_NODES: [Node] = [
17461746
nameForDiagnostics: "precedencegroup",
17471747
documentation: "A Swift `precedencegroup` declaration.",
17481748
traits: [
1749+
"Braced",
17491750
"NamedDecl",
17501751
"WithAttributes",
17511752
"WithModifiers",

CodeGeneration/Tests/ValidateSyntaxNodes/ValidateSyntaxNodes.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,6 @@ class ValidateSyntaxNodes: XCTestCase {
517517
ValidationFailure(node: .editorPlaceholderExpr, message: "could conform to trait 'MissingNode' but does not"),
518518
ValidationFailure(node: .enumCaseElement, message: "could conform to trait 'NamedDecl' but does not"),
519519
ValidationFailure(node: .genericParameter, message: "could conform to trait 'NamedDecl' but does not"),
520-
ValidationFailure(node: .precedenceGroupDecl, message: "could conform to trait 'Braced' but does not"),
521520
ValidationFailure(node: .precedenceGroupName, message: "could conform to trait 'NamedDecl' but does not"),
522521
ValidationFailure(node: .primaryAssociatedType, message: "could conform to trait 'NamedDecl' but does not"),
523522
ValidationFailure(node: .yieldedExpressionsClause, message: "could conform to trait 'Parenthesized' but does not"),

Sources/SwiftSyntax/generated/SyntaxTraits.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ extension PlatformVersionItemSyntax: WithTrailingCommaSyntax {}
818818

819819
extension PoundSourceLocationSyntax: ParenthesizedSyntax {}
820820

821-
extension PrecedenceGroupDeclSyntax: NamedDeclSyntax, WithAttributesSyntax, WithModifiersSyntax {}
821+
extension PrecedenceGroupDeclSyntax: BracedSyntax, NamedDeclSyntax, WithAttributesSyntax, WithModifiersSyntax {}
822822

823823
extension PrecedenceGroupNameSyntax: WithTrailingCommaSyntax {}
824824

0 commit comments

Comments
 (0)