Skip to content
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