SourceMapBuilder class
Builds a source map given a set of mappings.
Constructors
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
-
addFromOffset(
SourceLocation source, SourceFile targetFile, int targetOffset, String identifier) → void -
Adds an entry mapping the
targetOffset
tosource
. -
addLocation(
SourceLocation source, SourceLocation target, String? identifier) → void -
Adds an entry mapping
target
tosource
. -
addSpan(
SourceSpan source, SourceSpan target, {bool? isIdentifier}) → void -
Adds an entry mapping
target
tosource
. -
build(
String fileUrl) → Map< String, dynamic> - Encodes all mappings added to this builder as a json map.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
String fileUrl) → String - Encodes all mappings added to this builder as a json string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited