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.
Syntax.Info.info
nonisolated(unsafe)
1 parent d2f9554 commit 9e61008Copy full SHA for 9e61008
Sources/SwiftSyntax/Syntax.swift
@@ -46,7 +46,11 @@ public struct Syntax: SyntaxProtocol, SyntaxHashable {
46
/// - Important: Must only be set to `nil` when `Syntax.Info` is used in a memory recycling pool
47
/// (eg. in `SyntaxVisitor`). In that case the `Syntax.Info` is considered garbage memory that can be re-used
48
/// later. `info` needs to be set to a real value when `Syntax.Info` is recycled from the memory recycling pool.
49
+ #if compiler(>=6.0)
50
+ nonisolated(unsafe) var info: InfoImpl!
51
+ #else
52
var info: InfoImpl!
53
+ #endif
54
}
55
56
/// Reference to the node's parent or, if this node is the root of a tree, a reference to the `SyntaxArena` to keep
0 commit comments