(&self, rule: Rule, node: Node<'_>, detail: impl Into<String>)
| 42 | } |
| 43 | |
| 44 | fn issue(&self, rule: Rule, node: Node<'_>, detail: impl Into<String>) -> StructuralIssue { |
| 45 | StructuralIssue { |
| 46 | rule, |
| 47 | start_line: node.start_position().row as u32 + 1, |
| 48 | end_line: node.end_position().row as u32 |
| 49 | + u32::from( |
| 50 | node.end_position().column > 0 |
| 51 | || node.end_position().row == node.start_position().row, |
| 52 | ), |
| 53 | source: tokens::text(node, self.source).into(), |
| 54 | detail: detail.into(), |
| 55 | manageability: None, |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | fn code_children(node: Node<'_>) -> Vec<Node<'_>> { |
no test coverage detected