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

Method has_keyword_child

codegraph-kernel/src/tsjs/mod.rs:1095–1104  ·  view source on GitHub ↗
(&self, node: Node, kw: &str)

Source from the content-addressed store, hash-verified

1093 }
1094
1095 fn has_keyword_child(&self, node: Node, kw: &str) -> bool {
1096 for i in 0..node.child_count() {
1097 if let Some(c) = node.child(i) {
1098 if c.kind() == kw {
1099 return true;
1100 }
1101 }
1102 }
1103 false
1104 }
1105
1106 fn is_async(&self, node: Node) -> bool {
1107 self.has_keyword_child(node, "async")

Callers 3

is_asyncMethod · 0.80
is_staticMethod · 0.80
is_const_declMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected