Searched refs:Ident (Results 1 – 5 of 5) sorted by relevance
/linux-6.3-rc2/rust/macros/ |
A 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()
|
A 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()
|
A D | helpers.rs | 6 if let Some(TokenTree::Ident(ident)) = it.next() { in try_ident()
|
A D | module.rs | 95 Some(TokenTree::Ident(ident)) => ident.to_string(), in parse()
|
/linux-6.3-rc2/scripts/ |
A D | checkpatch.pl | 465 our $Ident = qr{ 521 our $Member = qr{->$Ident|\.$Ident|\[[^]]*\]}; 749 qr{struct\s+$Ident}, 750 qr{union\s+$Ident}, 751 qr{enum\s+$Ident}, 752 qr{${Ident}_t}, 753 qr{${Ident}_handler}, 4064 $pl =~ /^\+\s+$Ident(?:\s+|\s*\*\s*)$Ident\s*[=,;\[]/ || 4078 $sl =~ /^\+\s+$Ident(?:\s+|\s*\*\s*)$Ident\s*[=,;\[]/ || 4238 …if ($arg =~ /^(?:const\s+)?($Ident)(?:\s+$Sparse)*\s*\**\s*(:?\b$Ident)?$/s || $arg =~ /^($Ident)$… [all …]
|
Completed in 21 milliseconds