CommentASTNode is a type of AST node that represents a comment.

interface CommentASTNode {
    children: never[];
    kind: CommentKind;
    location?: FileRange;
    type: "Comment";
    value: string;
}

Hierarchy (view full)

Properties

children: never[]

A string that specifies the kind of comment.

location?: FileRange

The start and end location of the AST object.

type: "Comment"

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

value: string

A string that contains the actual content of the comment.

Generated using TypeDoc