• Preparing search index...
  • The search index is not available
Langium - v3.5.0
  • Langium
  • langium
  • AstUtils
  • getDocument

Function getDocument

  • getDocument<T>(node): LangiumDocument<T>
  • Retrieve the document in which the given AST node is contained. A reference to the document is usually held by the root node of the AST.

    Type Parameters

    • T extends AstNode = AstNode

    Parameters

    • node: AstNode

    Returns LangiumDocument<T>

    Throws

    an error if the node is not contained in a document.

    • Defined in packages/langium/src/utils/ast-utils.ts:75

Settings

Member Visibility
Langium - v3.5.0
  • Loading...

Generated using TypeDoc