Class AssignmentNode

Represents a value being assigned to a name. Used when declaring and calling modules or functions. It is also used in control flow structures such as for loops and let expressions.

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

docComment: null | DocComment = null

The documentation and annotations connected with this variable.

name: string

The name of the value being assigned. The name field may be empty when it represents a positional argument in a call.

tokens: {
    equals: null | Token;
    name: null | Token;
    semicolon: null | Token;
    trailingCommas: null | Token[];
}
value: null | Expression

THe value of the name being assigned. It can be null when the AssignmentNode is used as a function parameter without a default value.

Accessors

Methods