Langium - v4.4.0
    Preparing search index...

    Class DefaultDocumentBuilder

    Shared-service for building and updating LangiumDocuments.

    Implements

    Index
    buildPhaseListeners: MultiMap<DocumentState, DocumentBuildListener> = ...
    buildState: Map<string, DocumentBuildState> = ...
    currentState: DocumentState = DocumentState.Changed
    documentBuildWaiters: Map<string, Deferred<void>> = ...
    documentPhaseListeners: MultiMap<DocumentState, DocumentPhaseListener> = ...
    fileSystemProvider: FileSystemProvider
    indexManager: IndexManager
    langiumDocumentFactory: LangiumDocumentFactory
    langiumDocuments: LangiumDocuments
    serviceRegistry: ServiceRegistry
    textDocuments: TextDocumentProvider | undefined
    updateBuildOptions: BuildOptions = ...

    The options used for rebuilding documents after an update.

    updateListeners: DocumentUpdateListener[] = []
    workspaceManager: () => WorkspaceManager
    • Determine whether the given document should be linked during a build. The default implementation checks the eagerLinking property of the build options. If it's set to true or undefined, the document is included in the linking phase. This also affects the references indexing phase, which depends on eager linking.

      Parameters

      Returns boolean

    • Determine whether the given document should be validated during a build. The default implementation checks the validation property of the build options. If it's set to true or a ValidationOptions object, the document is included in the validation phase.

      Parameters

      Returns boolean