Lines Matching refs:Group
10 use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree};
18 // Group entries contain the offset to the matching End entry.
19 Group(Group, usize),
43 TokenTree::Group(group) => {
50 entries[group_start_index] = Entry::Group(group, group_end_offset);
154 /// If the cursor is looking at an `Entry::Group`, the bumped cursor will
166 while let Entry::Group(group, _) = self.entry() {
182 /// If the cursor is pointing at a `Group` with the given delimiter, returns
192 if let Entry::Group(group, end_offset) = self.entry() {
206 if let Entry::Group(group, end_offset) = self.entry() {
218 pub(crate) fn any_group_token(self) -> Option<(Group, Cursor<'a>)> {
219 if let Entry::Group(group, end_offset) = self.entry() {
296 /// will return a `Group(None, ..)` if the cursor is looking at one.
299 Entry::Group(group, end_offset) => (group.clone().into(), *end_offset),
314 Entry::Group(group, _) => group.span(),
329 // Locate the matching Group begin token.
334 Entry::Group(group, _) => {
365 Entry::Group(_, end_offset) => *end_offset,
422 Entry::Group(group, _) => group.span_open(),
429 Entry::Group(group, _) => group.span_close(),