NBeatDecl

NodeAstNodeloreline.NBeatDecl (Class)

Represents a beat (scene) declaration in the AST.

Instance Members

name: String

Name of the beat.


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


Block style of this beat


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, name: String, body: Array<AstNode>, ?leadingComments: Array<Comment>, ?trailingComments: Array<Comment>): Void

Creates a new beat declaration node.

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

Metadata

Name Parameters
:hxGen -