aboutsummaryrefslogtreecommitdiff
path: root/src/ast/base.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-12-30 21:12:32 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-30 21:12:32 -0800
commite75c711c68896f5952793601f156c921c814caab (patch)
treef3b30e2281c7231d480bb84503d17b2370866ff9 /src/ast/base.zig
parent8d031f13c0e04629d431176e211a31224b7618c0 (diff)
downloadbun-e75c711c68896f5952793601f156c921c814caab.tar.gz
bun-e75c711c68896f5952793601f156c921c814caab.tar.zst
bun-e75c711c68896f5952793601f156c921c814caab.zip
Upgrade to latest Zig, remove dependency on patched version of Zig (#96)
* Prepare to upgrade zig * zig fmt * AllocGate * Update data_url.zig * wip * few files * just headers now? * I think everything works? * Update mimalloc * Update hash_map.zig * Perf improvements to compensate for Allocgate * Bump * :camera: * Update bun.lockb * Less branching * [js parser] Slightly reduce memory usage * Update js_parser.zig * WIP remove unused * [JS parser] WIP support for `with` keyword * Remove more dead code * Fix all the build errors! * cleanup * Move `network_thread` up * Bump peechy * Update README.md
Diffstat (limited to 'src/ast/base.zig')
-rw-r--r--src/ast/base.zig12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/ast/base.zig b/src/ast/base.zig
index f1877018c..f2312677f 100644
--- a/src/ast/base.zig
+++ b/src/ast/base.zig
@@ -24,11 +24,11 @@ pub const NodeIndexNone = 4294967293;
// all inner arrays from all parsed files.
pub const RefHashCtx = struct {
- pub fn hash(ctx: @This(), key: Ref) u32 {
+ pub fn hash(_: @This(), key: Ref) u32 {
return @truncate(u32, std.hash.Wyhash.hash(0, std.mem.asBytes(&key)));
}
- pub fn eql(ctx: @This(), ref: Ref, b: Ref) bool {
+ pub fn eql(_: @This(), ref: Ref, b: Ref) bool {
return std.mem.readIntNative(u64, std.mem.asBytes(&ref)) == std.mem.readIntNative(u64, std.mem.asBytes(&b));
}
};
@@ -85,11 +85,3 @@ pub const RequireOrImportMeta = struct {
exports_ref: Ref = Ref.None,
is_wrapper_async: bool = false,
};
-pub inline fn debug(comptime fmt: []const u8, args: anytype) void {
- // Output.print(fmt, args);
-}
-pub inline fn debugl(
- comptime fmt: []const u8,
-) void {
- // Output.print("{s}\n", .{fmt});
-}