Langium - v4.4.0
    Preparing search index...

    Class CompositeCstNodeImpl

    A composite CST node contains other nodes, but no directly associated token.

    The content array must not be modified directly; use the CstNodeBuilder methods instead to ensure that the container references of the child nodes are set correctly.

    Hierarchy (View Summary)

    Implements

    Index
    container: CompositeCstNode | undefined = undefined

    The container node in the CST

    content: CstNode[] = []

    This array must not be modified directly; use the CstNodeBuilder methods instead to ensure that the container references of the child nodes are set correctly.

    grammarSource: GrammarAST.AbstractElement | undefined = undefined

    The grammar element from which this node was parsed

    • get text(): string

      The actual text covered by this node.

      The text is extracted from the document content on every access. When processing many nodes of the same tree, prefer resolving root.fullText once and slicing it with the nodes' offset and end values.

      Returns string