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

Method is_static

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

A member's own `static` keyword: the isStatic hook TS and JS share (hasStaticModifier, #2761).

(&self, node: Node)

Source from the content-addressed store, hash-verified

1100 /// A member's own `static` keyword: the isStatic hook TS and JS share
1101 /// (hasStaticModifier, #2761).
1102 fn is_static(&self, node: Node) -> Option<bool> {
1103 Some(self.has_keyword_child(node, "static"))
1104 }
1105
1106 fn is_const_decl(&self, node: Node) -> bool {
1107 node.kind() == "lexical_declaration" && self.has_keyword_child(node, "const")

Callers 3

extract_functionMethod · 0.45
extract_methodMethod · 0.45
extract_propertyMethod · 0.45

Calls 1

has_keyword_childMethod · 0.80

Tested by

no test coverage detected