Skip to content

PromptScript API


Interface: ResolvedAST

Defined in: resolver/src/resolver.ts:103

Result of resolving a PromptScript file.

Properties

ast

ast: Program | null

Defined in: resolver/src/resolver.ts:105

The resolved AST, or null if resolution failed


canonicalAst?

optional canonicalAst?: CanonicalProgram | null

Defined in: resolver/src/resolver.ts:107

Immutable canonical projection of the resolved AST


errors

errors: ResolveError[]

Defined in: resolver/src/resolver.ts:111

List of errors encountered during resolution


sources

sources: string[]

Defined in: resolver/src/resolver.ts:109

List of all source files involved in resolution