NStateDecl
Represents a state declaration node in the AST.
States can be either temporary (new state) or permanent.
Instance Members
Whether this state is temporary (new state).
Fields defined for this state.
Block style of this state
each(handleNode: Function): Void
| Name |
Type |
handleNode |
Function |
Converts the state declaration to a JSON representation.
| Returns |
Description |
| Dynamic |
Dynamic object containing state data |
Creates a new state declaration node.
| Name |
Type |
Default |
Description |
id |
NodeId |
|
|
pos |
Position |
|
Position in source where this state appears |
temporary |
Bool |
|
Whether this is a temporary state |
fields |
Array<NObjectField> |
|
Array of property definitions |
leadingComments |
Array<Comment> |
(optional) |
Optional comments before the state |
trailingComments |
Array<Comment> |
(optional) |
Optional comments after the state |