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

VariableDeclarator

Extends:

Node → VariableDeclarator

Single declaration within a VariableDeclaration.

Constructor Summary

Public Constructor
public

constructor(id: *, init: *)

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(id: *, init: *) source

Params:

NameTypeAttributeDescription
id *
init *

Public Members

public id: Pattern source

public init: Expression source