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

Method extract_enum_members

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

Source from the content-addressed store, hash-verified

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

Callers 1

extract_enumMethod · 0.45

Calls 2

textMethod · 0.65
create_nodeMethod · 0.45

Tested by

no test coverage detected