LineComment class final

A comment from start to the end of the line, such as // or #.

With afterSpace, the comment only starts at the beginning of a line or after whitespace, so # inside words (a#b, $#) is left alone.

Inheritance

Constructors

LineComment(String start, {String scope = Scopes.comment, bool afterSpace = false})
Creates a line comment block.
const

Properties

afterSpace → bool
Whether the comment must follow whitespace or start a line.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → String
Scope of the comment.
final
start → String
Text that starts the comment.
final

Methods

expand() → List<Rule>
The basic rules this block stands for. Called once per block.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited