Class OmlScopeProvider

Extension of the default Langium ScopeProvider implementation to support visibility of all elements defined in a file at the global scope.

Hierarchy

  • DefaultScopeProvider
    • OmlScopeProvider

Constructors

  • Parameters

    • services: LangiumServices

    Returns OmlScopeProvider

Properties

descriptions: AstNodeDescriptionProvider
indexManager: IndexManager
nameProvider: NameProvider
reflection: AstReflection

Methods

  • Create a scope for the given collection of AST node descriptions.

    Parameters

    • elements: Iterable<AstNodeDescription>
    • Optional outerScope: Scope
    • Optional options: ScopeOptions

    Returns Scope

  • Create a scope for the given collection of AST nodes, which need to be transformed into respective descriptions first. This is done using the NameProvider and AstNodeDescriptionProvider services.

    Parameters

    • elements: Iterable<AstNode>
    • Optional outerScope: Scope
    • Optional options: ScopeOptions

    Returns Scope

  • Create a global scope filtered for the given reference type.

    Parameters

    • referenceType: string
    • _context: ReferenceInfo

    Returns Scope

Generated using TypeDoc