Skip to content

rune-langium / codegen/src/export / generateSelected

Function: generateSelected() ​

ts
function generateSelected(
   documents, 
   selection, 
   options?
): Promise<SelectedGeneration>;

Defined in: packages/codegen/src/export.ts:162

Generate a declaration-scoped export and return the exact selection receipt used by generation. This lets callers present or archive the dependency closure without resolving the source workspace a second time.

Parameters ​

ParameterType
documentsLangiumDocument<AstNode> | LangiumDocument<AstNode>[]
selectionExportSelection
options?Omit<GeneratorOptions, "selection">

Returns ​

Promise<SelectedGeneration>

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