@@ -146,7 +146,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
146
146
/// `nil` if the conversion is not possible.
147
147
public init ? ( _ syntax: Syntax ) {
148
148
switch syntax. raw. kind {
149
- case . unknownExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . 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, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . editorPlaceholderExpr, . objectLiteralExpr:
149
+ case . unknownExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . 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, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . editorPlaceholderExpr, . objectLiteralExpr:
150
150
self . _syntaxNode = syntax
151
151
default :
152
152
return nil
@@ -160,7 +160,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
160
160
// Assert that the kind of the given data matches in debug builds.
161
161
#if DEBUG
162
162
switch data. raw. kind {
163
- case . unknownExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . 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, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . editorPlaceholderExpr, . objectLiteralExpr:
163
+ case . unknownExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . 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, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . editorPlaceholderExpr, . objectLiteralExpr:
164
164
break
165
165
default :
166
166
fatalError ( " Unable to create ExprSyntax from \( data. raw. kind) " )
0 commit comments