(incomplete = true)
| 21 | // ───────────────────────────────────────────────────────────────────────────── |
| 22 | |
| 23 | function emptyResult(incomplete = true): ParseResult { |
| 24 | return { |
| 25 | root: null, |
| 26 | meta: { |
| 27 | incomplete, |
| 28 | unresolved: [], |
| 29 | orphaned: [], |
| 30 | statementCount: 0, |
| 31 | errors: [], |
| 32 | }, |
| 33 | stateDeclarations: {}, |
| 34 | queryStatements: [], |
| 35 | mutationStatements: [], |
| 36 | }; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Walk an AST node to collect all StateRef ($variable) names referenced |
no outgoing calls
no test coverage detected