(node: Node)
| 1872 | } |
| 1873 | |
| 1874 | const topStatementOf = (node: Node): Node => { |
| 1875 | while (node.parent && node.parent.type !== "Program") node = node.parent |
| 1876 | return node |
| 1877 | } |
| 1878 | |
| 1879 | // whether a statement calls something impure before it reads a value there |
| 1880 | const callsBefore = (statement: Node, read: Node, code: string): boolean => { |