Node
Base class for all AST nodes. Contains position information and basic JSON conversion.
Static Members
Reconstructs an AST Node from its JSON representation.
| Name |
Type |
Description |
json |
Dynamic |
The JSON object (as returned by node.toJson()) |
| Returns |
Description |
| Node |
The reconstructed Node |
Instance Members
A unique identifier for this node within the AST, used to distinguish
it from other nodes in the script.
Source code position where this node appears.
Converts the node to a JSON representation.
| Returns |
Description |
| Dynamic |
Dynamic object containing node type and position |
each(handleNode: Function): Void
| Name |
Type |
handleNode |
Function |
Creates a new AST node.
| Name |
Type |
Description |
id |
NodeId |
|
pos |
Position |
Position in source where this node appears |
| Name |
Parameters |
:expose |
- |