SwitchStatement
switch (discriminant) { cases }
Only the last entry of cases
is allowed to be default
.
Constructor Summary
Public Constructor | ||
public |
constructor(discriminant: *, cases: *) |
Member Summary
Public Members | ||
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(discriminant: *, cases: *) source
Params:
Name | Type | Attribute | Description |
discriminant | * | ||
cases | * |