Comment

Nodeloreline.Comment (Class)

Represents a comment node in the AST. Contains both the comment content and whether it's a multiline comment.

Instance Members

content: String

The actual text content of the comment.


multiline: Bool

Whether this is a multiline comment (/* ... */) or single-line comment (//).


type(): String
Returns
String

toJson(): Dynamic

Converts the comment node to a JSON representation.

Returns Description
Dynamic Dynamic object containing comment data

new(id: NodeId, pos: Position, content: String, multiline: Bool): Void

Creates a new Comment node.

Name Type Description
id NodeId
pos Position Position in source where this comment appears
content String The text content of the comment
multiline Bool Whether this is a multiline comment

Metadata

Name Parameters
:hxGen -