Skip to content

mark the BumpPtrAllocator class as @_spi(BumpPtrAllocator). #2249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Lexer/Cursor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//

@_spi(RawSyntax) import SwiftSyntax
@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax

extension SyntaxText {
fileprivate func containsPlaceholderEnd() -> Bool {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Lexer/LexemeSequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftParser/Lexer/RegexLiteralLexer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//

@_spi(RawSyntax) import SwiftSyntax
@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax

/// A separate lexer specifically for regex literals.
fileprivate struct RegexLiteralLexer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//

@_spi(RawSyntax) import SwiftSyntax
@_spi(RawSyntax) @_spi(BumpPtrAllocator) import SwiftSyntax

extension StringLiteralExprSyntax {

Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/BumpPtrAllocator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down