@@ -216,7 +216,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
216216
217217 public init ? < S: SyntaxProtocol > ( _ node: S ) {
218218 switch node. raw. kind {
219- case . unknownExpr, . missingExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . moveExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . poundFileIDExpr, . poundFilePathExpr, . poundFunctionExpr, . poundDsohandleExpr, . symbolicReferenceExpr, . prefixOperatorExpr, . binaryOperatorExpr, . arrowExpr, . infixOperatorExpr, . floatLiteralExpr, . tupleExpr, . arrayExpr, . dictionaryExpr, . integerLiteralExpr, . booleanLiteralExpr, . unresolvedTernaryExpr, . ternaryExpr, . memberAccessExpr, . unresolvedIsExpr, . isExpr, . unresolvedAsExpr, . asExpr, . typeExpr, . closureExpr, . unresolvedPatternExpr, . functionCallExpr, . subscriptExpr, . optionalChainingExpr, . forcedValueExpr, . postfixUnaryExpr, . specializeExpr, . stringLiteralExpr, . regexLiteralExpr, . keyPathExpr, . macroExpansionExpr, . postfixIfConfigExpr, . editorPlaceholderExpr, . objectLiteralExpr :
219+ case . unknownExpr, . missingExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . moveExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . poundFileIDExpr, . poundFilePathExpr, . poundFunctionExpr, . poundDsohandleExpr, . symbolicReferenceExpr, . prefixOperatorExpr, . binaryOperatorExpr, . arrowExpr, . infixOperatorExpr, . floatLiteralExpr, . tupleExpr, . arrayExpr, . dictionaryExpr, . integerLiteralExpr, . booleanLiteralExpr, . unresolvedTernaryExpr, . ternaryExpr, . memberAccessExpr, . unresolvedIsExpr, . isExpr, . unresolvedAsExpr, . asExpr, . typeExpr, . closureExpr, . unresolvedPatternExpr, . functionCallExpr, . subscriptExpr, . optionalChainingExpr, . forcedValueExpr, . postfixUnaryExpr, . specializeExpr, . stringLiteralExpr, . regexLiteralExpr, . keyPathExpr, . macroExpansionExpr, . postfixIfConfigExpr, . editorPlaceholderExpr:
220220 self . _syntaxNode = node. _syntaxNode
221221 default :
222222 return nil
@@ -230,7 +230,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
230230 // Assert that the kind of the given data matches in debug builds.
231231#if DEBUG
232232 switch data. raw. kind {
233- case . unknownExpr, . missingExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . moveExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . poundFileIDExpr, . poundFilePathExpr, . poundFunctionExpr, . poundDsohandleExpr, . symbolicReferenceExpr, . prefixOperatorExpr, . binaryOperatorExpr, . arrowExpr, . infixOperatorExpr, . floatLiteralExpr, . tupleExpr, . arrayExpr, . dictionaryExpr, . integerLiteralExpr, . booleanLiteralExpr, . unresolvedTernaryExpr, . ternaryExpr, . memberAccessExpr, . unresolvedIsExpr, . isExpr, . unresolvedAsExpr, . asExpr, . typeExpr, . closureExpr, . unresolvedPatternExpr, . functionCallExpr, . subscriptExpr, . optionalChainingExpr, . forcedValueExpr, . postfixUnaryExpr, . specializeExpr, . stringLiteralExpr, . regexLiteralExpr, . keyPathExpr, . macroExpansionExpr, . postfixIfConfigExpr, . editorPlaceholderExpr, . objectLiteralExpr :
233+ case . unknownExpr, . missingExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . moveExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . poundLineExpr, . poundFileExpr, . poundFileIDExpr, . poundFilePathExpr, . poundFunctionExpr, . poundDsohandleExpr, . symbolicReferenceExpr, . prefixOperatorExpr, . binaryOperatorExpr, . arrowExpr, . infixOperatorExpr, . floatLiteralExpr, . tupleExpr, . arrayExpr, . dictionaryExpr, . integerLiteralExpr, . booleanLiteralExpr, . unresolvedTernaryExpr, . ternaryExpr, . memberAccessExpr, . unresolvedIsExpr, . isExpr, . unresolvedAsExpr, . asExpr, . typeExpr, . closureExpr, . unresolvedPatternExpr, . functionCallExpr, . subscriptExpr, . optionalChainingExpr, . forcedValueExpr, . postfixUnaryExpr, . specializeExpr, . stringLiteralExpr, . regexLiteralExpr, . keyPathExpr, . macroExpansionExpr, . postfixIfConfigExpr, . editorPlaceholderExpr:
234234 break
235235 default :
236236 fatalError ( " Unable to create ExprSyntax from \( data. raw. kind) " )
@@ -320,7 +320,6 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
320320 . node( MacroExpansionExprSyntax . self) ,
321321 . node( PostfixIfConfigExprSyntax . self) ,
322322 . node( EditorPlaceholderExprSyntax . self) ,
323- . node( ObjectLiteralExprSyntax . self) ,
324323 ] )
325324 }
326325
0 commit comments