Flutter Engine
The Flutter Engine
|
Public Member Functions | |
LinkedEditGroup (List< Position > positions, int length, List< LinkedEditSuggestion > suggestions) | |
boolean | equals (Object obj) |
int | getLength () |
List< Position > | getPositions () |
List< LinkedEditSuggestion > | getSuggestions () |
int | hashCode () |
JsonObject | toJson () |
String | toString () |
Static Public Member Functions | |
static LinkedEditGroup | fromJson (JsonObject jsonObject) |
static List< LinkedEditGroup > | fromJsonArray (JsonArray jsonArray) |
Static Public Attributes | |
static final LinkedEditGroup[] | EMPTY_ARRAY = new LinkedEditGroup[0] |
static final List< LinkedEditGroup > | EMPTY_LIST = Lists.newArrayList() |
A collection of positions that should be linked (edited simultaneously) for the purposes of updating code after a source change. For example, if a set of edits introduced a new variable name, the group would contain all of the positions of the variable name so that if the client wanted to let the user edit the variable name after the operation, all occurrences of the name could be edited simultaneously.
Edit groups may have a length of 0 and function as tabstops where there is no default text, for example, an edit that inserts an if statement might provide an empty group between parens where a condition should be typed. For this reason, it's also valid for a group to contain only a single position that is not linked to others.
@coverage dart.server.generated.types
Definition at line 41 of file LinkedEditGroup.java.
|
inline |
Constructor for LinkedEditGroup
.
Definition at line 66 of file LinkedEditGroup.java.
|
inline |
Definition at line 73 of file LinkedEditGroup.java.
|
inlinestatic |
Definition at line 84 of file LinkedEditGroup.java.
|
inlinestatic |
Definition at line 91 of file LinkedEditGroup.java.
|
inline |
The length of the regions that should be edited simultaneously.
Definition at line 106 of file LinkedEditGroup.java.
The positions of the regions (after applying the relevant edits) that should be edited simultaneously.
Definition at line 114 of file LinkedEditGroup.java.
|
inline |
Pre-computed suggestions for what every region might want to be changed to.
Definition at line 121 of file LinkedEditGroup.java.
|
inline |
Definition at line 126 of file LinkedEditGroup.java.
|
inline |
Definition at line 134 of file LinkedEditGroup.java.
|
inline |
Definition at line 151 of file LinkedEditGroup.java.
|
static |
Definition at line 43 of file LinkedEditGroup.java.
|
static |
Definition at line 45 of file LinkedEditGroup.java.