NTransition

NodeAstNodeloreline.NTransition (Class)

Represents a transition to another beat (->).

Instance Members

target: String

Name of the target beat (null when the target is dynamic, see targetExpr).


targetPos: Position

Position of the target part of the transition


targetExpr: Null<NExpr>

Dynamic target expression, from the -> beat(expr) form. When set, target is null and the expression is resolved at runtime.


args: Null<Array<NExpr>>

Optional arguments passed to the target beat, from -> SomeBeat(args...) or -> beat(expr, args...).


type(): String
Returns
String

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

toJson(): Dynamic

Converts the transition to a JSON representation.

Returns Description
Dynamic Dynamic object containing transition data

new(id: NodeId, pos: Position, target: String, targetPos: Position, ?leadingComments: Array<Comment>, ?trailingComments: Array<Comment>): Void

Creates a new transition node.

Name Type Default Description
id NodeId
pos Position Position in source where this transition appears
target String Name of the target beat
targetPos Position Position of the target part of the transition
leadingComments Array<Comment> (optional) Optional comments before the transition
trailingComments Array<Comment> (optional) Optional comments after the transition

Metadata

Name Parameters
:hxGen -