Home
last modified time | relevance | path

Searched refs:Punct (Results 1 – 25 of 48) sorted by relevance

12

/external/rust/crates/syn/tests/
Dtest_ty.rs4 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 …]
Dtest_expr.rs4 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()
Dtest_grouping.rs4 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()
Dtest_parse_buffer.rs1 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()
Dtest_path.rs4 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()
Dtest_visibility.rs4 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/
Dlib.rs156 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 …]
Derror.rs1 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()
Dattr.rs22 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()
Dsegment.rs25 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/
Dbuffer.rs16 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()
Dtt.rs34 (TokenTree::Punct(o1), TokenTree::Punct(o2)) => { in eq()
67 TokenTree::Punct(op) => { in hash()
Dlifetime.rs142 use proc_macro2::{Punct, Spacing, TokenStream};
148 let mut apostrophe = Punct::new('\'', Spacing::Joint); in to_tokens()
/external/rust/crates/quote/src/
Druntime.rs238 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/
Dlib.rs165 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()
Derror.rs1 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()
Dtoken.rs7 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/
Dlib.rs164 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()
Derror.rs1 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/
Dlib.rs518 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 …]
Dparse.rs4 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/
Dtry.rs1 use proc_macro2::{Punct, Spacing, TokenStream};
9 let dollar = Punct::new('$', Spacing::Alone); in replacement()
/external/rust/crates/proc-macro2/tests/
Dcomments.rs16 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()
Dtest.rs1 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()
Dmarker.rs47 assert_impl!(Punct is not Send or Sync);
80 Punct

12