@@ -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, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . postfixIfConfigExpr, . editorPlaceholderExpr, . objectLiteralExpr:
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:
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, . keyPathExpr, . keyPathBaseExpr, . objcKeyPathExpr, . objcSelectorExpr, . postfixIfConfigExpr, . editorPlaceholderExpr, . objectLiteralExpr:
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:
182
182
break
183
183
default :
184
184
fatalError ( " Unable to create ExprSyntax from \( data. raw. kind) " )
0 commit comments