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

Method is_static

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

Source from the content-addressed store, hash-verified

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