aboutsummaryrefslogtreecommitdiff
path: root/src/ast/base.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-28 23:26:13 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-05-28 23:26:13 -0700
commit05ec7232bfc97894ae8f04d313fed97c1d619503 (patch)
tree7cbf3b697e80b807f143422ff25dd364bf072c18 /src/ast/base.zig
parent254a2b779b2b51616f8ab895bd9d54b984b73a2c (diff)
downloadbun-05ec7232bfc97894ae8f04d313fed97c1d619503.tar.gz
bun-05ec7232bfc97894ae8f04d313fed97c1d619503.tar.zst
bun-05ec7232bfc97894ae8f04d313fed97c1d619503.zip
all
Former-commit-id: 664dbf569c423280c4fb40d3114e81e0d7b9ddc3
Diffstat (limited to 'src/ast/base.zig')
-rw-r--r--src/ast/base.zig10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ast/base.zig b/src/ast/base.zig
index cf08ca780..3f10beb37 100644
--- a/src/ast/base.zig
+++ b/src/ast/base.zig
@@ -27,6 +27,10 @@ pub const Ref = packed struct {
inner_index: Int = 0,
is_source_contents_slice: bool = false,
+ pub fn hash(key: Ref) u64 {
+ @compileError("Dont call");
+ }
+
// 2 bits of padding for whatever is the parent
pub const Int = u30;
pub const None = Ref{
@@ -70,11 +74,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 {
+pub inline fn debug(comptime fmt: []const u8, args: anytype) void {
// Output.print(fmt, args);
}
-pub fn debugl(
+pub inline fn debugl(
comptime fmt: []const u8,
-) callconv(.Inline) void {
+) void {
// Output.print("{s}\n", .{fmt});
}