Home
last modified time | relevance | path

Searched refs:ident (Results 1 – 25 of 452) sorted by relevance

12345678910>>...19

/third_party/rust/crates/syn/src/
Dcustom_punctuation.rs79 ($ident:ident, $($tt:tt)+) => {
80 pub struct $ident {
86 pub fn $ident<__S: $crate::__private::IntoSpans<$crate::custom_punctuation_repr!($($tt)+)>>(
88 ) -> $ident {
90 $ident {
95 impl $crate::__private::Default for $ident {
97 $ident($crate::__private::Span::call_site())
101 $crate::impl_parse_for_custom_punctuation!($ident, $($tt)+);
102 $crate::impl_to_tokens_for_custom_punctuation!($ident, $($tt)+);
103 $crate::impl_clone_for_custom_punctuation!($ident, $($tt)+);
[all …]
Dcustom_keyword.rs91 ($ident:ident) => {
93 pub struct $ident {
99 pub fn $ident<__S: $crate::__private::IntoSpans<[$crate::__private::Span; 1]>>(
101 ) -> $ident {
102 $ident {
107 impl $crate::__private::Default for $ident {
109 $ident {
115 $crate::impl_parse_for_custom_keyword!($ident);
116 $crate::impl_to_tokens_for_custom_keyword!($ident);
117 $crate::impl_clone_for_custom_keyword!($ident);
[all …]
Dmacros.rs8 struct $name:ident #full $($rest:tt)*
28 struct $name:ident $($rest:tt)*
42 enum $name:ident #no_visit $($rest:tt)*
49 enum $name:ident $($rest:tt)*
62 $pub:ident $enum:ident $name:ident $body:tt
72 $pub:ident $enum:ident $name:ident {
76 $variant:ident $( ($($member:ident)::+) )*,
107 ($name:ident::Verbatim, $member:ident) => {};
109 ($name:ident::$variant:ident, $member:ident) => {
127 ($($arms:tt)*) $tokens:ident $name:ident {
[all …]
Dlifetime.rs21 pub ident: Ident, field
51 if !crate::ident::xid_ok(&symbol[1..]) { in new()
57 ident: Ident::new(&symbol[1..], span), in new()
63 .join(self.ident.span()) in span()
69 self.ident.set_span(span); in set_span()
76 self.ident.fmt(formatter) in fmt()
84 ident: self.ident.clone(), in clone()
91 self.ident.eq(&other.ident) in eq()
105 self.ident.cmp(&other.ident) in cmp()
111 self.ident.hash(h); in hash()
[all …]
/third_party/rust/crates/quote/src/
Dlib.rs494 (# $var:ident) => {{
635 ($span:expr=> # $var:ident) => {{
667 ($call:ident! $extra:tt $($tts:tt)*) => {
678 ($call:ident! $extra:tt ($($b1:tt)*) ($($curr:tt)*)) => {
688 ($call:ident! $extra:tt $b1:tt ( $($inner:tt)* )) => {
692 ($call:ident! $extra:tt $b1:tt [ $($inner:tt)* ]) => {
696 ($call:ident! $extra:tt $b1:tt { $($inner:tt)* }) => {
700 ($call:ident!($($extra:tt)*) # $var:ident) => {
704 ($call:ident! $extra:tt $b1:tt $curr:tt) => {};
710 ($has_iter:ident $var:ident) => {
[all …]
/third_party/rust/crates/pin-project-lite/src/
Dlib.rs313 [$($proj_mut_ident:ident)?]
314 [$($proj_ref_ident:ident)?]
315 [$($proj_replace_ident:ident)?]
317 [$(#[$attrs:meta])* $vis:vis $struct_ty_ident:ident $ident:ident]
326 [$(#[$attrs])* $vis $struct_ty_ident $ident]
336 [$proj_vis $struct_ty_ident $ident]
345 [$proj_vis $struct_ty_ident $ident]
363 [$(#[$attrs])* $vis $struct_ty_ident $ident]
380 [$(#[$attrs:meta])* $vis:vis struct $ident:ident]
381 [$($proj_mut_ident:ident)?] [$($proj_ref_ident:ident)?] [$($proj_replace_ident:ident)?]
[all …]
/third_party/rust/crates/serde/serde/src/
Dmacros.rs113 (<$visitor:ident: Visitor<$lifetime:tt>> $($func:ident)*) => {
117 ($($func:ident)*) => {
125 ($func:ident<$l:tt, $v:ident>($($arg:ident : $ty:ty),*)) => {
142 (bool<$l:tt, $v:ident>) => {
145 (i8<$l:tt, $v:ident>) => {
148 (i16<$l:tt, $v:ident>) => {
151 (i32<$l:tt, $v:ident>) => {
154 (i64<$l:tt, $v:ident>) => {
157 (i128<$l:tt, $v:ident>) => {
162 (u8<$l:tt, $v:ident>) => {
[all …]
/third_party/rust/crates/cxx/syntax/
Dtypes.rs73 let ident = &strct.name.rust; in collect() localVariable
74 if !type_names.insert(ident) in collect()
75 && (!cxx.contains(ident) in collect()
76 || structs.contains_key(ident) in collect()
77 || enums.contains_key(ident)) in collect()
82 duplicate_name(cx, strct, ident); in collect()
98 let ident = &enm.name.rust; in collect() localVariable
99 if !type_names.insert(ident) in collect()
100 && (!cxx.contains(ident) in collect()
101 || structs.contains_key(ident) in collect()
[all …]
Dresolve.rs12 pub fn resolve(&self, ident: &impl UnresolvedName) -> Resolution<'a> { in resolve()
13 let ident = ident.ident(); in resolve() localVariable
14 match self.try_resolve(ident) { in resolve()
16 None => panic!("Unable to resolve type `{}`", ident), in resolve()
20 pub fn try_resolve(&self, ident: &impl UnresolvedName) -> Option<Resolution<'a>> { in try_resolve()
21 let ident = ident.ident(); in try_resolve() localVariable
22 self.resolutions.get(ident).copied() in try_resolve()
27 fn ident(&self) -> &Ident; in ident() method
31 fn ident(&self) -> &Ident { in ident() method
37 fn ident(&self) -> &Ident { in ident() method
[all …]
Dcheck.rs5 error, ident, trivial, Api, Array, Enum, ExternFn, ExternType, Impl, Lang, Lifetimes,
43 ident::check_all(cx, cx.apis); in do_typecheck()
47 Type::Ident(ident) => check_type_ident(cx, ident), in do_typecheck()
83 let ident = &name.rust; in check_type_ident() localVariable
84 if Atom::from(ident).is_none() in check_type_ident()
85 && !cx.types.structs.contains_key(ident) in check_type_ident()
86 && !cx.types.enums.contains_key(ident) in check_type_ident()
87 && !cx.types.cxx.contains(ident) in check_type_ident()
88 && !cx.types.rust.contains(ident) in check_type_ident()
90 let msg = format!("unsupported type: {}", ident); in check_type_ident()
[all …]
Dtrivial.rs27 let mut insist_extern_types_are_trivial = |ident: &'a NamedType, reason| { in required_trivial_reasons()
28 if cxx.contains(&ident.rust) in required_trivial_reasons()
29 && !structs.contains_key(&ident.rust) in required_trivial_reasons()
30 && !enums.contains_key(&ident.rust) in required_trivial_reasons()
33 .entry(&ident.rust) in required_trivial_reasons()
43 if let Type::Ident(ident) = &field.ty { in required_trivial_reasons()
45 insist_extern_types_are_trivial(ident, reason); in required_trivial_reasons()
58 Type::Ident(ident) => { in required_trivial_reasons()
60 insist_extern_types_are_trivial(ident, reason); in required_trivial_reasons()
64 if let Type::Ident(ident) = &ty.inner { in required_trivial_reasons()
[all …]
/third_party/rust/crates/nom/src/branch/
Dmod.rs113 ($first:ident $second:ident $($id: ident)+) => (
116 (__impl $($current:ident)*; $head:ident $($id: ident)+) => (
121 (__impl $($current:ident)*; $head:ident) => (
128 ($($id:ident)+) => (
145 ($it:tt, $self:expr, $input:expr, $err:expr, $head:ident $($id:ident)+) => (
154 ($it:tt, $self:expr, $input:expr, $err:expr, $head:ident) => (
172 $name1:ident $ty1:ident $item1:ident
173 $name2:ident $ty2:ident $item2:ident
174 $($name3:ident $ty3:ident $item3:ident)*
179 __impl $($name:ident $ty:ident $item:ident),+;
[all …]
/third_party/rust/crates/proc-macro-error/src/
Dmacros.rs198 ($var:ident) => ();
200 ($var:ident $help:ident =? $msg:expr) => {
207 ($var:ident $help:ident =? $span:expr => $msg:expr) => {
215 ($var:ident $help:ident =? $msg:expr ; $($rest:tt)*) => {
219 ($var:ident $help:ident =? $span:expr => $msg:expr ; $($rest:tt)*) => {
225 ($var:ident $help:ident = $msg:expr) => {
228 ($var:ident $help:ident = $fmt:expr, $($args:expr),+) => {
234 ($var:ident $help:ident = $span:expr => $msg:expr) => {
237 ($var:ident $help:ident = $span:expr => $fmt:expr, $($args:expr),+) => {
245 ($var:ident $help:ident = $msg:expr ; $($rest:tt)*) => {
[all …]
/third_party/rust/crates/nom/src/
Dmacros.rs2 (0, $submac:ident ! ($($rest:tt)*)) => ($submac!(1, $($rest)*));
3 (1, $submac:ident ! ($($rest:tt)*)) => ($submac!(2, $($rest)*));
4 (2, $submac:ident ! ($($rest:tt)*)) => ($submac!(3, $($rest)*));
5 (3, $submac:ident ! ($($rest:tt)*)) => ($submac!(4, $($rest)*));
6 (4, $submac:ident ! ($($rest:tt)*)) => ($submac!(5, $($rest)*));
7 (5, $submac:ident ! ($($rest:tt)*)) => ($submac!(6, $($rest)*));
8 (6, $submac:ident ! ($($rest:tt)*)) => ($submac!(7, $($rest)*));
9 (7, $submac:ident ! ($($rest:tt)*)) => ($submac!(8, $($rest)*));
10 (8, $submac:ident ! ($($rest:tt)*)) => ($submac!(9, $($rest)*));
11 (9, $submac:ident ! ($($rest:tt)*)) => ($submac!(10, $($rest)*));
[all …]
/third_party/python/Lib/test/
Dtest_sys_setprofile.py46 self.events.append((frameno, event, ident(frame)))
50 disallowed = [ident(self.add_event.__func__), ident(ident)]
106 f_ident = ident(f)
114 f_ident = ident(f)
123 f_ident = ident(f)
132 f_ident = ident(f)
140 f_ident = ident(f)
157 f_ident = ident(f)
158 g_ident = ident(g)
173 f_ident = ident(f)
[all …]
/third_party/rust/crates/libc/src/
Dmacros.rs65 ($($(#[$attr:meta])* pub $t:ident $i:ident { $($field:tt)* })*) => ($(
68 (it: $(#[$attr:meta])* pub union $i:ident { $($field:tt)* }) => (
71 (it: $(#[$attr:meta])* pub struct $i:ident { $($field:tt)* }) => (
89 ($($(#[$attr:meta])* pub $t:ident $i:ident { $($field:tt)* })*) => ($(
92 (it: $(#[$attr:meta])* pub union $i:ident { $($field:tt)* }) => (
108 (it: $(#[$attr:meta])* pub struct $i:ident { $($field:tt)* }) => (
124 ($($(#[$attr:meta])* pub enum $i:ident { $($field:tt)* })*) => ($(
138 ($($(#[$attr:meta])* pub struct $i:ident ( $($field:tt)* ); )* ) => ($(
181 ($($(#[$attr:meta])* pub $({$constness:ident})* fn $i:ident(
182 $($arg:ident: $argty:ty),*
[all …]
/third_party/rust/crates/syn/codegen/src/
Dclone.rs10 let type_name = &node.ident; in expand_impl_body()
11 let ident = Ident::new(type_name, Span::call_site()); in expand_impl_body() localVariable
19 #ident::#variant => #ident::#variant, in expand_impl_body()
30 if node.ident == "Expr" { in expand_impl_body()
39 #ident::#variant(#(#pats),*) => #ident::#variant(#(#clones),*), in expand_impl_body()
45 } else if node.ident == "Expr" { in expand_impl_body()
65 let ident = Ident::new(f, Span::call_site()); in expand_impl_body() localVariable
67 #ident: self.#ident.clone(), in expand_impl_body()
70 quote!(#ident { #(#fields)* }) in expand_impl_body()
77 let manual_clone = node.data == Data::Private || node.ident == "Lifetime"; in expand_impl()
[all …]
Deq.rs21 let type_name = &node.ident; in expand_impl_body()
22 let ident = Ident::new(type_name, Span::call_site()); in expand_impl_body() localVariable
30 (#ident::#variant, #ident::#variant) => true, in expand_impl_body()
60 if node.ident == "Expr" { in expand_impl_body()
69 (#ident::#variant(#(#this_pats),*), #ident::#variant(#(#other_pats),*)) => { in expand_impl_body()
88 let ident = Ident::new(f, Span::call_site()); in expand_impl_body() localVariable
91 quote!(TokenStreamHelper(&self.#ident) == TokenStreamHelper(&other.#ident)) in expand_impl_body()
93 _ => quote!(self.#ident == other.#ident), in expand_impl_body()
107 if node.ident == "Member" || node.ident == "Index" || node.ident == "Lifetime" { in expand_impl()
111 let ident = Ident::new(&node.ident, Span::call_site()); in expand_impl() localVariable
[all …]
Dsnapshot.rs13 let ident = Ident::new(ty, Span::call_site()); in rust_type() localVariable
14 quote!(syn::#ident) in rust_type()
17 let ident = Ident::new(ty, Span::call_site()); in rust_type() localVariable
18 quote!(#ident) in rust_type()
21 let ident = Ident::new(ty, Span::call_site()); in rust_type() localVariable
22 quote!(proc_macro2::#ident) in rust_type()
25 let ident = Ident::new(ty, Span::call_site()); in rust_type() localVariable
26 quote!(syn::token::#ident) in rust_type()
132 let ident = Ident::new(&node.ident, Span::call_site()); in expand_impl_body() localVariable
140 syn::#ident::#variant => formatter.write_str(#v), in expand_impl_body()
[all …]
/third_party/rust/crates/tracing/tracing/src/
Dmacros.rs636 (target: $target:expr, parent: $parent:expr, $lvl:expr, $($k:ident).+ = $($fields:tt)* ) => (
689 (target: $target:expr, $lvl:expr, $($k:ident).+ = $($fields:tt)* ) => (
703 (parent: $parent:expr, $lvl:expr, $($k:ident).+ = $($field:tt)*) => (
711 (parent: $parent:expr, $lvl:expr, ?$($k:ident).+ = $($field:tt)*) => (
719 (parent: $parent:expr, $lvl:expr, %$($k:ident).+ = $($field:tt)*) => (
727 (parent: $parent:expr, $lvl:expr, $($k:ident).+, $($field:tt)*) => (
735 (parent: $parent:expr, $lvl:expr, %$($k:ident).+, $($field:tt)*) => (
743 (parent: $parent:expr, $lvl:expr, ?$($k:ident).+, $($field:tt)*) => (
768 ($lvl:expr, $($k:ident).+ = $($field:tt)*) => (
775 ($lvl:expr, $($k:ident).+, $($field:tt)*) => (
[all …]
/third_party/rust/crates/minimal-lexical/src/
Dslow.rs185 ($c:ident, $value:ident, $counter:ident, $count:ident) => {{
199 (@mul $result:ident, $power:expr, $value:expr) => {
207 ($format:ident, $result:ident, $counter:ident, $value:ident) => {
222 (@end $format:ident, $result:ident, $counter:ident, $value:ident) => {
231 (@max $format:ident, $result:ident, $counter:ident, $value:ident, $max:ident) => {
240 ($format:ident, $result:ident, $count:ident) => {{
251 ($format:ident, $iter:expr, $result:ident, $count:ident) => {{
/third_party/rust/crates/nom/src/sequence/
Dmod.rs206 ($name1:ident $ty1:ident, $name2: ident $ty2:ident, $($name:ident $ty:ident),*) => (
209 (__impl $($name:ident $ty: ident),+; $name1:ident $ty1:ident, $($name2:ident $ty2:ident),*) => (
213 (__impl $($name:ident $ty: ident),+; $name1:ident $ty1:ident) => (
220 ($($name:ident $ty: ident),+) => (
235 ($it:tt, $self:expr, $input:expr, (), $head:ident $($id:ident)+) => ({
240 ($it:tt, $self:expr, $input:expr, ($($parsed:tt)*), $head:ident $($id:ident)+) => ({
245 ($it:tt, $self:expr, $input:expr, ($($parsed:tt)*), $head:ident) => ({
/third_party/rust/crates/num-traits/src/
Dmacros.rs6 ($( Self :: $method:ident ( self $( , $arg:ident : $ty:ty )* ) -> $ret:ty ; )*)
13 ($( $base:ident :: $method:ident ( self $( , $arg:ident : $ty:ty )* ) -> $ret:ty ; )*)
20 ($( $base:ident :: $method:ident ( $( $arg:ident : $ty:ty ),* ) -> $ret:ty ; )*)
27 ($( $imp:path as $method:ident ( self $( , $arg:ident : $ty:ty )* ) -> $ret:ty ; )*)
37 ($( $method:ident () -> $ret:expr ; )*)
/third_party/skia/third_party/externals/spirv-cross/shaders/comp/
Dmod.comp16 uint ident = gl_GlobalInvocationID.x;
17 vec4 v = mod(in_data[ident], out_data[ident]);
18 out_data[ident] = v;
20 uvec4 vu = floatBitsToUint(in_data[ident]) % floatBitsToUint(out_data[ident]);
21 out_data[ident] = uintBitsToFloat(vu);
23 ivec4 vi = floatBitsToInt(in_data[ident]) % floatBitsToInt(out_data[ident]);
24 out_data[ident] = intBitsToFloat(vi);
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/comp/
Dmod.comp16 uint ident = gl_GlobalInvocationID.x;
17 vec4 v = mod(in_data[ident], out_data[ident]);
18 out_data[ident] = v;
20 uvec4 vu = floatBitsToUint(in_data[ident]) % floatBitsToUint(out_data[ident]);
21 out_data[ident] = uintBitsToFloat(vu);
23 ivec4 vi = floatBitsToInt(in_data[ident]) % floatBitsToInt(out_data[ident]);
24 out_data[ident] = intBitsToFloat(vi);

12345678910>>...19