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

Method extract_interface

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

Source from the content-addressed store, hash-verified

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