| /linux/rust/syn/ |
| H A D | scan_expr.rs | 10 Punct(&'static str), enumerator 52 (Punct("!"), SetState(&INIT)), 53 (Punct("#"), SetState(&[(ConsumeDelimiter, SetState(&INIT))])), 54 (Punct("&"), SetState(&REFERENCE)), 55 (Punct("*"), SetState(&INIT)), 56 (Punct("-"), SetState(&INIT)), 57 (Punct("..="), SetState(&INIT)), 58 (Punct(".."), SetState(&RANGE)), 59 (Punct("|"), SetState(&CLOSURE_ARGS)), 60 (ConsumeLifetime, SetState(&[(Punct(":"), SetState(&INIT))])), [all …]
|
| H A D | error.rs | 7 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 286 TokenTree::Punct({ in to_compile_error() 287 let mut punct = Punct::new(':', Spacing::Joint); in to_compile_error() 291 TokenTree::Punct({ in to_compile_error() 292 let mut punct = Punct::new(':', Spacing::Alone); in to_compile_error() 297 TokenTree::Punct({ in to_compile_error() 298 let mut punct = Punct::new(':', Spacing::Joint); in to_compile_error() 302 TokenTree::Punct({ in to_compile_error() 303 let mut punct = Punct::new(':', Spacing::Alone); in to_compile_error() 308 TokenTree::Punct({ in to_compile_error() [all …]
|
| H A D | buffer.rs | 12 use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; 24 Punct(Punct), enumerator 45 TokenTree::Punct(punct) => entries.push(Entry::Punct(punct)), in recursive_new() 201 pub fn punct(mut self) -> Option<(Punct, Cursor<'a>)> { in punct() argument 204 Entry::Punct(punct) if punct.as_char() != '\'' => { in punct() 226 Entry::Punct(punct) if punct.as_char() == '\'' && punct.spacing() == Spacing::Joint => { in lifetime() 311 Entry::Punct(punct) => (punct.clone().into(), 1), in token_tree() 326 Entry::Punct(punct) => punct.span(), in span() 359 Entry::Punct(punct) if punct.as_char() == '\'' && punct.spacing() == Spacing::Joint => { in skip()
|
| H A D | tt.rs | 36 (TokenTree::Punct(o1), TokenTree::Punct(o2)) => { in eq() 69 TokenTree::Punct(op) => { in hash()
|
| H A D | lifetime.rs | 146 use proc_macro2::{Punct, Spacing, TokenStream}; 152 let mut apostrophe = Punct::new('\'', Spacing::Joint); in to_tokens()
|
| H A D | token.rs | 112 use proc_macro2::{Literal, Punct, TokenTree}; 183 impl_low_level_token!("punctuation token" Punct punct); 1062 use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream}; 1074 let mut op = Punct::new(ch, Spacing::Joint); in punct() 1079 let mut op = Punct::new(ch, Spacing::Alone); in punct()
|
| H A D | parse.rs | 192 use proc_macro2::{Delimiter, Group, Literal, Punct, Span, TokenStream, TokenTree}; 1217 impl Parse for Punct { implementation
|
| H A D | lit.rs | 863 use proc_macro2::{Literal, Punct, Span}; 899 fn parse_negative_lit(neg: Punct, cursor: Cursor) -> Option<(Lit, Cursor)> { in parse_negative_lit() argument
|
| /linux/rust/macros/ |
| H A D | quote.rs | |
| H A D | pin_data.rs | |
| H A D | zeroable.rs | |
| H A D | paste.rs | 28 Some(TokenTree::Punct(p)) if p.as_char() == ':' => { in concat_helper() 75 && matches!(&stream[0], TokenTree::Punct(p) if p.as_char() == '<') in expand() 76 && matches!(&stream[stream.len() - 1], TokenTree::Punct(p) if p.as_char() == '>') in expand() 95 (TokenTree::Punct(a), TokenTree::Punct(b)) in expand()
|
| H A D | pinned_drop.rs | |
| H A D | fmt.rs | 62 if matches!(&tt, TokenTree::Punct(p) if p.as_char() == '=') { in fmt() 79 TokenTree::Punct(p) if p.as_char() == ',' => { in fmt()
|
| H A D | helpers.rs | |
| H A D | module.rs | |
| /linux/rust/quote/ |
| H A D | runtime.rs | 8 use proc_macro2::{Group, Ident, Punct, Spacing, TokenTree}; 311 TokenTree::Punct(Punct::new('\'', Spacing::Joint)), in push_lifetime() 319 TokenTree::Punct({ in push_lifetime_spanned() 320 let mut apostrophe = Punct::new('\'', Spacing::Joint); in push_lifetime_spanned() 332 tokens.append(Punct::new($char1, Spacing::Alone)); 336 let mut punct = Punct::new($char1, Spacing::Alone); 344 tokens.append(Punct::new($char1, Spacing::Joint)); 345 tokens.append(Punct::new($char2, Spacing::Alone)); 349 let mut punct = Punct::new($char1, Spacing::Joint); 352 let mut punct = Punct::new($char2, Spacing::Alone); [all …]
|
| H A D | to_tokens.rs | 7 use proc_macro2::{Group, Ident, Literal, Punct, Span, TokenStream, TokenTree}; 247 impl ToTokens for Punct { implementation
|
| /linux/rust/pin-init/internal/src/ |
| H A D | zeroable.rs | |
| H A D | pinned_drop.rs | |
| /linux/rust/proc-macro2/ |
| H A D | lib.rs | 545 Punct(Punct), enumerator 557 TokenTree::Punct(t) => t.span(), in span() 571 TokenTree::Punct(t) => t.set_span(span), in set_span() 589 impl From<Punct> for TokenTree { 590 fn from(g: Punct) -> Self { in from() 591 TokenTree::Punct(g) in from() 610 TokenTree::Punct(t) => Display::fmt(t, f), in fmt() 629 TokenTree::Punct(t) => Debug::fmt(t, f), in fmt() 780 pub struct Punct { struct 799 impl Punct { impl [all …]
|
| H A D | parse.rs | 7 use crate::{Delimiter, Punct, Spacing, TokenTree}; 273 Ok((input, TokenTree::Punct(p))) in leaf_token() 873 fn punct(input: Cursor) -> PResult<Punct> { in punct() argument 882 Ok((rest, Punct::new('\'', Spacing::Joint))) in punct() 889 Ok((rest, Punct::new(ch, kind))) in punct() 935 let mut pound = Punct::new('#', Spacing::Alone); in doc_comment() 937 trees.push_token_from_parser(TokenTree::Punct(pound)); in doc_comment() 940 let mut bang = Punct::new('!', Spacing::Alone); in doc_comment() 942 trees.push_token_from_parser(TokenTree::Punct(bang)); in doc_comment() 946 let mut equal = Punct::new('=', Spacing::Alone); in doc_comment() [all …]
|
| H A D | wrapper.rs | 13 use crate::{Delimiter, Punct, Spacing, TokenTree}; 166 TokenTree::Punct(tt) => { in into_compiler_token() 171 let mut punct = proc_macro::Punct::new(tt.as_char(), spacing); in into_compiler_token() 173 proc_macro::TokenTree::Punct(punct) in into_compiler_token() 345 proc_macro::TokenTree::Punct(tt) => { in next() 350 let mut o = Punct::new(tt.as_char(), spacing); in next() 352 TokenTree::Punct(o) in next()
|
| H A D | fallback.rs | 122 let mut punct = crate::Punct::new('-', Spacing::Alone); in push_token_from_proc_macro() 124 vec.push(TokenTree::Punct(punct)); in push_token_from_proc_macro() 229 TokenTree::Punct(tt) => { in fmt()
|