Line class

Constructors

Line(SourceSpan content, {SourceSpan? lineEnding, int? tabRemaining})

Properties

content → SourceSpan
A sequence of zero or more characters other than lineEnding.
final
end → SourceLocation
The end location of this Line, exclusive.
no setter
hashCode int
The hash code for this object.
no setterinherited
isBlankLine bool
no setter
lineEnding → SourceSpan?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start → SourceLocation
The start location of this Line.
no setter
tabRemaining int?
How many spaces of a tab that remains after part of it has been consumed.
final
text String
String line content ending with a line ending if there is one.
no setter

Methods

firstMatch(RegExp pattern) Match?
hasMatch(RegExp pattern) bool
matchAsPrefix(RegExp pattern, [int start = 0]) Match?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startsWith(Pattern pattern, [int index = 0]) bool
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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