Home
last modified time | relevance | path

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

/third_party/rust/crates/proc-macro2/src/
Dwrapper.rs29 pub(crate) enum LexError { enum
30 Compiler(proc_macro::LexError),
31 Fallback(fallback::LexError),
34 impl LexError { impl
36 LexError::Fallback(fallback::LexError { in call_site()
105 type Err = LexError;
107 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument
119 fn proc_macro_parse(src: &str) -> Result<proc_macro::TokenStream, LexError> { in proc_macro_parse() argument
120 let result = panic::catch_unwind(|| src.parse().map_err(LexError::Compiler)); in proc_macro_parse()
121 result.unwrap_or_else(|_| Err(LexError::call_site())) in proc_macro_parse()
[all …]
Dlib.rs177 pub struct LexError { struct
178 inner: imp::LexError, argument
225 type Err = LexError;
227 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument
228 let e = src.parse().map_err(|e| LexError { in from_str()
298 impl LexError { implementation
304 impl Debug for LexError { implementation
310 impl Display for LexError { implementation
316 impl Error for LexError {} implementation
1265 type Err = LexError;
[all …]
Dfallback.rs40 pub(crate) struct LexError { struct
44 impl LexError { argument
50 LexError { in call_site()
183 type Err = LexError;
185 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument
199 impl Display for LexError { implementation
990 type Err = LexError;
997 return Err(LexError::call_site()); in from_str()
1009 Err(LexError::call_site()) in from_str()
Dparse.rs2 is_ident_continue, is_ident_start, Group, LexError, Literal, Span, TokenStream,
153 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()
/third_party/rust/crates/proc-macro2/tests/
Dmarker.rs4 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree,
49 assert_impl!(LexError is not Send or Sync);
68 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree,
86 LexError
/third_party/rust/crates/syn/src/
Derror.rs5 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree,
366 impl From<LexError> for Error {
367 fn from(err: LexError) -> Self { in from()