rune-langium / codegen/src
codegen/src
Classes
| Class | Description |
|---|---|
| GeneratorError | Thrown when strict mode is enabled and any error diagnostic is produced. FR-022. |
Interfaces
| Interface | Description |
|---|---|
| GeneratedFunc | Metadata for a single emitted Rune func (TypeScript target only). FR-028–FR-032 (function declarations, US6). |
| GeneratorDiagnostic | A generator-time diagnostic (not a Langium validation diagnostic). FR-025 (diagnostics). |
| GeneratorOptions | Options for a generation run. FR-001 (target selection), FR-022 (strict mode). |
| GeneratorOutput | One emitted output file from the generator. FR-001 (output structure). |
| SourceMapEntry | One source-map entry: maps an output line back to a source location. FR-024 (source maps). |
Type Aliases
| Type Alias | Description |
|---|---|
| Target | The three supported generator targets. FR-019 (json-schema), FR-020 (typescript), FR-002–FR-014 (zod). |
Functions
| Function | Description |
|---|---|
| generate | Generate code from one or more parsed Langium documents. |