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

ObjectPattern

Extends:

NodePattern → ObjectPattern

{ a, b: c } = Object deconstructing pattern.

Constructor Summary

Public Constructor
public

constructor(properties: *)

Member Summary

Public Members
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(properties: *) source

Params:

NameTypeAttributeDescription
properties *

Public Members

public properties: Array<AssignmentProperty> source