/external/rust/crates/proc-macro2/src/ |
D | wrapper.rs | 27 pub(crate) enum LexError { enum 28 Compiler(proc_macro::LexError), 29 Fallback(fallback::LexError), 95 type Err = LexError; 97 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument 109 fn proc_macro_parse(src: &str) -> Result<proc_macro::TokenStream, LexError> { in proc_macro_parse() argument 110 let result = panic::catch_unwind(|| src.parse().map_err(LexError::Compiler)); in proc_macro_parse() 112 Err(LexError::Fallback(fallback::LexError { in proc_macro_parse() 250 impl LexError { impl 253 LexError::Compiler(_) => Span::call_site(), in span() [all …]
|
D | lib.rs | 132 pub struct LexError { struct 133 inner: imp::LexError, argument 180 type Err = LexError; 182 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument 183 let e = src.parse().map_err(|e| LexError { in from_str() 253 impl LexError { impl 259 impl Debug for LexError { implementation 265 impl Display for LexError { implementation 271 impl Error for LexError {} implementation
|
D | parse.rs | 2 is_ident_continue, is_ident_start, Group, LexError, Literal, Span, TokenStream, 152 pub(crate) fn token_stream(mut input: Cursor) -> Result<TokenStream, LexError> { in token_stream() argument 174 return Err(LexError { in token_stream() 179 Some(_frame) => return Err(LexError { span: Span {} }), in token_stream() 238 fn lex_error(cursor: Cursor) -> LexError { in lex_error() argument 241 LexError { in lex_error()
|
D | fallback.rs | 38 pub(crate) struct LexError { struct 42 impl LexError { impl 144 type Err = LexError; 146 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument 154 impl Display for LexError { implementation
|
/external/rust/crates/proc-macro2/tests/ |
D | marker.rs | 45 assert_impl!(LexError is not Send or Sync); 78 LexError
|
/external/rust/crates/syn/src/ |
D | error.rs | 5 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 350 impl From<LexError> for Error { 351 fn from(err: LexError) -> Self { in from()
|
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/parse/ |
D | lexer.py | 28 class LexError(Error): class 48 raise LexError(self.filename, msg, token.lineno)
|
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/ |
D | lexer_unittest.py | 102 mojom.parse.lexer.LexError, 106 mojom.parse.lexer.LexError,
|
D | parser_unittest.py | 481 lexer.LexError, 493 lexer.LexError, 502 lexer.LexError, 509 lexer.LexError, 516 lexer.LexError,
|
/external/libchrome/third_party/ply/ |
D | lex.py | 63 class LexError(Exception): class 359 raise LexError("%s:%d: Rule '%s' returned an unknown token type '%s'" % ( 387 … raise LexError("Scanning error. Illegal character '%s'" % (lexdata[lexpos]), lexdata[lexpos:]) 393 … raise LexError("Illegal character '%s' at index %d" % (lexdata[lexpos],lexpos), lexdata[lexpos:])
|
/external/selinux/python/sepolgen/src/sepolgen/ |
D | lex.py | 57 class LexError(Exception): class 361 raise LexError("%s:%d: Rule '%s' returned an unknown token type '%s'" % ( 389 … raise LexError("Scanning error. Illegal character '%s'" % (lexdata[lexpos]), lexdata[lexpos:]) 396 … raise LexError("Illegal character '%s' at index %d" % (lexdata[lexpos], lexpos), lexdata[lexpos:])
|
/external/ply/ply/ply/ |
D | lex.py | 57 class LexError(Exception): class 361 raise LexError("%s:%d: Rule '%s' returned an unknown token type '%s'" % ( 389 … raise LexError("Scanning error. Illegal character '%s'" % (lexdata[lexpos]), lexdata[lexpos:]) 396 … raise LexError("Illegal character '%s' at index %d" % (lexdata[lexpos], lexpos), lexdata[lexpos:])
|
/external/python/pycparser/pycparser/ply/ |
D | lex.py | 57 class LexError(Exception): class 361 raise LexError("%s:%d: Rule '%s' returned an unknown token type '%s'" % ( 389 … raise LexError("Scanning error. Illegal character '%s'" % (lexdata[lexpos]), lexdata[lexpos:]) 396 … raise LexError("Illegal character '%s' at index %d" % (lexdata[lexpos], lexpos), lexdata[lexpos:])
|
/external/ply/ply/test/ |
D | testlex.py | 300 except ply.lex.LexError:
|