pub fn getLocation(self: Note, diag: *const Diagnostics) Ast.Location self: Notediag: *const Diagnostics81
82
83
84
85
86 pub fn getLocation(self: Note, diag: *const Diagnostics) Ast.Location {
switch (self) {
.zoir => |note| return zoirErrorLocation(diag.ast, note.token, note.node_or_offset),
.type_check => |note| return diag.ast.tokenLocation(note.offset, note.token),
}
}