Updating discovery files with new CandidateFix defs
diff --git a/doc/generated/dartservices.dart b/doc/generated/dartservices.dart
index 7b5a678..f5cddbf 100644
--- a/doc/generated/dartservices.dart
+++ b/doc/generated/dartservices.dart
@@ -471,6 +471,7 @@
class CandidateFix {
core.List<SourceEdit> edits;
+ core.List<LinkedEditGroup> linkedEditGroups;
core.String message;
core.int selectionOffset;
@@ -482,6 +483,11 @@
.map<SourceEdit>((value) => new SourceEdit.fromJson(value))
.toList();
}
+ if (_json.containsKey("linkedEditGroups")) {
+ linkedEditGroups = (_json["linkedEditGroups"] as core.List)
+ .map<LinkedEditGroup>((value) => new LinkedEditGroup.fromJson(value))
+ .toList();
+ }
if (_json.containsKey("message")) {
message = _json["message"];
}
@@ -496,6 +502,10 @@
if (edits != null) {
_json["edits"] = edits.map((value) => (value).toJson()).toList();
}
+ if (linkedEditGroups != null) {
+ _json["linkedEditGroups"] =
+ linkedEditGroups.map((value) => (value).toJson()).toList();
+ }
if (message != null) {
_json["message"] = message;
}
@@ -710,6 +720,103 @@
}
}
+class LinkedEditGroup {
+ core.int length;
+ core.List<Position> positions;
+ core.List<LinkedEditSuggestion> suggestions;
+
+ LinkedEditGroup();
+
+ LinkedEditGroup.fromJson(core.Map _json) {
+ if (_json.containsKey("length")) {
+ length = _json["length"];
+ }
+ if (_json.containsKey("positions")) {
+ positions = (_json["positions"] as core.List)
+ .map<Position>((value) => new Position.fromJson(value))
+ .toList();
+ }
+ if (_json.containsKey("suggestions")) {
+ suggestions = (_json["suggestions"] as core.List)
+ .map<LinkedEditSuggestion>(
+ (value) => new LinkedEditSuggestion.fromJson(value))
+ .toList();
+ }
+ }
+
+ core.Map<core.String, core.Object> toJson() {
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
+ if (length != null) {
+ _json["length"] = length;
+ }
+ if (positions != null) {
+ _json["positions"] = positions.map((value) => (value).toJson()).toList();
+ }
+ if (suggestions != null) {
+ _json["suggestions"] =
+ suggestions.map((value) => (value).toJson()).toList();
+ }
+ return _json;
+ }
+}
+
+class LinkedEditSuggestion {
+ core.String kind;
+ core.String value;
+
+ LinkedEditSuggestion();
+
+ LinkedEditSuggestion.fromJson(core.Map _json) {
+ if (_json.containsKey("kind")) {
+ kind = _json["kind"];
+ }
+ if (_json.containsKey("value")) {
+ value = _json["value"];
+ }
+ }
+
+ core.Map<core.String, core.Object> toJson() {
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
+ if (kind != null) {
+ _json["kind"] = kind;
+ }
+ if (value != null) {
+ _json["value"] = value;
+ }
+ return _json;
+ }
+}
+
+class Position {
+ core.String file;
+ core.int offset;
+
+ Position();
+
+ Position.fromJson(core.Map _json) {
+ if (_json.containsKey("file")) {
+ file = _json["file"];
+ }
+ if (_json.containsKey("offset")) {
+ offset = _json["offset"];
+ }
+ }
+
+ core.Map<core.String, core.Object> toJson() {
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
+ if (file != null) {
+ _json["file"] = file;
+ }
+ if (offset != null) {
+ _json["offset"] = offset;
+ }
+ return _json;
+ }
+}
+
class ProblemAndFixes {
core.List<CandidateFix> fixes;
core.int length;
diff --git a/doc/generated/dartservices.json b/doc/generated/dartservices.json
index de87ea6..7606c30 100644
--- a/doc/generated/dartservices.json
+++ b/doc/generated/dartservices.json
@@ -1,6 +1,6 @@
{
"kind": "discovery#restDescription",
- "etag": "f6147d7c8390bfe275fd6c9c0b29b90368d5afa9",
+ "etag": "e5fb2d50ad3bc13ae1c6dda90907613797073978",
"discoveryVersion": "v1",
"id": "dartservices:v1",
"name": "dartservices",
@@ -193,6 +193,12 @@
"selectionOffset": {
"type": "integer",
"format": "int32"
+ },
+ "linkedEditGroups": {
+ "type": "array",
+ "items": {
+ "$ref": "LinkedEditGroup"
+ }
}
}
},
@@ -213,6 +219,53 @@
}
}
},
+ "LinkedEditGroup": {
+ "id": "LinkedEditGroup",
+ "type": "object",
+ "properties": {
+ "positions": {
+ "type": "array",
+ "items": {
+ "$ref": "Position"
+ }
+ },
+ "length": {
+ "type": "integer",
+ "format": "int32"
+ },
+ "suggestions": {
+ "type": "array",
+ "items": {
+ "$ref": "LinkedEditSuggestion"
+ }
+ }
+ }
+ },
+ "Position": {
+ "id": "Position",
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string"
+ },
+ "offset": {
+ "type": "integer",
+ "format": "int32"
+ }
+ }
+ },
+ "LinkedEditSuggestion": {
+ "id": "LinkedEditSuggestion",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "string"
+ },
+ "kind": {
+ "type": "string"
+ }
+ }
+ },
"AssistsResponse": {
"id": "AssistsResponse",
"type": "object",