(&self, node: Node)
| 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 { |
no test coverage detected