For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/genui/openui/core/interfaces/ParseResult.md.
Lynx
  • English
  • Interface: ParseResult

    The output of a single parser.parse(text) call.

    During streaming, each chunk produces a new ParseResult as the accumulated text is re-parsed. The root progressively resolves from null → partial tree → complete tree.

    Properties

    meta

    meta: object

    errors

    errors: ValidationError[]

    Prop validation errors. Components with missing required props are redacted (dropped as null) and listed here.

    incomplete

    incomplete: boolean

    True if the parser detected truncated/incomplete input.

    orphaned

    orphaned: string[]

    statementCount

    statementCount: number

    unresolved

    unresolved: string[]


    mutationStatements

    mutationStatements: MutationStatementInfo[]

    Extracted Mutation() calls with their positional args as AST nodes.


    queryStatements

    queryStatements: QueryStatementInfo[]

    Extracted Query() calls with their positional args as AST nodes.


    root

    root: ElementNode | null

    The root ElementNode (typically a Root component), or null if parsing hasn't produced one yet.


    stateDeclarations

    stateDeclarations: Record<string, unknown>

    $variable declarations — maps "$varName" to its materialized default value.

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.