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

Method extract_interface

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

Source from the content-addressed store, hash-verified

1141 }
1142
1143 fn extract_interface(&mut self, node: Node<'t>) {
1144 stack_guard!();
1145 let name = self.extract_name(node);
1146 let extra = Extra {
1147 docstring: preceding_docstring(node, self.src),
1148 ..Extra::default() // NO visibility
1149 };
1150 let Some(row) = self.create_node("interface", &name, node, extra) else { return };
1151 self.extract_inheritance(node, row);
1152 self.stack.push(Scope { row, kind: "interface", name });
1153 let body = self.resolve_body(node).unwrap_or(node);
1154 for c in body.named_children(&mut body.walk()) {
1155 self.visit_node(c);
1156 }
1157 self.stack.pop();
1158 }
1159
1160 fn extract_enum(&mut self, node: Node<'t>) {
1161 stack_guard!();

Callers 2

visit_nodeMethod · 0.45

Calls 8

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

Tested by

no test coverage detected