/external/rust/crates/syn/tests/ |
D | test_ty.rs | 4 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 23 TokenTree::Punct(Punct::new('<', Spacing::Alone)), in test_macro_variable_type() 25 TokenTree::Punct(Punct::new('>', Spacing::Alone)), in test_macro_variable_type() 57 TokenTree::Punct(Punct::new(':', Spacing::Joint)), in test_macro_variable_type() 58 TokenTree::Punct(Punct::new(':', Spacing::Alone)), in test_macro_variable_type() 59 TokenTree::Punct(Punct::new('<', Spacing::Alone)), in test_macro_variable_type() 61 TokenTree::Punct(Punct::new('>', Spacing::Alone)), in test_macro_variable_type() 97 TokenTree::Punct(Punct::new('<', Spacing::Alone)), in test_group_angle_brackets() 99 TokenTree::Punct(Punct::new('>', Spacing::Alone)), in test_group_angle_brackets() 149 TokenTree::Punct(Punct::new(':', Spacing::Joint)), in test_group_colons() [all …]
|
D | test_expr.rs | 4 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 147 TokenTree::Punct(Punct::new('#', Spacing::Alone)), in test_macro_variable_func() 204 TokenTree::Punct(Punct::new('!', Spacing::Alone)), in test_macro_variable_macro() 257 TokenTree::Punct(Punct::new('_', Spacing::Alone)), in test_macro_variable_match_arm() 258 TokenTree::Punct(Punct::new('=', Spacing::Joint)), in test_macro_variable_match_arm() 259 TokenTree::Punct(Punct::new('>', Spacing::Alone)), in test_macro_variable_match_arm()
|
D | test_grouping.rs | 4 use proc_macro2::{Delimiter, Group, Literal, Punct, Spacing, TokenStream, TokenTree}; 12 TokenTree::Punct(Punct::new('+', Spacing::Alone)), in test_grouping() 17 TokenTree::Punct(Punct::new('+', Spacing::Alone)), in test_grouping() 21 TokenTree::Punct(Punct::new('*', Spacing::Alone)), in test_grouping()
|
D | test_parse_buffer.rs | 1 use proc_macro2::{Delimiter, Group, Punct, Spacing, TokenStream, TokenTree}; 71 TokenTree::Punct(Punct::new('+', Spacing::Alone)), in trailing_empty_none_group() 75 TokenTree::Punct(Punct::new('+', Spacing::Alone)), in trailing_empty_none_group()
|
D | test_path.rs | 4 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 14 TokenTree::Punct(Punct::new(':', Spacing::Joint)), in parse_interpolated_leading_component() 15 TokenTree::Punct(Punct::new(':', Spacing::Alone)), in parse_interpolated_leading_component()
|
D | test_visibility.rs | 4 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 123 TokenTree::Punct(Punct::new(':', Spacing::Alone)), in test_empty_group_vis()
|
/external/rust/crates/paste/src/ |
D | lib.rs | 156 use proc_macro::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 195 (Some(TokenTree::Punct(fst)), Some(TokenTree::Punct(snd))) => { in expand() 254 Some(TokenTree::Punct(punct)) => { in expand() 262 expanded.extend(iter::once(TokenTree::Punct(punct))); in expand() 300 (State::Init, TokenTree::Punct(punct)) if punct.as_char() == '\'' => State::Apostrophe, in is_single_interpolation_group() 302 (State::Ident, TokenTree::Punct(punct)) in is_single_interpolation_group() 307 (State::Colon1, TokenTree::Punct(punct)) in is_single_interpolation_group() 324 Some(TokenTree::Punct(punct)) if punct.as_char() == '<' => {} in is_paste_operation() 331 Some(TokenTree::Punct(punct)) if punct.as_char() == '>' => { in is_paste_operation() 344 Some(TokenTree::Punct(punct)) if punct.as_char() == '<' => {} in parse_bracket_as_segments() [all …]
|
D | error.rs | 1 use proc_macro::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; 29 TokenTree::Punct({ in to_compile_error() 30 let mut punct = Punct::new('!', Spacing::Alone); in to_compile_error()
|
D | attr.rs | 22 Some(TokenTree::Punct(ref punct)) in expand_attr() 32 Some(TokenTree::Punct(ref punct)) if punct.as_char() == ':' && leading_path % 3 > 0 => { in expand_attr() 36 Some(TokenTree::Punct(ref punct)) in expand_attr() 68 TokenTree::Punct(punct) if punct.as_char() == ',' => { in expand_attr() 160 TokenTree::Punct(punct) => punct.as_char() == '\'' || punct.as_char() == ':', in is_stringlike()
|
D | segment.rs | 25 Some(TokenTree::Punct(punct)) => punct.as_char() != '>', in parse() 36 Some(TokenTree::Punct(punct)) => punct.as_char() == '!', in parse() 104 TokenTree::Punct(punct) => match punct.as_char() { in parse()
|
/external/rust/crates/syn/src/ |
D | buffer.rs | 16 use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; 26 Punct(Punct), enumerator 58 TokenTree::Punct(op) => { in inner_new() 59 entries.push(Entry::Punct(op)); in inner_new() 259 pub fn punct(mut self) -> Option<(Punct, Cursor<'a>)> { in punct() argument 262 Entry::Punct(op) if op.as_char() != '\'' => Some((op.clone(), unsafe { self.bump() })), in punct() 282 Entry::Punct(op) if op.as_char() == '\'' && op.spacing() == Spacing::Joint => { in lifetime() 323 Entry::Punct(op) => op.clone().into(), in token_tree() 339 Entry::Punct(o) => o.span(), in span() 353 Entry::Punct(op) if op.as_char() == '\'' && op.spacing() == Spacing::Joint => { in skip()
|
D | tt.rs | 34 (TokenTree::Punct(o1), TokenTree::Punct(o2)) => { in eq() 67 TokenTree::Punct(op) => { in hash()
|
D | lifetime.rs | 142 use proc_macro2::{Punct, Spacing, TokenStream}; 148 let mut apostrophe = Punct::new('\'', Spacing::Joint); in to_tokens()
|
/external/rust/crates/quote/src/ |
D | runtime.rs | 238 tokens.append(Punct::new($char1, Spacing::Alone)); 241 let mut punct = Punct::new($char1, Spacing::Alone); 248 tokens.append(Punct::new($char1, Spacing::Joint)); 249 tokens.append(Punct::new($char2, Spacing::Alone)); 252 let mut punct = Punct::new($char1, Spacing::Joint); 255 let mut punct = Punct::new($char2, Spacing::Alone); 262 tokens.append(Punct::new($char1, Spacing::Joint)); 263 tokens.append(Punct::new($char2, Spacing::Joint)); 264 tokens.append(Punct::new($char3, Spacing::Alone)); 267 let mut punct = Punct::new($char1, Spacing::Joint); [all …]
|
/external/rust/crates/rustversion/src/ |
D | lib.rs | 165 use proc_macro::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 263 TokenTree::Punct(Punct::new('#', Spacing::Alone)), in try_attr() 277 TokenTree::Punct(Punct::new(',', Spacing::Alone)), in try_attr()
|
D | error.rs | 1 use proc_macro::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; 38 TokenTree::Punct({ in into_compile_error() 39 let mut punct = Punct::new('!', Spacing::Alone); in into_compile_error()
|
D | token.rs | 7 Some(TokenTree::Punct(ref punct)) if punct.as_char() == ch => Ok(()), in parse_punct() 19 Some(TokenTree::Punct(punct)) if punct.as_char() == ch => iter.next().map(drop), in parse_optional_punct()
|
/external/rust/crates/proc-macro-hack/src/ |
D | lib.rs | 164 use proc_macro::{Ident, Punct, Spacing, Span, TokenStream, TokenTree}; 327 .map(|_| TokenTree::Punct(Punct::new('!', Spacing::Alone))) in expand_export() 467 #pub_name::TokenTree::Punct(punct) => { in expand_define() 488 #pub_name::TokenTree::Punct( in expand_define() 489 #pub_name::Punct::new('!', #pub_name::Spacing::Alone), in expand_define() 511 #pub_name::TokenTree::Punct( in expand_define() 512 #pub_name::Punct::new('=', #pub_name::Spacing::Joint), in expand_define() 514 #pub_name::TokenTree::Punct( in expand_define() 515 #pub_name::Punct::new('>', #pub_name::Spacing::Alone), in expand_define()
|
D | error.rs | 1 use proc_macro::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; 22 TokenTree::Punct({ in compile_error() 23 let mut punct = Punct::new('!', Spacing::Alone); in compile_error()
|
/external/rust/crates/proc-macro2/src/ |
D | lib.rs | 518 Punct(Punct), enumerator 530 TokenTree::Punct(t) => t.span(), in span() 544 TokenTree::Punct(t) => t.set_span(span), in set_span() 562 impl From<Punct> for TokenTree { 563 fn from(g: Punct) -> TokenTree { in from() 564 TokenTree::Punct(g) in from() 583 TokenTree::Punct(t) => Display::fmt(t, f), in fmt() 602 TokenTree::Punct(t) => Debug::fmt(t, f), in fmt() 733 pub struct Punct { struct 752 impl Punct { implementation [all …]
|
D | parse.rs | 4 use crate::{Delimiter, Punct, Spacing, TokenTree}; 256 Ok((input, TokenTree::Punct(p))) in leaf_token() 752 fn punct(input: Cursor) -> PResult<Punct> { in punct() argument 758 Ok((rest, Punct::new('\'', Spacing::Joint))) in punct() 765 Ok((rest, Punct::new(ch, kind))) in punct() 811 trees.push(TokenTree::Punct(Punct::new('#', Spacing::Alone))); in doc_comment() 813 trees.push(Punct::new('!', Spacing::Alone).into()); in doc_comment() 817 TokenTree::Punct(Punct::new('=', Spacing::Alone)), in doc_comment()
|
/external/rust/crates/serde_derive/src/ |
D | try.rs | 1 use proc_macro2::{Punct, Spacing, TokenStream}; 9 let dollar = Punct::new('$', Spacing::Alone); in replacement()
|
/external/rust/crates/proc-macro2/tests/ |
D | comments.rs | 16 TokenTree::Punct(punct) => { in lit_of_doc_comment() 24 TokenTree::Punct(punct) => { in lit_of_doc_comment() 44 TokenTree::Punct(punct) => { in lit_of_doc_comment()
|
D | test.rs | 1 use proc_macro2::{Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; 151 TokenTree::Punct(punct) => { in literal_iter_negative() 315 TokenTree::Punct(tt) => { in punct_before_comment() 330 let joint_punct = Punct::new(':', Spacing::Joint); in joint_last_token() 331 let stream = TokenStream::from(TokenTree::Punct(joint_punct)); in joint_last_token() 333 TokenTree::Punct(punct) => punct, in joint_last_token()
|
D | marker.rs | 47 assert_impl!(Punct is not Send or Sync); 80 Punct
|