Skip to content

PromptScript API


Variable: VIRTUAL_LOC

const VIRTUAL_LOC: SourceLocation

Defined in: resolver/src/ast-factory.ts:11

Virtual source location used in synthesized AST nodes.

Points to a synthetic file name, indicating the node was created programmatically rather than parsed from real source. Prefer passing a real file to the factory functions so findings on synthesized nodes stay traceable; fall back to this only when no source file exists.