Node

loreline.Node (Class) → AstNode, Comment

Base class for all AST nodes. Contains position information and basic JSON conversion.

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.


type(): String
Returns
String

toJson(): Dynamic

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

new(id: NodeId, pos: Position): Void

Creates a new AST node.

Name Type Description
id NodeId
pos Position Position in source where this node appears

Metadata

Name Parameters
:expose -