content: NStringLiteralNTextStatement
Represents a text statement in the AST.
Instance Members
The content of the text statement.
type(): String| Returns |
|---|
| String |
each(handleNode: Function): Void| Name | Type |
|---|---|
handleNode |
Function |
toJson(): DynamicConverts the text statement to a JSON representation.
| Returns | Description |
|---|---|
| Dynamic | Dynamic object containing text data |
new(id: NodeId, pos: Position, content: NStringLiteral, ?leadingComments: Array<Comment>, ?trailingComments: Array<Comment>): VoidCreates a new text statement node.
| Name | Type | Default | Description |
|---|---|---|---|
id |
NodeId | ||
pos |
Position | Position in source where this text appears | |
content |
NStringLiteral | String literal containing the text content | |
leadingComments |
Array<Comment> | (optional) | Optional comments before the text |
trailingComments |
Array<Comment> | (optional) | Optional comments after the text |