Interface GeneratorTestOptions<SERVICES, SHARED_SERVICES, MODEL>
interface GeneratorTestOptions<SERVICES, SHARED_SERVICES, MODEL extends AstNode> { buildDocuments?: ( service: DslServices<SERVICES, SHARED_SERVICES>, workspaceFolder: WorkspaceFolder, ) => Promise<LangiumDocument<AstNode>[]>; createServices: ( context: DefaultSharedModuleContext, ) => DslServices<SERVICES, SHARED_SERVICES>; generateForModel?: ( services: ExtractServiceType<SERVICES>, document: MODEL, generatorOutput: GeneratorManager, ) => Promise<void>; generateForWorkspace?: ( service: DslServices<SERVICES, SHARED_SERVICES>, documents: LangiumDocument<AstNode>[], workspaceFolder: WorkspaceFolder, targets?: GeneratorTarget[], ) => Promise<GeneratedContentManager>; generateMode?: GeneratorMode; initWorkspace?: ( service: DslServices<SERVICES, SHARED_SERVICES>, workspaceDir: string, ) => Promise<WorkspaceFolder>; validateDocuments?: ( service: DslServices<SERVICES, SHARED_SERVICES>, documents: LangiumDocument<AstNode>[], ) => Promise<LangiumDocument<AstNode>[]>;} Type Parameters
- SERVICES
- SHARED_SERVICES
- MODEL extends AstNode
Properties
Optional
buildDocuments
buildDocuments?: ( service: DslServices<SERVICES, SHARED_SERVICES>, workspaceFolder: WorkspaceFolder,) => Promise<LangiumDocument<AstNode>[]> Optional
generateForWorkspace
Optional
initWorkspace
initWorkspace?: ( service: DslServices<SERVICES, SHARED_SERVICES>, workspaceDir: string,) => Promise<WorkspaceFolder> Optional
validateDocuments
validateDocuments?: ( service: DslServices<SERVICES, SHARED_SERVICES>, documents: LangiumDocument<AstNode>[],) => Promise<LangiumDocument<AstNode>[]>