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

Method is_static

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

1084 /// A member's own `static` keyword: the isStatic hook TS and JS share
1085 /// (hasStaticModifier, #2761).
1086 fn is_static(&self, node: Node) -> Option<bool> {
1087 Some(self.has_keyword_child(node, "static"))
1088 }
1089
1090 fn is_const_decl(&self, node: Node) -> bool {
1091 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