Property
Extends:
Node → Property
Part of an ObjectExpression. If kind is 'get' or 'set', then value should be a FunctionExpression.
Constructor Summary
Public Constructor | ||
public |
constructor(kind: *, key: *, value: *, method: *, shorthand: *, computed: *) |
Member Summary
Public Members | ||
public |
|
|
public |
key: Literal | Identifier |
|
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(kind: *, key: *, value: *, method: *, shorthand: *, computed: *) source
Params:
Name | Type | Attribute | Description |
kind | * | ||
key | * | ||
value | * | ||
method | * | ||
shorthand | * | ||
computed | * |