NInsertion

NodeAstNodeloreline.NInsertion (Class)

Represents an insertion of another beat (+).

Instance Members

target: String

Name of the target beat.


targetPos: Position

Position of the target part of the insertion


type(): String
Returns
String

toJson(): Dynamic

Converts the insertion to a JSON representation.

Returns Description
Dynamic Dynamic object containing insertion data

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

Creates a new insertion node.

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

Metadata

Name Parameters
:hxGen -