Comment class final
A comment line in the source. Three levels:
# regular
## group
### resource
Standalone comments are top-level Entrys. Comments attached to a
Message / Term live on that node's comment field instead.
- Inheritance
-
- Object
- FluentNode
- SyntaxNode
- Entry
- Comment
Constructors
- Comment({required CommentLevel level, required String content, Span? span})
-
Bundles the comment's
levelandcontent.const
Properties
- content → String
-
The comment text without the
#markers.final - hashCode → int
-
The hash code for this object.
no setterinherited
- level → CommentLevel
-
How many
#marks introduced the comment.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- span → Span?
-
Source range this node covers; null when spans were off.
final
Methods
-
clone(
) → Comment -
Deep clone of this node.
override
-
equals(
FluentNode other, {bool ignoreSpans = true}) → bool -
Structural equality.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited