javaExtractor.isConst: `static final` field → constant.
(&self, node: Node)
| 445 | |
| 446 | /// javaExtractor.isConst: `static final` field → constant. |
| 447 | fn is_const(&self, node: Node) -> bool { |
| 448 | if node.kind() == "constant_declaration" { |
| 449 | return true; |
| 450 | } |
| 451 | for i in 0..node.child_count() { |
| 452 | if let Some(child) = node.child(i) { |
| 453 | if child.kind() == "modifiers" { |
| 454 | let text = self.text(child); |
| 455 | return word_re("static").is_match(text) && word_re("final").is_match(text); |
| 456 | } |
| 457 | } |
| 458 | } |
| 459 | false |
| 460 | } |
| 461 | |
| 462 | fn signature_of(&self, node: Node) -> Option<String> { |
| 463 | let params = node.child_by_field_name("parameters")?; |
no test coverage detected