Lines Matching +full:wasm32 +full:- +full:wasi
7 // Syn, and caution should be used when editing it. The public-facing interface
11 not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))),
12 feature = "proc-macro"
23 // Mimicking types from proc-macro.
39 // NOTE: Do not implement clone on this - while the current design could be
56 entries.push(Entry::End(-(group_end_index as isize))); in recursive_new()
57 let group_end_offset = group_end_index - group_start_index; in recursive_new()
68 /// `"proc-macro"` features.*
70 not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))),
71 feature = "proc-macro"
73 pub fn new(stream: pm::TokenStream) -> Self { in new()
79 pub fn new2(stream: TokenStream) -> Self { in new2()
82 entries.push(Entry::End(-(entries.len() as isize))); in new2()
90 pub fn begin(&self) -> Cursor { in begin()
92 unsafe { Cursor::create(ptr, ptr.add(self.entries.len() - 1)) } in begin()
122 pub fn empty() -> Self { in empty()
125 // (`Ident` is a reference into a thread-local table). This is because in empty()
141 /// This create method intelligently exits non-explicitly-entered
142 /// `None`-delimited scopes when the cursor reaches the end of them,
144 unsafe fn create(mut ptr: *const Entry, scope: *const Entry) -> Self { in create()
148 // from None-delimited groups entered with `ignore_none`. in create()
164 fn entry(self) -> &'a Entry { in entry()
174 unsafe fn bump_ignore_group(self) -> Cursor<'a> { in bump_ignore_group()
178 /// While the cursor is looking at a `None`-delimited group, move it to look
180 /// the cursor past the `None`-delimited group.
195 pub fn eof(self) -> bool { in eof()
202 pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, Span, Cursor<'a>)> { in group()
203 // If we're not trying to enter a none-delimited group, we want to in group()
224 pub fn ident(mut self) -> Option<(Ident, Cursor<'a>)> { in ident()
234 pub fn punct(mut self) -> Option<(Punct, Cursor<'a>)> { in punct()
246 pub fn literal(mut self) -> Option<(Literal, Cursor<'a>)> { in literal()
256 pub fn lifetime(mut self) -> Option<(Lifetime, Cursor<'a>)> { in lifetime()
274 pub fn token_stream(self) -> TokenStream { in token_stream()
289 /// This method does not treat `None`-delimited groups as transparent, and
291 pub fn token_tree(self) -> Option<(TokenTree, Cursor<'a>)> { in token_tree()
306 pub fn span(self) -> Span { in span()
320 pub(crate) fn skip(self) -> Option<Cursor<'a>> { in skip()
343 fn clone(&self) -> Self { in clone()
351 fn eq(&self, other: &Self) -> bool { in eq()
357 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp()
366 pub(crate) fn same_scope(a: Cursor, b: Cursor) -> bool { in same_scope()
370 pub(crate) fn same_buffer(a: Cursor, b: Cursor) -> bool { in same_buffer()
382 pub(crate) fn cmp_assuming_same_buffer(a: Cursor, b: Cursor) -> Ordering { in cmp_assuming_same_buffer()
386 pub(crate) fn open_span_of_group(cursor: Cursor) -> Span { in open_span_of_group()
393 pub(crate) fn close_span_of_group(cursor: Cursor) -> Span { in close_span_of_group()