Lines Matching refs:Entry
25 enum Entry { enum
33 End(*const Entry),
45 data: Box<[Entry]>,
51 fn inner_new(stream: TokenStream, up: *const Entry) -> TokenBuffer { in inner_new()
59 entries.push(Entry::Ident(sym)); in inner_new()
62 entries.push(Entry::Punct(op)); in inner_new()
65 entries.push(Entry::Literal(l)); in inner_new()
71 entries.push(Entry::End(ptr::null())); in inner_new()
77 entries.push(Entry::End(up)); in inner_new()
88 let seq_up = &entries[idx + 1] as *const Entry; in inner_new() constant
93 entries[idx] = Entry::Group(group, inner); in inner_new()
141 ptr: *const Entry,
144 scope: *const Entry,
147 marker: PhantomData<&'a Entry>,
160 struct UnsafeSyncEntry(Entry); in empty()
162 static EMPTY_ENTRY: UnsafeSyncEntry = UnsafeSyncEntry(Entry::End(0 as *const Entry)); in empty() constant
174 unsafe fn create(mut ptr: *const Entry, scope: *const Entry) -> Self { in create() argument
179 while let Entry::End(exit) = *ptr { in create()
194 fn entry(self) -> &'a Entry { in entry() argument
211 if let Entry::Group(ref group, ref buf) = *self.entry() { in ignore_none()
241 if let Entry::Group(ref group, ref buf) = *self.entry() { in group()
255 Entry::Ident(ref ident) => Some((ident.clone(), unsafe { self.bump() })), in ident()
265 Entry::Punct(ref op) if op.as_char() != '\'' => { in punct()
277 Entry::Literal(ref lit) => Some((lit.clone(), unsafe { self.bump() })), in literal()
287 Entry::Punct(ref op) if op.as_char() == '\'' && op.spacing() == Spacing::Joint => { in lifetime()
325 Entry::Group(ref group, _) => group.clone().into(), in token_tree()
326 Entry::Literal(ref lit) => lit.clone().into(), in token_tree()
327 Entry::Ident(ref ident) => ident.clone().into(), in token_tree()
328 Entry::Punct(ref op) => op.clone().into(), in token_tree()
329 Entry::End(..) => { in token_tree()
341 Entry::Group(ref group, _) => group.span(), in span()
342 Entry::Literal(ref l) => l.span(), in span()
343 Entry::Ident(ref t) => t.span(), in span()
344 Entry::Punct(ref o) => o.span(), in span()
345 Entry::End(..) => Span::call_site(), in span()
358 Entry::Group(ref group, _) => group.span_open(), in open_span_of_group()
366 Entry::Group(ref group, _) => group.span_close(), in close_span_of_group()