Lines Matching refs:Group
165 TokenTree::Group(tt) => proc_macro::TokenTree::Group(tt.inner.unwrap_nightly()), in into_compiler_token()
342 proc_macro::TokenTree::Group(tt) => { in next()
343 TokenTree::Group(crate::Group::_new(Group::Compiler(tt))) in next()
560 pub(crate) enum Group { enum
561 Compiler(proc_macro::Group),
562 Fallback(fallback::Group),
565 impl Group { implementation
575 Group::Compiler(proc_macro::Group::new(delimiter, tts.into_token_stream())) in new()
578 Group::Fallback(fallback::Group::new(delimiter, stream)) in new()
585 Group::Compiler(g) => match g.delimiter() { in delimiter()
591 Group::Fallback(g) => g.delimiter(), in delimiter()
597 Group::Compiler(g) => TokenStream::Compiler(DeferredTokenStream::new(g.stream())), in stream()
598 Group::Fallback(g) => TokenStream::Fallback(g.stream()), in stream()
604 Group::Compiler(g) => Span::Compiler(g.span()), in span()
605 Group::Fallback(g) => Span::Fallback(g.span()), in span()
611 Group::Compiler(g) => Span::Compiler(g.span_open()), in span_open()
612 Group::Fallback(g) => Span::Fallback(g.span_open()), in span_open()
618 Group::Compiler(g) => Span::Compiler(g.span_close()), in span_close()
619 Group::Fallback(g) => Span::Fallback(g.span_close()), in span_close()
625 (Group::Compiler(g), Span::Compiler(s)) => g.set_span(s), in set_span()
626 (Group::Fallback(g), Span::Fallback(s)) => g.set_span(s), in set_span()
627 (Group::Compiler(_), Span::Fallback(_)) => mismatch(line!()), in set_span()
628 (Group::Fallback(_), Span::Compiler(_)) => mismatch(line!()), in set_span()
632 fn unwrap_nightly(self) -> proc_macro::Group { in unwrap_nightly() argument
634 Group::Compiler(g) => g, in unwrap_nightly()
635 Group::Fallback(_) => mismatch(line!()), in unwrap_nightly()
640 impl From<fallback::Group> for Group { implementation
641 fn from(g: fallback::Group) -> Self { in from()
642 Group::Fallback(g) in from()
646 impl Display for Group { implementation
649 Group::Compiler(group) => Display::fmt(group, formatter), in fmt()
650 Group::Fallback(group) => Display::fmt(group, formatter), in fmt()
655 impl Debug for Group { implementation
658 Group::Compiler(group) => Debug::fmt(group, formatter), in fmt()
659 Group::Fallback(group) => Debug::fmt(group, formatter), in fmt()