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
| Property | Type | Description |
|---|---|---|
constants | ConstantDef[] | Constant definitions, sorted by name |
docs | TopLevelDoc[] | Standalone documentation blocks in source traversal order |
entryPoint | string | Absolute path to the main file that triggered the compilation |
enums | EnumDef[] | Enum definitions, sorted by name |
types | TypeDef[] | Type definitions, sorted by name |