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

Method is_static

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

Source from the content-addressed store, hash-verified

427 }
428
429 fn is_static(&self, node: Node) -> bool {
430 // An interface constant is implicitly `public static final`.
431 if node.kind() == "constant_declaration" {
432 return true;
433 }
434 for i in 0..node.child_count() {
435 if let Some(child) = node.child(i) {
436 if child.kind() == "modifiers" && self.text(child).contains("static") {
437 return true;
438 }
439 }
440 }
441 false
442 }
443
444 /// javaExtractor.isConst: `static final` field → constant.
445 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.65

Tested by

no test coverage detected