Function getLocation [src]
Prototype
pub fn getLocation(self: Note, diag: *const Diagnostics) Ast.Location Parameters
self: Notediag: *const Diagnostics Source
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),
}
}