Skip to content

Commit 5ea331a

Browse files
committed
Regenerate sources
1 parent a4fc19b commit 5ea331a

File tree

23 files changed

+8
-2264
lines changed

23 files changed

+8
-2264
lines changed

CodeGeneration/Sources/SyntaxSupport/gyb_generated/DeclNodes.swift

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -213,58 +213,6 @@ public let DECL_NODES: [Node] = [
213213
classification: "BuildConfigId")
214214
]),
215215

216-
Node(name: "PoundErrorDecl",
217-
nameForDiagnostics: "'#error' directive",
218-
kind: "Decl",
219-
traits: [
220-
"Parenthesized"
221-
],
222-
children: [
223-
Child(name: "PoundError",
224-
kind: "PoundErrorToken",
225-
tokenChoices: [
226-
"PoundError"
227-
]),
228-
Child(name: "LeftParen",
229-
kind: "LeftParenToken",
230-
tokenChoices: [
231-
"LeftParen"
232-
]),
233-
Child(name: "Message",
234-
kind: "StringLiteralExpr"),
235-
Child(name: "RightParen",
236-
kind: "RightParenToken",
237-
tokenChoices: [
238-
"RightParen"
239-
])
240-
]),
241-
242-
Node(name: "PoundWarningDecl",
243-
nameForDiagnostics: "'#warning' directive",
244-
kind: "Decl",
245-
traits: [
246-
"Parenthesized"
247-
],
248-
children: [
249-
Child(name: "PoundWarning",
250-
kind: "PoundWarningToken",
251-
tokenChoices: [
252-
"PoundWarning"
253-
]),
254-
Child(name: "LeftParen",
255-
kind: "LeftParenToken",
256-
tokenChoices: [
257-
"LeftParen"
258-
]),
259-
Child(name: "Message",
260-
kind: "StringLiteralExpr"),
261-
Child(name: "RightParen",
262-
kind: "RightParenToken",
263-
tokenChoices: [
264-
"RightParen"
265-
])
266-
]),
267-
268216
Node(name: "PoundSourceLocation",
269217
nameForDiagnostics: "'#sourceLocation' directive",
270218
kind: "Decl",

CodeGeneration/Sources/SyntaxSupport/gyb_generated/StmtNodes.swift

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,7 @@ public let STMT_NODES: [Node] = [
408408
Child(name: "MatchingPattern",
409409
kind: "MatchingPatternCondition"),
410410
Child(name: "OptionalBinding",
411-
kind: "OptionalBindingCondition"),
412-
Child(name: "HasSymbol",
413-
kind: "HasSymbolCondition")
411+
kind: "OptionalBindingCondition")
414412
]),
415413
Child(name: "TrailingComma",
416414
kind: "CommaToken",
@@ -489,26 +487,6 @@ public let STMT_NODES: [Node] = [
489487
isOptional: true)
490488
]),
491489

492-
Node(name: "HasSymbolCondition",
493-
nameForDiagnostics: "'#_hasSymbol' condition",
494-
kind: "Syntax",
495-
children: [
496-
Child(name: "HasSymbolKeyword",
497-
kind: "HasSymbolToken"),
498-
Child(name: "LeftParen",
499-
kind: "LeftParenToken",
500-
tokenChoices: [
501-
"LeftParen"
502-
]),
503-
Child(name: "Expression",
504-
kind: "Expr"),
505-
Child(name: "RightParen",
506-
kind: "RightParenToken",
507-
tokenChoices: [
508-
"RightParen"
509-
])
510-
]),
511-
512490
Node(name: "ConditionElementList",
513491
nameForDiagnostics: nil,
514492
kind: "SyntaxCollection",
@@ -695,39 +673,4 @@ public let STMT_NODES: [Node] = [
695673
kind: "CodeBlock")
696674
]),
697675

