For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/genui/openui/core/interfaces/ParseResult.md.
Lynx
  • 简体中文
  • 接口: ParseResult

    单次调用 parser.parse(text) 的输出。

    流式传输过程中,每个分块都会在重新解析累积文本后产生新的 ParseResult。root 会逐步从 null 变为部分树,再变为完整的树。

    属性

    meta

    meta: object

    errors

    errors: ValidationError[]

    属性校验错误。缺少必填属性的组件会被移除(替换为 null),并列在这里。

    incomplete

    incomplete: boolean

    解析器检测到输入被截断或不完整时为 true。

    orphaned

    orphaned: string[]

    statementCount

    statementCount: number

    unresolved

    unresolved: string[]


    mutationStatements

    mutationStatements: MutationStatementInfo[]

    提取出的 Mutation() 调用,其位置参数为 AST 节点。


    queryStatements

    queryStatements: QueryStatementInfo[]

    提取出的 Query() 调用,其位置参数为 AST 节点。


    root

    root: ElementNode | null

    根 ElementNode(通常是 Root 组件);解析还没有产出时为 null。


    stateDeclarations

    stateDeclarations: Record<string, unknown>

    $variable 声明,把 "$varName" 映射到它实际生成的默认值。

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。