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

Method visit_enum_entry_body

codegraph-kernel/src/kotlin.rs:1206–1214  ·  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

1204 /// `NewBuffer { override fun pipe() … }`: an entry's own class_body
1205 /// declares members of its own, scoped under the entry.
1206 fn visit_enum_entry_body(&mut self, node: Node<'t>, member: Option<(u32, String)>) {
1207 let Some((row, name)) = member else { return };
1208 let Some(body) = (0..node.named_child_count()).filter_map(|i| node.named_child(i)).find(|c| c.kind() == "class_body") else { return };
1209 self.stack.push(Scope { row, kind: "enum_member", name });
1210 for c in body.named_children(&mut body.walk()) {
1211 self.visit_node(c);
1212 }
1213 self.stack.pop();
1214 }
1215
1216 /// extractTypeAlias — plain node; the alias-value ref walk reads the
1217 /// `value` FIELD → null (zero fields) → NO refs. Returns false →

Callers 1

extract_enumMethod · 0.80

Calls 3

pushMethod · 0.80
walkMethod · 0.45
visit_nodeMethod · 0.45

Tested by

no test coverage detected