Skip to content

rune-langium / codegen/src/export / isWholeModelEmitter

Function: isWholeModelEmitter() ​

ts
function isWholeModelEmitter(c): c is WholeModelEmitterConstructor;

Defined in: packages/codegen/src/emit/namespace-emitter.ts:114

Runtime discriminator between the two emitter contracts. Distinguishes by prototype shape: NamespaceEmitter exposes a finalize() method (plus the per-element emitData / emitEnumeration / etc. hooks); WholeModelEmitter exposes only a single async emit() method.

Used by generator.ts:runGenerate (Task 0.4) to dispatch each target through the appropriate pipeline.

Parameters ​

ParameterType
c| WholeModelEmitterConstructor | NamespaceEmitterConstructor

Returns ​

c is WholeModelEmitterConstructor

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