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>)
| 140 | /// `tester //` + newline + `.state(…)` puts the comment, not `tester`, right |
| 141 | /// before the `.state` selector. |
| 142 | fn prev_named<'t>(node: Node<'t>) -> Option<Node<'t>> { |
| 143 | let mut prev = node.prev_named_sibling(); |
| 144 | while let Some(p) = prev.filter(|p| is_comment(*p)) { |
| 145 | prev = p.prev_named_sibling(); |
| 146 | } |
| 147 | prev |
| 148 | } |
| 149 | |
| 150 | /// dartNextNamed (dart.ts) — the named sibling after `node`, past comments. |
| 151 | fn next_named<'t>(node: Node<'t>) -> Option<Node<'t>> { |
no test coverage detected