Home
last modified time | relevance | path

Searched refs:is_ident (Results 1 – 23 of 23) sorted by relevance

/external/rust/cxx/syntax/
Dattrs.rs46 if attr.path.is_ident("doc") { in parse()
59 } else if attr.path.is_ident("derive") { in parse()
72 } else if attr.path.is_ident("repr") { in parse()
85 } else if attr.path.is_ident("namespace") { in parse()
98 } else if attr.path.is_ident("cxx_name") { in parse()
111 } else if attr.path.is_ident("rust_name") { in parse()
124 } else if attr.path.is_ident("allow") in parse()
125 || attr.path.is_ident("warn") in parse()
126 || attr.path.is_ident("deny") in parse()
127 || attr.path.is_ident("forbid") in parse()
[all …]
Dparse.rs360 ForeignItem::Macro(foreign) if foreign.mac.path.is_ident("include") => { in parse_foreign_mod()
/external/rust/crates/thiserror-impl/src/
Dattr.rs42 if attr.path.is_ident("error") { in get()
44 } else if attr.path.is_ident("source") { in get()
50 } else if attr.path.is_ident("backtrace") { in get()
56 } else if attr.path.is_ident("from") { in get()
/external/adhd/cros_alsa/cros_alsa_derive/src/
Dcommon.rs40 NestedMeta::Meta(Meta::NameValue(m)) if m.path.is_ident(PATH) => { in try_from()
70 if !attr.path.is_ident(CROS_ALSA) { in get_cros_alsa_meta_items()
/external/rust/crates/serde_derive/src/internals/
Dsymbol.rs54 self.is_ident(word.0) in eq()
60 self.is_ident(word.0) in eq()
Dreceiver.rs77 if node.qself.is_none() && node.path.is_ident("Self") { in visit_type_mut()
Dattr.rs590 if attr.path.is_ident("repr") { in from_ast()
/external/rust/crates/pin-project-internal/src/
Dutils.rs139 if attr.path.is_ident(ident) { in position_exact()
151 self.iter().position(|attr| attr.path.is_ident(ident)).map(|i| &self[i]) in find()
295 if node.qself.is_none() && node.path.is_ident("Self") { in visit_type_mut()
347 Item::Macro(item) if item.mac.path.is_ident("macro_rules") => { in visit_item_mut()
Dpinned_drop.rs60 if !path.is_ident("PinnedDrop") { in validate_impl()
148 && get_ty_path(elem).map_or(false, |path| path.is_ident("Self")) in validate_sig()
/external/rust/crates/no-panic/src/
Dlib.rs164 .any(|meta| meta.path().is_ident("inline")); in no_panic()
/external/crosvm/enumn/src/
Dlib.rs135 if list.path.is_ident("repr") { in testable_derive()
/external/libxkbcommon/src/xkbcomp/
Drules.c79 is_ident(char ch) in is_ident() function
130 while (is_ident(peek(s))) { in lex()
146 if (is_ident(peek(s))) { in lex()
149 while (is_ident(peek(s))) { in lex()
/external/rust/crates/async-trait/src/
Dreceiver.rs161 if i.mac.path.is_ident("macro_rules") in visit_item_mut()
Dexpand.rs399 if bound.path.is_ident(marker) { in has_bound()
/external/rust/crates/async-stream-impl/src/
Dlib.rs73 if expr.attrs.len() != 1 || !expr.attrs[0].path.is_ident("await") { in visit_expr_mut()
/external/rust/crates/pin-project-internal/src/pin_project/
Dargs.rs34 let mut attrs = attrs.iter().filter(|attr| attr.path.is_ident(PIN)); in parse_args()
Dderive.rs1003 if list.path.is_ident("repr") { in ensure_not_packed()
1008 if path.is_ident("packed") => in ensure_not_packed()
/external/rust/crates/structopt-derive/src/
Dparse.rs266 .filter(|attr| attr.path.is_ident("structopt")) in parse_structopt_attributes()
Dattrs.rs381 .filter(|attr| attr.path.is_ident("doc")) in push_doc_comment()
/external/crosvm/bit_field/bit_field_derive/
Dbit_field_derive.rs379 if attr.path.is_ident("doc") { in parse_bits_attr()
395 if attr.path.is_ident("bits") { in try_parse_bits_attr()
/external/rust/crates/tokio-macros/src/
Dentry.rs329 if attr.path.is_ident("test") { in test()
/external/rust/crates/syn/src/
Dpath.rs528 pub fn is_ident<I: ?Sized>(&self, ident: &I) -> bool in is_ident() method
/external/rust/crates/num-derive/src/
Dlib.rs174 if mnv.path.is_ident("num_traits") { in new()