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

Method extract_interface

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

Source from the content-addressed store, hash-verified

659 }
660
661 fn extract_interface(&mut self, node: Node<'t>) {
662 stack_guard!();
663 let name = self.extract_name(node);
664 let extra = Extra {
665 docstring: preceding_docstring(node, self.src),
666 ..Extra::default()
667 };
668 let Some(row) = self.create_node("interface", &name, node, extra) else { return };
669 self.extract_inheritance(node, row);
670 self.stack.push(Scope { row, kind: "interface", name });
671 let body = node.child_by_field_name("body").unwrap_or(node);
672 for i in 0..body.named_child_count() {
673 if let Some(c) = body.named_child(i) {
674 self.visit_node(c);
675 }
676 }
677 self.stack.pop();
678 }
679
680 fn extract_enum(&mut self, node: Node<'t>) {
681 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