Lines Matching refs:Entry
24 enum Entry { enum
32 End(*const Entry),
44 data: Box<[Entry]>,
50 fn inner_new(stream: TokenStream, up: *const Entry) -> TokenBuffer { in inner_new()
58 entries.push(Entry::Ident(sym)); in inner_new()
61 entries.push(Entry::Punct(op)); in inner_new()
64 entries.push(Entry::Literal(l)); in inner_new()
70 entries.push(Entry::End(ptr::null())); in inner_new()
76 entries.push(Entry::End(up)); in inner_new()
87 let seq_up = &entries[idx + 1] as *const Entry; in inner_new() constant
92 entries[idx] = Entry::Group(group, inner); in inner_new()
140 ptr: *const Entry,
143 scope: *const Entry,
146 marker: PhantomData<&'a Entry>,
159 struct UnsafeSyncEntry(Entry); in empty()
161 static EMPTY_ENTRY: UnsafeSyncEntry = UnsafeSyncEntry(Entry::End(0 as *const Entry)); in empty() constant
173 unsafe fn create(mut ptr: *const Entry, scope: *const Entry) -> Self { in create() argument
178 while let Entry::End(exit) = *ptr { in create()
193 fn entry(self) -> &'a Entry { in entry() argument
210 if let Entry::Group(group, buf) = self.entry() { in ignore_none()
240 if let Entry::Group(group, buf) = self.entry() { in group()
254 Entry::Ident(ident) => Some((ident.clone(), unsafe { self.bump() })), in ident()
264 Entry::Punct(op) if op.as_char() != '\'' => Some((op.clone(), unsafe { self.bump() })), in punct()
274 Entry::Literal(lit) => Some((lit.clone(), unsafe { self.bump() })), in literal()
284 Entry::Punct(op) if op.as_char() == '\'' && op.spacing() == Spacing::Joint => { in lifetime()
322 Entry::Group(group, _) => group.clone().into(), in token_tree()
323 Entry::Literal(lit) => lit.clone().into(), in token_tree()
324 Entry::Ident(ident) => ident.clone().into(), in token_tree()
325 Entry::Punct(op) => op.clone().into(), in token_tree()
326 Entry::End(..) => { in token_tree()
338 Entry::Group(group, _) => group.span(), in span()
339 Entry::Literal(l) => l.span(), in span()
340 Entry::Ident(t) => t.span(), in span()
341 Entry::Punct(o) => o.span(), in span()
342 Entry::End(..) => Span::call_site(), in span()
353 Entry::Group(group, _) => group.span_open(), in open_span_of_group()
360 Entry::Group(group, _) => group.span_close(), in close_span_of_group()