Skip to content

Commit fd0b4d8

Browse files
committed
Regenerate sources
1 parent 180ab2e commit fd0b4d8

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

CodeGeneration/Sources/SyntaxSupport/gyb_generated/DeclNodes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ public let DECL_NODES: [Node] = [
16001600
]),
16011601

16021602
Node(name: "MacroExpansionDecl",
1603-
nameForDiagnostics: "pound literal declaration",
1603+
nameForDiagnostics: "macro expansion",
16041604
kind: "Decl",
16051605
traits: [
16061606
"FreestandingMacroExpansion"

CodeGeneration/Sources/SyntaxSupport/gyb_generated/ExprNodes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ public let EXPR_NODES: [Node] = [
11601160
]),
11611161

11621162
Node(name: "MacroExpansionExpr",
1163-
nameForDiagnostics: "pound literal expression",
1163+
nameForDiagnostics: "macro expansion expression",
11641164
kind: "Expr",
11651165
traits: [
11661166
"FreestandingMacroExpansion"

Sources/SwiftSyntax/generated/Misc.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,9 +1120,9 @@ extension SyntaxKind {
11201120
case .macroDecl:
11211121
return "macro"
11221122
case .macroExpansionDecl:
1123-
return "pound literal declaration"
1123+
return "macro expansion"
11241124
case .macroExpansionExpr:
1125-
return "pound literal expression"
1125+
return "macro expansion expression"
11261126
case .matchingPatternCondition:
11271127
return "pattern matching"
11281128
case .memberAccessExpr:

Tests/SwiftParserTest/translated/ObjectLiteralsTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class ObjectLiteralsTests: XCTestCase {
2121
let _ = [#Color(colorLiteralRed: red, green: green, blue: blue, alpha: alpha)#1️⃣]
2222
""",
2323
diagnostics: [
24-
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in pound literal expression")
24+
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in macro expansion expression")
2525
]
2626
)
2727
}
@@ -32,7 +32,7 @@ final class ObjectLiteralsTests: XCTestCase {
3232
let _ = [#Image(imageLiteral: localResourceNameAsString)#1️⃣]
3333
""",
3434
diagnostics: [
35-
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in pound literal expression")
35+
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in macro expansion expression")
3636
]
3737
)
3838
}
@@ -43,7 +43,7 @@ final class ObjectLiteralsTests: XCTestCase {
4343
let _ = [#FileReference(fileReferenceLiteral: localResourceNameAsString)#1️⃣]
4444
""",
4545
diagnostics: [
46-
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in pound literal expression")
46+
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in macro expansion expression")
4747
]
4848
)
4949
}
@@ -102,8 +102,8 @@ final class ObjectLiteralsTests: XCTestCase {
102102
let _ = [#1️⃣#2️⃣]
103103
""",
104104
diagnostics: [
105-
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in pound literal expression"),
106-
DiagnosticSpec(locationMarker: "2️⃣", message: "expected identifier in pound literal expression"),
105+
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in macro expansion expression"),
106+
DiagnosticSpec(locationMarker: "2️⃣", message: "expected identifier in macro expansion expression"),
107107
]
108108
)
109109
}
@@ -125,7 +125,7 @@ final class ObjectLiteralsTests: XCTestCase {
125125
let _ = [1️⃣#Color(red: 1, green: 1, blue: 1)#2️⃣3️⃣
126126
""",
127127
diagnostics: [
128-
DiagnosticSpec(locationMarker: "2️⃣", message: "expected identifier in pound literal expression"),
128+
DiagnosticSpec(locationMarker: "2️⃣", message: "expected identifier in macro expansion expression"),
129129
DiagnosticSpec(locationMarker: "3️⃣", message: "expected ']' to end array"),
130130
]
131131
)
@@ -137,7 +137,7 @@ final class ObjectLiteralsTests: XCTestCase {
137137
let _ = [#Color(withRed: 1, green: 1, whatever: 2)#1️⃣]
138138
""",
139139
diagnostics: [
140-
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in pound literal expression")
140+
DiagnosticSpec(locationMarker: "1️⃣", message: "expected identifier in macro expansion expression")
141141
]
142142
)
143143
}

0 commit comments

Comments
 (0)