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