Interface RootCstNode

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

interface RootCstNode {
    astNode: AstNode;
    children: CstNode[];
    container?: CompositeCstNode;
    content: CstNode[];
    element: AstNode;
    end: number;
    feature: GrammarAST.AbstractElement;
    fullText: string;
    grammarSource: GrammarAST.AbstractElement;
    hidden: boolean;
    length: number;
    offset: number;
    parent?: CompositeCstNode;
    range: Range;
    root: RootCstNode;
    text: string;
}

Hierarchy (view full)

Implemented by

Properties

astNode: AstNode

The AST node created from this CST node

children: CstNode[]

use content instead.

container?: CompositeCstNode

The container node in the CST

content: CstNode[]
element: AstNode

use astNode instead.

end: number

use grammarSource instead.

fullText: string

The grammar element from which this node was parsed

hidden: boolean

Whether the token is hidden, i.e. not explicitly part of the containing grammar rule

length: number
offset: number

use container instead.

range: Range

The root CST node

text: string

The actual text