diff --git a/Sources/SwiftParser/Lexer/Cursor.swift b/Sources/SwiftParser/Lexer/Cursor.swift index 57deef40b1d..d74f918cfbc 100644 --- a/Sources/SwiftParser/Lexer/Cursor.swift +++ b/Sources/SwiftParser/Lexer/Cursor.swift @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -@_spi(RawSyntax) import SwiftSyntax +@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax extension SyntaxText { fileprivate func containsPlaceholderEnd() -> Bool { diff --git a/Sources/SwiftParser/Lexer/LexemeSequence.swift b/Sources/SwiftParser/Lexer/LexemeSequence.swift index a82f5bf341f..46112f807a3 100644 --- a/Sources/SwiftParser/Lexer/LexemeSequence.swift +++ b/Sources/SwiftParser/Lexer/LexemeSequence.swift @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -@_spi(RawSyntax) import SwiftSyntax +@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax extension Lexer { /// A sequence of ``Lexer/Lexeme`` tokens starting from a ``Lexer/Cursor`` diff --git a/Sources/SwiftParser/Lexer/RegexLiteralLexer.swift b/Sources/SwiftParser/Lexer/RegexLiteralLexer.swift index af6094a78ae..2a632193c87 100644 --- a/Sources/SwiftParser/Lexer/RegexLiteralLexer.swift +++ b/Sources/SwiftParser/Lexer/RegexLiteralLexer.swift @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -@_spi(RawSyntax) import SwiftSyntax +@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax /// A separate lexer specifically for regex literals. fileprivate struct RegexLiteralLexer { diff --git a/Sources/SwiftParser/StringLiteralRepresentedLiteralValue.swift b/Sources/SwiftParser/StringLiteralRepresentedLiteralValue.swift index 6ddd80437f3..64b36da8322 100644 --- a/Sources/SwiftParser/StringLiteralRepresentedLiteralValue.swift +++ b/Sources/SwiftParser/StringLiteralRepresentedLiteralValue.swift @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -@_spi(RawSyntax) import SwiftSyntax +@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax extension StringLiteralExprSyntax { diff --git a/Sources/SwiftSyntax/BumpPtrAllocator.swift b/Sources/SwiftSyntax/BumpPtrAllocator.swift index 181552f3dc0..9ce6dbf26bf 100644 --- a/Sources/SwiftSyntax/BumpPtrAllocator.swift +++ b/Sources/SwiftSyntax/BumpPtrAllocator.swift @@ -13,7 +13,7 @@ /// A ``BumpPtrAllocator`` that allocates `slabSize` at a time. /// Once all memory in a slab has been used, it allocates a new slab and no /// memory allocations are necessary until that slab is completely filled up. -@_spi(RawSyntax) @_spi(Testing) +@_spi(BumpPtrAllocator) @_spi(Testing) public class BumpPtrAllocator { typealias Slab = UnsafeMutableRawBufferPointer