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

Method is_static

codegraph-kernel/src/java.rs:424–433  ·  view source on GitHub ↗
(&self, node: Node)

Source from the content-addressed store, hash-verified

422 }
423
424 fn is_static(&self, node: Node) -> bool {
425 for i in 0..node.child_count() {
426 if let Some(child) = node.child(i) {
427 if child.kind() == "modifiers" && self.text(child).contains("static") {
428 return true;
429 }
430 }
431 }
432 false
433 }
434
435 /// javaExtractor.isConst: `static final` field → constant.
436 fn is_const(&self, node: Node) -> bool {

Callers 3

extract_methodMethod · 0.45
extract_functionMethod · 0.45
extract_fieldMethod · 0.45

Calls 1

textMethod · 0.45

Tested by

no test coverage detected