Skip to content

Commit ccb69f6

Browse files
authored
Merge pull request #602 from rintaro/syntaxarena-allocator-let
Make SyntaxArena.allocator immutable
2 parents f0b5ed4 + eb9cb12 commit ccb69f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftSyntax/SyntaxArena.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class SyntaxArena {
1616
public typealias ParseTriviaFunction = (_ source: SyntaxText, _ position: TriviaPosition) -> [RawTriviaPiece]
1717

1818
/// Bump-pointer allocator for all "intern" methods.
19-
private var allocator: BumpPtrAllocator
19+
private let allocator: BumpPtrAllocator
2020
/// Source file buffer the Syntax tree represents.
2121
private var sourceBuffer: UnsafeBufferPointer<UInt8>
2222

0 commit comments

Comments
 (0)