diff options
author | 2021-04-28 21:58:02 -0700 | |
---|---|---|
committer | 2021-04-28 21:58:02 -0700 | |
commit | cabe773a4f0a12e411f9f3c9698da6bbd90ec474 (patch) | |
tree | c20cfd9ba22c4ca999c850edb04012d94d72ccb5 /src/ast | |
parent | 435a6e9b187168d869024d1002951e4bfa76333a (diff) | |
download | bun-cabe773a4f0a12e411f9f3c9698da6bbd90ec474.tar.gz bun-cabe773a4f0a12e411f9f3c9698da6bbd90ec474.tar.zst bun-cabe773a4f0a12e411f9f3c9698da6bbd90ec474.zip |
wip
Former-commit-id: b37acf309c8f42d49dc47eea446f89a3dbe9f6e2
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/base.zig | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ast/base.zig b/src/ast/base.zig index f941e3745..1b2e3f087 100644 --- a/src/ast/base.zig +++ b/src/ast/base.zig @@ -27,7 +27,7 @@ pub const Ref = packed struct { inner_index: Int = 0, // 2 bits of padding for whatever is the parent - pub const Int = u31; + pub const Int = u30; pub const None = Ref{ .inner_index = std.math.maxInt(Ref.Int) }; pub fn isNull(self: *const Ref) bool { return self.source_index == std.math.maxInt(Ref.Int) and self.inner_index == std.math.maxInt(Ref.Int); @@ -55,3 +55,11 @@ pub const RequireOrImportMeta = struct { exports_ref: Ref = Ref.None, is_wrapper_async: bool = false, }; +pub fn debug(comptime fmt: []const u8, args: anytype) callconv(.Inline) void { + // std.debug.print(fmt, args); +} +pub fn debugl( + comptime fmt: []const u8, +) callconv(.Inline) void { + // std.debug.print("{s}\n", .{fmt}); +} |