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

AssignmentProperty

Extends:

Node → AssignmentProperty

Just like a Property, but kind is always init. Although technically its own type, _.type will be 'Property'.

Constructor Summary

Public Constructor
public

constructor(key: *, value: *)

Member Summary

Public Members
public get
public
public get
public get
public get
public get
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(key: *, value: *) source

Params:

NameTypeAttributeDescription
key *
value *

Public Members

public get computed: boolean source

public key: Identifier source

public get kind: string source

public get method: boolean source

public get shorthand: boolean source

public get type: string source

Override:

Node#type

public value: Pattern source