LiteralASTNode is a type of AST node that represents a literal value.

interface LiteralASTNode<T> {
    children: never[];
    location?: FileRange;
    quoted: boolean | "html";
    type: "Literal";
    value: T;
}

Type Parameters

  • T extends string = string

Hierarchy (view full)

Properties

children: never[]
location?: FileRange

The start and end location of the AST object.

quoted: boolean | "html"

A flag indicating whether the literal was quoted or not. If 'html' then the literal is an html like value.

type: "Literal"

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

value: T

The value of the literal.

Generated using TypeDoc