pub struct ParseResult {
pub root: Value,
pub mode: Mode,
pub locked: bool,
pub tool: bool,
pub schema: bool,
pub llm: bool,
pub metadata: HashMap<String, HashMap<String, Meta>>,
pub includes: Vec<IncludeDirective>,
pub uses: Vec<UseDirective>,
pub truncated: bool,
}Expand description
Full parse result with metadata.
Fields§
§root: Value§mode: Mode§locked: bool§tool: bool!tool directive — file describes an LLM tool call or schema.
schema: bool!schema directive (combined with !tool) — file describes tool definitions.
llm: bool!llm directive — file is an LLM-oriented envelope (semantic hints for tools; data tree unchanged).
metadata: HashMap<String, HashMap<String, Meta>>Metadata for each nesting level, keyed by dot-path prefix. “” = root level, “server” = server sub-object, etc.
includes: Vec<IncludeDirective>!include directives parsed from the file.
uses: Vec<UseDirective>!use directives parsed from the file (package imports).
truncated: boolOne of the parser’s resource limits dropped input: the total byte cap, the indexed-line cap, or a multiline block body cap.
Callers that treat “parsed without complaint” as “nothing was lost”
need this — SYNXL §11.2 turns it into a RecordTruncated diagnostic
rather than discarding the overflow in silence.