@@ -56,7 +56,7 @@ public struct DeclSyntax: DeclSyntaxProtocol, SyntaxHashable {
56
56
/// `nil` if the conversion is not possible.
57
57
public init ? ( _ syntax: Syntax ) {
58
58
switch syntax. raw. kind {
59
- case . unknownDecl, . typealiasDecl, . associatedtypeDecl, . ifConfigDecl, . poundErrorDecl, . poundWarningDecl, . poundSourceLocation, . classDecl, . actorDecl, . structDecl, . protocolDecl, . extensionDecl, . functionDecl, . initializerDecl, . deinitializerDecl, . subscriptDecl, . importDecl, . accessorDecl, . variableDecl, . enumCaseDecl, . enumDecl, . operatorDecl, . precedenceGroupDecl:
59
+ case . unknownDecl, . missingDecl , . typealiasDecl, . associatedtypeDecl, . ifConfigDecl, . poundErrorDecl, . poundWarningDecl, . poundSourceLocation, . classDecl, . actorDecl, . structDecl, . protocolDecl, . extensionDecl, . functionDecl, . initializerDecl, . deinitializerDecl, . subscriptDecl, . importDecl, . accessorDecl, . variableDecl, . enumCaseDecl, . enumDecl, . operatorDecl, . precedenceGroupDecl:
60
60
self . _syntaxNode = syntax
61
61
default :
62
62
return nil
@@ -70,7 +70,7 @@ public struct DeclSyntax: DeclSyntaxProtocol, SyntaxHashable {
70
70
// Assert that the kind of the given data matches in debug builds.
71
71
#if DEBUG
72
72
switch data. raw. kind {
73
- case . unknownDecl, . typealiasDecl, . associatedtypeDecl, . ifConfigDecl, . poundErrorDecl, . poundWarningDecl, . poundSourceLocation, . classDecl, . actorDecl, . structDecl, . protocolDecl, . extensionDecl, . functionDecl, . initializerDecl, . deinitializerDecl, . subscriptDecl, . importDecl, . accessorDecl, . variableDecl, . enumCaseDecl, . enumDecl, . operatorDecl, . precedenceGroupDecl:
73
+ case . unknownDecl, . missingDecl , . typealiasDecl, . associatedtypeDecl, . ifConfigDecl, . poundErrorDecl, . poundWarningDecl, . poundSourceLocation, . classDecl, . actorDecl, . structDecl, . protocolDecl, . extensionDecl, . functionDecl, . initializerDecl, . deinitializerDecl, . subscriptDecl, . importDecl, . accessorDecl, . variableDecl, . enumCaseDecl, . enumDecl, . operatorDecl, . precedenceGroupDecl:
74
74
break
75
75
default :
76
76
fatalError ( " Unable to create DeclSyntax from \( data. raw. kind) " )
@@ -164,7 +164,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
164
164
/// `nil` if the conversion is not possible.
165
165
public init ? ( _ syntax: Syntax ) {
166
166
switch syntax. raw. kind {
167
- case . unknownExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . poundFileIDExpr, . poundFilePathExpr, . poundFunctionExpr, . poundDsohandleExpr, . symbolicReferenceExpr, . prefixOperatorExpr, . binaryOperatorExpr, . arrowExpr, . floatLiteralExpr, . tupleExpr, . arrayExpr, . dictionaryExpr, . integerLiteralExpr, . booleanLiteralExpr, . ternaryExpr, . memberAccessExpr, . isExpr, . asExpr, . typeExpr, . closureExpr, . unresolvedPatternExpr, . functionCallExpr, . subscriptExpr, . optionalChainingExpr, . forcedValueExpr, . postfixUnaryExpr, . specializeExpr, . stringLiteralExpr, . regexLiteralExpr, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . postfixIfConfigExpr, . editorPlaceholderExpr, . objectLiteralExpr:
167
+ case . unknownExpr, . missingExpr , . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . poundFileIDExpr, . poundFilePathExpr, . poundFunctionExpr, . poundDsohandleExpr, . symbolicReferenceExpr, . prefixOperatorExpr, . binaryOperatorExpr, . arrowExpr, . floatLiteralExpr, . tupleExpr, . arrayExpr, . dictionaryExpr, . integerLiteralExpr, . booleanLiteralExpr, . ternaryExpr, . memberAccessExpr, . isExpr, . asExpr, . typeExpr, . closureExpr, . unresolvedPatternExpr, . functionCallExpr, . subscriptExpr, . optionalChainingExpr, . forcedValueExpr, . postfixUnaryExpr, . specializeExpr, . stringLiteralExpr, . regexLiteralExpr, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . postfixIfConfigExpr, . editorPlaceholderExpr, . objectLiteralExpr:
168
168
self . _syntaxNode = syntax
169
169
default :
170
170
return nil
@@ -178,7 +178,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
178
178
// Assert that the kind of the given data matches in debug builds.
179
179
#if DEBUG
180
180
switch data. raw. kind {
181
- case . unknownExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . poundFileIDExpr, . poundFilePathExpr, . poundFunctionExpr, . poundDsohandleExpr, . symbolicReferenceExpr, . prefixOperatorExpr, . binaryOperatorExpr, . arrowExpr, . floatLiteralExpr, . tupleExpr, . arrayExpr, . dictionaryExpr, . integerLiteralExpr, . booleanLiteralExpr, . ternaryExpr, . memberAccessExpr, . isExpr, . asExpr, . typeExpr, . closureExpr, . unresolvedPatternExpr, . functionCallExpr, . subscriptExpr, . optionalChainingExpr, . forcedValueExpr, . postfixUnaryExpr, . specializeExpr, . stringLiteralExpr, . regexLiteralExpr, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . postfixIfConfigExpr, . editorPlaceholderExpr, . objectLiteralExpr:
181
+ case . unknownExpr, . missingExpr , . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . poundFileIDExpr, . poundFilePathExpr, . poundFunctionExpr, . poundDsohandleExpr, . symbolicReferenceExpr, . prefixOperatorExpr, . binaryOperatorExpr, . arrowExpr, . floatLiteralExpr, . tupleExpr, . arrayExpr, . dictionaryExpr, . integerLiteralExpr, . booleanLiteralExpr, . ternaryExpr, . memberAccessExpr, . isExpr, . asExpr, . typeExpr, . closureExpr, . unresolvedPatternExpr, . functionCallExpr, . subscriptExpr, . optionalChainingExpr, . forcedValueExpr, . postfixUnaryExpr, . specializeExpr, . stringLiteralExpr, . regexLiteralExpr, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . postfixIfConfigExpr, . editorPlaceholderExpr, . objectLiteralExpr:
182
182
break
183
183
default :
184
184
fatalError ( " Unable to create ExprSyntax from \( data. raw. kind) " )
@@ -272,7 +272,7 @@ public struct StmtSyntax: StmtSyntaxProtocol, SyntaxHashable {
272
272
/// `nil` if the conversion is not possible.
273
273
public init ? ( _ syntax: Syntax ) {
274
274
switch syntax. raw. kind {
275
- case . unknownStmt, . continueStmt, . whileStmt, . deferStmt, . expressionStmt, . repeatWhileStmt, . guardStmt, . forInStmt, . switchStmt, . doStmt, . returnStmt, . yieldStmt, . fallthroughStmt, . breakStmt, . declarationStmt, . throwStmt, . ifStmt, . poundAssertStmt:
275
+ case . unknownStmt, . missingStmt , . continueStmt, . whileStmt, . deferStmt, . expressionStmt, . repeatWhileStmt, . guardStmt, . forInStmt, . switchStmt, . doStmt, . returnStmt, . yieldStmt, . fallthroughStmt, . breakStmt, . declarationStmt, . throwStmt, . ifStmt, . poundAssertStmt:
276
276
self . _syntaxNode = syntax
277
277
default :
278
278
return nil
@@ -286,7 +286,7 @@ public struct StmtSyntax: StmtSyntaxProtocol, SyntaxHashable {
286
286
// Assert that the kind of the given data matches in debug builds.
287
287
#if DEBUG
288
288
switch data. raw. kind {
289
- case . unknownStmt, . continueStmt, . whileStmt, . deferStmt, . expressionStmt, . repeatWhileStmt, . guardStmt, . forInStmt, . switchStmt, . doStmt, . returnStmt, . yieldStmt, . fallthroughStmt, . breakStmt, . declarationStmt, . throwStmt, . ifStmt, . poundAssertStmt:
289
+ case . unknownStmt, . missingStmt , . continueStmt, . whileStmt, . deferStmt, . expressionStmt, . repeatWhileStmt, . guardStmt, . forInStmt, . switchStmt, . doStmt, . returnStmt, . yieldStmt, . fallthroughStmt, . breakStmt, . declarationStmt, . throwStmt, . ifStmt, . poundAssertStmt:
290
290
break
291
291
default :
292
292
fatalError ( " Unable to create StmtSyntax from \( data. raw. kind) " )
@@ -380,7 +380,7 @@ public struct TypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
380
380
/// `nil` if the conversion is not possible.
381
381
public init ? ( _ syntax: Syntax ) {
382
382
switch syntax. raw. kind {
383
- case . unknownType, . simpleTypeIdentifier, . memberTypeIdentifier, . classRestrictionType, . arrayType, . dictionaryType, . metatypeType, . optionalType, . constrainedSugarType, . implicitlyUnwrappedOptionalType, . compositionType, . tupleType, . functionType, . attributedType:
383
+ case . unknownType, . missingType , . simpleTypeIdentifier, . memberTypeIdentifier, . classRestrictionType, . arrayType, . dictionaryType, . metatypeType, . optionalType, . constrainedSugarType, . implicitlyUnwrappedOptionalType, . compositionType, . tupleType, . functionType, . attributedType:
384
384
self . _syntaxNode = syntax
385
385
default :
386
386
return nil
@@ -394,7 +394,7 @@ public struct TypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
394
394
// Assert that the kind of the given data matches in debug builds.
395
395
#if DEBUG
396
396
switch data. raw. kind {
397
- case . unknownType, . simpleTypeIdentifier, . memberTypeIdentifier, . classRestrictionType, . arrayType, . dictionaryType, . metatypeType, . optionalType, . constrainedSugarType, . implicitlyUnwrappedOptionalType, . compositionType, . tupleType, . functionType, . attributedType:
397
+ case . unknownType, . missingType , . simpleTypeIdentifier, . memberTypeIdentifier, . classRestrictionType, . arrayType, . dictionaryType, . metatypeType, . optionalType, . constrainedSugarType, . implicitlyUnwrappedOptionalType, . compositionType, . tupleType, . functionType, . attributedType:
398
398
break
399
399
default :
400
400
fatalError ( " Unable to create TypeSyntax from \( data. raw. kind) " )
@@ -488,7 +488,7 @@ public struct PatternSyntax: PatternSyntaxProtocol, SyntaxHashable {
488
488
/// `nil` if the conversion is not possible.
489
489
public init ? ( _ syntax: Syntax ) {
490
490
switch syntax. raw. kind {
491
- case . unknownPattern, . enumCasePattern, . isTypePattern, . optionalPattern, . identifierPattern, . asTypePattern, . tuplePattern, . wildcardPattern, . expressionPattern, . valueBindingPattern:
491
+ case . unknownPattern, . missingPattern , . enumCasePattern, . isTypePattern, . optionalPattern, . identifierPattern, . asTypePattern, . tuplePattern, . wildcardPattern, . expressionPattern, . valueBindingPattern:
492
492
self . _syntaxNode = syntax
493
493
default :
494
494
return nil
@@ -502,7 +502,7 @@ public struct PatternSyntax: PatternSyntaxProtocol, SyntaxHashable {
502
502
// Assert that the kind of the given data matches in debug builds.
503
503
#if DEBUG
504
504
switch data. raw. kind {
505
- case . unknownPattern, . enumCasePattern, . isTypePattern, . optionalPattern, . identifierPattern, . asTypePattern, . tuplePattern, . wildcardPattern, . expressionPattern, . valueBindingPattern:
505
+ case . unknownPattern, . missingPattern , . enumCasePattern, . isTypePattern, . optionalPattern, . identifierPattern, . asTypePattern, . tuplePattern, . wildcardPattern, . expressionPattern, . valueBindingPattern:
506
506
break
507
507
default :
508
508
fatalError ( " Unable to create PatternSyntax from \( data. raw. kind) " )
0 commit comments