@r47onfire/nebula - v0.0.0
    Preparing search index...

    Class CSTNode<T>

    A node of the concrete syntax tree produced by the parser.

    Invariant: recursively concatenating the text of all leaves -- including ignored nodes -- reproduces the original source exactly. Ignored nodes are only removed in a later pass, when the CST is lowered to an AST.

    Type Parameters

    • T
    Index
    • Type Parameters

      • T

      Parameters

      • span: Span

        The location identifying where this node came from.

      • type: T | null

        Functional type (usually rule name) for AST generation or direct execution.

      • children: readonly CSTNode<T>[] = []

        Not present in non-leaf nodes.

      • ignored: boolean = false

        True if this node is meaningless junk that does not change the AST (commas, parens, whitespace/comments) and can be dropped in a pre-processing step.

      • tag: string | null = null

        Visual kind for syntax highlighting.

      • text: string | null = null

        Text of this node; empty if a non-leaf.

      • OptionalerrorExpected: GrammarCombinator<any, any>

        If set, it means this node is a fallback recovery node that should be translated into a lazy syntax error.

      Returns CSTNode<T>

    children: readonly CSTNode<T>[] = []

    Not present in non-leaf nodes.

    errorExpected?: GrammarCombinator<any, any>

    If set, it means this node is a fallback recovery node that should be translated into a lazy syntax error.

    ignored: boolean = false

    True if this node is meaningless junk that does not change the AST (commas, parens, whitespace/comments) and can be dropped in a pre-processing step.

    span: Span

    The location identifying where this node came from.

    tag: string | null = null

    Visual kind for syntax highlighting.

    text: string | null = null

    Text of this node; empty if a non-leaf.

    type: T | null

    Functional type (usually rule name) for AST generation or direct execution.