Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SourceEdit (int offset, int length, String replacement, String id, String description) | |
boolean | equals (Object obj) |
String | getDescription () |
String | getId () |
int | getLength () |
int | getOffset () |
String | getReplacement () |
int | hashCode () |
JsonObject | toJson () |
String | toString () |
Static Public Member Functions | |
static SourceEdit | fromJson (JsonObject jsonObject) |
static List< SourceEdit > | fromJsonArray (JsonArray jsonArray) |
Static Public Attributes | |
static final SourceEdit[] | EMPTY_ARRAY = new SourceEdit[0] |
static final List< SourceEdit > | EMPTY_LIST = Lists.newArrayList() |
A description of a single change to a single file.
@coverage dart.server.generated.types
Definition at line 32 of file SourceEdit.java.
|
inline |
Constructor for SourceEdit
.
Definition at line 79 of file SourceEdit.java.
|
inline |
Definition at line 88 of file SourceEdit.java.
|
inlinestatic |
Definition at line 101 of file SourceEdit.java.
|
inlinestatic |
Definition at line 110 of file SourceEdit.java.
|
inline |
A human readable description of the change made by this edit.
This description should be short and suitable to use as a heading with changes grouped by it. For example, a change made as part of a quick-fix may use the message "Replace final with var", allowing multiple changes and multiple applications of the fix to be grouped together.
This value may be more specific than any value in an enclosing SourceChange.message which could contain edits made for different reasons (such as during a bulk fix operation).
Definition at line 132 of file SourceEdit.java.
|
inline |
An identifier that uniquely identifies this source edit from other edits in the same response. This field is omitted unless a containing structure needs to be able to identify the edit for some reason.
For example, some refactoring operations can produce edits that might not be appropriate (referred to as potential edits). Such edits will have an id so that they can be referenced. Edits in the same response that do not need to be referenced will not have an id.
Definition at line 145 of file SourceEdit.java.
|
inline |
The length of the region to be modified.
Definition at line 152 of file SourceEdit.java.
|
inline |
The offset of the region to be modified.
Definition at line 159 of file SourceEdit.java.
|
inline |
The code that is to replace the specified region in the original code.
Definition at line 166 of file SourceEdit.java.
|
inline |
|
inline |
Definition at line 181 of file SourceEdit.java.
|
inline |
Definition at line 196 of file SourceEdit.java.
|
static |
Definition at line 34 of file SourceEdit.java.
|
static |
Definition at line 36 of file SourceEdit.java.