Skip to content

Commit a2fe6b9

Browse files
committed
marksthe BumpPtrAllocator class as @_spi(BumpPtrAllocator) instead of @_spi(RawSyntax)
1 parent 8c1977d commit a2fe6b9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Sources/SwiftParser/Lexer/Cursor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@_spi(RawSyntax) import SwiftSyntax
13+
@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax
1414

1515
extension SyntaxText {
1616
fileprivate func containsPlaceholderEnd() -> Bool {

Sources/SwiftParser/Lexer/LexemeSequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@_spi(RawSyntax) import SwiftSyntax
13+
@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax
1414

1515
extension Lexer {
1616
/// A sequence of ``Lexer/Lexeme`` tokens starting from a ``Lexer/Cursor``

Sources/SwiftParser/Lexer/RegexLiteralLexer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@_spi(RawSyntax) import SwiftSyntax
13+
@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax
1414

1515
/// A separate lexer specifically for regex literals.
1616
fileprivate struct RegexLiteralLexer {

Sources/SwiftParser/StringLiteralRepresentedLiteralValue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
@_spi(RawSyntax) import SwiftSyntax
13+
@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax
1414

1515
extension StringLiteralExprSyntax {
1616

Sources/SwiftSyntax/BumpPtrAllocator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/// A ``BumpPtrAllocator`` that allocates `slabSize` at a time.
1414
/// Once all memory in a slab has been used, it allocates a new slab and no
1515
/// memory allocations are necessary until that slab is completely filled up.
16-
@_spi(RawSyntax) @_spi(Testing)
16+
@_spi(BumpPtrAllocator) @_spi(Testing)
1717
public class BumpPtrAllocator {
1818
typealias Slab = UnsafeMutableRawBufferPointer
1919

0 commit comments

Comments
 (0)