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

Method is_static

codegraph-kernel/src/tsjs/mod.rs:825–831  ·  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

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