Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

SourceLocation

Public Struct
std.zig.ErrorBundle.SourceLocation
pub const SourceLocation = struct

Trailing:

  • ReferenceTrace for each reference_trace_len

Fields

src_path: String
line: u32
column: u32
span_start: u32

byte offset of starting token

span_main: u32

byte offset of main error location

span_end: u32

byte offset of end of last token

source_line: OptionalString = 0

Does not include the trailing newline.

reference_trace_len: u32 = 0

File

zig/ErrorBundle.zig:53
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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,
}