javaExtractor.isConst: `static final` field → constant.
(&self, node: Node)
| 434 | |
| 435 | /// javaExtractor.isConst: `static final` field → constant. |
| 436 | fn is_const(&self, node: Node) -> bool { |
| 437 | for i in 0..node.child_count() { |
| 438 | if let Some(child) = node.child(i) { |
| 439 | if child.kind() == "modifiers" { |
| 440 | let text = self.text(child); |
| 441 | return word_re("static").is_match(text) && word_re("final").is_match(text); |
| 442 | } |
| 443 | } |
| 444 | } |
| 445 | false |
| 446 | } |
| 447 | |
| 448 | fn signature_of(&self, node: Node) -> Option<String> { |
| 449 | let params = node.child_by_field_name("parameters")?; |
no test coverage detected