File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,7 @@ public class SyntaxArena {
135
135
///
136
136
/// "managed" means it's empty, a part of "source buffer", or in the memory
137
137
/// allocated by the underlying arena.
138
- @_spi ( RawSyntax)
139
- public func contains( text: SyntaxText ) -> Bool {
138
+ func contains( text: SyntaxText ) -> Bool {
140
139
return ( text. isEmpty || allocator. contains ( address: text. baseAddress!) )
141
140
}
142
141
}
@@ -165,6 +164,7 @@ public class ParsingSyntaxArena: SyntaxArena {
165
164
/// The interned buffer is guaranteed to be null-terminated.
166
165
/// `contains(address _:)` is faster if the address is inside the memory
167
166
/// range this function returned.
167
+ @_spi ( RawSyntax)
168
168
public func internSourceBuffer( _ buffer: UnsafeBufferPointer < UInt8 > ) -> UnsafeBufferPointer < UInt8 > {
169
169
let allocated = allocator. allocate (
170
170
UInt8 . self,
You can’t perform that action at this time.
0 commit comments