NodeASTNode is a type of AST node that represents a node in a graph.

interface NodeASTNode {
    children: (CommentASTNode | AttributeASTNode<AttributeKey>)[];
    id: LiteralASTNode<string>;
    location?: FileRange;
    type: "Node";
}

Hierarchy (view full)

Properties

id: LiteralASTNode<string>

The unique identifier of the node.

location?: FileRange

The start and end location of the AST object.

type: "Node"

Every leaf interface that extends ASTBaseNode must specify a type property.

Generated using TypeDoc