SourceMapFileSpan class
A wrapper aruond a FileSpan
that implements SourceMapSpan.
- Implemented types
Constructors
- SourceMapFileSpan(FileSpan _inner, {bool isIdentifier = false})
Properties
- context → String
-
Text around the span, which includes the line containing this span.
no setter
- end → FileLocation
-
The end location of this span, exclusive.
no setter
- file → SourceFile
-
The file that
this
belongs to.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isIdentifier → bool
-
Whether this span represents an identifier.
final
- length → int
-
The length of this span, in characters.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceUrl → Uri?
-
The URL of the source (typically a file) of this span.
no setter
- start → FileLocation
-
The start location of this span.
no setter
- text → String
-
The source text for this span.
no setter
Methods
-
compareTo(
SourceSpan other) → int - Compares two spans.
-
expand(
FileSpan other) → FileSpan -
Returns a new span that covers both
this
andother
. -
highlight(
{Object? color}) → String - Prints the text associated with this span in a user-friendly way.
-
message(
String message, {Object? color}) → String - Formats message in a human-friendly way associated with this span.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
union(
SourceSpan other) → SourceSpan -
Creates a new span that's the union of
this
andother
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited