The sibling accessors that follow a property declaration, in source order.
(node: Node<'t>)
| 158 | |
| 159 | /// The sibling accessors that follow a property declaration, in source order. |
| 160 | fn following_accessors<'t>(node: Node<'t>) -> Vec<Node<'t>> { |
| 161 | let mut out = Vec::new(); |
| 162 | let mut n = node.next_named_sibling(); |
| 163 | while let Some(c) = n { |
| 164 | if !matches!(c.kind(), "getter" | "setter") { |
| 165 | break; |
| 166 | } |
| 167 | out.push(c); |
| 168 | n = c.next_named_sibling(); |
| 169 | } |
| 170 | out |
| 171 | } |
| 172 | |
| 173 | struct Scope { |
| 174 | row: u32, |