addReplacement abstract method
Add a replacement of text specified by the given range
. The range
is
relative to the original source. The buildEdit
function is used to write
the text that will replace the specified region.
Implementation
@override
// TODO(srawlins): Rename to `replace`.
void addReplacement(
SourceRange range, void Function(DartEditBuilder builder) buildEdit);