We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f21f1 commit e6dbe55Copy full SHA for e6dbe55
CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntax/SyntaxRewriterFile.swift
@@ -343,7 +343,7 @@ let syntaxRewriterFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
343
public func rewrite(_ node: Syntax) -> Syntax {
344
let rewritten = self.visit(node)
345
return withExtendedLifetime(rewritten) {
346
- return Syntax(node.data.replacingSelf(rewritten.raw, arena: rewritten.raw.arena))
+ return Syntax(node.data.replacingSelf(rewritten.raw, arena: SyntaxArena()))
347
}
348
349
"""
0 commit comments