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

Method extract_enum_members

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

Source from the content-addressed store, hash-verified

790 }
791
792 fn extract_enum_members(&mut self, node: Node<'t>) {
793 // name-field path: one enum_member node positioned at the MEMBER node
794 // (attributes included in its span); values/attributes ignored.
795 if let Some(name_node) = node.child_by_field_name("name") {
796 let name = self.text(name_node).to_string();
797 self.create_node("enum_member", &name, node, Extra::default());
798 }
799 // (identifier-children / leaf fallbacks are other grammars' shapes)
800 }
801
802 /// extractProperty (1986) — property_declaration only (dispatch-gated to
803 /// class-like scopes). Type refs come from the `type` field; the caller

Callers 1

extract_enumMethod · 0.45

Calls 2

textMethod · 0.65
create_nodeMethod · 0.45

Tested by

no test coverage detected