Home
last modified time | relevance | path

Searched refs:Ident (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/rust/macros/
Dconcat_idents.rs3 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()
Dpin_data.rs27 .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()
Dvtable.rs14 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()
Dpaste.rs3 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()
Dhelpers.rs6 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()
Dpinned_drop.rs9 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()
Dquote.rs140 $v.push(::proc_macro::TokenTree::Ident(::proc_macro::Ident::new(stringify!($id), $span)));
Dmodule.rs113 Some(TokenTree::Ident(ident)) => ident.to_string(), in parse()
/linux-6.6.21/scripts/
Dcheckpatch.pl467 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 …]