pub fn unwrap(cap: Capture) Unwrapped cap: Capture3581
3582
3583
3584
3585
3586
3587
3588
3589 pub fn unwrap(cap: Capture) Unwrapped {
return switch (cap.tag) {
.nested => .{ .nested = @intCast(cap.data) },
.instruction => .{ .instruction = @fromBackingInt(@intCast(cap.data)) },
.instruction_load => .{ .instruction_load = @fromBackingInt(@intCast(cap.data)) },
.decl_val => .{ .decl_val = @fromBackingInt(@intCast(cap.data)) },
.decl_ref => .{ .decl_ref = @fromBackingInt(@intCast(cap.data)) },
};
}