NBeatDecl
Represents a beat (scene) declaration in the AST.
Instance Members
name: StringName of the beat.
Array of nodes that make up the beat's content.
style: BlockStyleBlock style of this beat
type(): String| Returns |
|---|
| String |
each(handleNode: Function): Void| Name | Type |
|---|---|
handleNode |
Function |
toJson(): DynamicConverts 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>): VoidCreates 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 |
- |