Skip to content

Commit 822145c

Browse files
committed
Make two methods from SyntaxArena internal or SPI
1 parent 719f287 commit 822145c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftSyntax/SyntaxArena.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)