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