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

Method extract_interface

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

Source from the content-addressed store, hash-verified

1098 }
1099
1100 fn extract_interface(&mut self, node: Node<'t>) {
1101 stack_guard!();
1102 let name = self.extract_name(node);
1103 let extra = Extra {
1104 docstring: preceding_docstring(node, self.src),
1105 ..Extra::default() // NO visibility
1106 };
1107 let Some(row) = self.create_node("interface", &name, node, extra) else { return };
1108 self.extract_inheritance(node, row);
1109 self.stack.push(Scope { row, kind: "interface", name });
1110 let body = self.resolve_body(node).unwrap_or(node);
1111 for i in 0..body.named_child_count() {
1112 if let Some(c) = body.named_child(i) {
1113 self.visit_node(c);
1114 }
1115 }
1116 self.stack.pop();
1117 }
1118
1119 fn extract_enum(&mut self, node: Node<'t>) {
1120 stack_guard!();

Callers 2

visit_nodeMethod · 0.45

Calls 7

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

Tested by

no test coverage detected