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

Method is_static

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

TS has an isStatic hook; JS does not (None = field absent).

(&self, node: Node)

Source from the content-addressed store, hash-verified

820
821 /// TS has an isStatic hook; JS does not (None = field absent).
822 fn is_static(&self, node: Node) -> Option<bool> {
823 if self.variant.is_ts() {
824 Some(self.has_keyword_child(node, "static"))
825 } else {
826 None
827 }
828 }
829
830 fn is_const_decl(&self, node: Node) -> bool {
831 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 2

is_tsMethod · 0.80
has_keyword_childMethod · 0.80

Tested by

no test coverage detected