Lines Matching refs:Ident
175 TokenTree::Ident(tt) => proc_macro::TokenTree::Ident(tt.inner.unwrap_nightly()), in into_compiler_token()
354 proc_macro::TokenTree::Ident(s) => { in next()
355 TokenTree::Ident(crate::Ident::_new(Ident::Compiler(s))) in next()
665 pub(crate) enum Ident { enum
666 Compiler(proc_macro::Ident),
667 Fallback(fallback::Ident),
670 impl Ident { implementation
674 Span::Compiler(s) => Ident::Compiler(proc_macro::Ident::new(string, s)), in new_checked()
675 Span::Fallback(s) => Ident::Fallback(fallback::Ident::new_checked(string, s)), in new_checked()
682 Span::Compiler(s) => Ident::Compiler(proc_macro::Ident::new_raw(string, s)), in new_raw_checked()
683 Span::Fallback(s) => Ident::Fallback(fallback::Ident::new_raw_checked(string, s)), in new_raw_checked()
689 Ident::Compiler(t) => Span::Compiler(t.span()), in span()
690 Ident::Fallback(t) => Span::Fallback(t.span()), in span()
696 (Ident::Compiler(t), Span::Compiler(s)) => t.set_span(s), in set_span()
697 (Ident::Fallback(t), Span::Fallback(s)) => t.set_span(s), in set_span()
698 (Ident::Compiler(_), Span::Fallback(_)) => mismatch(line!()), in set_span()
699 (Ident::Fallback(_), Span::Compiler(_)) => mismatch(line!()), in set_span()
703 fn unwrap_nightly(self) -> proc_macro::Ident { in unwrap_nightly() argument
705 Ident::Compiler(s) => s, in unwrap_nightly()
706 Ident::Fallback(_) => mismatch(line!()), in unwrap_nightly()
711 impl From<fallback::Ident> for Ident { implementation
712 fn from(inner: fallback::Ident) -> Self { in from()
713 Ident::Fallback(inner) in from()
717 impl PartialEq for Ident { implementation
718 fn eq(&self, other: &Ident) -> bool { in eq()
720 (Ident::Compiler(t), Ident::Compiler(o)) => t.to_string() == o.to_string(), in eq()
721 (Ident::Fallback(t), Ident::Fallback(o)) => t == o, in eq()
722 (Ident::Compiler(_), Ident::Fallback(_)) => mismatch(line!()), in eq()
723 (Ident::Fallback(_), Ident::Compiler(_)) => mismatch(line!()), in eq()
728 impl<T> PartialEq<T> for Ident implementation
735 Ident::Compiler(t) => t.to_string() == other, in eq()
736 Ident::Fallback(t) => t == other, in eq()
741 impl Display for Ident { implementation
744 Ident::Compiler(t) => Display::fmt(t, f), in fmt()
745 Ident::Fallback(t) => Display::fmt(t, f), in fmt()
750 impl Debug for Ident { implementation
753 Ident::Compiler(t) => Debug::fmt(t, f), in fmt()
754 Ident::Fallback(t) => Debug::fmt(t, f), in fmt()