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