pub trait LexicalError: Error {
// Required method
fn location(&self) -> (LexerPosition, TextSize);
}
Expand description
An error produced by lexical analysis
Required Methods§
Sourcefn location(&self) -> (LexerPosition, TextSize)
fn location(&self) -> (LexerPosition, TextSize)
Return the location at which this error occurred
§Returns
LexerPosition structure that indicates at which offset in the input the error occurred, and length of the range.