The sibling accessors that follow a property declaration, in source order.
(node: Node<'t>)
| 217 | |
| 218 | /// The sibling accessors that follow a property declaration, in source order. |
| 219 | fn following_accessors<'t>(node: Node<'t>) -> Vec<Node<'t>> { |
| 220 | let mut out = Vec::new(); |
| 221 | let mut n = node.next_named_sibling(); |
| 222 | while let Some(c) = n { |
| 223 | if !matches!(c.kind(), "getter" | "setter") { |
| 224 | break; |
| 225 | } |
| 226 | out.push(c); |
| 227 | n = c.next_named_sibling(); |
| 228 | } |
| 229 | out |
| 230 | } |
| 231 | |
| 232 | struct Scope { |
| 233 | row: u32, |