aboutsummaryrefslogtreecommitdiff
path: root/src/lexer/Lexed.zig
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-18 13:58:30 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-18 13:58:56 +0200
commit08fc9545420b6cc11002cd8a82896881d0793aac (patch)
tree80a918b8213f04a0312c513b9a360212837ad012 /src/lexer/Lexed.zig
parent87e5daf9156583072d9ccb9ff0fa074f65fa6836 (diff)
Revert "style(): rename alloc into gpa"
This reverts commit 87e5daf9156583072d9ccb9ff0fa074f65fa6836.
Diffstat (limited to 'src/lexer/Lexed.zig')
-rw-r--r--src/lexer/Lexed.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lexer/Lexed.zig b/src/lexer/Lexed.zig
index 2ce6913..b7c3b2c 100644
--- a/src/lexer/Lexed.zig
+++ b/src/lexer/Lexed.zig
@@ -21,26 +21,26 @@ pub const Kind = enum {
tag,
};
-gpa: Allocator,
+allocator: Allocator,
kind: Kind,
content: std.ArrayList(u8),
const Self = @This();
-pub fn init(gpa: Allocator, kind: Kind, content: std.ArrayList(u8)) Self {
+pub fn init(alloc: Allocator, kind: Kind, content: std.ArrayList(u8)) Self {
return .{
- .gpa = gpa,
+ .allocator = alloc,
.kind = kind,
.content = content,
};
}
pub fn deinit(self: *Self) void {
- self.content.deinit(self.gpa);
+ self.content.deinit(self.allocator);
}
-pub fn clone(self: *const Self, gpa: Allocator) Allocator.Error!std.ArrayList(u8) {
- return self.content.clone(gpa);
+pub fn clone(self: *const Self, alloc: Allocator) Allocator.Error!std.ArrayList(u8) {
+ return self.content.clone(alloc);
}
pub fn equals(self: *const Self, kind: Kind, content: []const u8) bool {