NBlock

NodeAstNodeloreline.NBlock (Class)

Represents a block with a sequence multiple nodes

Instance Members

Array of nodes that make up the beat's content.


The block style of the body.


type(): String
Returns
String

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

toJson(): Dynamic

Converts the beat declaration to a JSON representation.

Returns Description
Dynamic Dynamic object containing beat data

new(id: NodeId, pos: Position, body: Array<AstNode>, ?leadingComments: Array<Comment>, ?trailingComments: Array<Comment>): Void

Creates a new block node.

Name Type Default Description
id NodeId
pos Position Position in source where this beat appears
body Array<AstNode> Array of nodes comprising the block's content
leadingComments Array<Comment> (optional) Optional comments before the beat
trailingComments Array<Comment> (optional) Optional comments after the beat