Script

NodeAstNodeloreline.Script (Class)

Represents the root node of a Loreline script AST.

Instance Members

Array of top-level declarations in the script.


toJson(): Dynamic

Converts the script to a JSON representation.

Returns Description
Dynamic Dynamic object containing all script data

type(): String
Returns
String

eachExcludingImported(handleNode: Function): Void
Name Type
handleNode Function

each(handleNode: Function): Void
Name Type
handleNode Function

Returns
loreline._Script.ScriptBodyIterator

new(id: NodeId, pos: Position, body: Array<AstNode>): Void

Creates a new script root node.

Name Type Description
id NodeId The node id of this script
pos Position Position in source where this script starts
body Array<AstNode> Array of top-level declarations

Metadata

Name Parameters
:expose -