Skip to content

Commit 6f60ae7

Browse files
committed
Keep SyntaxData instead of Syntax alive in syntax node initializers
1 parent f2ae399 commit 6f60ae7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/SwiftSyntax/generated/syntaxNodes/SyntaxNodesTUVWXYZ.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ public struct ThenStmtSyntax: StmtSyntaxProtocol, SyntaxHashable {
279279
// Extend the lifetime of all parameters so their arenas don't get destroyed
280280
// before they can be added as children of the new arena.
281281
let data: SyntaxData = withExtendedLifetime((SyntaxArena(), (
282-
unexpectedBeforeThenKeyword,
283-
thenKeyword,
284-
unexpectedBetweenThenKeywordAndExpression,
285-
expression,
286-
unexpectedAfterExpression
282+
unexpectedBeforeThenKeyword?.data,
283+
thenKeyword.data,
284+
unexpectedBetweenThenKeywordAndExpression?.data,
285+
expression.data,
286+
unexpectedAfterExpression?.data
287287
))) { (arena, _) in
288288
let layout: [RawSyntax?] = [
289289
unexpectedBeforeThenKeyword?.raw,

0 commit comments

Comments
 (0)