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

Method extract_interface

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

Source from the content-addressed store, hash-verified

679 }
680
681 fn extract_interface(&mut self, node: Node<'t>) {
682 stack_guard!();
683 let name = self.extract_name(node);
684 let extra = Extra {
685 docstring: preceding_docstring(node, self.src),
686 ..Extra::default()
687 };
688 let Some(row) = self.create_node("interface", &name, node, extra) else { return };
689 self.extract_inheritance(node, row);
690 self.stack.push(Scope { row, kind: "interface", name });
691 let body = node.child_by_field_name("body").unwrap_or(node);
692 for i in 0..body.named_child_count() {
693 if let Some(c) = body.named_child(i) {
694 self.visit_node(c);
695 }
696 }
697 self.stack.pop();
698 }
699
700 fn extract_enum(&mut self, node: Node<'t>) {
701 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