Home
last modified time | relevance | path

Searched refs:Decl (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Bluetooth/tools/pdl/src/
Dlint.rs27 pub typedef: HashMap<String, &'d analyzer_ast::Decl>,
30 pub scopes: HashMap<&'d analyzer_ast::Decl, PacketScope<'d>>,
37 decl: &'d analyzer_ast::Decl,
48 impl<'d> std::hash::Hash for &'d analyzer_ast::Decl { implementation
144 fn finalize(&mut self) -> Vec<&'d analyzer_ast::Decl> { in finalize() argument
151 list: Vec<&'d analyzer_ast::Decl>, in finalize()
152 visited: HashMap<&'d analyzer_ast::Decl, Mark>, in finalize()
153 scopes: HashMap<&'d analyzer_ast::Decl, PacketScope<'d>>, in finalize()
157 decl: &'d analyzer_ast::Decl, in finalize() argument
185 Some(struct_decl @ Decl { desc: DeclDesc::Struct { .. }, .. }) => { in finalize()
[all …]
Dast.rs190 pub struct Decl<A: Annotation> { struct
204 pub declarations: Vec<Decl<A>>, argument
356 pub fn iter_children<'d>(&'d self, decl: &'d Decl<A>) -> impl Iterator<Item = &'d Decl<A>> { in iter_children()
361 impl<A: Annotation + std::cmp::PartialEq> Eq for Decl<A> {} implementation
362 impl<A: Annotation + std::cmp::PartialEq> PartialEq for Decl<A> { implementation
369 impl<A: Annotation> Decl<A> { impl
370 pub fn new(loc: SourceRange, desc: DeclDesc<A>) -> Decl<A> { in new()
371 Decl { loc, annot: Default::default(), desc } in new()
378 ) -> Decl<B> in annotate()
412 Decl { loc: self.loc, desc, annot } in annotate()
Danalyzer.rs109 pub type Decl = crate::ast::Decl<Annotation>; typedef
179 pub typedef: HashMap<String, &'d crate::ast::Decl<A>>,
249 pub fn get_parent(&self, decl: &crate::ast::Decl<A>) -> Option<&'d crate::ast::Decl<A>> { in get_parent()
256 decl: &'d crate::ast::Decl<A>, in iter_parents()
257 ) -> impl Iterator<Item = &'d Decl<A>> + 's { in iter_parents()
264 decl: &'d crate::ast::Decl<A>, in iter_fields()
266 std::iter::successors(Some(decl), |decl| self.get_parent(decl)).flat_map(Decl::fields) in iter_fields()
274 ) -> Option<&'d crate::ast::Decl<A>> { in get_declaration()
334 decl: &'d parser_ast::Decl, in check_decl_identifiers() argument
374 Some(group_decl @ Decl { desc: DeclDesc::Group { .. }, .. }) => { in check_decl_identifiers()
[all …]
Dparser.rs33 pub type Decl = crate::ast::Decl<Annotation>; typedef
530 file.declarations.push(crate::ast::Decl::new( in parse_toplevel()
540 file.declarations.push(crate::ast::Decl::new( in parse_toplevel()
550 file.declarations.push(crate::ast::Decl::new( in parse_toplevel()
561 file.declarations.push(crate::ast::Decl::new( in parse_toplevel()
572 file.declarations.push(crate::ast::Decl::new( in parse_toplevel()
582 .push(crate::ast::Decl::new(loc, crate::ast::DeclDesc::Group { id, fields })) in parse_toplevel()
/packages/modules/Bluetooth/tools/pdl/src/backends/
Drust.rs120 Some(analyzer_ast::Decl { in generate_packet_size_getter()
128 Some(analyzer_ast::Decl { desc: ast::DeclDesc::Enum { .. }, .. }) => { in generate_packet_size_getter()
166 fn top_level_packet<'a>(scope: &lint::Scope<'a>, packet_name: &'a str) -> &'a analyzer_ast::Decl { in top_level_packet() argument
332 fn find_parents<'a>(scope: &lint::Scope<'a>, id: &str) -> Vec<&'a analyzer_ast::Decl> { in find_parents() argument
905 decl: &analyzer_ast::Decl, in generate_decl() argument
Dintermediate.rs114 fn process_decl<'a>(schema: &mut Schema<'a>, decl: &'a parser::ast::Decl) { in process_decl() argument
/packages/modules/Bluetooth/tools/pdl/src/backends/rust_no_allocation/
Dmod.rs87 decl: &parser::ast::Decl, in generate_decl() argument
/packages/modules/Bluetooth/tools/pdl/src/backends/rust/
Dparser.rs280 decl: Option<&analyzer_ast::Decl>, in add_array_field() argument
564 decl: Option<&analyzer_ast::Decl>, in parse_array_element() argument
Dserializer.rs261 decl: Option<&analyzer_ast::Decl>, in add_array_field() argument