@@ -206,7 +206,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
206206
207207 public init ? < S: SyntaxProtocol > ( _ node: S ) {
208208 switch node. raw. kind {
209- case . arrayExpr, . arrowExpr, . asExpr, . assignmentExpr, . awaitExpr, . binaryOperatorExpr, . booleanLiteralExpr, . borrowExpr, . closureExpr, . dictionaryExpr, . discardAssignmentExpr, . editorPlaceholderExpr, . floatLiteralExpr, . forcedValueExpr, . functionCallExpr, . identifierExpr, . ifExpr, . inOutExpr, . infixOperatorExpr, . integerLiteralExpr, . isExpr, . keyPathExpr, . macroExpansionExpr, . memberAccessExpr, . missingExpr, . moveExpr, . nilLiteralExpr, . optionalChainingExpr, . packElementExpr, . packExpansionExpr, . postfixIfConfigExpr, . postfixUnaryExpr, . prefixOperatorExpr, . regexLiteralExpr, . sequenceExpr, . specializeExpr, . stringLiteralExpr, . subscriptExpr, . superRefExpr, . switchExpr, . ternaryExpr, . tryExpr, . tupleExpr, . typeExpr, . unresolvedAsExpr, . unresolvedIsExpr, . unresolvedPatternExpr, . unresolvedTernaryExpr:
209+ case . arrayExpr, . arrowExpr, . asExpr, . assignmentExpr, . awaitExpr, . binaryOperatorExpr, . booleanLiteralExpr, . borrowExpr, . closureExpr, . copyExpr , . dictionaryExpr, . discardAssignmentExpr, . editorPlaceholderExpr, . floatLiteralExpr, . forcedValueExpr, . functionCallExpr, . identifierExpr, . ifExpr, . inOutExpr, . infixOperatorExpr, . integerLiteralExpr, . isExpr, . keyPathExpr, . macroExpansionExpr, . memberAccessExpr, . missingExpr, . moveExpr, . nilLiteralExpr, . optionalChainingExpr, . packElementExpr, . packExpansionExpr, . postfixIfConfigExpr, . postfixUnaryExpr, . prefixOperatorExpr, . regexLiteralExpr, . sequenceExpr, . specializeExpr, . stringLiteralExpr, . subscriptExpr, . superRefExpr, . switchExpr, . ternaryExpr, . tryExpr, . tupleExpr, . typeExpr, . unresolvedAsExpr, . unresolvedIsExpr, . unresolvedPatternExpr, . unresolvedTernaryExpr:
210210 self . _syntaxNode = node. _syntaxNode
211211 default :
212212 return nil
@@ -218,7 +218,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
218218 /// is undefined.
219219 internal init ( _ data: SyntaxData ) {
220220 switch data. raw. kind {
221- case . arrayExpr, . arrowExpr, . asExpr, . assignmentExpr, . awaitExpr, . binaryOperatorExpr, . booleanLiteralExpr, . borrowExpr, . closureExpr, . dictionaryExpr, . discardAssignmentExpr, . editorPlaceholderExpr, . floatLiteralExpr, . forcedValueExpr, . functionCallExpr, . identifierExpr, . ifExpr, . inOutExpr, . infixOperatorExpr, . integerLiteralExpr, . isExpr, . keyPathExpr, . macroExpansionExpr, . memberAccessExpr, . missingExpr, . moveExpr, . nilLiteralExpr, . optionalChainingExpr, . packElementExpr, . packExpansionExpr, . postfixIfConfigExpr, . postfixUnaryExpr, . prefixOperatorExpr, . regexLiteralExpr, . sequenceExpr, . specializeExpr, . stringLiteralExpr, . subscriptExpr, . superRefExpr, . switchExpr, . ternaryExpr, . tryExpr, . tupleExpr, . typeExpr, . unresolvedAsExpr, . unresolvedIsExpr, . unresolvedPatternExpr, . unresolvedTernaryExpr:
221+ case . arrayExpr, . arrowExpr, . asExpr, . assignmentExpr, . awaitExpr, . binaryOperatorExpr, . booleanLiteralExpr, . borrowExpr, . closureExpr, . copyExpr , . dictionaryExpr, . discardAssignmentExpr, . editorPlaceholderExpr, . floatLiteralExpr, . forcedValueExpr, . functionCallExpr, . identifierExpr, . ifExpr, . inOutExpr, . infixOperatorExpr, . integerLiteralExpr, . isExpr, . keyPathExpr, . macroExpansionExpr, . memberAccessExpr, . missingExpr, . moveExpr, . nilLiteralExpr, . optionalChainingExpr, . packElementExpr, . packExpansionExpr, . postfixIfConfigExpr, . postfixUnaryExpr, . prefixOperatorExpr, . regexLiteralExpr, . sequenceExpr, . specializeExpr, . stringLiteralExpr, . subscriptExpr, . superRefExpr, . switchExpr, . ternaryExpr, . tryExpr, . tupleExpr, . typeExpr, . unresolvedAsExpr, . unresolvedIsExpr, . unresolvedPatternExpr, . unresolvedTernaryExpr:
222222 break
223223 default :
224224 preconditionFailure ( " Unable to create ExprSyntax from \( data. raw. kind) " )
@@ -263,6 +263,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
263263 . node( BooleanLiteralExprSyntax . self) ,
264264 . node( BorrowExprSyntax . self) ,
265265 . node( ClosureExprSyntax . self) ,
266+ . node( CopyExprSyntax . self) ,
266267 . node( DictionaryExprSyntax . self) ,
267268 . node( DiscardAssignmentExprSyntax . self) ,
268269 . node( EditorPlaceholderExprSyntax . self) ,
@@ -749,6 +750,7 @@ extension Syntax {
749750 . node( ContinueStmtSyntax . self) ,
750751 . node( ConventionAttributeArgumentsSyntax . self) ,
751752 . node( ConventionWitnessMethodAttributeArgumentsSyntax . self) ,
753+ . node( CopyExprSyntax . self) ,
752754 . node( DeclModifierDetailSyntax . self) ,
753755 . node( DeclModifierSyntax . self) ,
754756 . node( DeclNameArgumentListSyntax . self) ,
0 commit comments