@@ -215,7 +215,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
215215
216216 public init ? < S: SyntaxProtocol > ( _ node: S ) {
217217 switch node. raw. kind {
218- case . missingExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . moveExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . 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:
218+ case . missingExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . moveExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . packElementExpr , . sequenceExpr, . 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:
219219 self . _syntaxNode = node. _syntaxNode
220220 default :
221221 return nil
@@ -229,7 +229,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
229229 // Assert that the kind of the given data matches in debug builds.
230230#if DEBUG
231231 switch data. raw. kind {
232- case . missingExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . moveExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . sequenceExpr, . 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:
232+ case . missingExpr, . inOutExpr, . poundColumnExpr, . tryExpr, . awaitExpr, . moveExpr, . identifierExpr, . superRefExpr, . nilLiteralExpr, . discardAssignmentExpr, . assignmentExpr, . packElementExpr , . sequenceExpr, . 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:
233233 break
234234 default :
235235 fatalError ( " Unable to create ExprSyntax from \( data. raw. kind) " )
@@ -278,6 +278,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
278278 . node( NilLiteralExprSyntax . self) ,
279279 . node( DiscardAssignmentExprSyntax . self) ,
280280 . node( AssignmentExprSyntax . self) ,
281+ . node( PackElementExprSyntax . self) ,
281282 . node( SequenceExprSyntax . self) ,
282283 . node( SymbolicReferenceExprSyntax . self) ,
283284 . node( PrefixOperatorExprSyntax . self) ,
0 commit comments