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

Method is_exported

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

isExported: walk the parent chain for an export_statement.

(&self, node: Node)

Source from the content-addressed store, hash-verified

796
797 /// isExported: walk the parent chain for an export_statement.
798 fn is_exported(&self, node: Node) -> bool {
799 let mut cur = node.parent();
800 while let Some(p) = cur {
801 if p.kind() == "export_statement" {
802 return true;
803 }
804 cur = p.parent();
805 }
806 false
807 }
808
809 fn has_keyword_child(&self, node: Node, kw: &str) -> bool {
810 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