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

Method is_static

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

Source from the content-addressed store, hash-verified

426 }
427
428 fn is_static(&self, node: Node) -> bool {
429 // An interface constant is implicitly `public static final`.
430 if node.kind() == "constant_declaration" {
431 return true;
432 }
433 for child in node.children(&mut node.walk()) {
434 if child.kind() == "modifiers" && self.text(child).contains("static") {
435 return true;
436 }
437 }
438 false
439 }
440
441 /// javaExtractor.isConst: `static final` field → constant.
442 fn is_const(&self, node: Node) -> bool {

Callers 3

extract_methodMethod · 0.45
extract_functionMethod · 0.45
extract_fieldMethod · 0.45

Calls 3

childrenMethod · 0.80
textMethod · 0.65
walkMethod · 0.45

Tested by

no test coverage detected