aboutsummaryrefslogtreecommitdiff
path: root/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast')
-rw-r--r--src/ast/base.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast/base.zig b/src/ast/base.zig
index 92f15f983..cf08ca780 100644
--- a/src/ast/base.zig
+++ b/src/ast/base.zig
@@ -33,6 +33,10 @@ pub const Ref = packed struct {
.inner_index = std.math.maxInt(Ref.Int),
.source_index = std.math.maxInt(Ref.Int),
};
+ pub const RuntimeRef = Ref{
+ .inner_index = std.math.maxInt(Ref.Int),
+ .source_index = std.math.maxInt(Ref.Int) - 1,
+ };
pub fn toInt(int: anytype) Int {
return @intCast(Int, int);
}