MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / extract_enum_members

Method extract_enum_members

codegraph-kernel/src/php.rs:788–795  ·  view source on GitHub ↗
(&mut self, node: Node<'t>)

Source from the content-addressed store, hash-verified

786 }
787
788 fn extract_enum_members(&mut self, node: Node<'t>) {
789 // name-field path: one enum_member at the enum_case; backed values
790 // (`= 'H'`) never walked.
791 if let Some(name_node) = node.child_by_field_name("name") {
792 let name = self.text(name_node).to_string();
793 self.create_node("enum_member", &name, node, Extra::default());
794 }
795 }
796
797 /// extractField — the php property_element branch (2077-2104): one `field`
798 /// node per element, `$` re-added in the signature only, then RETURN — no

Callers 1

extract_enumMethod · 0.45

Calls 2

textMethod · 0.65
create_nodeMethod · 0.45

Tested by

no test coverage detected