dartPrevNamed (dart.ts) — the named sibling before `node`, past comments: `tester //` + newline + `.state(…)` puts the comment, not `tester`, right before the `.state` selector.
(node: Node<'t>)
| 187 | /// `tester //` + newline + `.state(…)` puts the comment, not `tester`, right |
| 188 | /// before the `.state` selector. |
| 189 | fn prev_named<'t>(node: Node<'t>) -> Option<Node<'t>> { |
| 190 | let mut prev = node.prev_named_sibling(); |
| 191 | while let Some(p) = prev.filter(|p| is_comment(*p)) { |
| 192 | prev = p.prev_named_sibling(); |
| 193 | } |
| 194 | prev |
| 195 | } |
| 196 | |
| 197 | /// dartNextNamed (dart.ts) — the named sibling after `node`, past comments. |
| 198 | fn next_named<'t>(node: Node<'t>) -> Option<Node<'t>> { |
no test coverage detected