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

UpdateExpression

Extends:

NodeExpression → UpdateExpression

++argument or argument++ Increments or decrements a number.

Constructor Summary

Public Constructor
public

constructor(operator: *, argument: *, prefix: *)

Member Summary

Public Members
public
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(operator: *, argument: *, prefix: *) source

Params:

NameTypeAttributeDescription
operator *
argument *
prefix *

Public Members

public argument: Expression source

public operator: UpdateOperator source

public prefix: boolean source