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 b64f80d commit 8fff0deCopy full SHA for 8fff0de
Sources/SwiftSyntax/Syntax.swift
@@ -73,8 +73,10 @@ public struct Syntax: SyntaxProtocol, SyntaxHashable {
73
}
74
75
public var id: SyntaxIdentifier {
76
- SyntaxIdentifier(
77
- rootId: UInt(rawID: arena.root.pointee.raw.id),
+ // This var is a workaround for a potential compiler bug (rdar://141977987)
+ let rootDataRef = arena.root
78
+ return SyntaxIdentifier(
79
+ rootId: UInt(rawID: rootDataRef.pointee.raw.id),
80
indexInTree: SyntaxIdentifier.SyntaxIndexInTree(indexInTree: absoluteInfo.indexInTree)
81
)
82
0 commit comments