Searched refs:LexError (Results 1 – 2 of 2) sorted by relevance
| /wasmtime-44.0.1/cranelift/reader/src/ |
| H A D | lexer.rs | 78 pub enum LexError { enum 85 pub error: LexError, 90 fn error<'a>(error: LexError, loc: Location) -> Result<LocatedToken<'a>, LocatedError> { in error() argument 429 return error(LexError::InvalidChar, self.loc()); in scan_string() 532 Some(error(LexError::InvalidChar, loc)) in next() 571 fn error<'a>(error: LexError, line: usize) -> Option<Result<LocatedToken<'a>, LocatedError>> { in error() argument 599 assert_eq!(lex.next(), error(LexError::InvalidChar, 1)); in lex_comment()
|
| H A D | parser.rs | 5 use crate::lexer::{LexError, Lexer, LocatedError, LocatedToken, Token}; 200 lex_error: Option<LexError>, 1183 LexError::InvalidChar => err!(self.loc, "invalid character"), in parse_function_list()
|