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

Method extract_interface

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

Source from the content-addressed store, hash-verified

690 }
691
692 fn extract_interface(&mut self, node: Node<'t>) {
693 stack_guard!();
694 let name = self.extract_name(node);
695 let extra = Extra {
696 docstring: preceding_docstring(node, self.src),
697 ..Extra::default() // NO visibility — extractInterface never asks
698 };
699 let Some(row) = self.create_node("interface", &name, node, extra) else { return };
700 self.extract_inheritance(node, row);
701 self.stack.push(Scope { row, kind: "interface", name });
702 let body = node.child_by_field_name("body").unwrap_or(node);
703 for i in 0..body.named_child_count() {
704 if let Some(c) = body.named_child(i) {
705 self.visit_node(c);
706 }
707 }
708 self.stack.pop();
709 }
710
711 fn extract_enum(&mut self, node: Node<'t>) {
712 stack_guard!();

Callers 2

visit_nodeMethod · 0.45

Calls 5

preceding_docstringFunction · 0.85
extract_nameMethod · 0.45
create_nodeMethod · 0.45
extract_inheritanceMethod · 0.45
visit_nodeMethod · 0.45

Tested by

no test coverage detected