698-
Node(name: "PoundAssertStmt",
699-
nameForDiagnostics: "'#assert' directive",
700-
kind: "Stmt",
701-
children: [
702-
Child(name: "PoundAssert",
703-
kind: "PoundAssertToken",
704-
tokenChoices: [
705-
"PoundAssert"
706-
]),
707-
Child(name: "LeftParen",
708-
kind: "LeftParenToken",
709-
tokenChoices: [
710-
"LeftParen"
711-
]),
712-
Child(name: "Condition",
713-
kind: "Expr",
714-
description: "The assertion condition."),
715-
Child(name: "Comma",
716-
kind: "CommaToken",
717-
description: "The comma after the assertion condition.",
718-
isOptional: true,
719-
tokenChoices: [
720-
"Comma"
721-
]),
722-
Child(name: "Message",
723-
kind: "StringLiteralExpr",
724-
description: "The assertion message.",
725-
isOptional: true),
726-
Child(name: "RightParen",
727-
kind: "RightParenToken",
728-
tokenChoices: [
729-
"RightParen"
730-
])
731-
]),
732-
733676
]

CodeGeneration/Sources/SyntaxSupport/gyb_generated/TokenSpec.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,20 +196,13 @@ public let SYNTAX_TOKENS: [TokenSpec] = [
196196
PunctuatorSpec(name: "StringQuote", kind: "string_quote", text: "\"", classification: "StringLiteral"),
197197
PunctuatorSpec(name: "SingleQuote", kind: "single_quote", text: "\'", classification: "StringLiteral"),
198198
PunctuatorSpec(name: "MultilineStringQuote", kind: "multiline_string_quote", text: "\"\"\"", classification: "StringLiteral"),
199-
PoundKeywordSpec(name: "PoundAssert", kind: "pound_assert", text: "#assert"),
200199
PoundDirectiveKeywordSpec(name: "PoundSourceLocation", kind: "pound_sourceLocation", text: "#sourceLocation"),
201-
PoundDirectiveKeywordSpec(name: "PoundWarning", kind: "pound_warning", text: "#warning"),
202-
PoundDirectiveKeywordSpec(name: "PoundError", kind: "pound_error", text: "#error"),
203200
PoundConditionalDirectiveKeywordSpec(name: "PoundIf", kind: "pound_if", text: "#if"),
204201
PoundConditionalDirectiveKeywordSpec(name: "PoundElse", kind: "pound_else", text: "#else"),
205202
PoundConditionalDirectiveKeywordSpec(name: "PoundElseif", kind: "pound_elseif", text: "#elseif"),
206203
PoundConditionalDirectiveKeywordSpec(name: "PoundEndif", kind: "pound_endif", text: "#endif"),
207204
PoundConfigSpec(name: "PoundAvailable", kind: "pound_available", text: "#available"),
208205
PoundConfigSpec(name: "PoundUnavailable", kind: "pound_unavailable", text: "#unavailable"),
209-
PoundObjectLiteralSpec(name: "PoundFileLiteral", kind: "pound_fileLiteral", text: "#fileLiteral", nameForDiagnostics: "file reference", protocol: "ExpressibleByFileReferenceLiteral"),
210-
PoundObjectLiteralSpec(name: "PoundImageLiteral", kind: "pound_imageLiteral", text: "#imageLiteral", nameForDiagnostics: "image", protocol: "ExpressibleByImageLiteral"),
211-
PoundObjectLiteralSpec(name: "PoundColorLiteral", kind: "pound_colorLiteral", text: "#colorLiteral", nameForDiagnostics: "color", protocol: "ExpressibleByColorLiteral"),
212-
PoundConfigSpec(name: "PoundHasSymbol", kind: "pound__hasSymbol", text: "#_hasSymbol"),
213206
LiteralSpec(name: "IntegerLiteral", kind: "integer_literal", nameForDiagnostics: "integer literal", classification: "IntegerLiteral"),
214207
LiteralSpec(name: "FloatingLiteral", kind: "floating_literal", nameForDiagnostics: "floating literal", classification: "FloatingLiteral"),
215208
LiteralSpec(name: "RegexLiteral", kind: "regex_literal", nameForDiagnostics: "regex literal"),

Sources/IDEUtils/generated/SyntaxClassification.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,8 @@ extension RawTokenKind {
192192
return .stringLiteral
193193
case .multilineStringQuote:
194194
return .stringLiteral
195-
case .poundAssertKeyword:
196-
return .keyword
197195
case .poundSourceLocationKeyword:
198196
return .poundDirectiveKeyword
199-
case .poundWarningKeyword:
200-
return .poundDirectiveKeyword
201-
case .poundErrorKeyword:
202-
return .poundDirectiveKeyword
203197
case .poundIfKeyword:
204198
return .poundDirectiveKeyword
205199
case .poundElseKeyword:
@@ -212,14 +206,6 @@ extension RawTokenKind {
212206
return .keyword
213207
case .poundUnavailableKeyword:
214208
return .keyword
215-
case .poundFileLiteralKeyword:
216-
return .objectLiteral
217-
case .poundImageLiteralKeyword:
218-
return .objectLiteral
219-
case .poundColorLiteralKeyword:
220-
return .objectLiteral
221-
case .poundHasSymbolKeyword:
222-
return .keyword
223209
case .integerLiteral:
224210
return .integerLiteral
225211
case .floatingLiteral:

Sources/SwiftBasicFormat/generated/BasicFormat.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,8 @@ open class BasicFormat: SyntaxRewriter {
198198
return true
199199
case .arrow:
200200
return true
201-
case .poundAssertKeyword:
202-
return true
203201
case .poundSourceLocationKeyword:
204202
return true
205-
case .poundWarningKeyword:
206-
return true
207-
case .poundErrorKeyword:
208-
return true
209203
case .poundIfKeyword:
210204
return true
211205
case .poundElseKeyword:
@@ -218,14 +212,6 @@ open class BasicFormat: SyntaxRewriter {
218212
return true
219213
case .poundUnavailableKeyword:
220214
return true
221-
case .poundFileLiteralKeyword:
222-
return true
223-
case .poundImageLiteralKeyword:
224-
return true
225-
case .poundColorLiteralKeyword:
226-
return true
227-
case .poundHasSymbolKeyword:
228-
return true
229215
case .binaryOperator:
230216
return true
231217
case .keyword(.`Any`):

Sources/SwiftSyntax/Documentation.docc/gyb_generated/SwiftSyntax.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ allows Swift tools to parse, inspect, generate, and transform Swift source code.
5858
- <doc:SwiftSyntax/TypealiasDeclSyntax>
5959
- <doc:SwiftSyntax/AssociatedtypeDeclSyntax>
6060
- <doc:SwiftSyntax/IfConfigDeclSyntax>
61-
- <doc:SwiftSyntax/PoundErrorDeclSyntax>
62-
- <doc:SwiftSyntax/PoundWarningDeclSyntax>
6361
- <doc:SwiftSyntax/PoundSourceLocationSyntax>
6462
- <doc:SwiftSyntax/ClassDeclSyntax>
6563
- <doc:SwiftSyntax/ActorDeclSyntax>
@@ -100,7 +98,6 @@ allows Swift tools to parse, inspect, generate, and transform Swift source code.
10098
- <doc:SwiftSyntax/BreakStmtSyntax>
10199
- <doc:SwiftSyntax/ThrowStmtSyntax>
102100
- <doc:SwiftSyntax/IfStmtSyntax>
103-
- <doc:SwiftSyntax/PoundAssertStmtSyntax>
104101

105102
### Expressions
106103

@@ -382,7 +379,6 @@ allows Swift tools to parse, inspect, generate, and transform Swift source code.
382379
- <doc:SwiftSyntax/AvailabilityConditionSyntax>
383380
- <doc:SwiftSyntax/MatchingPatternConditionSyntax>
384381
- <doc:SwiftSyntax/OptionalBindingConditionSyntax>
385-
- <doc:SwiftSyntax/HasSymbolConditionSyntax>
386382
- <doc:SwiftSyntax/ConditionElementListSyntax>
387383
- <doc:SwiftSyntax/SwitchCaseSyntax>
388384
- <doc:SwiftSyntax/SwitchDefaultLabelSyntax>

0 commit comments

Comments
 (0)