struct SourceLocation [src]

Trailing: ReferenceTrace for each reference_trace_len

Fields

src_path: String
line: u32
column: u32
span_start: u32byte offset of starting token
span_main: u32byte offset of main error location
span_end: u32byte offset of end of last token
source_line: OptionalString = 0Does not include the trailing newline.
reference_trace_len: u32 = 0

Source

pub const SourceLocation = struct { src_path: String, line: u32, column: u32, /// byte offset of starting token span_start: u32, /// byte offset of main error location span_main: u32, /// byte offset of end of last token span_end: u32, /// Does not include the trailing newline. source_line: OptionalString = 0, reference_trace_len: u32 = 0, }