(&self, node: Node)
| 410 | } |
| 411 | |
| 412 | fn visibility_of(&self, node: Node) -> Option<u8> { |
| 413 | for i in 0..node.child_count() { |
| 414 | let child = node.child(i)?; |
| 415 | if child.kind() == "modifiers" { |
| 416 | let text = self.text(child); |
| 417 | if text.contains("public") { |
| 418 | return Some(1); |
| 419 | } |
| 420 | if text.contains("private") { |
| 421 | return Some(2); |
| 422 | } |
| 423 | if text.contains("protected") { |
| 424 | return Some(3); |
| 425 | } |
| 426 | } |
| 427 | } |
| 428 | None |
| 429 | } |
| 430 | |
| 431 | fn is_static(&self, node: Node) -> bool { |
| 432 | // An interface constant is implicitly `public static final`. |
no test coverage detected