| Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ErrorFixes.java
|
| diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ErrorFixes.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ErrorFixes.java
|
| index f47aa5482e8de8049c6853a177316273776bf7e5..5ab62c591ab2ecde61dfa3002b77a0aabccd83b6 100644
|
| --- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ErrorFixes.java
|
| +++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ErrorFixes.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;
|
|
|
| /**
|
| @@ -78,6 +81,20 @@ public class ErrorFixes {
|
| return fixes;
|
| }
|
|
|
| + public JsonObject toJson() {
|
| + // Create a JsonObject
|
| + JsonObject jsonObject = new JsonObject();
|
| +
|
| + // error
|
| + jsonObject.add("error", error.toJson());
|
| +
|
| + // fixes
|
| + // the type Object cannot be represented in JsonObject
|
| +
|
| + // Return the JsonObject
|
| + return jsonObject;
|
| + }
|
| +
|
| @Override
|
| public String toString() {
|
| StringBuilder builder = new StringBuilder();
|
|
|