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

Method extract_interface

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

Source from the content-addressed store, hash-verified

755 }
756
757 fn extract_interface(&mut self, node: Node<'t>) {
758 stack_guard!();
759 let name = self.extract_name(node);
760 let extra = Extra {
761 docstring: preceding_docstring(node, self.src),
762 ..Extra::default() // NO visibility — extractInterface never asks
763 };
764 let Some(row) = self.create_node("interface", &name, node, extra) else { return };
765 self.extract_inheritance(node, row);
766 self.stack.push(Scope { row, kind: "interface", name });
767 let body = node.child_by_field_name("body").unwrap_or(node);
768 for i in 0..body.named_child_count() {
769 if let Some(c) = body.named_child(i) {
770 self.visit_node(c);
771 }
772 }
773 self.stack.pop();
774 }
775
776 fn extract_enum(&mut self, node: Node<'t>) {
777 stack_guard!();

Callers 2

visit_nodeMethod · 0.45

Calls 6

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

Tested by

no test coverage detected