Lines Matching refs:Entry

19 enum Entry {  enum
37 entries: Box<[Entry]>,
41 fn recursive_new(entries: &mut Vec<Entry>, stream: TokenStream) { in recursive_new() argument
44 TokenTree::Ident(ident) => entries.push(Entry::Ident(ident)), in recursive_new()
45 TokenTree::Punct(punct) => entries.push(Entry::Punct(punct)), in recursive_new()
46 TokenTree::Literal(literal) => entries.push(Entry::Literal(literal)), in recursive_new()
49 entries.push(Entry::End(0, 0)); // we replace this below in recursive_new()
53 entries.push(Entry::End( in recursive_new()
57 entries[group_start_index] = Entry::Group(group, group_offset); in recursive_new()
76 entries.push(Entry::End(-(entries.len() as isize), 0)); in new2()
100 ptr: *const Entry,
103 scope: *const Entry,
106 marker: PhantomData<&'a Entry>,
119 struct UnsafeSyncEntry(Entry); in empty()
121 static EMPTY_ENTRY: UnsafeSyncEntry = UnsafeSyncEntry(Entry::End(0, 0)); in empty()
133 unsafe fn create(mut ptr: *const Entry, scope: *const Entry) -> Self { in create() argument
138 while let Entry::End(..) = unsafe { &*ptr } { in create()
153 fn entry(self) -> &'a Entry { in entry() argument
173 while let Entry::Group(group, _) = self.entry() { in ignore_none()
194 Entry::Ident(ident) => Some((ident.clone(), unsafe { self.bump_ignore_group() })), in ident()
204 Entry::Punct(punct) if punct.as_char() != '\'' => { in punct()
216 Entry::Literal(literal) => Some((literal.clone(), unsafe { self.bump_ignore_group() })), in literal()
226 Entry::Punct(punct) if punct.as_char() == '\'' && punct.spacing() == Spacing::Joint => { in lifetime()
249 if let Entry::Group(group, end_offset) = self.entry() { in group()
265 if let Entry::Group(group, end_offset) = self.entry() { in any_group()
278 if let Entry::Group(group, end_offset) = self.entry() { in any_group_token()
308 Entry::Group(group, end_offset) => (group.clone().into(), *end_offset), in token_tree()
309 Entry::Literal(literal) => (literal.clone().into(), 1), in token_tree()
310 Entry::Ident(ident) => (ident.clone().into(), 1), in token_tree()
311 Entry::Punct(punct) => (punct.clone().into(), 1), in token_tree()
312 Entry::End(..) => return None, in token_tree()
323 Entry::Group(group, _) => group.span(), in span()
324 Entry::Literal(literal) => literal.span(), in span()
325 Entry::Ident(ident) => ident.span(), in span()
326 Entry::Punct(punct) => punct.span(), in span()
327 Entry::End(_, offset) => { in span()
329 if let Entry::Group(group, _) = self.entry() { in span()
356 Entry::End(..) => return None, in skip()
359 Entry::Punct(punct) if punct.as_char() == '\'' && punct.spacing() == Spacing::Joint => { in skip()
361 Entry::Ident(_) => 2, in skip()
366 Entry::Group(_, end_offset) => *end_offset, in skip()
375 Entry::End(_, offset) => match unsafe { &*self.scope.offset(*offset) } { in scope_delimiter()
376 Entry::Group(group, _) => group.delimiter(), in scope_delimiter()
418 fn start_of_buffer(cursor: Cursor) -> *const Entry { in start_of_buffer() argument
421 Entry::End(offset, _) => cursor.scope.offset(*offset), in start_of_buffer()
433 Entry::Group(group, _) => group.span_open(), in open_span_of_group()