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:
Name | Type | Attribute | Description |
key | * | ||
value | * |