| /linux/rust/syn/ |
| H A D | ident.rs | 6 pub use proc_macro2::Ident; 12 pub fn Ident(marker: lookahead::TokenMarker) -> Ident { 19 impl From<Token![$token]> for Ident { 20 fn from(token: Token![$token]) -> Ident { 21 Ident::new(stringify!($token), token.span) 33 impl From<Token![_]> for Ident { implementation 34 fn from(token: Token![_]) -> Ident { in from() argument 35 Ident::new("_", token.span) in from() 59 use proc_macro2::Ident; 61 fn accept_as_ident(ident: &Ident) -> bool { in accept_as_ident() [all …]
|
| H A D | ext.rs | 11 use proc_macro2::Ident; 85 fn unraw(&self) -> Ident; in unraw() argument 88 impl IdentExt for Ident { implementation 96 fn unraw(&self) -> Ident { in unraw() argument 99 Ident::new(string, self.span()) in unraw() 123 use proc_macro2::Ident; 127 impl Sealed for Ident {} implementation
|
| H A D | buffer.rs | 12 use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; 23 Ident(Ident), enumerator 44 TokenTree::Ident(ident) => entries.push(Entry::Ident(ident)), in recursive_new() 191 pub fn ident(mut self) -> Option<(Ident, Cursor<'a>)> { in ident() argument 194 Entry::Ident(ident) => Some((ident.clone(), unsafe { self.bump_ignore_group() })), in ident() 310 Entry::Ident(ident) => (ident.clone().into(), 1), in token_tree() 325 Entry::Ident(ident) => ident.span(), in span() 361 Entry::Ident(_) => 2, in skip()
|
| H A D | item.rs | 8 use crate::ident::Ident; 110 pub ident: Ident, 127 pub ident: Ident, 142 pub ident: Ident, 143 pub rename: Option<(Token![as], Ident)>, 196 pub ident: Option<Ident>, 210 pub ident: Ident, 224 pub ident: Ident, 240 pub ident: Ident, 257 pub ident: Ident, [all …]
|
| H A D | path.rs | 7 use crate::ident::Ident; 68 Ident: PartialEq<I>, in is_ident() 84 pub fn get_ident(&self) -> Option<&Ident> { in get_ident() argument 98 pub fn require_ident(&self) -> Result<&Ident> { in require_ident() argument 113 pub ident: Ident, 120 T: Into<Ident>, 215 pub ident: Ident, 227 pub ident: Ident, 238 pub ident: Ident, 294 use crate::ident::Ident; [all …]
|
| H A D | meta.rs | 11 use proc_macro2::Ident; 410 if input.peek(Ident::peek_any) { in parse_meta_path() 411 let ident = Ident::parse_any(input)?; in parse_meta_path() 423 let ident = Ident::parse_any(input)?; in parse_meta_path()
|
| H A D | generics.rs | 5 use crate::ident::Ident; 74 pub ident: Ident, 88 pub ident: Ident, 387 impl From<Ident> for TypeParam { 388 fn from(ident: Ident) -> Self { in from() 459 Ident(Ident), 530 use crate::ident::Ident; 561 } else if lookahead.peek(Ident) { in parse() 574 ident: input.call(Ident::parse_any)?, in parse() 608 if lookahead.peek(Ident) { in parse() [all …]
|
| H A D | derive.rs | 6 use crate::ident::Ident; 17 pub ident: Ident, 75 use crate::ident::Ident; 90 let ident = input.parse::<Ident>()?; in parse() 109 let ident = input.parse::<Ident>()?; in parse() 128 let ident = input.parse::<Ident>()?; in parse()
|
| H A D | data.rs | 5 use crate::ident::Ident; 18 pub ident: Ident, 196 pub ident: Option<Ident>, 248 use crate::ident::Ident; 264 let ident: Ident = input.parse()?; in parse() 332 input.call(Ident::parse_any) in parse_named() 344 input.call(Ident::parse_any)?; in parse_named()
|
| H A D | error.rs | 7 Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, 296 TokenTree::Ident(Ident::new("core", start)), in to_compile_error() 307 TokenTree::Ident(Ident::new("compile_error", start)), in to_compile_error()
|
| H A D | lifetime.rs | 5 use proc_macro2::{Ident, Span}; 22 pub ident: Ident, 58 ident: Ident::new(&symbol[1..], span), in new()
|
| H A D | tt.rs | 44 (TokenTree::Ident(s1), TokenTree::Ident(s2)) => s1 == s2, in eq() 78 TokenTree::Ident(word) => (3u8, word).hash(h), in hash()
|
| H A D | parse_quote.rs | 154 use crate::{attr, Attribute, Field, FieldMutability, Ident, Type, Visibility}; 186 let ident: Option<Ident>; in parse() 188 let is_named = input.peek(Ident) && input.peek2(Token![:]) && !input.peek2(Token![::]); in parse()
|
| /linux/rust/proc-macro2/ |
| H A D | wrapper.rs | 175 TokenTree::Ident(tt) => proc_macro::TokenTree::Ident(tt.inner.unwrap_nightly()), in into_compiler_token() 354 proc_macro::TokenTree::Ident(s) => { in next() 355 TokenTree::Ident(crate::Ident::_new(Ident::Compiler(s))) in next() 665 pub(crate) enum Ident { enum 666 Compiler(proc_macro::Ident), 667 Fallback(fallback::Ident), 670 impl Ident { impl 674 Span::Compiler(s) => Ident::Compiler(proc_macro::Ident::new(string, s)), in new_checked() 675 Span::Fallback(s) => Ident::Fallback(fallback::Ident::new_checked(string, s)), in new_checked() 682 Span::Compiler(s) => Ident::Compiler(proc_macro::Ident::new_raw(string, s)), in new_raw_checked() [all …]
|
| H A D | lib.rs | 539 Ident(Ident), enumerator 552 TokenTree::Ident(t) => t.span(), in span() 566 TokenTree::Ident(t) => t.set_span(span), in set_span() 579 impl From<Ident> for TokenTree { 580 fn from(g: Ident) -> Self { in from() 581 TokenTree::Ident(g) in from() 605 TokenTree::Ident(t) => Display::fmt(t, f), in fmt() 619 TokenTree::Ident(t) => { in fmt() 925 pub struct Ident { struct 926 inner: imp::Ident, argument [all …]
|
| /linux/rust/macros/ |
| H 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()
|
| H A D | pin_data.rs | |
| H 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()
|
| H A D | helpers.rs | 3 use proc_macro::{token_stream, Group, Ident, TokenStream, TokenTree}; 6 if let Some(TokenTree::Ident(ident)) = it.next() { in try_ident() 85 pub(crate) fn function_name(input: TokenStream) -> Option<Ident> { in function_name() argument 89 TokenTree::Ident(i) if i.to_string() == "fn" => { in function_name() 90 if let Some(TokenTree::Ident(i)) = input.next() { in function_name()
|
| H A D | paste.rs | 3 use proc_macro::{Delimiter, Group, Ident, Spacing, Span, TokenTree}; 21 Some(TokenTree::Ident(ident)) => { in concat_helper() 29 let Some(TokenTree::Ident(ident)) = tokens.next() else { in concat_helper() 63 TokenTree::Ident(Ident::new(&pasted, group_span)) in concat()
|
| H A D | quote.rs | 23 impl ToTokens for proc_macro::Ident { implementation 157 $v.extend([::proc_macro::TokenTree::Ident( 158 ::proc_macro::Ident::new("_", $span), 163 $v.extend([::proc_macro::TokenTree::Ident( 164 ::proc_macro::Ident::new(stringify!($id), $span),
|
| H A D | pinned_drop.rs | |
| /linux/scripts/ |
| H A D | checkpatch.pl | 489 our $Ident = qr{ 546 our $Member = qr{->$Ident|\.$Ident|\[[^]]*\]}; 547 our $Lval = qr{$Ident(?:$Member)*}; 793 qr{struct\s+$Ident}, 794 qr{union\s+$Ident}, 795 qr{enum\s+$Ident}, 796 qr{${Ident}_t}, 797 qr{${Ident}_handler}, 798 qr{${Ident}_handler_fn}, 826 qr{struct\s+$InitAttribute\s+$Ident}, [all …]
|
| /linux/rust/quote/ |
| H A D | runtime.rs | 8 use proc_macro2::{Group, Ident, Punct, Spacing, TokenTree}; 312 TokenTree::Ident(Ident::new(&lifetime[1..], Span::call_site())), in push_lifetime() 324 TokenTree::Ident(Ident::new(&lifetime[1..], span)), in push_lifetime_spanned() 431 tokens.append(Ident::new("_", span)); in push_underscore_spanned() 437 pub fn mk_ident(id: &str, span: Option<Span>) -> Ident { in mk_ident() argument 442 fn ident_maybe_raw(id: &str, span: Span) -> Ident { in ident_maybe_raw() argument 444 Ident::new_raw(id, span) in ident_maybe_raw() 446 Ident::new(id, span) in ident_maybe_raw()
|
| /linux/rust/pin-init/internal/src/ |
| H A D | pinned_drop.rs | 12 assert!(matches!(&toks[0], TokenTree::Ident(i) if i.to_string() == "impl")); in pinned_drop() 30 matches!(tt, TokenTree::Ident(i) if i.to_string() == "PinnedDrop"), in pinned_drop()
|