• Home
  • Raw
  • Download

Lines Matching refs:proc_macro

26     stream: proc_macro::TokenStream,
27 extra: Vec<proc_macro::TokenTree>,
31 Compiler(proc_macro::LexError),
53 fn new(stream: proc_macro::TokenStream) -> Self { in new()
73 fn into_token_stream(mut self) -> proc_macro::TokenStream { in into_token_stream()
82 TokenStream::Compiler(DeferredTokenStream::new(proc_macro::TokenStream::new())) in new()
91 proc_macro::TokenStream::from_str_checked(src)?, in from_str_checked()
107 fn unwrap_nightly(self) -> proc_macro::TokenStream { in unwrap_nightly()
131 impl From<proc_macro::TokenStream> for TokenStream {
132 fn from(inner: proc_macro::TokenStream) -> Self { in from()
137 impl From<TokenStream> for proc_macro::TokenStream {
142 proc_macro::TokenStream::from_str_unchecked(&inner.to_string()) in from()
155 fn into_compiler_token(token: TokenTree) -> proc_macro::TokenTree { in into_compiler_token()
157 TokenTree::Group(tt) => proc_macro::TokenTree::Group(tt.inner.unwrap_nightly()), in into_compiler_token()
160 Spacing::Joint => proc_macro::Spacing::Joint, in into_compiler_token()
161 Spacing::Alone => proc_macro::Spacing::Alone, in into_compiler_token()
163 let mut punct = proc_macro::Punct::new(tt.as_char(), spacing); in into_compiler_token()
165 proc_macro::TokenTree::Punct(punct) in into_compiler_token()
167 TokenTree::Ident(tt) => proc_macro::TokenTree::Ident(tt.inner.unwrap_nightly()), in into_compiler_token()
168 TokenTree::Literal(tt) => proc_macro::TokenTree::Literal(tt.inner.unwrap_nightly()), in into_compiler_token()
175 TokenStream::Compiler(DeferredTokenStream::new(proc_macro::TokenStream::from( in from()
267 impl From<proc_macro::LexError> for LexError {
268 fn from(e: proc_macro::LexError) -> Self { in from()
307 Compiler(proc_macro::token_stream::IntoIter),
334 proc_macro::TokenTree::Group(tt) => { in next()
337 proc_macro::TokenTree::Punct(tt) => { in next()
339 proc_macro::Spacing::Joint => Spacing::Joint, in next()
340 proc_macro::Spacing::Alone => Spacing::Alone, in next()
346 proc_macro::TokenTree::Ident(s) => { in next()
349 proc_macro::TokenTree::Literal(l) => { in next()
366 Compiler(proc_macro::SourceFile),
372 fn nightly(sf: proc_macro::SourceFile) -> Self { in nightly()
404 Compiler(proc_macro::Span),
411 Span::Compiler(proc_macro::Span::call_site()) in call_site()
419 Span::Compiler(proc_macro::Span::mixed_site()) in mixed_site()
428 Span::Compiler(proc_macro::Span::def_site()) in def_site()
452 pub(crate) fn unwrap(self) -> proc_macro::Span { in unwrap()
538 fn unwrap_nightly(self) -> proc_macro::Span { in unwrap_nightly()
546 impl From<proc_macro::Span> for crate::Span {
547 fn from(proc_span: proc_macro::Span) -> Self { in from()
578 Compiler(proc_macro::Group),
587 Delimiter::Parenthesis => proc_macro::Delimiter::Parenthesis, in new()
588 Delimiter::Bracket => proc_macro::Delimiter::Bracket, in new()
589 Delimiter::Brace => proc_macro::Delimiter::Brace, in new()
590 Delimiter::None => proc_macro::Delimiter::None, in new()
592 Group::Compiler(proc_macro::Group::new(delimiter, tts.into_token_stream())) in new()
603 proc_macro::Delimiter::Parenthesis => Delimiter::Parenthesis, in delimiter()
604 proc_macro::Delimiter::Bracket => Delimiter::Bracket, in delimiter()
605 proc_macro::Delimiter::Brace => Delimiter::Brace, in delimiter()
606 proc_macro::Delimiter::None => Delimiter::None, in delimiter()
649 fn unwrap_nightly(self) -> proc_macro::Group { in unwrap_nightly()
683 Compiler(proc_macro::Ident),
691 Span::Compiler(s) => Ident::Compiler(proc_macro::Ident::new(string, s)), in new_checked()
699 Span::Compiler(s) => Ident::Compiler(proc_macro::Ident::new_raw(string, s)), in new_raw_checked()
720 fn unwrap_nightly(self) -> proc_macro::Ident { in unwrap_nightly()
778 Compiler(proc_macro::Literal),
786 Literal::Compiler(proc_macro::Literal::$name(n))
798 Literal::Compiler(proc_macro::Literal::$name(n))
809 let literal = proc_macro::Literal::from_str_checked(repr)?; in from_str_checked()
819 Literal::Compiler(proc_macro::Literal::from_str_unchecked(repr)) in from_str_unchecked()
860 Literal::Compiler(proc_macro::Literal::f32_unsuffixed(f)) in f32_unsuffixed()
868 Literal::Compiler(proc_macro::Literal::f64_unsuffixed(f)) in f64_unsuffixed()
876 Literal::Compiler(proc_macro::Literal::string(string)) in string()
884 Literal::Compiler(proc_macro::Literal::character(ch)) in character()
895 proc_macro::Literal::byte_character(byte) in byte_character()
901 proc_macro::Literal::from_str_unchecked(&fallback.repr) in byte_character()
911 Literal::Compiler(proc_macro::Literal::byte_string(bytes)) in byte_string()
922 proc_macro::Literal::c_string(string) in c_string()
928 proc_macro::Literal::from_str_unchecked(&fallback.repr) in c_string()
962 fn unwrap_nightly(self) -> proc_macro::Literal { in unwrap_nightly()