Struct syntex_syntax::diagnostics::metadata::ErrorLocation
[−]
[src]
pub struct ErrorLocation { pub filename: String, pub line: usize, }
JSON encodable error location type with filename and line number.
Fields
filename | |
line |
Methods
impl ErrorLocation
fn from_span(ecx: &ExtCtxt, sp: Span) -> ErrorLocation
Create an error location from a span.