(node: SyntaxNode)
| 434 | } |
| 435 | |
| 436 | const getChildren = (node: SyntaxNode): SyntaxNode[] => { |
| 437 | const children: SyntaxNode[] = []; |
| 438 | let child = node.firstChild; |
| 439 | while (child) { |
| 440 | children.push(child); |
| 441 | child = child.nextSibling; |
| 442 | } |
| 443 | return children; |
| 444 | } |