(&self, node: Node)
| 422 | } |
| 423 | |
| 424 | fn is_static(&self, node: Node) -> bool { |
| 425 | for i in 0..node.child_count() { |
| 426 | if let Some(child) = node.child(i) { |
| 427 | if child.kind() == "modifiers" && self.text(child).contains("static") { |
| 428 | return true; |
| 429 | } |
| 430 | } |
| 431 | } |
| 432 | false |
| 433 | } |
| 434 | |
| 435 | /// javaExtractor.isConst: `static final` field → constant. |
| 436 | fn is_const(&self, node: Node) -> bool { |
no test coverage detected