InterpolationMap class final

A map from locations in a string generated from an Interpolation to the original source code in the interpolation.

Constructors

InterpolationMap(Interpolation _interpolation, Iterable<SourceLocation> targetLocations)
Creates a new interpolation map that maps the given targetLocations in the generated string to the contents of the interpolation.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

mapException(SourceSpanFormatException error) → FormatException
Maps error's span in the string generated from this interpolation to its original source.
mapSpan(SourceSpan target) → FileSpan
Maps a span in the string generated from this interpolation to its original source.
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