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

Method extract_interface

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

Source from the content-addressed store, hash-verified

750 }
751
752 fn extract_interface(&mut self, node: Node<'t>) {
753 stack_guard!();
754 let name = self.extract_name(node);
755 let extra = Extra {
756 docstring: preceding_docstring(node, self.src),
757 ..Extra::default() // NO visibility — extractInterface never asks
758 };
759 let Some(row) = self.create_node("interface", &name, node, extra) else { return };
760 self.extract_inheritance(node, row);
761 self.stack.push(Scope { row, kind: "interface", name });
762 let body = node.child_by_field_name("body").unwrap_or(node);
763 for c in body.named_children(&mut body.walk()) {
764 self.visit_node(c);
765 }
766 self.stack.pop();
767 }
768
769 fn extract_enum(&mut self, node: Node<'t>) {
770 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
walkMethod · 0.45
visit_nodeMethod · 0.45

Tested by

no test coverage detected