Skip to content

rune-langium / codegen/src / CodeGenerationResult

Interface: CodeGenerationResult

Defined in: packages/codegen/src/types.ts:67

Result of a code generation run.

Remarks

A non-empty errors array does not always mean zero output files — generators may emit partial output alongside errors. Always check errors.length explicitly rather than relying on files.length === 0 to detect failure.

Pitfalls

  • Mixed-severity output: errors and warnings may both be non-empty while files is also non-empty. Do not treat the presence of output files as indicating a clean generation run.

Properties

PropertyTypeDescriptionDefined in
errorsGenerationError[]Errors encountered during generation (may coexist with partial output).packages/codegen/src/types.ts:73
filesGeneratedFile[]Output code filespackages/codegen/src/types.ts:71
languagestringTarget language usedpackages/codegen/src/types.ts:69
warningsstring[]Non-fatal warningspackages/codegen/src/types.ts:75

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.