SourceLocationMixin class

A mixin for easily implementing SourceLocation.

Implemented types
Implementers

Constructors

SourceLocationMixin()

Properties

hashCode int
The hash code for this object. [...]
read-only, override
toolString String
Returns a representation of this location in the source:line:column format used by text editors. [...]
read-only, override
column int
The 0-based column of this location in the source
final, inherited
line int
The 0-based line of this location in the source.
final, inherited
offset int
The 0-based offset of this location in the source.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sourceUrl Uri
URL of the source containing this location. [...]
final, inherited

Methods

compareTo(SourceLocation other) int
Compares two locations. [...]
override
distance(SourceLocation other) int
Returns the distance in characters between this and other. [...]
override
pointSpan() SourceSpan
Returns a span that covers only a single point: this location.
override
toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override