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 (//).


isHash: Bool

Whether this is a hash comment (#identifier).


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, ?isHash: Bool = false): Void

Creates a new Comment node.

Name Type Default 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
isHash Bool false Whether this is a hash comment

Metadata

Name Parameters
:hxGen -