(&mut self, node: Node<'t>)
| 720 | } |
| 721 | |
| 722 | fn extract_enum_members(&mut self, node: Node<'t>) -> Option<(u32, String)> { |
| 723 | let name_node = node.child_by_field_name("name")?; |
| 724 | let name = self.text(name_node).to_string(); |
| 725 | let row = self.create_node("enum_member", &name, node, Extra::default())?; |
| 726 | // (identifier-children / leaf fallbacks are other grammars' shapes) |
| 727 | Some((row, name)) |
| 728 | } |
| 729 | |
| 730 | /// `PLUS { int apply(…) { … } }`: a constant's own class_body declares |
| 731 | /// members of its own, scoped under the constant. |
no test coverage detected