Home
last modified time | relevance | path

Searched refs:LexError (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/proc-macro2/src/
Dwrapper.rs27 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 …]
Dlib.rs132 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
Dparse.rs2 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()
Dfallback.rs38 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/
Dmarker.rs45 assert_impl!(LexError is not Send or Sync);
78 LexError
/external/rust/crates/syn/src/
Derror.rs5 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/
Dlexer.py28 class LexError(Error): class
48 raise LexError(self.filename, msg, token.lineno)
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dlexer_unittest.py102 mojom.parse.lexer.LexError,
106 mojom.parse.lexer.LexError,
Dparser_unittest.py481 lexer.LexError,
493 lexer.LexError,
502 lexer.LexError,
509 lexer.LexError,
516 lexer.LexError,
/external/libchrome/third_party/ply/
Dlex.py63 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/
Dlex.py57 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/
Dlex.py57 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/
Dlex.py57 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/
Dtestlex.py300 except ply.lex.LexError: