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