Trait LexicalError

Source
pub trait LexicalError: Error {
    // Required method
    fn location(&self) -> (LexerPosition, TextSize);
}
Expand description

An error produced by lexical analysis

Required Methods§

Source

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.

Implementors§