(&mut self, node: Node<'t>)
| 704 | } |
| 705 | |
| 706 | fn extract_enum_members(&mut self, node: Node<'t>) -> Option<(u32, String)> { |
| 707 | let name_node = node.child_by_field_name("name")?; |
| 708 | let name = self.text(name_node).to_string(); |
| 709 | let row = self.create_node("enum_member", &name, node, Extra::default())?; |
| 710 | // (identifier-children / leaf fallbacks are other grammars' shapes) |
| 711 | Some((row, name)) |
| 712 | } |
| 713 | |
| 714 | /// `PLUS { int apply(…) { … } }`: a constant's own class_body declares |
| 715 | /// members of its own, scoped under the constant. |
no test coverage detected