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

Method visit_enum_entry_body

codegraph-kernel/src/kotlin.rs:1162–1172  ·  view source on GitHub ↗

`NewBuffer { override fun pipe() … }`: an entry's own class_body declares members of its own, scoped under the entry.

(&mut self, node: Node<'t>, member: Option<(u32, String)>)

Source from the content-addressed store, hash-verified

1160 /// `NewBuffer { override fun pipe() … }`: an entry's own class_body
1161 /// declares members of its own, scoped under the entry.
1162 fn visit_enum_entry_body(&mut self, node: Node<'t>, member: Option<(u32, String)>) {
1163 let Some((row, name)) = member else { return };
1164 let Some(body) = (0..node.named_child_count()).filter_map(|i| node.named_child(i)).find(|c| c.kind() == "class_body") else { return };
1165 self.stack.push(Scope { row, kind: "enum_member", name });
1166 for i in 0..body.named_child_count() {
1167 if let Some(c) = body.named_child(i) {
1168 self.visit_node(c);
1169 }
1170 }
1171 self.stack.pop();
1172 }
1173
1174 /// extractTypeAlias — plain node; the alias-value ref walk reads the
1175 /// `value` FIELD → null (zero fields) → NO refs. Returns false →

Callers 1

extract_enumMethod · 0.80

Calls 2

pushMethod · 0.80
visit_nodeMethod · 0.45

Tested by

no test coverage detected