content: StringComment
Node → loreline.Comment (Class)
Represents a comment node in the AST. Contains both the comment content and whether it's a multiline comment.
Instance Members
The actual text content of the comment.
multiline: BoolWhether this is a multiline comment (/* ... */) or single-line comment (//).
type(): String| Returns |
|---|
| String |
toJson(): DynamicConverts the comment node to a JSON representation.
| Returns | Description |
|---|---|
| Dynamic | Dynamic object containing comment data |
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 |
- |