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

Method extract_interface

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

Source from the content-addressed store, hash-verified

960 }
961
962 fn extract_interface(&mut self, node: Node<'t>) {
963 stack_guard!();
964 let name = self.extract_name(node);
965 let extra = Extra {
966 docstring: preceding_docstring(node, self.src),
967 ..Extra::default() // NO visibility, NO decorates
968 };
969 let Some(row) = self.create_node("interface", &name, node, extra) else { return };
970 self.extract_inheritance(node, row);
971 self.stack.push(Scope { row, kind: "interface", name });
972 let body = node.child_by_field_name("body").unwrap_or(node);
973 for c in body.named_children(&mut body.walk()) {
974 self.visit_node(c);
975 }
976 self.stack.pop();
977 }
978
979 /// extractTypeAlias (:2890) — plain type_alias node + value-subtree type
980 /// refs (`typealias Handler = (Data) -> Void` → refs Data + Void…Void is

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
walkMethod · 0.45
visit_nodeMethod · 0.45

Tested by

no test coverage detected