NTextStatement

NodeAstNodeloreline.NTextStatement (Class)

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(): Dynamic

Converts 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>): Void

Creates 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

Metadata

Name Parameters
:hxGen -