Skip to content

Commit ab7c833

Browse files
committed
Update CodeGeneration to adapt changes in operator declaration
1 parent 453edaf commit ab7c833

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

CodeGeneration/Sources/SyntaxSupport/DeclNodes.swift

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,24 +1189,14 @@ public let DECL_NODES: [Node] = [
11891189
description: "A Swift `operator` declaration.",
11901190
kind: "Decl",
11911191
traits: [
1192-
"IdentifiedDecl",
1193-
"Attributed",
1192+
"IdentifiedDecl"
11941193
],
11951194
children: [
11961195
Child(
1197-
name: "Attributes",
1198-
kind: .collection(kind: "AttributeList", collectionElementName: "Attribute"),
1199-
nameForDiagnostics: "attributes",
1200-
description: "The attributes applied to the 'operator' declaration.",
1201-
isOptional: true
1202-
),
1203-
Child(
1204-
name: "Modifiers",
1205-
kind: .collection(kind: "ModifierList", collectionElementName: "Modifier"),
1206-
nameForDiagnostics: "modifiers",
1207-
description: "The declaration modifiers applied to the 'operator' declaration.",
1208-
isOptional: true,
1209-
classification: "Attribute"
1196+
name: "OperatorModifier",
1197+
kind: .token(choices: [.keyword(text: "prefix"), .keyword(text: "postfix"), .keyword(text: "infix")]),
1198+
nameForDiagnostics: "modifier",
1199+
description: "The declaration modifier applied to the 'operator' declaration."
12101200
),
12111201
Child(
12121202
name: "OperatorKeyword",

0 commit comments

Comments
 (0)