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

Method is_exported

codegraph-kernel/src/tsjs/mod.rs:795–804  ·  view source on GitHub ↗

isExported: walk the parent chain for an export_statement.

(&self, node: Node)

Source from the content-addressed store, hash-verified

793
794 /// isExported: walk the parent chain for an export_statement.
795 fn is_exported(&self, node: Node) -> bool {
796 let mut cur = node.parent();
797 while let Some(p) = cur {
798 if p.kind() == "export_statement" {
799 return true;
800 }
801 cur = p.parent();
802 }
803 false
804 }
805
806 fn has_keyword_child(&self, node: Node, kw: &str) -> bool {
807 for i in 0..node.child_count() {

Callers 6

extract_functionMethod · 0.45
extract_classMethod · 0.45
extract_interfaceMethod · 0.45
extract_enumMethod · 0.45
extract_variableMethod · 0.45
extract_type_aliasMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected