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.rs28 pub(crate) enum LexError { enum
29 Compiler(proc_macro::LexError),
30 Fallback(fallback::LexError),
109 type Err = LexError;
111 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument
123 fn proc_macro_parse(src: &str) -> Result<proc_macro::TokenStream, LexError> { in proc_macro_parse() argument
124 let result = panic::catch_unwind(|| src.parse().map_err(LexError::Compiler)); in proc_macro_parse()
125 result.unwrap_or_else(|_| Err(LexError::CompilerPanic)) in proc_macro_parse()
260 impl LexError { impl
263 LexError::Compiler(_) | LexError::CompilerPanic => Span::call_site(), in span()
[all …]
Dlib.rs191 pub struct LexError { struct
192 inner: imp::LexError, argument
239 type Err = LexError;
241 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument
242 let e = src.parse().map_err(|e| LexError { in from_str()
314 impl LexError { implementation
320 impl Debug for LexError { implementation
326 impl Display for LexError { implementation
332 impl Error for LexError {} implementation
1258 type Err = LexError;
[all …]
Dfallback.rs39 pub(crate) struct LexError { struct
43 impl LexError { impl
49 LexError { in call_site()
170 type Err = LexError;
172 fn from_str(src: &str) -> Result<TokenStream, LexError> { in from_str() argument
186 impl Display for LexError { implementation
1097 type Err = LexError;
1108 return Err(LexError::call_site()); in from_str()
1126 Err(LexError::call_site()) in from_str()
Dparse.rs2 self, is_ident_continue, is_ident_start, Group, LexError, Literal, Span, TokenStream,
168 pub(crate) fn token_stream(mut input: Cursor) -> Result<TokenStream, LexError> { in token_stream() argument
189 return Err(LexError { in token_stream()
194 Some(_frame) => return Err(LexError { span: Span {} }), in token_stream()
253 fn lex_error(cursor: Cursor) -> LexError { in lex_error() argument
256 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);
67 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree,
85 LexError
/third_party/rust/crates/syn/src/
Derror.rs5 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree,
405 impl From<LexError> for Error {
406 fn from(err: LexError) -> Self { in from()