aboutsummaryrefslogtreecommitdiff
path: root/src/lexer/Lexed.zig
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-17 18:07:11 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-17 18:07:11 +0200
commit87e5daf9156583072d9ccb9ff0fa074f65fa6836 (patch)
tree016d7bab36eac1a79b0a252ed8647af5b68bb028 /src/lexer/Lexed.zig
parent256a992e660869d28f5f2fd69bfe59a8ff591989 (diff)
style(): rename alloc into gpa
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 b7c3b2c..2ce6913 100644
--- a/src/lexer/Lexed.zig
+++ b/src/lexer/Lexed.zig
@@ -21,26 +21,26 @@ pub const Kind = enum {
tag,
};
-allocator: Allocator,
+gpa: Allocator,
kind: Kind,
content: std.ArrayList(u8),
const Self = @This();
-pub fn init(alloc: Allocator, kind: Kind, content: std.ArrayList(u8)) Self {
+pub fn init(gpa: Allocator, kind: Kind, content: std.ArrayList(u8)) Self {
return .{
- .allocator = alloc,
+ .gpa = gpa,
.kind = kind,
.content = content,
};
}
pub fn deinit(self: *Self) void {
- self.content.deinit(self.allocator);
+ self.content.deinit(self.gpa);
}
-pub fn clone(self: *const Self, alloc: Allocator) Allocator.Error!std.ArrayList(u8) {
- return self.content.clone(alloc);
+pub fn clone(self: *const Self, gpa: Allocator) Allocator.Error!std.ArrayList(u8) {
+ return self.content.clone(gpa);
}
pub fn equals(self: *const Self, kind: Kind, content: []const u8) bool {