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
| Parameter | Type |
|---|---|
documents | LangiumDocument<AstNode> | LangiumDocument<AstNode>[] |
selection | ExportSelection |
options? | Omit<GeneratorOptions, "selection"> |
Returns
Promise<SelectedGeneration>