Home Reference Source Repository
import {VariableDeclaration} from 'esast/src/ast.js'
public class | source

VariableDeclaration

Extends:

NodeDeclaration → VariableDeclaration

Declares and optionally initializes many variables. Must be at least one declaration.

Constructor Summary

Public Constructor
public

constructor(kind: *, declarations: *)

Member Summary

Public Members
public
public

Inherited Summary

From class Node
public get

type: *

For compatibility with other AST representations, all Node instances have a 'type' property that is the name of that type.
public

toJSON(): *

Convert to JSON.
public

toString(): *

Public Constructors

public constructor(kind: *, declarations: *) source

Params:

NameTypeAttributeDescription
kind *
declarations *

Public Members

public declarations: Array<VariableDeclarator> source