VDL Plugin SDK

IrSchema

Import from @varavel/vdl-plugin-sdk.

type IrSchema = object;

IrSchema is the generator-facing representation of a VDL program.

This model is intentionally "flat" and "resolved":

  • spreads are already expanded
  • references are already resolved
  • collections are in deterministic order

A code generator should be able to consume IrSchema directly, without needing to re-run parser or semantic-analysis logic.

Properties

PropertyTypeDescription
constantsConstantDef[]Constant definitions, sorted by name
docsTopLevelDoc[]Standalone documentation blocks in source traversal order
entryPointstringAbsolute path to the main file that triggered the compilation
enumsEnumDef[]Enum definitions, sorted by name
typesTypeDef[]Type definitions, sorted by name