MCPcopy Index your code
hub / github.com/thesysdev/openui / emptyResult

Function emptyResult

packages/lang-core/src/parser/parser.ts:23–37  ·  view source on GitHub ↗
(incomplete = true)

Source from the content-addressed store, hash-verified

21// ─────────────────────────────────────────────────────────────────────────────
22
23function 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

Callers 3

buildResultFunction · 0.85
parseFunction · 0.85
currentResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected