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