Searched refs:Ident (Results 1 – 9 of 9) sorted by relevance
/linux-6.6.21/rust/macros/ |
D | concat_idents.rs | 3 use proc_macro::{token_stream, Ident, TokenStream, TokenTree}; 7 fn expect_ident(it: &mut token_stream::IntoIter) -> Ident { in expect_ident() argument 8 if let Some(TokenTree::Ident(ident)) = it.next() { in expect_ident() 21 let res = Ident::new(&format!("{a}{b}"), b.span()); in concat_idents() 22 TokenStream::from_iter([TokenTree::Ident(res)]) in concat_idents()
|
D | pin_data.rs | 27 .skip_while(|tt| !matches!(tt, TokenTree::Ident(i) if i.to_string() == "struct")) in pin_data() 30 TokenTree::Ident(_) => { in pin_data() 64 if matches!(&tt, TokenTree::Ident(i) if i.to_string() == "struct") { in pin_data() 95 TokenTree::Ident(ref i) in replace_self_and_deny_type_defs() 117 TokenTree::Ident(i) if i.to_string() == "Self" => struct_name.clone(), in replace_self_and_deny_type_defs() 118 TokenTree::Literal(_) | TokenTree::Punct(_) | TokenTree::Ident(_) => vec![tt], in replace_self_and_deny_type_defs()
|
D | vtable.rs | 14 TokenTree::Ident(ident) => match ident.to_string().as_str() { in vtable() 34 TokenTree::Ident(ident) if ident.to_string() == "fn" => { in vtable() 36 Some(TokenTree::Ident(ident)) => ident.to_string(), in vtable() 42 TokenTree::Ident(ident) if ident.to_string() == "const" => { in vtable() 44 Some(TokenTree::Ident(ident)) => ident.to_string(), in vtable()
|
D | paste.rs | 3 use proc_macro::{Delimiter, Group, Ident, Spacing, Span, TokenTree}; 13 Some(TokenTree::Ident(ident)) => { in concat() 21 let Some(TokenTree::Ident(ident)) = tokens.next() else { in concat() 46 TokenTree::Ident(Ident::new(&pasted, span.unwrap_or(group_span))) in concat()
|
D | helpers.rs | 6 if let Some(TokenTree::Ident(ident)) = it.next() { in try_ident() 122 TokenTree::Ident(i) if i.to_string() == "const" => {} in parse_generics() 123 TokenTree::Ident(_) if at_start => { in parse_generics()
|
D | pinned_drop.rs | 9 assert!(matches!(&toks[0], TokenTree::Ident(i) if i.to_string() == "impl")); in pinned_drop() 27 matches!(tt, TokenTree::Ident(i) if i.to_string() == "PinnedDrop"), in pinned_drop()
|
D | quote.rs | 140 $v.push(::proc_macro::TokenTree::Ident(::proc_macro::Ident::new(stringify!($id), $span)));
|
D | module.rs | 113 Some(TokenTree::Ident(ident)) => ident.to_string(), in parse()
|
/linux-6.6.21/scripts/ |
D | checkpatch.pl | 467 our $Ident = qr{ 523 our $Member = qr{->$Ident|\.$Ident|\[[^]]*\]}; 524 our $Lval = qr{$Ident(?:$Member)*}; 767 qr{struct\s+$Ident}, 768 qr{union\s+$Ident}, 769 qr{enum\s+$Ident}, 770 qr{${Ident}_t}, 771 qr{${Ident}_handler}, 772 qr{${Ident}_handler_fn}, 800 qr{struct\s+$InitAttribute\s+$Ident}, [all …]
|