Node
Base class for all AST nodes. Contains position information and basic JSON conversion.
Instance Members
id: NodeIdA unique identifier for this node within the AST, used to distinguish it from other nodes in the script.
pos: PositionSource code position where this node appears.
type(): String| Returns |
|---|
| String |
toJson(): DynamicConverts 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 |
Metadata
| Name | Parameters |
|---|---|
:hxGen |
- |