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