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 (//).
isHash: BoolWhether this is a hash comment (#identifier).
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 | 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 |