SourceLocation class
A class that describes a single location within a source file.
This class should not be extended. Instead, SourceLocationBase should be extended instead.
- Implemented types
- Implementers
Constructors
Properties
- column → int
-
The 0-based column of this location in the source
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- line → int
-
The 0-based line of this location in the source.
final
- offset → int
-
The 0-based offset of this location in the source.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceUrl → Uri?
-
URL of the source containing this location.
final
- toolString → String
-
Returns a representation of this location in the
source:line:column
format used by text editors.no setter
Methods
-
compareTo(
SourceLocation other) → int -
Compares two locations.
override
-
distance(
SourceLocation other) → int -
Returns the distance in characters between
this
andother
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pointSpan(
) → SourceSpan - Returns a span that covers only a single point: this location.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override