| Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
|
| diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
|
| index 60cb1921454953036c70bf6856d2a449132cc187..11759c1e546773338bdbacfff641f0b0148c8ebb 100644
|
| --- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
|
| +++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
|
| @@ -20,6 +20,9 @@ import java.util.Arrays;
|
| import java.util.List;
|
| import java.util.Map;
|
| import com.google.dart.server.utilities.general.ObjectUtilities;
|
| +import com.google.gson.JsonArray;
|
| +import com.google.gson.JsonObject;
|
| +import com.google.gson.JsonPrimitive;
|
| import org.apache.commons.lang3.StringUtils;
|
|
|
| /**
|
| @@ -47,7 +50,7 @@ public class LinkedEditGroup {
|
| /**
|
| * The length of the regions that should be edited simultaneously.
|
| */
|
| - private final int length;
|
| + private final Integer length;
|
|
|
| /**
|
| * Pre-computed suggestions for what every region might want to be changed to.
|
| @@ -57,7 +60,7 @@ public class LinkedEditGroup {
|
| /**
|
| * Constructor for {@link LinkedEditGroup}.
|
| */
|
| - public LinkedEditGroup(List<Position> positions, int length, List<LinkedEditSuggestion> suggestions) {
|
| + public LinkedEditGroup(List<Position> positions, Integer length, List<LinkedEditSuggestion> suggestions) {
|
| this.positions = positions;
|
| this.length = length;
|
| this.suggestions = suggestions;
|
| @@ -78,7 +81,7 @@ public class LinkedEditGroup {
|
| /**
|
| * The length of the regions that should be edited simultaneously.
|
| */
|
| - public int getLength() {
|
| + public Integer getLength() {
|
| return length;
|
| }
|
|
|
| @@ -96,6 +99,23 @@ public class LinkedEditGroup {
|
| return suggestions;
|
| }
|
|
|
| + public JsonObject toJson() {
|
| + // Create a JsonObject
|
| + JsonObject jsonObject = new JsonObject();
|
| +
|
| + // positions
|
| + // the type Object cannot be represented in JsonObject
|
| +
|
| + // length
|
| + jsonObject.addProperty("length", length);
|
| +
|
| + // suggestions
|
| + // the type Object cannot be represented in JsonObject
|
| +
|
| + // Return the JsonObject
|
| + return jsonObject;
|
| + }
|
| +
|
| @Override
|
| public String toString() {
|
| StringBuilder builder = new StringBuilder();
|
|
|