(&mut self, node: Node<'t>)
| 808 | } |
| 809 | |
| 810 | fn extract_enum_members(&mut self, node: Node<'t>) { |
| 811 | // name-field path: one enum_member node positioned at the MEMBER node |
| 812 | // (attributes included in its span); values/attributes ignored. |
| 813 | if let Some(name_node) = node.child_by_field_name("name") { |
| 814 | let name = self.text(name_node).to_string(); |
| 815 | self.create_node("enum_member", &name, node, Extra::default()); |
| 816 | } |
| 817 | // (identifier-children / leaf fallbacks are other grammars' shapes) |
| 818 | } |
| 819 | |
| 820 | /// extractProperty (1986) — property_declaration only (dispatch-gated to |
| 821 | /// class-like scopes). Type refs come from the `type` field; the caller |
no test coverage detected