aboutsummaryrefslogtreecommitdiff
path: root/src/ast/base.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/base.zig')
-rw-r--r--src/ast/base.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast/base.zig b/src/ast/base.zig
index 361339f7f..59d7c6c12 100644
--- a/src/ast/base.zig
+++ b/src/ast/base.zig
@@ -27,8 +27,8 @@ pub const Ref = packed struct {
inner_index: Int = 0,
is_source_contents_slice: bool = false,
- pub fn hash(key: Ref) u64 {
- @compileError("Dont call");
+ pub fn hash(key: Ref) u32 {
+ return @truncate(u32, std.hash.Wyhash.hash(0, std.mem.asBytes(&key)));
}
// 2 bits of padding for whatever is the parent