EditBuilder class abstract

A builder used to build a SourceEdit as part of a SourceFileEdit.

Clients may not extend, implement or mix-in this class.

Implementers

Constructors

EditBuilder()

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

addLinkedEdit(String groupName, void buildLinkedEdit(LinkedEditBuilder builder)) → void
Add a region of text that is part of the linked edit group with the given groupName. The buildLinkedEdit function is used to write the content of the region of text and to add suggestions for other possible values for that region.
addSimpleLinkedEdit(String groupName, String text, {LinkedEditSuggestionKind kind, List<String> suggestions}) → void
Add the given text as a linked edit group with the given groupName. If both a kind and a list of suggestions are provided, they will be added as suggestions to the group with the given kind.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectAll(void writer()) → void
Set the selection to cover all of the code written by the given writer.
selectHere() → void
Set the selection to the current location within the edit being built.
toString() String
A string representation of this object.
inherited
write(String string) → void
Add the given string to the content of the current edit.
writeln([String string]) → void
Add the given string to the content of the current edit and then add an end-of-line marker.

Operators

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