Home
last modified time | relevance | path

Searched refs:ident (Results 1 - 25 of 350) sorted by relevance

12345678910>>...14

/third_party/rust/crates/quote/src/
H A Dlib.rs273 /// Suppose we have an identifier `ident` which came from somewhere in a macro
285 /// # let ident = syn::Ident::new("i", Span::call_site());
289 /// let mut _#ident = 0;
302 /// # let ident = Ident::new("i", Span::call_site());
304 /// let varname = format_ident!("_{}", ident);
313 /// will not handle `ident` being a raw identifier.
319 /// # let ident = syn::Ident::new("i", Span::call_site());
321 /// let concatenated = format!("_{}", ident);
322 /// let varname = syn::Ident::new(&concatenated, ident.span());
390 /// /// try to interpolate: #ident
[all...]
/third_party/rust/crates/syn/src/
H A Dmacros.rs8 $pub:ident $struct:ident $name:ident #full $body:tt
31 $pub:ident $struct:ident $name:ident $body:tt
44 $pub:ident $enum:ident $name:ident $body:tt
56 $pub:ident
[all...]
H A Dcustom_keyword.rs91 ($ident:ident) => {
93 pub struct $ident {
99 pub fn $ident<__S: $crate::__private::IntoSpans<$crate::__private::Span>>(
101 ) -> $ident {
102 $ident {
108 impl $crate::__private::Default for $ident {
110 $ident { in default()
116 $crate::impl_parse_for_custom_keyword!($ident);
117 $crate::impl_to_tokens_for_custom_keyword!($ident);
[all...]
H A 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 {
96 impl $crate::__private::Default for $ident {
98 $ident($crate::__private::Span::call_site()) in default()
102 $crate::impl_parse_for_custom_punctuation!($ident, $($tt)+);
103 $crate::impl_to_tokens_for_custom_punctuation!($ident,
[all...]
H A Dident.rs16 ($token:ident) => {
58 fn accept_as_ident(ident: &Ident) -> bool { in accept_as_ident()
59 match ident.to_string().as_str() { in accept_as_ident()
78 if let Some((ident, rest)) = cursor.ident() { in parse()
79 if accept_as_ident(&ident) { in parse()
80 Ok((ident, rest)) in parse()
84 ident, in parse()
96 if let Some((ident, _rest)) = cursor.ident() { in peek()
[all...]
/third_party/rust/crates/cxx/gen/lib/src/syntax/
H A Dtypes.rs73 let ident = &strct.name.rust;
74 if !type_names.insert(ident)
75 && (!cxx.contains(ident)
76 || structs.contains_key(ident)
77 || enums.contains_key(ident))
82 duplicate_name(cx, strct, ident);
98 let ident = &enm.name.rust;
99 if !type_names.insert(ident)
100 && (!cxx.contains(ident)
101 || structs.contains_key(ident)
[all...]
H A 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()
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()
[all...]
/third_party/rust/crates/cxx/gen/build/src/syntax/
H A Dtypes.rs73 let ident = &strct.name.rust;
74 if !type_names.insert(ident)
75 && (!cxx.contains(ident)
76 || structs.contains_key(ident)
77 || enums.contains_key(ident))
82 duplicate_name(cx, strct, ident);
98 let ident = &enm.name.rust;
99 if !type_names.insert(ident)
100 && (!cxx.contains(ident)
101 || structs.contains_key(ident)
[all...]
H A 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()
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()
[all...]
/third_party/rust/crates/cxx/gen/cmd/src/syntax/
H A Dtypes.rs73 let ident = &strct.name.rust;
74 if !type_names.insert(ident)
75 && (!cxx.contains(ident)
76 || structs.contains_key(ident)
77 || enums.contains_key(ident))
82 duplicate_name(cx, strct, ident);
98 let ident = &enm.name.rust;
99 if !type_names.insert(ident)
100 && (!cxx.contains(ident)
101 || structs.contains_key(ident)
[all...]
H A 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()
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()
[all...]
/third_party/rust/crates/cxx/syntax/
H A Dtypes.rs73 let ident = &strct.name.rust;
74 if !type_names.insert(ident)
75 && (!cxx.contains(ident)
76 || structs.contains_key(ident)
77 || enums.contains_key(ident))
82 duplicate_name(cx, strct, ident);
98 let ident = &enm.name.rust;
99 if !type_names.insert(ident)
100 && (!cxx.contains(ident)
101 || structs.contains_key(ident)
[all...]
H A 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()
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()
[all...]
/third_party/rust/crates/cxx/macro/src/syntax/
H A Dtypes.rs73 let ident = &strct.name.rust;
74 if !type_names.insert(ident)
75 && (!cxx.contains(ident)
76 || structs.contains_key(ident)
77 || enums.contains_key(ident))
82 duplicate_name(cx, strct, ident);
98 let ident = &enm.name.rust;
99 if !type_names.insert(ident)
100 && (!cxx.contains(ident)
101 || structs.contains_key(ident)
[all...]
H A 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()
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()
[all...]
/third_party/rust/crates/nom/src/
H A 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 ! (
[all...]
/third_party/rust/crates/proc-macro-error/src/
H A 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
[all...]
/third_party/rust/crates/nom/src/branch/
H A 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
[all...]
/third_party/rust/crates/syn/codegen/src/
H A 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()
20 #ident::#variant => #ident::#variant, in expand_impl_body()
31 if node.ident == "Expr" { in expand_impl_body()
40 #ident::#variant(#(#pats),*) => #ident::#variant(#(#clones),*), in expand_impl_body()
44 let nonexhaustive = if node.ident == "Expr" { in expand_impl_body()
61 let ident = Ident::new(f, Span::call_site()); in expand_impl_body()
63 #ident in expand_impl_body()
[all...]
H A Deq.rs20 let type_name = &node.ident; in expand_impl_body()
21 let ident = Ident::new(type_name, Span::call_site()); in expand_impl_body()
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()
93 let ident = Ident::new(f, Span::call_site()); in expand_impl_body()
96 quote!(TokenStreamHelper(&self.#ident) == TokenStreamHelper(&other.#ident)) in expand_impl_body()
[all...]
/third_party/rust/crates/libc/src/
H A 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 (
[all...]
/third_party/python/Lib/test/
H A Dtest_sys_setprofile.py47 self.events.append((frameno, event, ident(frame)))
51 disallowed = [ident(self.add_event.__func__), ident(ident)]
107 f_ident = ident(f)
115 f_ident = ident(f)
124 f_ident = ident(f)
133 f_ident = ident(f)
141 f_ident = ident(f)
158 f_ident = ident(
382 def ident(function): global() function
[all...]
/third_party/rust/crates/minimal-lexical/src/
H A 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,
[all...]
/third_party/rust/crates/nix/src/
H A Dmacros.rs58 pub struct $BitFlags:ident: $T:ty {
60 $(#[$inner:ident $($args:tt)*])*
61 $Flag:ident $(as $cast:ty)*;
103 name: $BitFlags:ident,
119 name: $BitFlags:ident,
147 name: $BitFlags:ident,
168 name: $BitFlags:ident,
192 name: $BitFlags:ident,
214 // Munch last ident if not followed by a comma.
216 name: $BitFlags:ident,
[all...]
/third_party/rust/crates/nom/src/sequence/
H A Dmod.rs206 ($name1:ident $ty1:ident, $name2: ident $ty2:ident, $($name:ident $ty:ident),*) => (
209 (__impl $($name:ident $ty: ident),+; $name1:ident $ty1:ident,
[all...]

Completed in 9 milliseconds

12345678910>>...14