TransformedSourceFile class

A utility that allows for modification of a SourceFile via a series of replacements, insertions, and removals.

Constructors

TransformedSourceFile(SourceFile sourceFile)

Properties

hashCode int
The hash code for this object.
no setterinherited
isModified bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceFile → SourceFile
final

Methods

getHtmlDiff() String
getTransformedText() String
insert(SourceLocation location, String text) → void
iterateReplacements({dynamic onUnmodified(String string)?, dynamic onRemoval(String string)?, dynamic onAddition(String string)?}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(SourceSpan span, {bool preserveNewlines = false}) → void
replace(SourceSpan span, String text) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited