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 {
135135 ///
136136 /// "managed" means it's empty, a part of "source buffer", or in the memory
137137 /// allocated by the underlying arena.
138- @_spi ( RawSyntax)
139- public func contains( text: SyntaxText ) -> Bool {
138+ func contains( text: SyntaxText ) -> Bool {
140139 return ( text. isEmpty || allocator. contains ( address: text. baseAddress!) )
141140 }
142141}
@@ -165,6 +164,7 @@ public class ParsingSyntaxArena: SyntaxArena {
165164 /// The interned buffer is guaranteed to be null-terminated.
166165 /// `contains(address _:)` is faster if the address is inside the memory
167166 /// range this function returned.
167+ @_spi ( RawSyntax)
168168 public func internSourceBuffer( _ buffer: UnsafeBufferPointer < UInt8 > ) -> UnsafeBufferPointer < UInt8 > {
169169 let allocated = allocator. allocate (
170170 UInt8 . self,
You can’t perform that action at this time.
0 commit comments