(node: AstNode)
| 802 | * Returns the root node of the given AST node by following the `$container` references. |
| 803 | */ |
| 804 | export function findRootNode(node: AstNode): AstNode { |
| 805 | while (node.$container) { |
| 806 | node = node.$container; |
| 807 | } |
| 808 | return node; |
| 809 | } |