pub const Range = struct line_offset: i32file_id: ?u32code_offset: u32code_length: u32365
366
367
368
369
370
371
372
373
374
375 pub const Range = struct {
line_offset: i32,
file_id: ?u32,
code_offset: u32,
code_length: u32,
pub fn contains(self: Range, offset_in_func: usize) bool {
return self.code_offset <= offset_in_func and
offset_in_func < self.code_offset + self.code_length;
}
}