NCharacterDecl
Represents a character declaration in the AST.
Instance Members
name: StringName of the character.
namePos: PositionPosition of the name part.
fields: Array<NObjectField>Fields defined for this character.
style: BlockStyleBlock style of this character
type(): String| Returns |
|---|
| String |
| Name | Type |
|---|---|
name |
String |
| Returns |
|---|
| NExpr |
each(handleNode: Function): Void| Name | Type |
|---|---|
handleNode |
Function |
toJson(): DynamicConverts the character declaration to a JSON representation.
| Returns | Description |
|---|---|
| Dynamic | Dynamic object containing character data |
new(id: NodeId, pos: Position, name: String, namePos: Position, fields: Array<NObjectField>, ?leadingComments: Array<Comment>, ?trailingComments: Array<Comment>): VoidCreates a new character declaration node.
| Name | Type | Default | Description |
|---|---|---|---|
id |
NodeId | ||
pos |
Position | Position in source where this character appears | |
name |
String | Name of the character | |
namePos |
Position | ||
fields |
Array<NObjectField> | Array of property definitions | |
leadingComments |
Array<Comment> | (optional) | Optional comments before the character |
trailingComments |
Array<Comment> | (optional) | Optional comments after the character |
Metadata
| Name | Parameters |
|---|---|
:hxGen |
- |