OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // | 4 // |
5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
6 // To regenerate the file, use the script | 6 // To regenerate the file, use the script |
7 // "pkg/analysis_server/tool/spec/generate_files". | 7 // "pkg/analysis_server/tool/spec/generate_files". |
8 | 8 |
9 part of protocol; | 9 part of protocol; |
10 /** | 10 /** |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 if (json is Map) { | 63 if (json is Map) { |
64 String version; | 64 String version; |
65 if (json.containsKey("version")) { | 65 if (json.containsKey("version")) { |
66 version = jsonDecoder._decodeString(jsonPath + ".version", json["version
"]); | 66 version = jsonDecoder._decodeString(jsonPath + ".version", json["version
"]); |
67 } else { | 67 } else { |
68 throw jsonDecoder.missingKey(jsonPath, "version"); | 68 throw jsonDecoder.missingKey(jsonPath, "version"); |
69 } | 69 } |
70 return new ServerGetVersionResult(version); | 70 return new ServerGetVersionResult(version); |
71 } else { | 71 } else { |
72 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result"); | 72 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result", json); |
73 } | 73 } |
74 } | 74 } |
75 | 75 |
76 factory ServerGetVersionResult.fromResponse(Response response) { | 76 factory ServerGetVersionResult.fromResponse(Response response) { |
77 return new ServerGetVersionResult.fromJson( | 77 return new ServerGetVersionResult.fromJson( |
78 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 78 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
79 } | 79 } |
80 | 80 |
81 Map<String, dynamic> toJson() { | 81 Map<String, dynamic> toJson() { |
82 Map<String, dynamic> result = {}; | 82 Map<String, dynamic> result = {}; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 } | 182 } |
183 if (json is Map) { | 183 if (json is Map) { |
184 List<ServerService> subscriptions; | 184 List<ServerService> subscriptions; |
185 if (json.containsKey("subscriptions")) { | 185 if (json.containsKey("subscriptions")) { |
186 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new ServerService.fromJson
(jsonDecoder, jsonPath, json)); | 186 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new ServerService.fromJson
(jsonDecoder, jsonPath, json)); |
187 } else { | 187 } else { |
188 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 188 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
189 } | 189 } |
190 return new ServerSetSubscriptionsParams(subscriptions); | 190 return new ServerSetSubscriptionsParams(subscriptions); |
191 } else { | 191 } else { |
192 throw jsonDecoder.mismatch(jsonPath, "server.setSubscriptions params"); | 192 throw jsonDecoder.mismatch(jsonPath, "server.setSubscriptions params", jso
n); |
193 } | 193 } |
194 } | 194 } |
195 | 195 |
196 factory ServerSetSubscriptionsParams.fromRequest(Request request) { | 196 factory ServerSetSubscriptionsParams.fromRequest(Request request) { |
197 return new ServerSetSubscriptionsParams.fromJson( | 197 return new ServerSetSubscriptionsParams.fromJson( |
198 new RequestDecoder(request), "params", request._params); | 198 new RequestDecoder(request), "params", request._params); |
199 } | 199 } |
200 | 200 |
201 Map<String, dynamic> toJson() { | 201 Map<String, dynamic> toJson() { |
202 Map<String, dynamic> result = {}; | 202 Map<String, dynamic> result = {}; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 } | 281 } |
282 if (json is Map) { | 282 if (json is Map) { |
283 String version; | 283 String version; |
284 if (json.containsKey("version")) { | 284 if (json.containsKey("version")) { |
285 version = jsonDecoder._decodeString(jsonPath + ".version", json["version
"]); | 285 version = jsonDecoder._decodeString(jsonPath + ".version", json["version
"]); |
286 } else { | 286 } else { |
287 throw jsonDecoder.missingKey(jsonPath, "version"); | 287 throw jsonDecoder.missingKey(jsonPath, "version"); |
288 } | 288 } |
289 return new ServerConnectedParams(version); | 289 return new ServerConnectedParams(version); |
290 } else { | 290 } else { |
291 throw jsonDecoder.mismatch(jsonPath, "server.connected params"); | 291 throw jsonDecoder.mismatch(jsonPath, "server.connected params", json); |
292 } | 292 } |
293 } | 293 } |
294 | 294 |
295 factory ServerConnectedParams.fromNotification(Notification notification) { | 295 factory ServerConnectedParams.fromNotification(Notification notification) { |
296 return new ServerConnectedParams.fromJson( | 296 return new ServerConnectedParams.fromJson( |
297 new ResponseDecoder(null), "params", notification._params); | 297 new ResponseDecoder(null), "params", notification._params); |
298 } | 298 } |
299 | 299 |
300 Map<String, dynamic> toJson() { | 300 Map<String, dynamic> toJson() { |
301 Map<String, dynamic> result = {}; | 301 Map<String, dynamic> result = {}; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 throw jsonDecoder.missingKey(jsonPath, "message"); | 409 throw jsonDecoder.missingKey(jsonPath, "message"); |
410 } | 410 } |
411 String stackTrace; | 411 String stackTrace; |
412 if (json.containsKey("stackTrace")) { | 412 if (json.containsKey("stackTrace")) { |
413 stackTrace = jsonDecoder._decodeString(jsonPath + ".stackTrace", json["s
tackTrace"]); | 413 stackTrace = jsonDecoder._decodeString(jsonPath + ".stackTrace", json["s
tackTrace"]); |
414 } else { | 414 } else { |
415 throw jsonDecoder.missingKey(jsonPath, "stackTrace"); | 415 throw jsonDecoder.missingKey(jsonPath, "stackTrace"); |
416 } | 416 } |
417 return new ServerErrorParams(isFatal, message, stackTrace); | 417 return new ServerErrorParams(isFatal, message, stackTrace); |
418 } else { | 418 } else { |
419 throw jsonDecoder.mismatch(jsonPath, "server.error params"); | 419 throw jsonDecoder.mismatch(jsonPath, "server.error params", json); |
420 } | 420 } |
421 } | 421 } |
422 | 422 |
423 factory ServerErrorParams.fromNotification(Notification notification) { | 423 factory ServerErrorParams.fromNotification(Notification notification) { |
424 return new ServerErrorParams.fromJson( | 424 return new ServerErrorParams.fromJson( |
425 new ResponseDecoder(null), "params", notification._params); | 425 new ResponseDecoder(null), "params", notification._params); |
426 } | 426 } |
427 | 427 |
428 Map<String, dynamic> toJson() { | 428 Map<String, dynamic> toJson() { |
429 Map<String, dynamic> result = {}; | 429 Map<String, dynamic> result = {}; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 AnalysisStatus analysis; | 514 AnalysisStatus analysis; |
515 if (json.containsKey("analysis")) { | 515 if (json.containsKey("analysis")) { |
516 analysis = new AnalysisStatus.fromJson(jsonDecoder, jsonPath + ".analysi
s", json["analysis"]); | 516 analysis = new AnalysisStatus.fromJson(jsonDecoder, jsonPath + ".analysi
s", json["analysis"]); |
517 } | 517 } |
518 PubStatus pub; | 518 PubStatus pub; |
519 if (json.containsKey("pub")) { | 519 if (json.containsKey("pub")) { |
520 pub = new PubStatus.fromJson(jsonDecoder, jsonPath + ".pub", json["pub"]
); | 520 pub = new PubStatus.fromJson(jsonDecoder, jsonPath + ".pub", json["pub"]
); |
521 } | 521 } |
522 return new ServerStatusParams(analysis: analysis, pub: pub); | 522 return new ServerStatusParams(analysis: analysis, pub: pub); |
523 } else { | 523 } else { |
524 throw jsonDecoder.mismatch(jsonPath, "server.status params"); | 524 throw jsonDecoder.mismatch(jsonPath, "server.status params", json); |
525 } | 525 } |
526 } | 526 } |
527 | 527 |
528 factory ServerStatusParams.fromNotification(Notification notification) { | 528 factory ServerStatusParams.fromNotification(Notification notification) { |
529 return new ServerStatusParams.fromJson( | 529 return new ServerStatusParams.fromJson( |
530 new ResponseDecoder(null), "params", notification._params); | 530 new ResponseDecoder(null), "params", notification._params); |
531 } | 531 } |
532 | 532 |
533 Map<String, dynamic> toJson() { | 533 Map<String, dynamic> toJson() { |
534 Map<String, dynamic> result = {}; | 534 Map<String, dynamic> result = {}; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 } | 599 } |
600 if (json is Map) { | 600 if (json is Map) { |
601 String file; | 601 String file; |
602 if (json.containsKey("file")) { | 602 if (json.containsKey("file")) { |
603 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 603 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); |
604 } else { | 604 } else { |
605 throw jsonDecoder.missingKey(jsonPath, "file"); | 605 throw jsonDecoder.missingKey(jsonPath, "file"); |
606 } | 606 } |
607 return new AnalysisGetErrorsParams(file); | 607 return new AnalysisGetErrorsParams(file); |
608 } else { | 608 } else { |
609 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors params"); | 609 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors params", json); |
610 } | 610 } |
611 } | 611 } |
612 | 612 |
613 factory AnalysisGetErrorsParams.fromRequest(Request request) { | 613 factory AnalysisGetErrorsParams.fromRequest(Request request) { |
614 return new AnalysisGetErrorsParams.fromJson( | 614 return new AnalysisGetErrorsParams.fromJson( |
615 new RequestDecoder(request), "params", request._params); | 615 new RequestDecoder(request), "params", request._params); |
616 } | 616 } |
617 | 617 |
618 Map<String, dynamic> toJson() { | 618 Map<String, dynamic> toJson() { |
619 Map<String, dynamic> result = {}; | 619 Map<String, dynamic> result = {}; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 } | 677 } |
678 if (json is Map) { | 678 if (json is Map) { |
679 List<AnalysisError> errors; | 679 List<AnalysisError> errors; |
680 if (json.containsKey("errors")) { | 680 if (json.containsKey("errors")) { |
681 errors = jsonDecoder._decodeList(jsonPath + ".errors", json["errors"], (
String jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPat
h, json)); | 681 errors = jsonDecoder._decodeList(jsonPath + ".errors", json["errors"], (
String jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPat
h, json)); |
682 } else { | 682 } else { |
683 throw jsonDecoder.missingKey(jsonPath, "errors"); | 683 throw jsonDecoder.missingKey(jsonPath, "errors"); |
684 } | 684 } |
685 return new AnalysisGetErrorsResult(errors); | 685 return new AnalysisGetErrorsResult(errors); |
686 } else { | 686 } else { |
687 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result"); | 687 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result", json); |
688 } | 688 } |
689 } | 689 } |
690 | 690 |
691 factory AnalysisGetErrorsResult.fromResponse(Response response) { | 691 factory AnalysisGetErrorsResult.fromResponse(Response response) { |
692 return new AnalysisGetErrorsResult.fromJson( | 692 return new AnalysisGetErrorsResult.fromJson( |
693 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 693 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
694 } | 694 } |
695 | 695 |
696 Map<String, dynamic> toJson() { | 696 Map<String, dynamic> toJson() { |
697 Map<String, dynamic> result = {}; | 697 Map<String, dynamic> result = {}; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 throw jsonDecoder.missingKey(jsonPath, "file"); | 778 throw jsonDecoder.missingKey(jsonPath, "file"); |
779 } | 779 } |
780 int offset; | 780 int offset; |
781 if (json.containsKey("offset")) { | 781 if (json.containsKey("offset")) { |
782 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 782 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); |
783 } else { | 783 } else { |
784 throw jsonDecoder.missingKey(jsonPath, "offset"); | 784 throw jsonDecoder.missingKey(jsonPath, "offset"); |
785 } | 785 } |
786 return new AnalysisGetHoverParams(file, offset); | 786 return new AnalysisGetHoverParams(file, offset); |
787 } else { | 787 } else { |
788 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover params"); | 788 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover params", json); |
789 } | 789 } |
790 } | 790 } |
791 | 791 |
792 factory AnalysisGetHoverParams.fromRequest(Request request) { | 792 factory AnalysisGetHoverParams.fromRequest(Request request) { |
793 return new AnalysisGetHoverParams.fromJson( | 793 return new AnalysisGetHoverParams.fromJson( |
794 new RequestDecoder(request), "params", request._params); | 794 new RequestDecoder(request), "params", request._params); |
795 } | 795 } |
796 | 796 |
797 Map<String, dynamic> toJson() { | 797 Map<String, dynamic> toJson() { |
798 Map<String, dynamic> result = {}; | 798 Map<String, dynamic> result = {}; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 } | 867 } |
868 if (json is Map) { | 868 if (json is Map) { |
869 List<HoverInformation> hovers; | 869 List<HoverInformation> hovers; |
870 if (json.containsKey("hovers")) { | 870 if (json.containsKey("hovers")) { |
871 hovers = jsonDecoder._decodeList(jsonPath + ".hovers", json["hovers"], (
String jsonPath, Object json) => new HoverInformation.fromJson(jsonDecoder, json
Path, json)); | 871 hovers = jsonDecoder._decodeList(jsonPath + ".hovers", json["hovers"], (
String jsonPath, Object json) => new HoverInformation.fromJson(jsonDecoder, json
Path, json)); |
872 } else { | 872 } else { |
873 throw jsonDecoder.missingKey(jsonPath, "hovers"); | 873 throw jsonDecoder.missingKey(jsonPath, "hovers"); |
874 } | 874 } |
875 return new AnalysisGetHoverResult(hovers); | 875 return new AnalysisGetHoverResult(hovers); |
876 } else { | 876 } else { |
877 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result"); | 877 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result", json); |
878 } | 878 } |
879 } | 879 } |
880 | 880 |
881 factory AnalysisGetHoverResult.fromResponse(Response response) { | 881 factory AnalysisGetHoverResult.fromResponse(Response response) { |
882 return new AnalysisGetHoverResult.fromJson( | 882 return new AnalysisGetHoverResult.fromJson( |
883 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 883 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
884 } | 884 } |
885 | 885 |
886 Map<String, dynamic> toJson() { | 886 Map<String, dynamic> toJson() { |
887 Map<String, dynamic> result = {}; | 887 Map<String, dynamic> result = {}; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 throw jsonDecoder.missingKey(jsonPath, "libraries"); | 993 throw jsonDecoder.missingKey(jsonPath, "libraries"); |
994 } | 994 } |
995 Map<String, Map<String, List<String>>> packageMap; | 995 Map<String, Map<String, List<String>>> packageMap; |
996 if (json.containsKey("packageMap")) { | 996 if (json.containsKey("packageMap")) { |
997 packageMap = jsonDecoder._decodeMap(jsonPath + ".packageMap", json["pack
ageMap"], valueDecoder: (String jsonPath, Object json) => jsonDecoder._decodeMap
(jsonPath, json, valueDecoder: (String jsonPath, Object json) => jsonDecoder._de
codeList(jsonPath, json, jsonDecoder._decodeString))); | 997 packageMap = jsonDecoder._decodeMap(jsonPath + ".packageMap", json["pack
ageMap"], valueDecoder: (String jsonPath, Object json) => jsonDecoder._decodeMap
(jsonPath, json, valueDecoder: (String jsonPath, Object json) => jsonDecoder._de
codeList(jsonPath, json, jsonDecoder._decodeString))); |
998 } else { | 998 } else { |
999 throw jsonDecoder.missingKey(jsonPath, "packageMap"); | 999 throw jsonDecoder.missingKey(jsonPath, "packageMap"); |
1000 } | 1000 } |
1001 return new AnalysisGetLibraryDependenciesResult(libraries, packageMap); | 1001 return new AnalysisGetLibraryDependenciesResult(libraries, packageMap); |
1002 } else { | 1002 } else { |
1003 throw jsonDecoder.mismatch(jsonPath, "analysis.getLibraryDependencies resu
lt"); | 1003 throw jsonDecoder.mismatch(jsonPath, "analysis.getLibraryDependencies resu
lt", json); |
1004 } | 1004 } |
1005 } | 1005 } |
1006 | 1006 |
1007 factory AnalysisGetLibraryDependenciesResult.fromResponse(Response response) { | 1007 factory AnalysisGetLibraryDependenciesResult.fromResponse(Response response) { |
1008 return new AnalysisGetLibraryDependenciesResult.fromJson( | 1008 return new AnalysisGetLibraryDependenciesResult.fromJson( |
1009 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 1009 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
1010 } | 1010 } |
1011 | 1011 |
1012 Map<String, dynamic> toJson() { | 1012 Map<String, dynamic> toJson() { |
1013 Map<String, dynamic> result = {}; | 1013 Map<String, dynamic> result = {}; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 throw jsonDecoder.missingKey(jsonPath, "offset"); | 1124 throw jsonDecoder.missingKey(jsonPath, "offset"); |
1125 } | 1125 } |
1126 int length; | 1126 int length; |
1127 if (json.containsKey("length")) { | 1127 if (json.containsKey("length")) { |
1128 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 1128 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
1129 } else { | 1129 } else { |
1130 throw jsonDecoder.missingKey(jsonPath, "length"); | 1130 throw jsonDecoder.missingKey(jsonPath, "length"); |
1131 } | 1131 } |
1132 return new AnalysisGetNavigationParams(file, offset, length); | 1132 return new AnalysisGetNavigationParams(file, offset, length); |
1133 } else { | 1133 } else { |
1134 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation params"); | 1134 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation params", json
); |
1135 } | 1135 } |
1136 } | 1136 } |
1137 | 1137 |
1138 factory AnalysisGetNavigationParams.fromRequest(Request request) { | 1138 factory AnalysisGetNavigationParams.fromRequest(Request request) { |
1139 return new AnalysisGetNavigationParams.fromJson( | 1139 return new AnalysisGetNavigationParams.fromJson( |
1140 new RequestDecoder(request), "params", request._params); | 1140 new RequestDecoder(request), "params", request._params); |
1141 } | 1141 } |
1142 | 1142 |
1143 Map<String, dynamic> toJson() { | 1143 Map<String, dynamic> toJson() { |
1144 Map<String, dynamic> result = {}; | 1144 Map<String, dynamic> result = {}; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 throw jsonDecoder.missingKey(jsonPath, "targets"); | 1258 throw jsonDecoder.missingKey(jsonPath, "targets"); |
1259 } | 1259 } |
1260 List<NavigationRegion> regions; | 1260 List<NavigationRegion> regions; |
1261 if (json.containsKey("regions")) { | 1261 if (json.containsKey("regions")) { |
1262 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new NavigationRegion.fromJson(jsonDecoder, j
sonPath, json)); | 1262 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new NavigationRegion.fromJson(jsonDecoder, j
sonPath, json)); |
1263 } else { | 1263 } else { |
1264 throw jsonDecoder.missingKey(jsonPath, "regions"); | 1264 throw jsonDecoder.missingKey(jsonPath, "regions"); |
1265 } | 1265 } |
1266 return new AnalysisGetNavigationResult(files, targets, regions); | 1266 return new AnalysisGetNavigationResult(files, targets, regions); |
1267 } else { | 1267 } else { |
1268 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation result"); | 1268 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation result", json
); |
1269 } | 1269 } |
1270 } | 1270 } |
1271 | 1271 |
1272 factory AnalysisGetNavigationResult.fromResponse(Response response) { | 1272 factory AnalysisGetNavigationResult.fromResponse(Response response) { |
1273 return new AnalysisGetNavigationResult.fromJson( | 1273 return new AnalysisGetNavigationResult.fromJson( |
1274 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 1274 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
1275 } | 1275 } |
1276 | 1276 |
1277 Map<String, dynamic> toJson() { | 1277 Map<String, dynamic> toJson() { |
1278 Map<String, dynamic> result = {}; | 1278 Map<String, dynamic> result = {}; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 if (json == null) { | 1339 if (json == null) { |
1340 json = {}; | 1340 json = {}; |
1341 } | 1341 } |
1342 if (json is Map) { | 1342 if (json is Map) { |
1343 List<String> roots; | 1343 List<String> roots; |
1344 if (json.containsKey("roots")) { | 1344 if (json.containsKey("roots")) { |
1345 roots = jsonDecoder._decodeList(jsonPath + ".roots", json["roots"], json
Decoder._decodeString); | 1345 roots = jsonDecoder._decodeList(jsonPath + ".roots", json["roots"], json
Decoder._decodeString); |
1346 } | 1346 } |
1347 return new AnalysisReanalyzeParams(roots: roots); | 1347 return new AnalysisReanalyzeParams(roots: roots); |
1348 } else { | 1348 } else { |
1349 throw jsonDecoder.mismatch(jsonPath, "analysis.reanalyze params"); | 1349 throw jsonDecoder.mismatch(jsonPath, "analysis.reanalyze params", json); |
1350 } | 1350 } |
1351 } | 1351 } |
1352 | 1352 |
1353 factory AnalysisReanalyzeParams.fromRequest(Request request) { | 1353 factory AnalysisReanalyzeParams.fromRequest(Request request) { |
1354 return new AnalysisReanalyzeParams.fromJson( | 1354 return new AnalysisReanalyzeParams.fromJson( |
1355 new RequestDecoder(request), "params", request._params); | 1355 new RequestDecoder(request), "params", request._params); |
1356 } | 1356 } |
1357 | 1357 |
1358 Map<String, dynamic> toJson() { | 1358 Map<String, dynamic> toJson() { |
1359 Map<String, dynamic> result = {}; | 1359 Map<String, dynamic> result = {}; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 excluded = jsonDecoder._decodeList(jsonPath + ".excluded", json["exclude
d"], jsonDecoder._decodeString); | 1507 excluded = jsonDecoder._decodeList(jsonPath + ".excluded", json["exclude
d"], jsonDecoder._decodeString); |
1508 } else { | 1508 } else { |
1509 throw jsonDecoder.missingKey(jsonPath, "excluded"); | 1509 throw jsonDecoder.missingKey(jsonPath, "excluded"); |
1510 } | 1510 } |
1511 Map<String, String> packageRoots; | 1511 Map<String, String> packageRoots; |
1512 if (json.containsKey("packageRoots")) { | 1512 if (json.containsKey("packageRoots")) { |
1513 packageRoots = jsonDecoder._decodeMap(jsonPath + ".packageRoots", json["
packageRoots"], valueDecoder: jsonDecoder._decodeString); | 1513 packageRoots = jsonDecoder._decodeMap(jsonPath + ".packageRoots", json["
packageRoots"], valueDecoder: jsonDecoder._decodeString); |
1514 } | 1514 } |
1515 return new AnalysisSetAnalysisRootsParams(included, excluded, packageRoots
: packageRoots); | 1515 return new AnalysisSetAnalysisRootsParams(included, excluded, packageRoots
: packageRoots); |
1516 } else { | 1516 } else { |
1517 throw jsonDecoder.mismatch(jsonPath, "analysis.setAnalysisRoots params"); | 1517 throw jsonDecoder.mismatch(jsonPath, "analysis.setAnalysisRoots params", j
son); |
1518 } | 1518 } |
1519 } | 1519 } |
1520 | 1520 |
1521 factory AnalysisSetAnalysisRootsParams.fromRequest(Request request) { | 1521 factory AnalysisSetAnalysisRootsParams.fromRequest(Request request) { |
1522 return new AnalysisSetAnalysisRootsParams.fromJson( | 1522 return new AnalysisSetAnalysisRootsParams.fromJson( |
1523 new RequestDecoder(request), "params", request._params); | 1523 new RequestDecoder(request), "params", request._params); |
1524 } | 1524 } |
1525 | 1525 |
1526 Map<String, dynamic> toJson() { | 1526 Map<String, dynamic> toJson() { |
1527 Map<String, dynamic> result = {}; | 1527 Map<String, dynamic> result = {}; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 } | 1614 } |
1615 if (json is Map) { | 1615 if (json is Map) { |
1616 List<GeneralAnalysisService> subscriptions; | 1616 List<GeneralAnalysisService> subscriptions; |
1617 if (json.containsKey("subscriptions")) { | 1617 if (json.containsKey("subscriptions")) { |
1618 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new GeneralAnalysisService
.fromJson(jsonDecoder, jsonPath, json)); | 1618 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new GeneralAnalysisService
.fromJson(jsonDecoder, jsonPath, json)); |
1619 } else { | 1619 } else { |
1620 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 1620 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
1621 } | 1621 } |
1622 return new AnalysisSetGeneralSubscriptionsParams(subscriptions); | 1622 return new AnalysisSetGeneralSubscriptionsParams(subscriptions); |
1623 } else { | 1623 } else { |
1624 throw jsonDecoder.mismatch(jsonPath, "analysis.setGeneralSubscriptions par
ams"); | 1624 throw jsonDecoder.mismatch(jsonPath, "analysis.setGeneralSubscriptions par
ams", json); |
1625 } | 1625 } |
1626 } | 1626 } |
1627 | 1627 |
1628 factory AnalysisSetGeneralSubscriptionsParams.fromRequest(Request request) { | 1628 factory AnalysisSetGeneralSubscriptionsParams.fromRequest(Request request) { |
1629 return new AnalysisSetGeneralSubscriptionsParams.fromJson( | 1629 return new AnalysisSetGeneralSubscriptionsParams.fromJson( |
1630 new RequestDecoder(request), "params", request._params); | 1630 new RequestDecoder(request), "params", request._params); |
1631 } | 1631 } |
1632 | 1632 |
1633 Map<String, dynamic> toJson() { | 1633 Map<String, dynamic> toJson() { |
1634 Map<String, dynamic> result = {}; | 1634 Map<String, dynamic> result = {}; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1713 } | 1713 } |
1714 if (json is Map) { | 1714 if (json is Map) { |
1715 List<String> files; | 1715 List<String> files; |
1716 if (json.containsKey("files")) { | 1716 if (json.containsKey("files")) { |
1717 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); | 1717 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); |
1718 } else { | 1718 } else { |
1719 throw jsonDecoder.missingKey(jsonPath, "files"); | 1719 throw jsonDecoder.missingKey(jsonPath, "files"); |
1720 } | 1720 } |
1721 return new AnalysisSetPriorityFilesParams(files); | 1721 return new AnalysisSetPriorityFilesParams(files); |
1722 } else { | 1722 } else { |
1723 throw jsonDecoder.mismatch(jsonPath, "analysis.setPriorityFiles params"); | 1723 throw jsonDecoder.mismatch(jsonPath, "analysis.setPriorityFiles params", j
son); |
1724 } | 1724 } |
1725 } | 1725 } |
1726 | 1726 |
1727 factory AnalysisSetPriorityFilesParams.fromRequest(Request request) { | 1727 factory AnalysisSetPriorityFilesParams.fromRequest(Request request) { |
1728 return new AnalysisSetPriorityFilesParams.fromJson( | 1728 return new AnalysisSetPriorityFilesParams.fromJson( |
1729 new RequestDecoder(request), "params", request._params); | 1729 new RequestDecoder(request), "params", request._params); |
1730 } | 1730 } |
1731 | 1731 |
1732 Map<String, dynamic> toJson() { | 1732 Map<String, dynamic> toJson() { |
1733 Map<String, dynamic> result = {}; | 1733 Map<String, dynamic> result = {}; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1814 } | 1814 } |
1815 if (json is Map) { | 1815 if (json is Map) { |
1816 Map<AnalysisService, List<String>> subscriptions; | 1816 Map<AnalysisService, List<String>> subscriptions; |
1817 if (json.containsKey("subscriptions")) { | 1817 if (json.containsKey("subscriptions")) { |
1818 subscriptions = jsonDecoder._decodeMap(jsonPath + ".subscriptions", json
["subscriptions"], keyDecoder: (String jsonPath, Object json) => new AnalysisSer
vice.fromJson(jsonDecoder, jsonPath, json), valueDecoder: (String jsonPath, Obje
ct json) => jsonDecoder._decodeList(jsonPath, json, jsonDecoder._decodeString)); | 1818 subscriptions = jsonDecoder._decodeMap(jsonPath + ".subscriptions", json
["subscriptions"], keyDecoder: (String jsonPath, Object json) => new AnalysisSer
vice.fromJson(jsonDecoder, jsonPath, json), valueDecoder: (String jsonPath, Obje
ct json) => jsonDecoder._decodeList(jsonPath, json, jsonDecoder._decodeString)); |
1819 } else { | 1819 } else { |
1820 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 1820 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
1821 } | 1821 } |
1822 return new AnalysisSetSubscriptionsParams(subscriptions); | 1822 return new AnalysisSetSubscriptionsParams(subscriptions); |
1823 } else { | 1823 } else { |
1824 throw jsonDecoder.mismatch(jsonPath, "analysis.setSubscriptions params"); | 1824 throw jsonDecoder.mismatch(jsonPath, "analysis.setSubscriptions params", j
son); |
1825 } | 1825 } |
1826 } | 1826 } |
1827 | 1827 |
1828 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) { | 1828 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) { |
1829 return new AnalysisSetSubscriptionsParams.fromJson( | 1829 return new AnalysisSetSubscriptionsParams.fromJson( |
1830 new RequestDecoder(request), "params", request._params); | 1830 new RequestDecoder(request), "params", request._params); |
1831 } | 1831 } |
1832 | 1832 |
1833 Map<String, dynamic> toJson() { | 1833 Map<String, dynamic> toJson() { |
1834 Map<String, dynamic> result = {}; | 1834 Map<String, dynamic> result = {}; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 } | 1915 } |
1916 if (json is Map) { | 1916 if (json is Map) { |
1917 Map<String, dynamic> files; | 1917 Map<String, dynamic> files; |
1918 if (json.containsKey("files")) { | 1918 if (json.containsKey("files")) { |
1919 files = jsonDecoder._decodeMap(jsonPath + ".files", json["files"], value
Decoder: (String jsonPath, Object json) => jsonDecoder._decodeUnion(jsonPath, js
on, "type", {"add": (String jsonPath, Object json) => new AddContentOverlay.from
Json(jsonDecoder, jsonPath, json), "change": (String jsonPath, Object json) => n
ew ChangeContentOverlay.fromJson(jsonDecoder, jsonPath, json), "remove": (String
jsonPath, Object json) => new RemoveContentOverlay.fromJson(jsonDecoder, jsonPa
th, json)})); | 1919 files = jsonDecoder._decodeMap(jsonPath + ".files", json["files"], value
Decoder: (String jsonPath, Object json) => jsonDecoder._decodeUnion(jsonPath, js
on, "type", {"add": (String jsonPath, Object json) => new AddContentOverlay.from
Json(jsonDecoder, jsonPath, json), "change": (String jsonPath, Object json) => n
ew ChangeContentOverlay.fromJson(jsonDecoder, jsonPath, json), "remove": (String
jsonPath, Object json) => new RemoveContentOverlay.fromJson(jsonDecoder, jsonPa
th, json)})); |
1920 } else { | 1920 } else { |
1921 throw jsonDecoder.missingKey(jsonPath, "files"); | 1921 throw jsonDecoder.missingKey(jsonPath, "files"); |
1922 } | 1922 } |
1923 return new AnalysisUpdateContentParams(files); | 1923 return new AnalysisUpdateContentParams(files); |
1924 } else { | 1924 } else { |
1925 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent params"); | 1925 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent params", json
); |
1926 } | 1926 } |
1927 } | 1927 } |
1928 | 1928 |
1929 factory AnalysisUpdateContentParams.fromRequest(Request request) { | 1929 factory AnalysisUpdateContentParams.fromRequest(Request request) { |
1930 return new AnalysisUpdateContentParams.fromJson( | 1930 return new AnalysisUpdateContentParams.fromJson( |
1931 new RequestDecoder(request), "params", request._params); | 1931 new RequestDecoder(request), "params", request._params); |
1932 } | 1932 } |
1933 | 1933 |
1934 Map<String, dynamic> toJson() { | 1934 Map<String, dynamic> toJson() { |
1935 Map<String, dynamic> result = {}; | 1935 Map<String, dynamic> result = {}; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1969 class AnalysisUpdateContentResult implements HasToJson { | 1969 class AnalysisUpdateContentResult implements HasToJson { |
1970 AnalysisUpdateContentResult(); | 1970 AnalysisUpdateContentResult(); |
1971 | 1971 |
1972 factory AnalysisUpdateContentResult.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1972 factory AnalysisUpdateContentResult.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
1973 if (json == null) { | 1973 if (json == null) { |
1974 json = {}; | 1974 json = {}; |
1975 } | 1975 } |
1976 if (json is Map) { | 1976 if (json is Map) { |
1977 return new AnalysisUpdateContentResult(); | 1977 return new AnalysisUpdateContentResult(); |
1978 } else { | 1978 } else { |
1979 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent result"); | 1979 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent result", json
); |
1980 } | 1980 } |
1981 } | 1981 } |
1982 | 1982 |
1983 factory AnalysisUpdateContentResult.fromResponse(Response response) { | 1983 factory AnalysisUpdateContentResult.fromResponse(Response response) { |
1984 return new AnalysisUpdateContentResult.fromJson( | 1984 return new AnalysisUpdateContentResult.fromJson( |
1985 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 1985 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
1986 } | 1986 } |
1987 | 1987 |
1988 Map<String, dynamic> toJson() { | 1988 Map<String, dynamic> toJson() { |
1989 Map<String, dynamic> result = {}; | 1989 Map<String, dynamic> result = {}; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2045 } | 2045 } |
2046 if (json is Map) { | 2046 if (json is Map) { |
2047 AnalysisOptions options; | 2047 AnalysisOptions options; |
2048 if (json.containsKey("options")) { | 2048 if (json.containsKey("options")) { |
2049 options = new AnalysisOptions.fromJson(jsonDecoder, jsonPath + ".options
", json["options"]); | 2049 options = new AnalysisOptions.fromJson(jsonDecoder, jsonPath + ".options
", json["options"]); |
2050 } else { | 2050 } else { |
2051 throw jsonDecoder.missingKey(jsonPath, "options"); | 2051 throw jsonDecoder.missingKey(jsonPath, "options"); |
2052 } | 2052 } |
2053 return new AnalysisUpdateOptionsParams(options); | 2053 return new AnalysisUpdateOptionsParams(options); |
2054 } else { | 2054 } else { |
2055 throw jsonDecoder.mismatch(jsonPath, "analysis.updateOptions params"); | 2055 throw jsonDecoder.mismatch(jsonPath, "analysis.updateOptions params", json
); |
2056 } | 2056 } |
2057 } | 2057 } |
2058 | 2058 |
2059 factory AnalysisUpdateOptionsParams.fromRequest(Request request) { | 2059 factory AnalysisUpdateOptionsParams.fromRequest(Request request) { |
2060 return new AnalysisUpdateOptionsParams.fromJson( | 2060 return new AnalysisUpdateOptionsParams.fromJson( |
2061 new RequestDecoder(request), "params", request._params); | 2061 new RequestDecoder(request), "params", request._params); |
2062 } | 2062 } |
2063 | 2063 |
2064 Map<String, dynamic> toJson() { | 2064 Map<String, dynamic> toJson() { |
2065 Map<String, dynamic> result = {}; | 2065 Map<String, dynamic> result = {}; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2144 } | 2144 } |
2145 if (json is Map) { | 2145 if (json is Map) { |
2146 List<String> directories; | 2146 List<String> directories; |
2147 if (json.containsKey("directories")) { | 2147 if (json.containsKey("directories")) { |
2148 directories = jsonDecoder._decodeList(jsonPath + ".directories", json["d
irectories"], jsonDecoder._decodeString); | 2148 directories = jsonDecoder._decodeList(jsonPath + ".directories", json["d
irectories"], jsonDecoder._decodeString); |
2149 } else { | 2149 } else { |
2150 throw jsonDecoder.missingKey(jsonPath, "directories"); | 2150 throw jsonDecoder.missingKey(jsonPath, "directories"); |
2151 } | 2151 } |
2152 return new AnalysisAnalyzedFilesParams(directories); | 2152 return new AnalysisAnalyzedFilesParams(directories); |
2153 } else { | 2153 } else { |
2154 throw jsonDecoder.mismatch(jsonPath, "analysis.analyzedFiles params"); | 2154 throw jsonDecoder.mismatch(jsonPath, "analysis.analyzedFiles params", json
); |
2155 } | 2155 } |
2156 } | 2156 } |
2157 | 2157 |
2158 factory AnalysisAnalyzedFilesParams.fromNotification(Notification notification
) { | 2158 factory AnalysisAnalyzedFilesParams.fromNotification(Notification notification
) { |
2159 return new AnalysisAnalyzedFilesParams.fromJson( | 2159 return new AnalysisAnalyzedFilesParams.fromJson( |
2160 new ResponseDecoder(null), "params", notification._params); | 2160 new ResponseDecoder(null), "params", notification._params); |
2161 } | 2161 } |
2162 | 2162 |
2163 Map<String, dynamic> toJson() { | 2163 Map<String, dynamic> toJson() { |
2164 Map<String, dynamic> result = {}; | 2164 Map<String, dynamic> result = {}; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2245 throw jsonDecoder.missingKey(jsonPath, "file"); | 2245 throw jsonDecoder.missingKey(jsonPath, "file"); |
2246 } | 2246 } |
2247 List<AnalysisError> errors; | 2247 List<AnalysisError> errors; |
2248 if (json.containsKey("errors")) { | 2248 if (json.containsKey("errors")) { |
2249 errors = jsonDecoder._decodeList(jsonPath + ".errors", json["errors"], (
String jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPat
h, json)); | 2249 errors = jsonDecoder._decodeList(jsonPath + ".errors", json["errors"], (
String jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPat
h, json)); |
2250 } else { | 2250 } else { |
2251 throw jsonDecoder.missingKey(jsonPath, "errors"); | 2251 throw jsonDecoder.missingKey(jsonPath, "errors"); |
2252 } | 2252 } |
2253 return new AnalysisErrorsParams(file, errors); | 2253 return new AnalysisErrorsParams(file, errors); |
2254 } else { | 2254 } else { |
2255 throw jsonDecoder.mismatch(jsonPath, "analysis.errors params"); | 2255 throw jsonDecoder.mismatch(jsonPath, "analysis.errors params", json); |
2256 } | 2256 } |
2257 } | 2257 } |
2258 | 2258 |
2259 factory AnalysisErrorsParams.fromNotification(Notification notification) { | 2259 factory AnalysisErrorsParams.fromNotification(Notification notification) { |
2260 return new AnalysisErrorsParams.fromJson( | 2260 return new AnalysisErrorsParams.fromJson( |
2261 new ResponseDecoder(null), "params", notification._params); | 2261 new ResponseDecoder(null), "params", notification._params); |
2262 } | 2262 } |
2263 | 2263 |
2264 Map<String, dynamic> toJson() { | 2264 Map<String, dynamic> toJson() { |
2265 Map<String, dynamic> result = {}; | 2265 Map<String, dynamic> result = {}; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2326 } | 2326 } |
2327 if (json is Map) { | 2327 if (json is Map) { |
2328 List<String> files; | 2328 List<String> files; |
2329 if (json.containsKey("files")) { | 2329 if (json.containsKey("files")) { |
2330 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); | 2330 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); |
2331 } else { | 2331 } else { |
2332 throw jsonDecoder.missingKey(jsonPath, "files"); | 2332 throw jsonDecoder.missingKey(jsonPath, "files"); |
2333 } | 2333 } |
2334 return new AnalysisFlushResultsParams(files); | 2334 return new AnalysisFlushResultsParams(files); |
2335 } else { | 2335 } else { |
2336 throw jsonDecoder.mismatch(jsonPath, "analysis.flushResults params"); | 2336 throw jsonDecoder.mismatch(jsonPath, "analysis.flushResults params", json)
; |
2337 } | 2337 } |
2338 } | 2338 } |
2339 | 2339 |
2340 factory AnalysisFlushResultsParams.fromNotification(Notification notification)
{ | 2340 factory AnalysisFlushResultsParams.fromNotification(Notification notification)
{ |
2341 return new AnalysisFlushResultsParams.fromJson( | 2341 return new AnalysisFlushResultsParams.fromJson( |
2342 new ResponseDecoder(null), "params", notification._params); | 2342 new ResponseDecoder(null), "params", notification._params); |
2343 } | 2343 } |
2344 | 2344 |
2345 Map<String, dynamic> toJson() { | 2345 Map<String, dynamic> toJson() { |
2346 Map<String, dynamic> result = {}; | 2346 Map<String, dynamic> result = {}; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2427 throw jsonDecoder.missingKey(jsonPath, "file"); | 2427 throw jsonDecoder.missingKey(jsonPath, "file"); |
2428 } | 2428 } |
2429 List<FoldingRegion> regions; | 2429 List<FoldingRegion> regions; |
2430 if (json.containsKey("regions")) { | 2430 if (json.containsKey("regions")) { |
2431 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new FoldingRegion.fromJson(jsonDecoder, json
Path, json)); | 2431 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new FoldingRegion.fromJson(jsonDecoder, json
Path, json)); |
2432 } else { | 2432 } else { |
2433 throw jsonDecoder.missingKey(jsonPath, "regions"); | 2433 throw jsonDecoder.missingKey(jsonPath, "regions"); |
2434 } | 2434 } |
2435 return new AnalysisFoldingParams(file, regions); | 2435 return new AnalysisFoldingParams(file, regions); |
2436 } else { | 2436 } else { |
2437 throw jsonDecoder.mismatch(jsonPath, "analysis.folding params"); | 2437 throw jsonDecoder.mismatch(jsonPath, "analysis.folding params", json); |
2438 } | 2438 } |
2439 } | 2439 } |
2440 | 2440 |
2441 factory AnalysisFoldingParams.fromNotification(Notification notification) { | 2441 factory AnalysisFoldingParams.fromNotification(Notification notification) { |
2442 return new AnalysisFoldingParams.fromJson( | 2442 return new AnalysisFoldingParams.fromJson( |
2443 new ResponseDecoder(null), "params", notification._params); | 2443 new ResponseDecoder(null), "params", notification._params); |
2444 } | 2444 } |
2445 | 2445 |
2446 Map<String, dynamic> toJson() { | 2446 Map<String, dynamic> toJson() { |
2447 Map<String, dynamic> result = {}; | 2447 Map<String, dynamic> result = {}; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2539 throw jsonDecoder.missingKey(jsonPath, "file"); | 2539 throw jsonDecoder.missingKey(jsonPath, "file"); |
2540 } | 2540 } |
2541 List<HighlightRegion> regions; | 2541 List<HighlightRegion> regions; |
2542 if (json.containsKey("regions")) { | 2542 if (json.containsKey("regions")) { |
2543 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new HighlightRegion.fromJson(jsonDecoder, js
onPath, json)); | 2543 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new HighlightRegion.fromJson(jsonDecoder, js
onPath, json)); |
2544 } else { | 2544 } else { |
2545 throw jsonDecoder.missingKey(jsonPath, "regions"); | 2545 throw jsonDecoder.missingKey(jsonPath, "regions"); |
2546 } | 2546 } |
2547 return new AnalysisHighlightsParams(file, regions); | 2547 return new AnalysisHighlightsParams(file, regions); |
2548 } else { | 2548 } else { |
2549 throw jsonDecoder.mismatch(jsonPath, "analysis.highlights params"); | 2549 throw jsonDecoder.mismatch(jsonPath, "analysis.highlights params", json); |
2550 } | 2550 } |
2551 } | 2551 } |
2552 | 2552 |
2553 factory AnalysisHighlightsParams.fromNotification(Notification notification) { | 2553 factory AnalysisHighlightsParams.fromNotification(Notification notification) { |
2554 return new AnalysisHighlightsParams.fromJson( | 2554 return new AnalysisHighlightsParams.fromJson( |
2555 new ResponseDecoder(null), "params", notification._params); | 2555 new ResponseDecoder(null), "params", notification._params); |
2556 } | 2556 } |
2557 | 2557 |
2558 Map<String, dynamic> toJson() { | 2558 Map<String, dynamic> toJson() { |
2559 Map<String, dynamic> result = {}; | 2559 Map<String, dynamic> result = {}; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 throw jsonDecoder.missingKey(jsonPath, "length"); | 2693 throw jsonDecoder.missingKey(jsonPath, "length"); |
2694 } | 2694 } |
2695 int delta; | 2695 int delta; |
2696 if (json.containsKey("delta")) { | 2696 if (json.containsKey("delta")) { |
2697 delta = jsonDecoder._decodeInt(jsonPath + ".delta", json["delta"]); | 2697 delta = jsonDecoder._decodeInt(jsonPath + ".delta", json["delta"]); |
2698 } else { | 2698 } else { |
2699 throw jsonDecoder.missingKey(jsonPath, "delta"); | 2699 throw jsonDecoder.missingKey(jsonPath, "delta"); |
2700 } | 2700 } |
2701 return new AnalysisInvalidateParams(file, offset, length, delta); | 2701 return new AnalysisInvalidateParams(file, offset, length, delta); |
2702 } else { | 2702 } else { |
2703 throw jsonDecoder.mismatch(jsonPath, "analysis.invalidate params"); | 2703 throw jsonDecoder.mismatch(jsonPath, "analysis.invalidate params", json); |
2704 } | 2704 } |
2705 } | 2705 } |
2706 | 2706 |
2707 factory AnalysisInvalidateParams.fromNotification(Notification notification) { | 2707 factory AnalysisInvalidateParams.fromNotification(Notification notification) { |
2708 return new AnalysisInvalidateParams.fromJson( | 2708 return new AnalysisInvalidateParams.fromJson( |
2709 new ResponseDecoder(null), "params", notification._params); | 2709 new ResponseDecoder(null), "params", notification._params); |
2710 } | 2710 } |
2711 | 2711 |
2712 Map<String, dynamic> toJson() { | 2712 Map<String, dynamic> toJson() { |
2713 Map<String, dynamic> result = {}; | 2713 Map<String, dynamic> result = {}; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2865 throw jsonDecoder.missingKey(jsonPath, "targets"); | 2865 throw jsonDecoder.missingKey(jsonPath, "targets"); |
2866 } | 2866 } |
2867 List<String> files; | 2867 List<String> files; |
2868 if (json.containsKey("files")) { | 2868 if (json.containsKey("files")) { |
2869 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); | 2869 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); |
2870 } else { | 2870 } else { |
2871 throw jsonDecoder.missingKey(jsonPath, "files"); | 2871 throw jsonDecoder.missingKey(jsonPath, "files"); |
2872 } | 2872 } |
2873 return new AnalysisNavigationParams(file, regions, targets, files); | 2873 return new AnalysisNavigationParams(file, regions, targets, files); |
2874 } else { | 2874 } else { |
2875 throw jsonDecoder.mismatch(jsonPath, "analysis.navigation params"); | 2875 throw jsonDecoder.mismatch(jsonPath, "analysis.navigation params", json); |
2876 } | 2876 } |
2877 } | 2877 } |
2878 | 2878 |
2879 factory AnalysisNavigationParams.fromNotification(Notification notification) { | 2879 factory AnalysisNavigationParams.fromNotification(Notification notification) { |
2880 return new AnalysisNavigationParams.fromJson( | 2880 return new AnalysisNavigationParams.fromJson( |
2881 new ResponseDecoder(null), "params", notification._params); | 2881 new ResponseDecoder(null), "params", notification._params); |
2882 } | 2882 } |
2883 | 2883 |
2884 Map<String, dynamic> toJson() { | 2884 Map<String, dynamic> toJson() { |
2885 Map<String, dynamic> result = {}; | 2885 Map<String, dynamic> result = {}; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2975 throw jsonDecoder.missingKey(jsonPath, "file"); | 2975 throw jsonDecoder.missingKey(jsonPath, "file"); |
2976 } | 2976 } |
2977 List<Occurrences> occurrences; | 2977 List<Occurrences> occurrences; |
2978 if (json.containsKey("occurrences")) { | 2978 if (json.containsKey("occurrences")) { |
2979 occurrences = jsonDecoder._decodeList(jsonPath + ".occurrences", json["o
ccurrences"], (String jsonPath, Object json) => new Occurrences.fromJson(jsonDec
oder, jsonPath, json)); | 2979 occurrences = jsonDecoder._decodeList(jsonPath + ".occurrences", json["o
ccurrences"], (String jsonPath, Object json) => new Occurrences.fromJson(jsonDec
oder, jsonPath, json)); |
2980 } else { | 2980 } else { |
2981 throw jsonDecoder.missingKey(jsonPath, "occurrences"); | 2981 throw jsonDecoder.missingKey(jsonPath, "occurrences"); |
2982 } | 2982 } |
2983 return new AnalysisOccurrencesParams(file, occurrences); | 2983 return new AnalysisOccurrencesParams(file, occurrences); |
2984 } else { | 2984 } else { |
2985 throw jsonDecoder.mismatch(jsonPath, "analysis.occurrences params"); | 2985 throw jsonDecoder.mismatch(jsonPath, "analysis.occurrences params", json); |
2986 } | 2986 } |
2987 } | 2987 } |
2988 | 2988 |
2989 factory AnalysisOccurrencesParams.fromNotification(Notification notification)
{ | 2989 factory AnalysisOccurrencesParams.fromNotification(Notification notification)
{ |
2990 return new AnalysisOccurrencesParams.fromJson( | 2990 return new AnalysisOccurrencesParams.fromJson( |
2991 new ResponseDecoder(null), "params", notification._params); | 2991 new ResponseDecoder(null), "params", notification._params); |
2992 } | 2992 } |
2993 | 2993 |
2994 Map<String, dynamic> toJson() { | 2994 Map<String, dynamic> toJson() { |
2995 Map<String, dynamic> result = {}; | 2995 Map<String, dynamic> result = {}; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3079 throw jsonDecoder.missingKey(jsonPath, "file"); | 3079 throw jsonDecoder.missingKey(jsonPath, "file"); |
3080 } | 3080 } |
3081 Outline outline; | 3081 Outline outline; |
3082 if (json.containsKey("outline")) { | 3082 if (json.containsKey("outline")) { |
3083 outline = new Outline.fromJson(jsonDecoder, jsonPath + ".outline", json[
"outline"]); | 3083 outline = new Outline.fromJson(jsonDecoder, jsonPath + ".outline", json[
"outline"]); |
3084 } else { | 3084 } else { |
3085 throw jsonDecoder.missingKey(jsonPath, "outline"); | 3085 throw jsonDecoder.missingKey(jsonPath, "outline"); |
3086 } | 3086 } |
3087 return new AnalysisOutlineParams(file, outline); | 3087 return new AnalysisOutlineParams(file, outline); |
3088 } else { | 3088 } else { |
3089 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params"); | 3089 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params", json); |
3090 } | 3090 } |
3091 } | 3091 } |
3092 | 3092 |
3093 factory AnalysisOutlineParams.fromNotification(Notification notification) { | 3093 factory AnalysisOutlineParams.fromNotification(Notification notification) { |
3094 return new AnalysisOutlineParams.fromJson( | 3094 return new AnalysisOutlineParams.fromJson( |
3095 new ResponseDecoder(null), "params", notification._params); | 3095 new ResponseDecoder(null), "params", notification._params); |
3096 } | 3096 } |
3097 | 3097 |
3098 Map<String, dynamic> toJson() { | 3098 Map<String, dynamic> toJson() { |
3099 Map<String, dynamic> result = {}; | 3099 Map<String, dynamic> result = {}; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3183 throw jsonDecoder.missingKey(jsonPath, "file"); | 3183 throw jsonDecoder.missingKey(jsonPath, "file"); |
3184 } | 3184 } |
3185 List<Override> overrides; | 3185 List<Override> overrides; |
3186 if (json.containsKey("overrides")) { | 3186 if (json.containsKey("overrides")) { |
3187 overrides = jsonDecoder._decodeList(jsonPath + ".overrides", json["overr
ides"], (String jsonPath, Object json) => new Override.fromJson(jsonDecoder, jso
nPath, json)); | 3187 overrides = jsonDecoder._decodeList(jsonPath + ".overrides", json["overr
ides"], (String jsonPath, Object json) => new Override.fromJson(jsonDecoder, jso
nPath, json)); |
3188 } else { | 3188 } else { |
3189 throw jsonDecoder.missingKey(jsonPath, "overrides"); | 3189 throw jsonDecoder.missingKey(jsonPath, "overrides"); |
3190 } | 3190 } |
3191 return new AnalysisOverridesParams(file, overrides); | 3191 return new AnalysisOverridesParams(file, overrides); |
3192 } else { | 3192 } else { |
3193 throw jsonDecoder.mismatch(jsonPath, "analysis.overrides params"); | 3193 throw jsonDecoder.mismatch(jsonPath, "analysis.overrides params", json); |
3194 } | 3194 } |
3195 } | 3195 } |
3196 | 3196 |
3197 factory AnalysisOverridesParams.fromNotification(Notification notification) { | 3197 factory AnalysisOverridesParams.fromNotification(Notification notification) { |
3198 return new AnalysisOverridesParams.fromJson( | 3198 return new AnalysisOverridesParams.fromJson( |
3199 new ResponseDecoder(null), "params", notification._params); | 3199 new ResponseDecoder(null), "params", notification._params); |
3200 } | 3200 } |
3201 | 3201 |
3202 Map<String, dynamic> toJson() { | 3202 Map<String, dynamic> toJson() { |
3203 Map<String, dynamic> result = {}; | 3203 Map<String, dynamic> result = {}; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3287 throw jsonDecoder.missingKey(jsonPath, "file"); | 3287 throw jsonDecoder.missingKey(jsonPath, "file"); |
3288 } | 3288 } |
3289 int offset; | 3289 int offset; |
3290 if (json.containsKey("offset")) { | 3290 if (json.containsKey("offset")) { |
3291 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 3291 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); |
3292 } else { | 3292 } else { |
3293 throw jsonDecoder.missingKey(jsonPath, "offset"); | 3293 throw jsonDecoder.missingKey(jsonPath, "offset"); |
3294 } | 3294 } |
3295 return new CompletionGetSuggestionsParams(file, offset); | 3295 return new CompletionGetSuggestionsParams(file, offset); |
3296 } else { | 3296 } else { |
3297 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions params"); | 3297 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions params", j
son); |
3298 } | 3298 } |
3299 } | 3299 } |
3300 | 3300 |
3301 factory CompletionGetSuggestionsParams.fromRequest(Request request) { | 3301 factory CompletionGetSuggestionsParams.fromRequest(Request request) { |
3302 return new CompletionGetSuggestionsParams.fromJson( | 3302 return new CompletionGetSuggestionsParams.fromJson( |
3303 new RequestDecoder(request), "params", request._params); | 3303 new RequestDecoder(request), "params", request._params); |
3304 } | 3304 } |
3305 | 3305 |
3306 Map<String, dynamic> toJson() { | 3306 Map<String, dynamic> toJson() { |
3307 Map<String, dynamic> result = {}; | 3307 Map<String, dynamic> result = {}; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3368 } | 3368 } |
3369 if (json is Map) { | 3369 if (json is Map) { |
3370 String id; | 3370 String id; |
3371 if (json.containsKey("id")) { | 3371 if (json.containsKey("id")) { |
3372 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3372 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
3373 } else { | 3373 } else { |
3374 throw jsonDecoder.missingKey(jsonPath, "id"); | 3374 throw jsonDecoder.missingKey(jsonPath, "id"); |
3375 } | 3375 } |
3376 return new CompletionGetSuggestionsResult(id); | 3376 return new CompletionGetSuggestionsResult(id); |
3377 } else { | 3377 } else { |
3378 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions result"); | 3378 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions result", j
son); |
3379 } | 3379 } |
3380 } | 3380 } |
3381 | 3381 |
3382 factory CompletionGetSuggestionsResult.fromResponse(Response response) { | 3382 factory CompletionGetSuggestionsResult.fromResponse(Response response) { |
3383 return new CompletionGetSuggestionsResult.fromJson( | 3383 return new CompletionGetSuggestionsResult.fromJson( |
3384 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 3384 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
3385 } | 3385 } |
3386 | 3386 |
3387 Map<String, dynamic> toJson() { | 3387 Map<String, dynamic> toJson() { |
3388 Map<String, dynamic> result = {}; | 3388 Map<String, dynamic> result = {}; |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3558 throw jsonDecoder.missingKey(jsonPath, "results"); | 3558 throw jsonDecoder.missingKey(jsonPath, "results"); |
3559 } | 3559 } |
3560 bool isLast; | 3560 bool isLast; |
3561 if (json.containsKey("isLast")) { | 3561 if (json.containsKey("isLast")) { |
3562 isLast = jsonDecoder._decodeBool(jsonPath + ".isLast", json["isLast"]); | 3562 isLast = jsonDecoder._decodeBool(jsonPath + ".isLast", json["isLast"]); |
3563 } else { | 3563 } else { |
3564 throw jsonDecoder.missingKey(jsonPath, "isLast"); | 3564 throw jsonDecoder.missingKey(jsonPath, "isLast"); |
3565 } | 3565 } |
3566 return new CompletionResultsParams(id, replacementOffset, replacementLengt
h, results, isLast); | 3566 return new CompletionResultsParams(id, replacementOffset, replacementLengt
h, results, isLast); |
3567 } else { | 3567 } else { |
3568 throw jsonDecoder.mismatch(jsonPath, "completion.results params"); | 3568 throw jsonDecoder.mismatch(jsonPath, "completion.results params", json); |
3569 } | 3569 } |
3570 } | 3570 } |
3571 | 3571 |
3572 factory CompletionResultsParams.fromNotification(Notification notification) { | 3572 factory CompletionResultsParams.fromNotification(Notification notification) { |
3573 return new CompletionResultsParams.fromJson( | 3573 return new CompletionResultsParams.fromJson( |
3574 new ResponseDecoder(null), "params", notification._params); | 3574 new ResponseDecoder(null), "params", notification._params); |
3575 } | 3575 } |
3576 | 3576 |
3577 Map<String, dynamic> toJson() { | 3577 Map<String, dynamic> toJson() { |
3578 Map<String, dynamic> result = {}; | 3578 Map<String, dynamic> result = {}; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3698 throw jsonDecoder.missingKey(jsonPath, "offset"); | 3698 throw jsonDecoder.missingKey(jsonPath, "offset"); |
3699 } | 3699 } |
3700 bool includePotential; | 3700 bool includePotential; |
3701 if (json.containsKey("includePotential")) { | 3701 if (json.containsKey("includePotential")) { |
3702 includePotential = jsonDecoder._decodeBool(jsonPath + ".includePotential
", json["includePotential"]); | 3702 includePotential = jsonDecoder._decodeBool(jsonPath + ".includePotential
", json["includePotential"]); |
3703 } else { | 3703 } else { |
3704 throw jsonDecoder.missingKey(jsonPath, "includePotential"); | 3704 throw jsonDecoder.missingKey(jsonPath, "includePotential"); |
3705 } | 3705 } |
3706 return new SearchFindElementReferencesParams(file, offset, includePotentia
l); | 3706 return new SearchFindElementReferencesParams(file, offset, includePotentia
l); |
3707 } else { | 3707 } else { |
3708 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences params"
); | 3708 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences params"
, json); |
3709 } | 3709 } |
3710 } | 3710 } |
3711 | 3711 |
3712 factory SearchFindElementReferencesParams.fromRequest(Request request) { | 3712 factory SearchFindElementReferencesParams.fromRequest(Request request) { |
3713 return new SearchFindElementReferencesParams.fromJson( | 3713 return new SearchFindElementReferencesParams.fromJson( |
3714 new RequestDecoder(request), "params", request._params); | 3714 new RequestDecoder(request), "params", request._params); |
3715 } | 3715 } |
3716 | 3716 |
3717 Map<String, dynamic> toJson() { | 3717 Map<String, dynamic> toJson() { |
3718 Map<String, dynamic> result = {}; | 3718 Map<String, dynamic> result = {}; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3811 String id; | 3811 String id; |
3812 if (json.containsKey("id")) { | 3812 if (json.containsKey("id")) { |
3813 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3813 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
3814 } | 3814 } |
3815 Element element; | 3815 Element element; |
3816 if (json.containsKey("element")) { | 3816 if (json.containsKey("element")) { |
3817 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 3817 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); |
3818 } | 3818 } |
3819 return new SearchFindElementReferencesResult(id: id, element: element); | 3819 return new SearchFindElementReferencesResult(id: id, element: element); |
3820 } else { | 3820 } else { |
3821 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences result"
); | 3821 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences result"
, json); |
3822 } | 3822 } |
3823 } | 3823 } |
3824 | 3824 |
3825 factory SearchFindElementReferencesResult.fromResponse(Response response) { | 3825 factory SearchFindElementReferencesResult.fromResponse(Response response) { |
3826 return new SearchFindElementReferencesResult.fromJson( | 3826 return new SearchFindElementReferencesResult.fromJson( |
3827 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 3827 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
3828 } | 3828 } |
3829 | 3829 |
3830 Map<String, dynamic> toJson() { | 3830 Map<String, dynamic> toJson() { |
3831 Map<String, dynamic> result = {}; | 3831 Map<String, dynamic> result = {}; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3896 } | 3896 } |
3897 if (json is Map) { | 3897 if (json is Map) { |
3898 String name; | 3898 String name; |
3899 if (json.containsKey("name")) { | 3899 if (json.containsKey("name")) { |
3900 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 3900 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); |
3901 } else { | 3901 } else { |
3902 throw jsonDecoder.missingKey(jsonPath, "name"); | 3902 throw jsonDecoder.missingKey(jsonPath, "name"); |
3903 } | 3903 } |
3904 return new SearchFindMemberDeclarationsParams(name); | 3904 return new SearchFindMemberDeclarationsParams(name); |
3905 } else { | 3905 } else { |
3906 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations params
"); | 3906 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations params
", json); |
3907 } | 3907 } |
3908 } | 3908 } |
3909 | 3909 |
3910 factory SearchFindMemberDeclarationsParams.fromRequest(Request request) { | 3910 factory SearchFindMemberDeclarationsParams.fromRequest(Request request) { |
3911 return new SearchFindMemberDeclarationsParams.fromJson( | 3911 return new SearchFindMemberDeclarationsParams.fromJson( |
3912 new RequestDecoder(request), "params", request._params); | 3912 new RequestDecoder(request), "params", request._params); |
3913 } | 3913 } |
3914 | 3914 |
3915 Map<String, dynamic> toJson() { | 3915 Map<String, dynamic> toJson() { |
3916 Map<String, dynamic> result = {}; | 3916 Map<String, dynamic> result = {}; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3974 } | 3974 } |
3975 if (json is Map) { | 3975 if (json is Map) { |
3976 String id; | 3976 String id; |
3977 if (json.containsKey("id")) { | 3977 if (json.containsKey("id")) { |
3978 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3978 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
3979 } else { | 3979 } else { |
3980 throw jsonDecoder.missingKey(jsonPath, "id"); | 3980 throw jsonDecoder.missingKey(jsonPath, "id"); |
3981 } | 3981 } |
3982 return new SearchFindMemberDeclarationsResult(id); | 3982 return new SearchFindMemberDeclarationsResult(id); |
3983 } else { | 3983 } else { |
3984 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations result
"); | 3984 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations result
", json); |
3985 } | 3985 } |
3986 } | 3986 } |
3987 | 3987 |
3988 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) { | 3988 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) { |
3989 return new SearchFindMemberDeclarationsResult.fromJson( | 3989 return new SearchFindMemberDeclarationsResult.fromJson( |
3990 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 3990 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
3991 } | 3991 } |
3992 | 3992 |
3993 Map<String, dynamic> toJson() { | 3993 Map<String, dynamic> toJson() { |
3994 Map<String, dynamic> result = {}; | 3994 Map<String, dynamic> result = {}; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4052 } | 4052 } |
4053 if (json is Map) { | 4053 if (json is Map) { |
4054 String name; | 4054 String name; |
4055 if (json.containsKey("name")) { | 4055 if (json.containsKey("name")) { |
4056 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 4056 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); |
4057 } else { | 4057 } else { |
4058 throw jsonDecoder.missingKey(jsonPath, "name"); | 4058 throw jsonDecoder.missingKey(jsonPath, "name"); |
4059 } | 4059 } |
4060 return new SearchFindMemberReferencesParams(name); | 4060 return new SearchFindMemberReferencesParams(name); |
4061 } else { | 4061 } else { |
4062 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences params")
; | 4062 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences params",
json); |
4063 } | 4063 } |
4064 } | 4064 } |
4065 | 4065 |
4066 factory SearchFindMemberReferencesParams.fromRequest(Request request) { | 4066 factory SearchFindMemberReferencesParams.fromRequest(Request request) { |
4067 return new SearchFindMemberReferencesParams.fromJson( | 4067 return new SearchFindMemberReferencesParams.fromJson( |
4068 new RequestDecoder(request), "params", request._params); | 4068 new RequestDecoder(request), "params", request._params); |
4069 } | 4069 } |
4070 | 4070 |
4071 Map<String, dynamic> toJson() { | 4071 Map<String, dynamic> toJson() { |
4072 Map<String, dynamic> result = {}; | 4072 Map<String, dynamic> result = {}; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4130 } | 4130 } |
4131 if (json is Map) { | 4131 if (json is Map) { |
4132 String id; | 4132 String id; |
4133 if (json.containsKey("id")) { | 4133 if (json.containsKey("id")) { |
4134 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 4134 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
4135 } else { | 4135 } else { |
4136 throw jsonDecoder.missingKey(jsonPath, "id"); | 4136 throw jsonDecoder.missingKey(jsonPath, "id"); |
4137 } | 4137 } |
4138 return new SearchFindMemberReferencesResult(id); | 4138 return new SearchFindMemberReferencesResult(id); |
4139 } else { | 4139 } else { |
4140 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences result")
; | 4140 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences result",
json); |
4141 } | 4141 } |
4142 } | 4142 } |
4143 | 4143 |
4144 factory SearchFindMemberReferencesResult.fromResponse(Response response) { | 4144 factory SearchFindMemberReferencesResult.fromResponse(Response response) { |
4145 return new SearchFindMemberReferencesResult.fromJson( | 4145 return new SearchFindMemberReferencesResult.fromJson( |
4146 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 4146 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
4147 } | 4147 } |
4148 | 4148 |
4149 Map<String, dynamic> toJson() { | 4149 Map<String, dynamic> toJson() { |
4150 Map<String, dynamic> result = {}; | 4150 Map<String, dynamic> result = {}; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4210 } | 4210 } |
4211 if (json is Map) { | 4211 if (json is Map) { |
4212 String pattern; | 4212 String pattern; |
4213 if (json.containsKey("pattern")) { | 4213 if (json.containsKey("pattern")) { |
4214 pattern = jsonDecoder._decodeString(jsonPath + ".pattern", json["pattern
"]); | 4214 pattern = jsonDecoder._decodeString(jsonPath + ".pattern", json["pattern
"]); |
4215 } else { | 4215 } else { |
4216 throw jsonDecoder.missingKey(jsonPath, "pattern"); | 4216 throw jsonDecoder.missingKey(jsonPath, "pattern"); |
4217 } | 4217 } |
4218 return new SearchFindTopLevelDeclarationsParams(pattern); | 4218 return new SearchFindTopLevelDeclarationsParams(pattern); |
4219 } else { | 4219 } else { |
4220 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations para
ms"); | 4220 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations para
ms", json); |
4221 } | 4221 } |
4222 } | 4222 } |
4223 | 4223 |
4224 factory SearchFindTopLevelDeclarationsParams.fromRequest(Request request) { | 4224 factory SearchFindTopLevelDeclarationsParams.fromRequest(Request request) { |
4225 return new SearchFindTopLevelDeclarationsParams.fromJson( | 4225 return new SearchFindTopLevelDeclarationsParams.fromJson( |
4226 new RequestDecoder(request), "params", request._params); | 4226 new RequestDecoder(request), "params", request._params); |
4227 } | 4227 } |
4228 | 4228 |
4229 Map<String, dynamic> toJson() { | 4229 Map<String, dynamic> toJson() { |
4230 Map<String, dynamic> result = {}; | 4230 Map<String, dynamic> result = {}; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4288 } | 4288 } |
4289 if (json is Map) { | 4289 if (json is Map) { |
4290 String id; | 4290 String id; |
4291 if (json.containsKey("id")) { | 4291 if (json.containsKey("id")) { |
4292 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 4292 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
4293 } else { | 4293 } else { |
4294 throw jsonDecoder.missingKey(jsonPath, "id"); | 4294 throw jsonDecoder.missingKey(jsonPath, "id"); |
4295 } | 4295 } |
4296 return new SearchFindTopLevelDeclarationsResult(id); | 4296 return new SearchFindTopLevelDeclarationsResult(id); |
4297 } else { | 4297 } else { |
4298 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations resu
lt"); | 4298 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations resu
lt", json); |
4299 } | 4299 } |
4300 } | 4300 } |
4301 | 4301 |
4302 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) { | 4302 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) { |
4303 return new SearchFindTopLevelDeclarationsResult.fromJson( | 4303 return new SearchFindTopLevelDeclarationsResult.fromJson( |
4304 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 4304 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
4305 } | 4305 } |
4306 | 4306 |
4307 Map<String, dynamic> toJson() { | 4307 Map<String, dynamic> toJson() { |
4308 Map<String, dynamic> result = {}; | 4308 Map<String, dynamic> result = {}; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4391 throw jsonDecoder.missingKey(jsonPath, "file"); | 4391 throw jsonDecoder.missingKey(jsonPath, "file"); |
4392 } | 4392 } |
4393 int offset; | 4393 int offset; |
4394 if (json.containsKey("offset")) { | 4394 if (json.containsKey("offset")) { |
4395 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 4395 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); |
4396 } else { | 4396 } else { |
4397 throw jsonDecoder.missingKey(jsonPath, "offset"); | 4397 throw jsonDecoder.missingKey(jsonPath, "offset"); |
4398 } | 4398 } |
4399 return new SearchGetTypeHierarchyParams(file, offset); | 4399 return new SearchGetTypeHierarchyParams(file, offset); |
4400 } else { | 4400 } else { |
4401 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy params"); | 4401 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy params", jso
n); |
4402 } | 4402 } |
4403 } | 4403 } |
4404 | 4404 |
4405 factory SearchGetTypeHierarchyParams.fromRequest(Request request) { | 4405 factory SearchGetTypeHierarchyParams.fromRequest(Request request) { |
4406 return new SearchGetTypeHierarchyParams.fromJson( | 4406 return new SearchGetTypeHierarchyParams.fromJson( |
4407 new RequestDecoder(request), "params", request._params); | 4407 new RequestDecoder(request), "params", request._params); |
4408 } | 4408 } |
4409 | 4409 |
4410 Map<String, dynamic> toJson() { | 4410 Map<String, dynamic> toJson() { |
4411 Map<String, dynamic> result = {}; | 4411 Map<String, dynamic> result = {}; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4485 if (json == null) { | 4485 if (json == null) { |
4486 json = {}; | 4486 json = {}; |
4487 } | 4487 } |
4488 if (json is Map) { | 4488 if (json is Map) { |
4489 List<TypeHierarchyItem> hierarchyItems; | 4489 List<TypeHierarchyItem> hierarchyItems; |
4490 if (json.containsKey("hierarchyItems")) { | 4490 if (json.containsKey("hierarchyItems")) { |
4491 hierarchyItems = jsonDecoder._decodeList(jsonPath + ".hierarchyItems", j
son["hierarchyItems"], (String jsonPath, Object json) => new TypeHierarchyItem.f
romJson(jsonDecoder, jsonPath, json)); | 4491 hierarchyItems = jsonDecoder._decodeList(jsonPath + ".hierarchyItems", j
son["hierarchyItems"], (String jsonPath, Object json) => new TypeHierarchyItem.f
romJson(jsonDecoder, jsonPath, json)); |
4492 } | 4492 } |
4493 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems); | 4493 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems); |
4494 } else { | 4494 } else { |
4495 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy result"); | 4495 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy result", jso
n); |
4496 } | 4496 } |
4497 } | 4497 } |
4498 | 4498 |
4499 factory SearchGetTypeHierarchyResult.fromResponse(Response response) { | 4499 factory SearchGetTypeHierarchyResult.fromResponse(Response response) { |
4500 return new SearchGetTypeHierarchyResult.fromJson( | 4500 return new SearchGetTypeHierarchyResult.fromJson( |
4501 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 4501 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
4502 } | 4502 } |
4503 | 4503 |
4504 Map<String, dynamic> toJson() { | 4504 Map<String, dynamic> toJson() { |
4505 Map<String, dynamic> result = {}; | 4505 Map<String, dynamic> result = {}; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4613 throw jsonDecoder.missingKey(jsonPath, "results"); | 4613 throw jsonDecoder.missingKey(jsonPath, "results"); |
4614 } | 4614 } |
4615 bool isLast; | 4615 bool isLast; |
4616 if (json.containsKey("isLast")) { | 4616 if (json.containsKey("isLast")) { |
4617 isLast = jsonDecoder._decodeBool(jsonPath + ".isLast", json["isLast"]); | 4617 isLast = jsonDecoder._decodeBool(jsonPath + ".isLast", json["isLast"]); |
4618 } else { | 4618 } else { |
4619 throw jsonDecoder.missingKey(jsonPath, "isLast"); | 4619 throw jsonDecoder.missingKey(jsonPath, "isLast"); |
4620 } | 4620 } |
4621 return new SearchResultsParams(id, results, isLast); | 4621 return new SearchResultsParams(id, results, isLast); |
4622 } else { | 4622 } else { |
4623 throw jsonDecoder.mismatch(jsonPath, "search.results params"); | 4623 throw jsonDecoder.mismatch(jsonPath, "search.results params", json); |
4624 } | 4624 } |
4625 } | 4625 } |
4626 | 4626 |
4627 factory SearchResultsParams.fromNotification(Notification notification) { | 4627 factory SearchResultsParams.fromNotification(Notification notification) { |
4628 return new SearchResultsParams.fromJson( | 4628 return new SearchResultsParams.fromJson( |
4629 new ResponseDecoder(null), "params", notification._params); | 4629 new ResponseDecoder(null), "params", notification._params); |
4630 } | 4630 } |
4631 | 4631 |
4632 Map<String, dynamic> toJson() { | 4632 Map<String, dynamic> toJson() { |
4633 Map<String, dynamic> result = {}; | 4633 Map<String, dynamic> result = {}; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4763 selectionLength = jsonDecoder._decodeInt(jsonPath + ".selectionLength",
json["selectionLength"]); | 4763 selectionLength = jsonDecoder._decodeInt(jsonPath + ".selectionLength",
json["selectionLength"]); |
4764 } else { | 4764 } else { |
4765 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); | 4765 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); |
4766 } | 4766 } |
4767 int lineLength; | 4767 int lineLength; |
4768 if (json.containsKey("lineLength")) { | 4768 if (json.containsKey("lineLength")) { |
4769 lineLength = jsonDecoder._decodeInt(jsonPath + ".lineLength", json["line
Length"]); | 4769 lineLength = jsonDecoder._decodeInt(jsonPath + ".lineLength", json["line
Length"]); |
4770 } | 4770 } |
4771 return new EditFormatParams(file, selectionOffset, selectionLength, lineLe
ngth: lineLength); | 4771 return new EditFormatParams(file, selectionOffset, selectionLength, lineLe
ngth: lineLength); |
4772 } else { | 4772 } else { |
4773 throw jsonDecoder.mismatch(jsonPath, "edit.format params"); | 4773 throw jsonDecoder.mismatch(jsonPath, "edit.format params", json); |
4774 } | 4774 } |
4775 } | 4775 } |
4776 | 4776 |
4777 factory EditFormatParams.fromRequest(Request request) { | 4777 factory EditFormatParams.fromRequest(Request request) { |
4778 return new EditFormatParams.fromJson( | 4778 return new EditFormatParams.fromJson( |
4779 new RequestDecoder(request), "params", request._params); | 4779 new RequestDecoder(request), "params", request._params); |
4780 } | 4780 } |
4781 | 4781 |
4782 Map<String, dynamic> toJson() { | 4782 Map<String, dynamic> toJson() { |
4783 Map<String, dynamic> result = {}; | 4783 Map<String, dynamic> result = {}; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4900 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); | 4900 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); |
4901 } | 4901 } |
4902 int selectionLength; | 4902 int selectionLength; |
4903 if (json.containsKey("selectionLength")) { | 4903 if (json.containsKey("selectionLength")) { |
4904 selectionLength = jsonDecoder._decodeInt(jsonPath + ".selectionLength",
json["selectionLength"]); | 4904 selectionLength = jsonDecoder._decodeInt(jsonPath + ".selectionLength",
json["selectionLength"]); |
4905 } else { | 4905 } else { |
4906 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); | 4906 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); |
4907 } | 4907 } |
4908 return new EditFormatResult(edits, selectionOffset, selectionLength); | 4908 return new EditFormatResult(edits, selectionOffset, selectionLength); |
4909 } else { | 4909 } else { |
4910 throw jsonDecoder.mismatch(jsonPath, "edit.format result"); | 4910 throw jsonDecoder.mismatch(jsonPath, "edit.format result", json); |
4911 } | 4911 } |
4912 } | 4912 } |
4913 | 4913 |
4914 factory EditFormatResult.fromResponse(Response response) { | 4914 factory EditFormatResult.fromResponse(Response response) { |
4915 return new EditFormatResult.fromJson( | 4915 return new EditFormatResult.fromJson( |
4916 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 4916 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
4917 } | 4917 } |
4918 | 4918 |
4919 Map<String, dynamic> toJson() { | 4919 Map<String, dynamic> toJson() { |
4920 Map<String, dynamic> result = {}; | 4920 Map<String, dynamic> result = {}; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5030 throw jsonDecoder.missingKey(jsonPath, "offset"); | 5030 throw jsonDecoder.missingKey(jsonPath, "offset"); |
5031 } | 5031 } |
5032 int length; | 5032 int length; |
5033 if (json.containsKey("length")) { | 5033 if (json.containsKey("length")) { |
5034 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 5034 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
5035 } else { | 5035 } else { |
5036 throw jsonDecoder.missingKey(jsonPath, "length"); | 5036 throw jsonDecoder.missingKey(jsonPath, "length"); |
5037 } | 5037 } |
5038 return new EditGetAssistsParams(file, offset, length); | 5038 return new EditGetAssistsParams(file, offset, length); |
5039 } else { | 5039 } else { |
5040 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists params"); | 5040 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists params", json); |
5041 } | 5041 } |
5042 } | 5042 } |
5043 | 5043 |
5044 factory EditGetAssistsParams.fromRequest(Request request) { | 5044 factory EditGetAssistsParams.fromRequest(Request request) { |
5045 return new EditGetAssistsParams.fromJson( | 5045 return new EditGetAssistsParams.fromJson( |
5046 new RequestDecoder(request), "params", request._params); | 5046 new RequestDecoder(request), "params", request._params); |
5047 } | 5047 } |
5048 | 5048 |
5049 Map<String, dynamic> toJson() { | 5049 Map<String, dynamic> toJson() { |
5050 Map<String, dynamic> result = {}; | 5050 Map<String, dynamic> result = {}; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5114 } | 5114 } |
5115 if (json is Map) { | 5115 if (json is Map) { |
5116 List<SourceChange> assists; | 5116 List<SourceChange> assists; |
5117 if (json.containsKey("assists")) { | 5117 if (json.containsKey("assists")) { |
5118 assists = jsonDecoder._decodeList(jsonPath + ".assists", json["assists"]
, (String jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonP
ath, json)); | 5118 assists = jsonDecoder._decodeList(jsonPath + ".assists", json["assists"]
, (String jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonP
ath, json)); |
5119 } else { | 5119 } else { |
5120 throw jsonDecoder.missingKey(jsonPath, "assists"); | 5120 throw jsonDecoder.missingKey(jsonPath, "assists"); |
5121 } | 5121 } |
5122 return new EditGetAssistsResult(assists); | 5122 return new EditGetAssistsResult(assists); |
5123 } else { | 5123 } else { |
5124 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result"); | 5124 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result", json); |
5125 } | 5125 } |
5126 } | 5126 } |
5127 | 5127 |
5128 factory EditGetAssistsResult.fromResponse(Response response) { | 5128 factory EditGetAssistsResult.fromResponse(Response response) { |
5129 return new EditGetAssistsResult.fromJson( | 5129 return new EditGetAssistsResult.fromJson( |
5130 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 5130 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
5131 } | 5131 } |
5132 | 5132 |
5133 Map<String, dynamic> toJson() { | 5133 Map<String, dynamic> toJson() { |
5134 Map<String, dynamic> result = {}; | 5134 Map<String, dynamic> result = {}; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5238 throw jsonDecoder.missingKey(jsonPath, "offset"); | 5238 throw jsonDecoder.missingKey(jsonPath, "offset"); |
5239 } | 5239 } |
5240 int length; | 5240 int length; |
5241 if (json.containsKey("length")) { | 5241 if (json.containsKey("length")) { |
5242 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 5242 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
5243 } else { | 5243 } else { |
5244 throw jsonDecoder.missingKey(jsonPath, "length"); | 5244 throw jsonDecoder.missingKey(jsonPath, "length"); |
5245 } | 5245 } |
5246 return new EditGetAvailableRefactoringsParams(file, offset, length); | 5246 return new EditGetAvailableRefactoringsParams(file, offset, length); |
5247 } else { | 5247 } else { |
5248 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings params
"); | 5248 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings params
", json); |
5249 } | 5249 } |
5250 } | 5250 } |
5251 | 5251 |
5252 factory EditGetAvailableRefactoringsParams.fromRequest(Request request) { | 5252 factory EditGetAvailableRefactoringsParams.fromRequest(Request request) { |
5253 return new EditGetAvailableRefactoringsParams.fromJson( | 5253 return new EditGetAvailableRefactoringsParams.fromJson( |
5254 new RequestDecoder(request), "params", request._params); | 5254 new RequestDecoder(request), "params", request._params); |
5255 } | 5255 } |
5256 | 5256 |
5257 Map<String, dynamic> toJson() { | 5257 Map<String, dynamic> toJson() { |
5258 Map<String, dynamic> result = {}; | 5258 Map<String, dynamic> result = {}; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5322 } | 5322 } |
5323 if (json is Map) { | 5323 if (json is Map) { |
5324 List<RefactoringKind> kinds; | 5324 List<RefactoringKind> kinds; |
5325 if (json.containsKey("kinds")) { | 5325 if (json.containsKey("kinds")) { |
5326 kinds = jsonDecoder._decodeList(jsonPath + ".kinds", json["kinds"], (Str
ing jsonPath, Object json) => new RefactoringKind.fromJson(jsonDecoder, jsonPath
, json)); | 5326 kinds = jsonDecoder._decodeList(jsonPath + ".kinds", json["kinds"], (Str
ing jsonPath, Object json) => new RefactoringKind.fromJson(jsonDecoder, jsonPath
, json)); |
5327 } else { | 5327 } else { |
5328 throw jsonDecoder.missingKey(jsonPath, "kinds"); | 5328 throw jsonDecoder.missingKey(jsonPath, "kinds"); |
5329 } | 5329 } |
5330 return new EditGetAvailableRefactoringsResult(kinds); | 5330 return new EditGetAvailableRefactoringsResult(kinds); |
5331 } else { | 5331 } else { |
5332 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings result
"); | 5332 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings result
", json); |
5333 } | 5333 } |
5334 } | 5334 } |
5335 | 5335 |
5336 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) { | 5336 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) { |
5337 return new EditGetAvailableRefactoringsResult.fromJson( | 5337 return new EditGetAvailableRefactoringsResult.fromJson( |
5338 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 5338 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
5339 } | 5339 } |
5340 | 5340 |
5341 Map<String, dynamic> toJson() { | 5341 Map<String, dynamic> toJson() { |
5342 Map<String, dynamic> result = {}; | 5342 Map<String, dynamic> result = {}; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5423 throw jsonDecoder.missingKey(jsonPath, "file"); | 5423 throw jsonDecoder.missingKey(jsonPath, "file"); |
5424 } | 5424 } |
5425 int offset; | 5425 int offset; |
5426 if (json.containsKey("offset")) { | 5426 if (json.containsKey("offset")) { |
5427 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 5427 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); |
5428 } else { | 5428 } else { |
5429 throw jsonDecoder.missingKey(jsonPath, "offset"); | 5429 throw jsonDecoder.missingKey(jsonPath, "offset"); |
5430 } | 5430 } |
5431 return new EditGetFixesParams(file, offset); | 5431 return new EditGetFixesParams(file, offset); |
5432 } else { | 5432 } else { |
5433 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes params"); | 5433 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes params", json); |
5434 } | 5434 } |
5435 } | 5435 } |
5436 | 5436 |
5437 factory EditGetFixesParams.fromRequest(Request request) { | 5437 factory EditGetFixesParams.fromRequest(Request request) { |
5438 return new EditGetFixesParams.fromJson( | 5438 return new EditGetFixesParams.fromJson( |
5439 new RequestDecoder(request), "params", request._params); | 5439 new RequestDecoder(request), "params", request._params); |
5440 } | 5440 } |
5441 | 5441 |
5442 Map<String, dynamic> toJson() { | 5442 Map<String, dynamic> toJson() { |
5443 Map<String, dynamic> result = {}; | 5443 Map<String, dynamic> result = {}; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5504 } | 5504 } |
5505 if (json is Map) { | 5505 if (json is Map) { |
5506 List<AnalysisErrorFixes> fixes; | 5506 List<AnalysisErrorFixes> fixes; |
5507 if (json.containsKey("fixes")) { | 5507 if (json.containsKey("fixes")) { |
5508 fixes = jsonDecoder._decodeList(jsonPath + ".fixes", json["fixes"], (Str
ing jsonPath, Object json) => new AnalysisErrorFixes.fromJson(jsonDecoder, jsonP
ath, json)); | 5508 fixes = jsonDecoder._decodeList(jsonPath + ".fixes", json["fixes"], (Str
ing jsonPath, Object json) => new AnalysisErrorFixes.fromJson(jsonDecoder, jsonP
ath, json)); |
5509 } else { | 5509 } else { |
5510 throw jsonDecoder.missingKey(jsonPath, "fixes"); | 5510 throw jsonDecoder.missingKey(jsonPath, "fixes"); |
5511 } | 5511 } |
5512 return new EditGetFixesResult(fixes); | 5512 return new EditGetFixesResult(fixes); |
5513 } else { | 5513 } else { |
5514 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result"); | 5514 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result", json); |
5515 } | 5515 } |
5516 } | 5516 } |
5517 | 5517 |
5518 factory EditGetFixesResult.fromResponse(Response response) { | 5518 factory EditGetFixesResult.fromResponse(Response response) { |
5519 return new EditGetFixesResult.fromJson( | 5519 return new EditGetFixesResult.fromJson( |
5520 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 5520 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
5521 } | 5521 } |
5522 | 5522 |
5523 Map<String, dynamic> toJson() { | 5523 Map<String, dynamic> toJson() { |
5524 Map<String, dynamic> result = {}; | 5524 Map<String, dynamic> result = {}; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5704 validateOnly = jsonDecoder._decodeBool(jsonPath + ".validateOnly", json[
"validateOnly"]); | 5704 validateOnly = jsonDecoder._decodeBool(jsonPath + ".validateOnly", json[
"validateOnly"]); |
5705 } else { | 5705 } else { |
5706 throw jsonDecoder.missingKey(jsonPath, "validateOnly"); | 5706 throw jsonDecoder.missingKey(jsonPath, "validateOnly"); |
5707 } | 5707 } |
5708 RefactoringOptions options; | 5708 RefactoringOptions options; |
5709 if (json.containsKey("options")) { | 5709 if (json.containsKey("options")) { |
5710 options = new RefactoringOptions.fromJson(jsonDecoder, jsonPath + ".opti
ons", json["options"], kind); | 5710 options = new RefactoringOptions.fromJson(jsonDecoder, jsonPath + ".opti
ons", json["options"], kind); |
5711 } | 5711 } |
5712 return new EditGetRefactoringParams(kind, file, offset, length, validateOn
ly, options: options); | 5712 return new EditGetRefactoringParams(kind, file, offset, length, validateOn
ly, options: options); |
5713 } else { | 5713 } else { |
5714 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params"); | 5714 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params", json); |
5715 } | 5715 } |
5716 } | 5716 } |
5717 | 5717 |
5718 factory EditGetRefactoringParams.fromRequest(Request request) { | 5718 factory EditGetRefactoringParams.fromRequest(Request request) { |
5719 var params = new EditGetRefactoringParams.fromJson( | 5719 var params = new EditGetRefactoringParams.fromJson( |
5720 new RequestDecoder(request), "params", request._params); | 5720 new RequestDecoder(request), "params", request._params); |
5721 REQUEST_ID_REFACTORING_KINDS[request.id] = params.kind; | 5721 REQUEST_ID_REFACTORING_KINDS[request.id] = params.kind; |
5722 return params; | 5722 return params; |
5723 } | 5723 } |
5724 | 5724 |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5941 SourceChange change; | 5941 SourceChange change; |
5942 if (json.containsKey("change")) { | 5942 if (json.containsKey("change")) { |
5943 change = new SourceChange.fromJson(jsonDecoder, jsonPath + ".change", js
on["change"]); | 5943 change = new SourceChange.fromJson(jsonDecoder, jsonPath + ".change", js
on["change"]); |
5944 } | 5944 } |
5945 List<String> potentialEdits; | 5945 List<String> potentialEdits; |
5946 if (json.containsKey("potentialEdits")) { | 5946 if (json.containsKey("potentialEdits")) { |
5947 potentialEdits = jsonDecoder._decodeList(jsonPath + ".potentialEdits", j
son["potentialEdits"], jsonDecoder._decodeString); | 5947 potentialEdits = jsonDecoder._decodeList(jsonPath + ".potentialEdits", j
son["potentialEdits"], jsonDecoder._decodeString); |
5948 } | 5948 } |
5949 return new EditGetRefactoringResult(initialProblems, optionsProblems, fina
lProblems, feedback: feedback, change: change, potentialEdits: potentialEdits); | 5949 return new EditGetRefactoringResult(initialProblems, optionsProblems, fina
lProblems, feedback: feedback, change: change, potentialEdits: potentialEdits); |
5950 } else { | 5950 } else { |
5951 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result"); | 5951 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result", json); |
5952 } | 5952 } |
5953 } | 5953 } |
5954 | 5954 |
5955 factory EditGetRefactoringResult.fromResponse(Response response) { | 5955 factory EditGetRefactoringResult.fromResponse(Response response) { |
5956 return new EditGetRefactoringResult.fromJson( | 5956 return new EditGetRefactoringResult.fromJson( |
5957 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 5957 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
5958 } | 5958 } |
5959 | 5959 |
5960 Map<String, dynamic> toJson() { | 5960 Map<String, dynamic> toJson() { |
5961 Map<String, dynamic> result = {}; | 5961 Map<String, dynamic> result = {}; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6040 } | 6040 } |
6041 if (json is Map) { | 6041 if (json is Map) { |
6042 String file; | 6042 String file; |
6043 if (json.containsKey("file")) { | 6043 if (json.containsKey("file")) { |
6044 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 6044 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); |
6045 } else { | 6045 } else { |
6046 throw jsonDecoder.missingKey(jsonPath, "file"); | 6046 throw jsonDecoder.missingKey(jsonPath, "file"); |
6047 } | 6047 } |
6048 return new EditSortMembersParams(file); | 6048 return new EditSortMembersParams(file); |
6049 } else { | 6049 } else { |
6050 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers params"); | 6050 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers params", json); |
6051 } | 6051 } |
6052 } | 6052 } |
6053 | 6053 |
6054 factory EditSortMembersParams.fromRequest(Request request) { | 6054 factory EditSortMembersParams.fromRequest(Request request) { |
6055 return new EditSortMembersParams.fromJson( | 6055 return new EditSortMembersParams.fromJson( |
6056 new RequestDecoder(request), "params", request._params); | 6056 new RequestDecoder(request), "params", request._params); |
6057 } | 6057 } |
6058 | 6058 |
6059 Map<String, dynamic> toJson() { | 6059 Map<String, dynamic> toJson() { |
6060 Map<String, dynamic> result = {}; | 6060 Map<String, dynamic> result = {}; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6120 } | 6120 } |
6121 if (json is Map) { | 6121 if (json is Map) { |
6122 SourceFileEdit edit; | 6122 SourceFileEdit edit; |
6123 if (json.containsKey("edit")) { | 6123 if (json.containsKey("edit")) { |
6124 edit = new SourceFileEdit.fromJson(jsonDecoder, jsonPath + ".edit", json
["edit"]); | 6124 edit = new SourceFileEdit.fromJson(jsonDecoder, jsonPath + ".edit", json
["edit"]); |
6125 } else { | 6125 } else { |
6126 throw jsonDecoder.missingKey(jsonPath, "edit"); | 6126 throw jsonDecoder.missingKey(jsonPath, "edit"); |
6127 } | 6127 } |
6128 return new EditSortMembersResult(edit); | 6128 return new EditSortMembersResult(edit); |
6129 } else { | 6129 } else { |
6130 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers result"); | 6130 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers result", json); |
6131 } | 6131 } |
6132 } | 6132 } |
6133 | 6133 |
6134 factory EditSortMembersResult.fromResponse(Response response) { | 6134 factory EditSortMembersResult.fromResponse(Response response) { |
6135 return new EditSortMembersResult.fromJson( | 6135 return new EditSortMembersResult.fromJson( |
6136 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 6136 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
6137 } | 6137 } |
6138 | 6138 |
6139 Map<String, dynamic> toJson() { | 6139 Map<String, dynamic> toJson() { |
6140 Map<String, dynamic> result = {}; | 6140 Map<String, dynamic> result = {}; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6200 } | 6200 } |
6201 if (json is Map) { | 6201 if (json is Map) { |
6202 String contextRoot; | 6202 String contextRoot; |
6203 if (json.containsKey("contextRoot")) { | 6203 if (json.containsKey("contextRoot")) { |
6204 contextRoot = jsonDecoder._decodeString(jsonPath + ".contextRoot", json[
"contextRoot"]); | 6204 contextRoot = jsonDecoder._decodeString(jsonPath + ".contextRoot", json[
"contextRoot"]); |
6205 } else { | 6205 } else { |
6206 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); | 6206 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); |
6207 } | 6207 } |
6208 return new ExecutionCreateContextParams(contextRoot); | 6208 return new ExecutionCreateContextParams(contextRoot); |
6209 } else { | 6209 } else { |
6210 throw jsonDecoder.mismatch(jsonPath, "execution.createContext params"); | 6210 throw jsonDecoder.mismatch(jsonPath, "execution.createContext params", jso
n); |
6211 } | 6211 } |
6212 } | 6212 } |
6213 | 6213 |
6214 factory ExecutionCreateContextParams.fromRequest(Request request) { | 6214 factory ExecutionCreateContextParams.fromRequest(Request request) { |
6215 return new ExecutionCreateContextParams.fromJson( | 6215 return new ExecutionCreateContextParams.fromJson( |
6216 new RequestDecoder(request), "params", request._params); | 6216 new RequestDecoder(request), "params", request._params); |
6217 } | 6217 } |
6218 | 6218 |
6219 Map<String, dynamic> toJson() { | 6219 Map<String, dynamic> toJson() { |
6220 Map<String, dynamic> result = {}; | 6220 Map<String, dynamic> result = {}; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6278 } | 6278 } |
6279 if (json is Map) { | 6279 if (json is Map) { |
6280 String id; | 6280 String id; |
6281 if (json.containsKey("id")) { | 6281 if (json.containsKey("id")) { |
6282 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 6282 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
6283 } else { | 6283 } else { |
6284 throw jsonDecoder.missingKey(jsonPath, "id"); | 6284 throw jsonDecoder.missingKey(jsonPath, "id"); |
6285 } | 6285 } |
6286 return new ExecutionCreateContextResult(id); | 6286 return new ExecutionCreateContextResult(id); |
6287 } else { | 6287 } else { |
6288 throw jsonDecoder.mismatch(jsonPath, "execution.createContext result"); | 6288 throw jsonDecoder.mismatch(jsonPath, "execution.createContext result", jso
n); |
6289 } | 6289 } |
6290 } | 6290 } |
6291 | 6291 |
6292 factory ExecutionCreateContextResult.fromResponse(Response response) { | 6292 factory ExecutionCreateContextResult.fromResponse(Response response) { |
6293 return new ExecutionCreateContextResult.fromJson( | 6293 return new ExecutionCreateContextResult.fromJson( |
6294 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 6294 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
6295 } | 6295 } |
6296 | 6296 |
6297 Map<String, dynamic> toJson() { | 6297 Map<String, dynamic> toJson() { |
6298 Map<String, dynamic> result = {}; | 6298 Map<String, dynamic> result = {}; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6356 } | 6356 } |
6357 if (json is Map) { | 6357 if (json is Map) { |
6358 String id; | 6358 String id; |
6359 if (json.containsKey("id")) { | 6359 if (json.containsKey("id")) { |
6360 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 6360 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
6361 } else { | 6361 } else { |
6362 throw jsonDecoder.missingKey(jsonPath, "id"); | 6362 throw jsonDecoder.missingKey(jsonPath, "id"); |
6363 } | 6363 } |
6364 return new ExecutionDeleteContextParams(id); | 6364 return new ExecutionDeleteContextParams(id); |
6365 } else { | 6365 } else { |
6366 throw jsonDecoder.mismatch(jsonPath, "execution.deleteContext params"); | 6366 throw jsonDecoder.mismatch(jsonPath, "execution.deleteContext params", jso
n); |
6367 } | 6367 } |
6368 } | 6368 } |
6369 | 6369 |
6370 factory ExecutionDeleteContextParams.fromRequest(Request request) { | 6370 factory ExecutionDeleteContextParams.fromRequest(Request request) { |
6371 return new ExecutionDeleteContextParams.fromJson( | 6371 return new ExecutionDeleteContextParams.fromJson( |
6372 new RequestDecoder(request), "params", request._params); | 6372 new RequestDecoder(request), "params", request._params); |
6373 } | 6373 } |
6374 | 6374 |
6375 Map<String, dynamic> toJson() { | 6375 Map<String, dynamic> toJson() { |
6376 Map<String, dynamic> result = {}; | 6376 Map<String, dynamic> result = {}; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6495 String file; | 6495 String file; |
6496 if (json.containsKey("file")) { | 6496 if (json.containsKey("file")) { |
6497 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 6497 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); |
6498 } | 6498 } |
6499 String uri; | 6499 String uri; |
6500 if (json.containsKey("uri")) { | 6500 if (json.containsKey("uri")) { |
6501 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); | 6501 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); |
6502 } | 6502 } |
6503 return new ExecutionMapUriParams(id, file: file, uri: uri); | 6503 return new ExecutionMapUriParams(id, file: file, uri: uri); |
6504 } else { | 6504 } else { |
6505 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri params"); | 6505 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri params", json); |
6506 } | 6506 } |
6507 } | 6507 } |
6508 | 6508 |
6509 factory ExecutionMapUriParams.fromRequest(Request request) { | 6509 factory ExecutionMapUriParams.fromRequest(Request request) { |
6510 return new ExecutionMapUriParams.fromJson( | 6510 return new ExecutionMapUriParams.fromJson( |
6511 new RequestDecoder(request), "params", request._params); | 6511 new RequestDecoder(request), "params", request._params); |
6512 } | 6512 } |
6513 | 6513 |
6514 Map<String, dynamic> toJson() { | 6514 Map<String, dynamic> toJson() { |
6515 Map<String, dynamic> result = {}; | 6515 Map<String, dynamic> result = {}; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6604 String file; | 6604 String file; |
6605 if (json.containsKey("file")) { | 6605 if (json.containsKey("file")) { |
6606 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 6606 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); |
6607 } | 6607 } |
6608 String uri; | 6608 String uri; |
6609 if (json.containsKey("uri")) { | 6609 if (json.containsKey("uri")) { |
6610 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); | 6610 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); |
6611 } | 6611 } |
6612 return new ExecutionMapUriResult(file: file, uri: uri); | 6612 return new ExecutionMapUriResult(file: file, uri: uri); |
6613 } else { | 6613 } else { |
6614 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri result"); | 6614 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri result", json); |
6615 } | 6615 } |
6616 } | 6616 } |
6617 | 6617 |
6618 factory ExecutionMapUriResult.fromResponse(Response response) { | 6618 factory ExecutionMapUriResult.fromResponse(Response response) { |
6619 return new ExecutionMapUriResult.fromJson( | 6619 return new ExecutionMapUriResult.fromJson( |
6620 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 6620 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
6621 } | 6621 } |
6622 | 6622 |
6623 Map<String, dynamic> toJson() { | 6623 Map<String, dynamic> toJson() { |
6624 Map<String, dynamic> result = {}; | 6624 Map<String, dynamic> result = {}; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6689 } | 6689 } |
6690 if (json is Map) { | 6690 if (json is Map) { |
6691 List<ExecutionService> subscriptions; | 6691 List<ExecutionService> subscriptions; |
6692 if (json.containsKey("subscriptions")) { | 6692 if (json.containsKey("subscriptions")) { |
6693 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new ExecutionService.fromJ
son(jsonDecoder, jsonPath, json)); | 6693 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new ExecutionService.fromJ
son(jsonDecoder, jsonPath, json)); |
6694 } else { | 6694 } else { |
6695 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 6695 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
6696 } | 6696 } |
6697 return new ExecutionSetSubscriptionsParams(subscriptions); | 6697 return new ExecutionSetSubscriptionsParams(subscriptions); |
6698 } else { | 6698 } else { |
6699 throw jsonDecoder.mismatch(jsonPath, "execution.setSubscriptions params"); | 6699 throw jsonDecoder.mismatch(jsonPath, "execution.setSubscriptions params",
json); |
6700 } | 6700 } |
6701 } | 6701 } |
6702 | 6702 |
6703 factory ExecutionSetSubscriptionsParams.fromRequest(Request request) { | 6703 factory ExecutionSetSubscriptionsParams.fromRequest(Request request) { |
6704 return new ExecutionSetSubscriptionsParams.fromJson( | 6704 return new ExecutionSetSubscriptionsParams.fromJson( |
6705 new RequestDecoder(request), "params", request._params); | 6705 new RequestDecoder(request), "params", request._params); |
6706 } | 6706 } |
6707 | 6707 |
6708 Map<String, dynamic> toJson() { | 6708 Map<String, dynamic> toJson() { |
6709 Map<String, dynamic> result = {}; | 6709 Map<String, dynamic> result = {}; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6834 ExecutableKind kind; | 6834 ExecutableKind kind; |
6835 if (json.containsKey("kind")) { | 6835 if (json.containsKey("kind")) { |
6836 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); | 6836 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); |
6837 } | 6837 } |
6838 List<String> referencedFiles; | 6838 List<String> referencedFiles; |
6839 if (json.containsKey("referencedFiles")) { | 6839 if (json.containsKey("referencedFiles")) { |
6840 referencedFiles = jsonDecoder._decodeList(jsonPath + ".referencedFiles",
json["referencedFiles"], jsonDecoder._decodeString); | 6840 referencedFiles = jsonDecoder._decodeList(jsonPath + ".referencedFiles",
json["referencedFiles"], jsonDecoder._decodeString); |
6841 } | 6841 } |
6842 return new ExecutionLaunchDataParams(file, kind: kind, referencedFiles: re
ferencedFiles); | 6842 return new ExecutionLaunchDataParams(file, kind: kind, referencedFiles: re
ferencedFiles); |
6843 } else { | 6843 } else { |
6844 throw jsonDecoder.mismatch(jsonPath, "execution.launchData params"); | 6844 throw jsonDecoder.mismatch(jsonPath, "execution.launchData params", json); |
6845 } | 6845 } |
6846 } | 6846 } |
6847 | 6847 |
6848 factory ExecutionLaunchDataParams.fromNotification(Notification notification)
{ | 6848 factory ExecutionLaunchDataParams.fromNotification(Notification notification)
{ |
6849 return new ExecutionLaunchDataParams.fromJson( | 6849 return new ExecutionLaunchDataParams.fromJson( |
6850 new ResponseDecoder(null), "params", notification._params); | 6850 new ResponseDecoder(null), "params", notification._params); |
6851 } | 6851 } |
6852 | 6852 |
6853 Map<String, dynamic> toJson() { | 6853 Map<String, dynamic> toJson() { |
6854 Map<String, dynamic> result = {}; | 6854 Map<String, dynamic> result = {}; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6916 AddContentOverlay(String content) { | 6916 AddContentOverlay(String content) { |
6917 this.content = content; | 6917 this.content = content; |
6918 } | 6918 } |
6919 | 6919 |
6920 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 6920 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
6921 if (json == null) { | 6921 if (json == null) { |
6922 json = {}; | 6922 json = {}; |
6923 } | 6923 } |
6924 if (json is Map) { | 6924 if (json is Map) { |
6925 if (json["type"] != "add") { | 6925 if (json["type"] != "add") { |
6926 throw jsonDecoder.mismatch(jsonPath, "equal " + "add"); | 6926 throw jsonDecoder.mismatch(jsonPath, "equal " + "add", json); |
6927 } | 6927 } |
6928 String content; | 6928 String content; |
6929 if (json.containsKey("content")) { | 6929 if (json.containsKey("content")) { |
6930 content = jsonDecoder._decodeString(jsonPath + ".content", json["content
"]); | 6930 content = jsonDecoder._decodeString(jsonPath + ".content", json["content
"]); |
6931 } else { | 6931 } else { |
6932 throw jsonDecoder.missingKey(jsonPath, "content"); | 6932 throw jsonDecoder.missingKey(jsonPath, "content"); |
6933 } | 6933 } |
6934 return new AddContentOverlay(content); | 6934 return new AddContentOverlay(content); |
6935 } else { | 6935 } else { |
6936 throw jsonDecoder.mismatch(jsonPath, "AddContentOverlay"); | 6936 throw jsonDecoder.mismatch(jsonPath, "AddContentOverlay", json); |
6937 } | 6937 } |
6938 } | 6938 } |
6939 | 6939 |
6940 Map<String, dynamic> toJson() { | 6940 Map<String, dynamic> toJson() { |
6941 Map<String, dynamic> result = {}; | 6941 Map<String, dynamic> result = {}; |
6942 result["type"] = "add"; | 6942 result["type"] = "add"; |
6943 result["content"] = content; | 6943 result["content"] = content; |
6944 return result; | 6944 return result; |
6945 } | 6945 } |
6946 | 6946 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7092 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); | 7092 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); |
7093 } else { | 7093 } else { |
7094 throw jsonDecoder.missingKey(jsonPath, "message"); | 7094 throw jsonDecoder.missingKey(jsonPath, "message"); |
7095 } | 7095 } |
7096 String correction; | 7096 String correction; |
7097 if (json.containsKey("correction")) { | 7097 if (json.containsKey("correction")) { |
7098 correction = jsonDecoder._decodeString(jsonPath + ".correction", json["c
orrection"]); | 7098 correction = jsonDecoder._decodeString(jsonPath + ".correction", json["c
orrection"]); |
7099 } | 7099 } |
7100 return new AnalysisError(severity, type, location, message, correction: co
rrection); | 7100 return new AnalysisError(severity, type, location, message, correction: co
rrection); |
7101 } else { | 7101 } else { |
7102 throw jsonDecoder.mismatch(jsonPath, "AnalysisError"); | 7102 throw jsonDecoder.mismatch(jsonPath, "AnalysisError", json); |
7103 } | 7103 } |
7104 } | 7104 } |
7105 | 7105 |
7106 Map<String, dynamic> toJson() { | 7106 Map<String, dynamic> toJson() { |
7107 Map<String, dynamic> result = {}; | 7107 Map<String, dynamic> result = {}; |
7108 result["severity"] = severity.toJson(); | 7108 result["severity"] = severity.toJson(); |
7109 result["type"] = type.toJson(); | 7109 result["type"] = type.toJson(); |
7110 result["location"] = location.toJson(); | 7110 result["location"] = location.toJson(); |
7111 result["message"] = message; | 7111 result["message"] = message; |
7112 if (correction != null) { | 7112 if (correction != null) { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7202 throw jsonDecoder.missingKey(jsonPath, "error"); | 7202 throw jsonDecoder.missingKey(jsonPath, "error"); |
7203 } | 7203 } |
7204 List<SourceChange> fixes; | 7204 List<SourceChange> fixes; |
7205 if (json.containsKey("fixes")) { | 7205 if (json.containsKey("fixes")) { |
7206 fixes = jsonDecoder._decodeList(jsonPath + ".fixes", json["fixes"], (Str
ing jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonPath, j
son)); | 7206 fixes = jsonDecoder._decodeList(jsonPath + ".fixes", json["fixes"], (Str
ing jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonPath, j
son)); |
7207 } else { | 7207 } else { |
7208 throw jsonDecoder.missingKey(jsonPath, "fixes"); | 7208 throw jsonDecoder.missingKey(jsonPath, "fixes"); |
7209 } | 7209 } |
7210 return new AnalysisErrorFixes(error, fixes: fixes); | 7210 return new AnalysisErrorFixes(error, fixes: fixes); |
7211 } else { | 7211 } else { |
7212 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorFixes"); | 7212 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorFixes", json); |
7213 } | 7213 } |
7214 } | 7214 } |
7215 | 7215 |
7216 Map<String, dynamic> toJson() { | 7216 Map<String, dynamic> toJson() { |
7217 Map<String, dynamic> result = {}; | 7217 Map<String, dynamic> result = {}; |
7218 result["error"] = error.toJson(); | 7218 result["error"] = error.toJson(); |
7219 result["fixes"] = fixes.map((SourceChange value) => value.toJson()).toList()
; | 7219 result["fixes"] = fixes.map((SourceChange value) => value.toJson()).toList()
; |
7220 return result; | 7220 return result; |
7221 } | 7221 } |
7222 | 7222 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7279 } | 7279 } |
7280 | 7280 |
7281 factory AnalysisErrorSeverity.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 7281 factory AnalysisErrorSeverity.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
7282 if (json is String) { | 7282 if (json is String) { |
7283 try { | 7283 try { |
7284 return new AnalysisErrorSeverity(json); | 7284 return new AnalysisErrorSeverity(json); |
7285 } catch(_) { | 7285 } catch(_) { |
7286 // Fall through | 7286 // Fall through |
7287 } | 7287 } |
7288 } | 7288 } |
7289 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorSeverity"); | 7289 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorSeverity", json); |
7290 } | 7290 } |
7291 | 7291 |
7292 @override | 7292 @override |
7293 String toString() => "AnalysisErrorSeverity.$name"; | 7293 String toString() => "AnalysisErrorSeverity.$name"; |
7294 | 7294 |
7295 String toJson() => name; | 7295 String toJson() => name; |
7296 } | 7296 } |
7297 | 7297 |
7298 /** | 7298 /** |
7299 * AnalysisErrorType | 7299 * AnalysisErrorType |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7358 } | 7358 } |
7359 | 7359 |
7360 factory AnalysisErrorType.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 7360 factory AnalysisErrorType.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
7361 if (json is String) { | 7361 if (json is String) { |
7362 try { | 7362 try { |
7363 return new AnalysisErrorType(json); | 7363 return new AnalysisErrorType(json); |
7364 } catch(_) { | 7364 } catch(_) { |
7365 // Fall through | 7365 // Fall through |
7366 } | 7366 } |
7367 } | 7367 } |
7368 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorType"); | 7368 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorType", json); |
7369 } | 7369 } |
7370 | 7370 |
7371 @override | 7371 @override |
7372 String toString() => "AnalysisErrorType.$name"; | 7372 String toString() => "AnalysisErrorType.$name"; |
7373 | 7373 |
7374 String toJson() => name; | 7374 String toJson() => name; |
7375 } | 7375 } |
7376 | 7376 |
7377 /** | 7377 /** |
7378 * AnalysisOptions | 7378 * AnalysisOptions |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7546 bool generateHints; | 7546 bool generateHints; |
7547 if (json.containsKey("generateHints")) { | 7547 if (json.containsKey("generateHints")) { |
7548 generateHints = jsonDecoder._decodeBool(jsonPath + ".generateHints", jso
n["generateHints"]); | 7548 generateHints = jsonDecoder._decodeBool(jsonPath + ".generateHints", jso
n["generateHints"]); |
7549 } | 7549 } |
7550 bool generateLints; | 7550 bool generateLints; |
7551 if (json.containsKey("generateLints")) { | 7551 if (json.containsKey("generateLints")) { |
7552 generateLints = jsonDecoder._decodeBool(jsonPath + ".generateLints", jso
n["generateLints"]); | 7552 generateLints = jsonDecoder._decodeBool(jsonPath + ".generateLints", jso
n["generateLints"]); |
7553 } | 7553 } |
7554 return new AnalysisOptions(enableAsync: enableAsync, enableDeferredLoading
: enableDeferredLoading, enableEnums: enableEnums, enableNullAwareOperators: ena
bleNullAwareOperators, generateDart2jsHints: generateDart2jsHints, generateHints
: generateHints, generateLints: generateLints); | 7554 return new AnalysisOptions(enableAsync: enableAsync, enableDeferredLoading
: enableDeferredLoading, enableEnums: enableEnums, enableNullAwareOperators: ena
bleNullAwareOperators, generateDart2jsHints: generateDart2jsHints, generateHints
: generateHints, generateLints: generateLints); |
7555 } else { | 7555 } else { |
7556 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions"); | 7556 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions", json); |
7557 } | 7557 } |
7558 } | 7558 } |
7559 | 7559 |
7560 Map<String, dynamic> toJson() { | 7560 Map<String, dynamic> toJson() { |
7561 Map<String, dynamic> result = {}; | 7561 Map<String, dynamic> result = {}; |
7562 if (enableAsync != null) { | 7562 if (enableAsync != null) { |
7563 result["enableAsync"] = enableAsync; | 7563 result["enableAsync"] = enableAsync; |
7564 } | 7564 } |
7565 if (enableDeferredLoading != null) { | 7565 if (enableDeferredLoading != null) { |
7566 result["enableDeferredLoading"] = enableDeferredLoading; | 7566 result["enableDeferredLoading"] = enableDeferredLoading; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7676 } | 7676 } |
7677 | 7677 |
7678 factory AnalysisService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 7678 factory AnalysisService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
7679 if (json is String) { | 7679 if (json is String) { |
7680 try { | 7680 try { |
7681 return new AnalysisService(json); | 7681 return new AnalysisService(json); |
7682 } catch(_) { | 7682 } catch(_) { |
7683 // Fall through | 7683 // Fall through |
7684 } | 7684 } |
7685 } | 7685 } |
7686 throw jsonDecoder.mismatch(jsonPath, "AnalysisService"); | 7686 throw jsonDecoder.mismatch(jsonPath, "AnalysisService", json); |
7687 } | 7687 } |
7688 | 7688 |
7689 @override | 7689 @override |
7690 String toString() => "AnalysisService.$name"; | 7690 String toString() => "AnalysisService.$name"; |
7691 | 7691 |
7692 String toJson() => name; | 7692 String toJson() => name; |
7693 } | 7693 } |
7694 | 7694 |
7695 /** | 7695 /** |
7696 * AnalysisStatus | 7696 * AnalysisStatus |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7747 isAnalyzing = jsonDecoder._decodeBool(jsonPath + ".isAnalyzing", json["i
sAnalyzing"]); | 7747 isAnalyzing = jsonDecoder._decodeBool(jsonPath + ".isAnalyzing", json["i
sAnalyzing"]); |
7748 } else { | 7748 } else { |
7749 throw jsonDecoder.missingKey(jsonPath, "isAnalyzing"); | 7749 throw jsonDecoder.missingKey(jsonPath, "isAnalyzing"); |
7750 } | 7750 } |
7751 String analysisTarget; | 7751 String analysisTarget; |
7752 if (json.containsKey("analysisTarget")) { | 7752 if (json.containsKey("analysisTarget")) { |
7753 analysisTarget = jsonDecoder._decodeString(jsonPath + ".analysisTarget",
json["analysisTarget"]); | 7753 analysisTarget = jsonDecoder._decodeString(jsonPath + ".analysisTarget",
json["analysisTarget"]); |
7754 } | 7754 } |
7755 return new AnalysisStatus(isAnalyzing, analysisTarget: analysisTarget); | 7755 return new AnalysisStatus(isAnalyzing, analysisTarget: analysisTarget); |
7756 } else { | 7756 } else { |
7757 throw jsonDecoder.mismatch(jsonPath, "AnalysisStatus"); | 7757 throw jsonDecoder.mismatch(jsonPath, "AnalysisStatus", json); |
7758 } | 7758 } |
7759 } | 7759 } |
7760 | 7760 |
7761 Map<String, dynamic> toJson() { | 7761 Map<String, dynamic> toJson() { |
7762 Map<String, dynamic> result = {}; | 7762 Map<String, dynamic> result = {}; |
7763 result["isAnalyzing"] = isAnalyzing; | 7763 result["isAnalyzing"] = isAnalyzing; |
7764 if (analysisTarget != null) { | 7764 if (analysisTarget != null) { |
7765 result["analysisTarget"] = analysisTarget; | 7765 result["analysisTarget"] = analysisTarget; |
7766 } | 7766 } |
7767 return result; | 7767 return result; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7815 ChangeContentOverlay(List<SourceEdit> edits) { | 7815 ChangeContentOverlay(List<SourceEdit> edits) { |
7816 this.edits = edits; | 7816 this.edits = edits; |
7817 } | 7817 } |
7818 | 7818 |
7819 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 7819 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
7820 if (json == null) { | 7820 if (json == null) { |
7821 json = {}; | 7821 json = {}; |
7822 } | 7822 } |
7823 if (json is Map) { | 7823 if (json is Map) { |
7824 if (json["type"] != "change") { | 7824 if (json["type"] != "change") { |
7825 throw jsonDecoder.mismatch(jsonPath, "equal " + "change"); | 7825 throw jsonDecoder.mismatch(jsonPath, "equal " + "change", json); |
7826 } | 7826 } |
7827 List<SourceEdit> edits; | 7827 List<SourceEdit> edits; |
7828 if (json.containsKey("edits")) { | 7828 if (json.containsKey("edits")) { |
7829 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str
ing jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, jso
n)); | 7829 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str
ing jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, jso
n)); |
7830 } else { | 7830 } else { |
7831 throw jsonDecoder.missingKey(jsonPath, "edits"); | 7831 throw jsonDecoder.missingKey(jsonPath, "edits"); |
7832 } | 7832 } |
7833 return new ChangeContentOverlay(edits); | 7833 return new ChangeContentOverlay(edits); |
7834 } else { | 7834 } else { |
7835 throw jsonDecoder.mismatch(jsonPath, "ChangeContentOverlay"); | 7835 throw jsonDecoder.mismatch(jsonPath, "ChangeContentOverlay", json); |
7836 } | 7836 } |
7837 } | 7837 } |
7838 | 7838 |
7839 Map<String, dynamic> toJson() { | 7839 Map<String, dynamic> toJson() { |
7840 Map<String, dynamic> result = {}; | 7840 Map<String, dynamic> result = {}; |
7841 result["type"] = "change"; | 7841 result["type"] = "change"; |
7842 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); | 7842 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); |
7843 return result; | 7843 return result; |
7844 } | 7844 } |
7845 | 7845 |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8316 String parameterType; | 8316 String parameterType; |
8317 if (json.containsKey("parameterType")) { | 8317 if (json.containsKey("parameterType")) { |
8318 parameterType = jsonDecoder._decodeString(jsonPath + ".parameterType", j
son["parameterType"]); | 8318 parameterType = jsonDecoder._decodeString(jsonPath + ".parameterType", j
son["parameterType"]); |
8319 } | 8319 } |
8320 String importUri; | 8320 String importUri; |
8321 if (json.containsKey("importUri")) { | 8321 if (json.containsKey("importUri")) { |
8322 importUri = jsonDecoder._decodeString(jsonPath + ".importUri", json["imp
ortUri"]); | 8322 importUri = jsonDecoder._decodeString(jsonPath + ".importUri", json["imp
ortUri"]); |
8323 } | 8323 } |
8324 return new CompletionSuggestion(kind, relevance, completion, selectionOffs
et, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docCompl
ete: docComplete, declaringType: declaringType, element: element, returnType: re
turnType, parameterNames: parameterNames, parameterTypes: parameterTypes, requir
edParameterCount: requiredParameterCount, hasNamedParameters: hasNamedParameters
, parameterName: parameterName, parameterType: parameterType, importUri: importU
ri); | 8324 return new CompletionSuggestion(kind, relevance, completion, selectionOffs
et, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docCompl
ete: docComplete, declaringType: declaringType, element: element, returnType: re
turnType, parameterNames: parameterNames, parameterTypes: parameterTypes, requir
edParameterCount: requiredParameterCount, hasNamedParameters: hasNamedParameters
, parameterName: parameterName, parameterType: parameterType, importUri: importU
ri); |
8325 } else { | 8325 } else { |
8326 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion"); | 8326 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json); |
8327 } | 8327 } |
8328 } | 8328 } |
8329 | 8329 |
8330 Map<String, dynamic> toJson() { | 8330 Map<String, dynamic> toJson() { |
8331 Map<String, dynamic> result = {}; | 8331 Map<String, dynamic> result = {}; |
8332 result["kind"] = kind.toJson(); | 8332 result["kind"] = kind.toJson(); |
8333 result["relevance"] = relevance; | 8333 result["relevance"] = relevance; |
8334 result["completion"] = completion; | 8334 result["completion"] = completion; |
8335 result["selectionOffset"] = selectionOffset; | 8335 result["selectionOffset"] = selectionOffset; |
8336 result["selectionLength"] = selectionLength; | 8336 result["selectionLength"] = selectionLength; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8520 } | 8520 } |
8521 | 8521 |
8522 factory CompletionSuggestionKind.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 8522 factory CompletionSuggestionKind.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
8523 if (json is String) { | 8523 if (json is String) { |
8524 try { | 8524 try { |
8525 return new CompletionSuggestionKind(json); | 8525 return new CompletionSuggestionKind(json); |
8526 } catch(_) { | 8526 } catch(_) { |
8527 // Fall through | 8527 // Fall through |
8528 } | 8528 } |
8529 } | 8529 } |
8530 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestionKind"); | 8530 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestionKind", json); |
8531 } | 8531 } |
8532 | 8532 |
8533 @override | 8533 @override |
8534 String toString() => "CompletionSuggestionKind.$name"; | 8534 String toString() => "CompletionSuggestionKind.$name"; |
8535 | 8535 |
8536 String toJson() => name; | 8536 String toJson() => name; |
8537 } | 8537 } |
8538 | 8538 |
8539 /** | 8539 /** |
8540 * Element | 8540 * Element |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8743 String returnType; | 8743 String returnType; |
8744 if (json.containsKey("returnType")) { | 8744 if (json.containsKey("returnType")) { |
8745 returnType = jsonDecoder._decodeString(jsonPath + ".returnType", json["r
eturnType"]); | 8745 returnType = jsonDecoder._decodeString(jsonPath + ".returnType", json["r
eturnType"]); |
8746 } | 8746 } |
8747 String typeParameters; | 8747 String typeParameters; |
8748 if (json.containsKey("typeParameters")) { | 8748 if (json.containsKey("typeParameters")) { |
8749 typeParameters = jsonDecoder._decodeString(jsonPath + ".typeParameters",
json["typeParameters"]); | 8749 typeParameters = jsonDecoder._decodeString(jsonPath + ".typeParameters",
json["typeParameters"]); |
8750 } | 8750 } |
8751 return new Element(kind, name, flags, location: location, parameters: para
meters, returnType: returnType, typeParameters: typeParameters); | 8751 return new Element(kind, name, flags, location: location, parameters: para
meters, returnType: returnType, typeParameters: typeParameters); |
8752 } else { | 8752 } else { |
8753 throw jsonDecoder.mismatch(jsonPath, "Element"); | 8753 throw jsonDecoder.mismatch(jsonPath, "Element", json); |
8754 } | 8754 } |
8755 } | 8755 } |
8756 | 8756 |
8757 bool get isAbstract => (flags & FLAG_ABSTRACT) != 0; | 8757 bool get isAbstract => (flags & FLAG_ABSTRACT) != 0; |
8758 bool get isConst => (flags & FLAG_CONST) != 0; | 8758 bool get isConst => (flags & FLAG_CONST) != 0; |
8759 bool get isFinal => (flags & FLAG_FINAL) != 0; | 8759 bool get isFinal => (flags & FLAG_FINAL) != 0; |
8760 bool get isStatic => (flags & FLAG_STATIC) != 0; | 8760 bool get isStatic => (flags & FLAG_STATIC) != 0; |
8761 bool get isPrivate => (flags & FLAG_PRIVATE) != 0; | 8761 bool get isPrivate => (flags & FLAG_PRIVATE) != 0; |
8762 bool get isDeprecated => (flags & FLAG_DEPRECATED) != 0; | 8762 bool get isDeprecated => (flags & FLAG_DEPRECATED) != 0; |
8763 | 8763 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8945 } | 8945 } |
8946 | 8946 |
8947 factory ElementKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 8947 factory ElementKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { |
8948 if (json is String) { | 8948 if (json is String) { |
8949 try { | 8949 try { |
8950 return new ElementKind(json); | 8950 return new ElementKind(json); |
8951 } catch(_) { | 8951 } catch(_) { |
8952 // Fall through | 8952 // Fall through |
8953 } | 8953 } |
8954 } | 8954 } |
8955 throw jsonDecoder.mismatch(jsonPath, "ElementKind"); | 8955 throw jsonDecoder.mismatch(jsonPath, "ElementKind", json); |
8956 } | 8956 } |
8957 | 8957 |
8958 @override | 8958 @override |
8959 String toString() => "ElementKind.$name"; | 8959 String toString() => "ElementKind.$name"; |
8960 | 8960 |
8961 String toJson() => name; | 8961 String toJson() => name; |
8962 } | 8962 } |
8963 | 8963 |
8964 /** | 8964 /** |
8965 * ExecutableFile | 8965 * ExecutableFile |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9017 throw jsonDecoder.missingKey(jsonPath, "file"); | 9017 throw jsonDecoder.missingKey(jsonPath, "file"); |
9018 } | 9018 } |
9019 ExecutableKind kind; | 9019 ExecutableKind kind; |
9020 if (json.containsKey("kind")) { | 9020 if (json.containsKey("kind")) { |
9021 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); | 9021 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); |
9022 } else { | 9022 } else { |
9023 throw jsonDecoder.missingKey(jsonPath, "kind"); | 9023 throw jsonDecoder.missingKey(jsonPath, "kind"); |
9024 } | 9024 } |
9025 return new ExecutableFile(file, kind); | 9025 return new ExecutableFile(file, kind); |
9026 } else { | 9026 } else { |
9027 throw jsonDecoder.mismatch(jsonPath, "ExecutableFile"); | 9027 throw jsonDecoder.mismatch(jsonPath, "ExecutableFile", json); |
9028 } | 9028 } |
9029 } | 9029 } |
9030 | 9030 |
9031 Map<String, dynamic> toJson() { | 9031 Map<String, dynamic> toJson() { |
9032 Map<String, dynamic> result = {}; | 9032 Map<String, dynamic> result = {}; |
9033 result["file"] = file; | 9033 result["file"] = file; |
9034 result["kind"] = kind.toJson(); | 9034 result["kind"] = kind.toJson(); |
9035 return result; | 9035 return result; |
9036 } | 9036 } |
9037 | 9037 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9099 } | 9099 } |
9100 | 9100 |
9101 factory ExecutableKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 9101 factory ExecutableKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { |
9102 if (json is String) { | 9102 if (json is String) { |
9103 try { | 9103 try { |
9104 return new ExecutableKind(json); | 9104 return new ExecutableKind(json); |
9105 } catch(_) { | 9105 } catch(_) { |
9106 // Fall through | 9106 // Fall through |
9107 } | 9107 } |
9108 } | 9108 } |
9109 throw jsonDecoder.mismatch(jsonPath, "ExecutableKind"); | 9109 throw jsonDecoder.mismatch(jsonPath, "ExecutableKind", json); |
9110 } | 9110 } |
9111 | 9111 |
9112 @override | 9112 @override |
9113 String toString() => "ExecutableKind.$name"; | 9113 String toString() => "ExecutableKind.$name"; |
9114 | 9114 |
9115 String toJson() => name; | 9115 String toJson() => name; |
9116 } | 9116 } |
9117 | 9117 |
9118 /** | 9118 /** |
9119 * ExecutionService | 9119 * ExecutionService |
(...skipping 23 matching lines...) Expand all Loading... |
9143 } | 9143 } |
9144 | 9144 |
9145 factory ExecutionService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 9145 factory ExecutionService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
9146 if (json is String) { | 9146 if (json is String) { |
9147 try { | 9147 try { |
9148 return new ExecutionService(json); | 9148 return new ExecutionService(json); |
9149 } catch(_) { | 9149 } catch(_) { |
9150 // Fall through | 9150 // Fall through |
9151 } | 9151 } |
9152 } | 9152 } |
9153 throw jsonDecoder.mismatch(jsonPath, "ExecutionService"); | 9153 throw jsonDecoder.mismatch(jsonPath, "ExecutionService", json); |
9154 } | 9154 } |
9155 | 9155 |
9156 @override | 9156 @override |
9157 String toString() => "ExecutionService.$name"; | 9157 String toString() => "ExecutionService.$name"; |
9158 | 9158 |
9159 String toJson() => name; | 9159 String toJson() => name; |
9160 } | 9160 } |
9161 | 9161 |
9162 /** | 9162 /** |
9163 * FoldingKind | 9163 * FoldingKind |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9207 } | 9207 } |
9208 | 9208 |
9209 factory FoldingKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 9209 factory FoldingKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { |
9210 if (json is String) { | 9210 if (json is String) { |
9211 try { | 9211 try { |
9212 return new FoldingKind(json); | 9212 return new FoldingKind(json); |
9213 } catch(_) { | 9213 } catch(_) { |
9214 // Fall through | 9214 // Fall through |
9215 } | 9215 } |
9216 } | 9216 } |
9217 throw jsonDecoder.mismatch(jsonPath, "FoldingKind"); | 9217 throw jsonDecoder.mismatch(jsonPath, "FoldingKind", json); |
9218 } | 9218 } |
9219 | 9219 |
9220 @override | 9220 @override |
9221 String toString() => "FoldingKind.$name"; | 9221 String toString() => "FoldingKind.$name"; |
9222 | 9222 |
9223 String toJson() => name; | 9223 String toJson() => name; |
9224 } | 9224 } |
9225 | 9225 |
9226 /** | 9226 /** |
9227 * FoldingRegion | 9227 * FoldingRegion |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9302 throw jsonDecoder.missingKey(jsonPath, "offset"); | 9302 throw jsonDecoder.missingKey(jsonPath, "offset"); |
9303 } | 9303 } |
9304 int length; | 9304 int length; |
9305 if (json.containsKey("length")) { | 9305 if (json.containsKey("length")) { |
9306 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 9306 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
9307 } else { | 9307 } else { |
9308 throw jsonDecoder.missingKey(jsonPath, "length"); | 9308 throw jsonDecoder.missingKey(jsonPath, "length"); |
9309 } | 9309 } |
9310 return new FoldingRegion(kind, offset, length); | 9310 return new FoldingRegion(kind, offset, length); |
9311 } else { | 9311 } else { |
9312 throw jsonDecoder.mismatch(jsonPath, "FoldingRegion"); | 9312 throw jsonDecoder.mismatch(jsonPath, "FoldingRegion", json); |
9313 } | 9313 } |
9314 } | 9314 } |
9315 | 9315 |
9316 Map<String, dynamic> toJson() { | 9316 Map<String, dynamic> toJson() { |
9317 Map<String, dynamic> result = {}; | 9317 Map<String, dynamic> result = {}; |
9318 result["kind"] = kind.toJson(); | 9318 result["kind"] = kind.toJson(); |
9319 result["offset"] = offset; | 9319 result["offset"] = offset; |
9320 result["length"] = length; | 9320 result["length"] = length; |
9321 return result; | 9321 return result; |
9322 } | 9322 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9372 } | 9372 } |
9373 | 9373 |
9374 factory GeneralAnalysisService.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 9374 factory GeneralAnalysisService.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { |
9375 if (json is String) { | 9375 if (json is String) { |
9376 try { | 9376 try { |
9377 return new GeneralAnalysisService(json); | 9377 return new GeneralAnalysisService(json); |
9378 } catch(_) { | 9378 } catch(_) { |
9379 // Fall through | 9379 // Fall through |
9380 } | 9380 } |
9381 } | 9381 } |
9382 throw jsonDecoder.mismatch(jsonPath, "GeneralAnalysisService"); | 9382 throw jsonDecoder.mismatch(jsonPath, "GeneralAnalysisService", json); |
9383 } | 9383 } |
9384 | 9384 |
9385 @override | 9385 @override |
9386 String toString() => "GeneralAnalysisService.$name"; | 9386 String toString() => "GeneralAnalysisService.$name"; |
9387 | 9387 |
9388 String toJson() => name; | 9388 String toJson() => name; |
9389 } | 9389 } |
9390 | 9390 |
9391 /** | 9391 /** |
9392 * HighlightRegion | 9392 * HighlightRegion |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9467 throw jsonDecoder.missingKey(jsonPath, "offset"); | 9467 throw jsonDecoder.missingKey(jsonPath, "offset"); |
9468 } | 9468 } |
9469 int length; | 9469 int length; |
9470 if (json.containsKey("length")) { | 9470 if (json.containsKey("length")) { |
9471 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 9471 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
9472 } else { | 9472 } else { |
9473 throw jsonDecoder.missingKey(jsonPath, "length"); | 9473 throw jsonDecoder.missingKey(jsonPath, "length"); |
9474 } | 9474 } |
9475 return new HighlightRegion(type, offset, length); | 9475 return new HighlightRegion(type, offset, length); |
9476 } else { | 9476 } else { |
9477 throw jsonDecoder.mismatch(jsonPath, "HighlightRegion"); | 9477 throw jsonDecoder.mismatch(jsonPath, "HighlightRegion", json); |
9478 } | 9478 } |
9479 } | 9479 } |
9480 | 9480 |
9481 Map<String, dynamic> toJson() { | 9481 Map<String, dynamic> toJson() { |
9482 Map<String, dynamic> result = {}; | 9482 Map<String, dynamic> result = {}; |
9483 result["type"] = type.toJson(); | 9483 result["type"] = type.toJson(); |
9484 result["offset"] = offset; | 9484 result["offset"] = offset; |
9485 result["length"] = length; | 9485 result["length"] = length; |
9486 return result; | 9486 return result; |
9487 } | 9487 } |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9722 } | 9722 } |
9723 | 9723 |
9724 factory HighlightRegionType.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 9724 factory HighlightRegionType.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
9725 if (json is String) { | 9725 if (json is String) { |
9726 try { | 9726 try { |
9727 return new HighlightRegionType(json); | 9727 return new HighlightRegionType(json); |
9728 } catch(_) { | 9728 } catch(_) { |
9729 // Fall through | 9729 // Fall through |
9730 } | 9730 } |
9731 } | 9731 } |
9732 throw jsonDecoder.mismatch(jsonPath, "HighlightRegionType"); | 9732 throw jsonDecoder.mismatch(jsonPath, "HighlightRegionType", json); |
9733 } | 9733 } |
9734 | 9734 |
9735 @override | 9735 @override |
9736 String toString() => "HighlightRegionType.$name"; | 9736 String toString() => "HighlightRegionType.$name"; |
9737 | 9737 |
9738 String toJson() => name; | 9738 String toJson() => name; |
9739 } | 9739 } |
9740 | 9740 |
9741 /** | 9741 /** |
9742 * HoverInformation | 9742 * HoverInformation |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10012 String propagatedType; | 10012 String propagatedType; |
10013 if (json.containsKey("propagatedType")) { | 10013 if (json.containsKey("propagatedType")) { |
10014 propagatedType = jsonDecoder._decodeString(jsonPath + ".propagatedType",
json["propagatedType"]); | 10014 propagatedType = jsonDecoder._decodeString(jsonPath + ".propagatedType",
json["propagatedType"]); |
10015 } | 10015 } |
10016 String staticType; | 10016 String staticType; |
10017 if (json.containsKey("staticType")) { | 10017 if (json.containsKey("staticType")) { |
10018 staticType = jsonDecoder._decodeString(jsonPath + ".staticType", json["s
taticType"]); | 10018 staticType = jsonDecoder._decodeString(jsonPath + ".staticType", json["s
taticType"]); |
10019 } | 10019 } |
10020 return new HoverInformation(offset, length, containingLibraryPath: contain
ingLibraryPath, containingLibraryName: containingLibraryName, containingClassDes
cription: containingClassDescription, dartdoc: dartdoc, elementDescription: elem
entDescription, elementKind: elementKind, parameter: parameter, propagatedType:
propagatedType, staticType: staticType); | 10020 return new HoverInformation(offset, length, containingLibraryPath: contain
ingLibraryPath, containingLibraryName: containingLibraryName, containingClassDes
cription: containingClassDescription, dartdoc: dartdoc, elementDescription: elem
entDescription, elementKind: elementKind, parameter: parameter, propagatedType:
propagatedType, staticType: staticType); |
10021 } else { | 10021 } else { |
10022 throw jsonDecoder.mismatch(jsonPath, "HoverInformation"); | 10022 throw jsonDecoder.mismatch(jsonPath, "HoverInformation", json); |
10023 } | 10023 } |
10024 } | 10024 } |
10025 | 10025 |
10026 Map<String, dynamic> toJson() { | 10026 Map<String, dynamic> toJson() { |
10027 Map<String, dynamic> result = {}; | 10027 Map<String, dynamic> result = {}; |
10028 result["offset"] = offset; | 10028 result["offset"] = offset; |
10029 result["length"] = length; | 10029 result["length"] = length; |
10030 if (containingLibraryPath != null) { | 10030 if (containingLibraryPath != null) { |
10031 result["containingLibraryPath"] = containingLibraryPath; | 10031 result["containingLibraryPath"] = containingLibraryPath; |
10032 } | 10032 } |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10177 throw jsonDecoder.missingKey(jsonPath, "length"); | 10177 throw jsonDecoder.missingKey(jsonPath, "length"); |
10178 } | 10178 } |
10179 List<LinkedEditSuggestion> suggestions; | 10179 List<LinkedEditSuggestion> suggestions; |
10180 if (json.containsKey("suggestions")) { | 10180 if (json.containsKey("suggestions")) { |
10181 suggestions = jsonDecoder._decodeList(jsonPath + ".suggestions", json["s
uggestions"], (String jsonPath, Object json) => new LinkedEditSuggestion.fromJso
n(jsonDecoder, jsonPath, json)); | 10181 suggestions = jsonDecoder._decodeList(jsonPath + ".suggestions", json["s
uggestions"], (String jsonPath, Object json) => new LinkedEditSuggestion.fromJso
n(jsonDecoder, jsonPath, json)); |
10182 } else { | 10182 } else { |
10183 throw jsonDecoder.missingKey(jsonPath, "suggestions"); | 10183 throw jsonDecoder.missingKey(jsonPath, "suggestions"); |
10184 } | 10184 } |
10185 return new LinkedEditGroup(positions, length, suggestions); | 10185 return new LinkedEditGroup(positions, length, suggestions); |
10186 } else { | 10186 } else { |
10187 throw jsonDecoder.mismatch(jsonPath, "LinkedEditGroup"); | 10187 throw jsonDecoder.mismatch(jsonPath, "LinkedEditGroup", json); |
10188 } | 10188 } |
10189 } | 10189 } |
10190 | 10190 |
10191 /** | 10191 /** |
10192 * Construct an empty LinkedEditGroup. | 10192 * Construct an empty LinkedEditGroup. |
10193 */ | 10193 */ |
10194 LinkedEditGroup.empty() : this(<Position>[], 0, <LinkedEditSuggestion>[]); | 10194 LinkedEditGroup.empty() : this(<Position>[], 0, <LinkedEditSuggestion>[]); |
10195 | 10195 |
10196 Map<String, dynamic> toJson() { | 10196 Map<String, dynamic> toJson() { |
10197 Map<String, dynamic> result = {}; | 10197 Map<String, dynamic> result = {}; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10295 throw jsonDecoder.missingKey(jsonPath, "value"); | 10295 throw jsonDecoder.missingKey(jsonPath, "value"); |
10296 } | 10296 } |
10297 LinkedEditSuggestionKind kind; | 10297 LinkedEditSuggestionKind kind; |
10298 if (json.containsKey("kind")) { | 10298 if (json.containsKey("kind")) { |
10299 kind = new LinkedEditSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k
ind", json["kind"]); | 10299 kind = new LinkedEditSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k
ind", json["kind"]); |
10300 } else { | 10300 } else { |
10301 throw jsonDecoder.missingKey(jsonPath, "kind"); | 10301 throw jsonDecoder.missingKey(jsonPath, "kind"); |
10302 } | 10302 } |
10303 return new LinkedEditSuggestion(value, kind); | 10303 return new LinkedEditSuggestion(value, kind); |
10304 } else { | 10304 } else { |
10305 throw jsonDecoder.mismatch(jsonPath, "LinkedEditSuggestion"); | 10305 throw jsonDecoder.mismatch(jsonPath, "LinkedEditSuggestion", json); |
10306 } | 10306 } |
10307 } | 10307 } |
10308 | 10308 |
10309 Map<String, dynamic> toJson() { | 10309 Map<String, dynamic> toJson() { |
10310 Map<String, dynamic> result = {}; | 10310 Map<String, dynamic> result = {}; |
10311 result["value"] = value; | 10311 result["value"] = value; |
10312 result["kind"] = kind.toJson(); | 10312 result["kind"] = kind.toJson(); |
10313 return result; | 10313 return result; |
10314 } | 10314 } |
10315 | 10315 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10377 } | 10377 } |
10378 | 10378 |
10379 factory LinkedEditSuggestionKind.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 10379 factory LinkedEditSuggestionKind.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
10380 if (json is String) { | 10380 if (json is String) { |
10381 try { | 10381 try { |
10382 return new LinkedEditSuggestionKind(json); | 10382 return new LinkedEditSuggestionKind(json); |
10383 } catch(_) { | 10383 } catch(_) { |
10384 // Fall through | 10384 // Fall through |
10385 } | 10385 } |
10386 } | 10386 } |
10387 throw jsonDecoder.mismatch(jsonPath, "LinkedEditSuggestionKind"); | 10387 throw jsonDecoder.mismatch(jsonPath, "LinkedEditSuggestionKind", json); |
10388 } | 10388 } |
10389 | 10389 |
10390 @override | 10390 @override |
10391 String toString() => "LinkedEditSuggestionKind.$name"; | 10391 String toString() => "LinkedEditSuggestionKind.$name"; |
10392 | 10392 |
10393 String toJson() => name; | 10393 String toJson() => name; |
10394 } | 10394 } |
10395 | 10395 |
10396 /** | 10396 /** |
10397 * Location | 10397 * Location |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10522 throw jsonDecoder.missingKey(jsonPath, "startLine"); | 10522 throw jsonDecoder.missingKey(jsonPath, "startLine"); |
10523 } | 10523 } |
10524 int startColumn; | 10524 int startColumn; |
10525 if (json.containsKey("startColumn")) { | 10525 if (json.containsKey("startColumn")) { |
10526 startColumn = jsonDecoder._decodeInt(jsonPath + ".startColumn", json["st
artColumn"]); | 10526 startColumn = jsonDecoder._decodeInt(jsonPath + ".startColumn", json["st
artColumn"]); |
10527 } else { | 10527 } else { |
10528 throw jsonDecoder.missingKey(jsonPath, "startColumn"); | 10528 throw jsonDecoder.missingKey(jsonPath, "startColumn"); |
10529 } | 10529 } |
10530 return new Location(file, offset, length, startLine, startColumn); | 10530 return new Location(file, offset, length, startLine, startColumn); |
10531 } else { | 10531 } else { |
10532 throw jsonDecoder.mismatch(jsonPath, "Location"); | 10532 throw jsonDecoder.mismatch(jsonPath, "Location", json); |
10533 } | 10533 } |
10534 } | 10534 } |
10535 | 10535 |
10536 Map<String, dynamic> toJson() { | 10536 Map<String, dynamic> toJson() { |
10537 Map<String, dynamic> result = {}; | 10537 Map<String, dynamic> result = {}; |
10538 result["file"] = file; | 10538 result["file"] = file; |
10539 result["offset"] = offset; | 10539 result["offset"] = offset; |
10540 result["length"] = length; | 10540 result["length"] = length; |
10541 result["startLine"] = startLine; | 10541 result["startLine"] = startLine; |
10542 result["startColumn"] = startColumn; | 10542 result["startColumn"] = startColumn; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10653 throw jsonDecoder.missingKey(jsonPath, "length"); | 10653 throw jsonDecoder.missingKey(jsonPath, "length"); |
10654 } | 10654 } |
10655 List<int> targets; | 10655 List<int> targets; |
10656 if (json.containsKey("targets")) { | 10656 if (json.containsKey("targets")) { |
10657 targets = jsonDecoder._decodeList(jsonPath + ".targets", json["targets"]
, jsonDecoder._decodeInt); | 10657 targets = jsonDecoder._decodeList(jsonPath + ".targets", json["targets"]
, jsonDecoder._decodeInt); |
10658 } else { | 10658 } else { |
10659 throw jsonDecoder.missingKey(jsonPath, "targets"); | 10659 throw jsonDecoder.missingKey(jsonPath, "targets"); |
10660 } | 10660 } |
10661 return new NavigationRegion(offset, length, targets); | 10661 return new NavigationRegion(offset, length, targets); |
10662 } else { | 10662 } else { |
10663 throw jsonDecoder.mismatch(jsonPath, "NavigationRegion"); | 10663 throw jsonDecoder.mismatch(jsonPath, "NavigationRegion", json); |
10664 } | 10664 } |
10665 } | 10665 } |
10666 | 10666 |
10667 Map<String, dynamic> toJson() { | 10667 Map<String, dynamic> toJson() { |
10668 Map<String, dynamic> result = {}; | 10668 Map<String, dynamic> result = {}; |
10669 result["offset"] = offset; | 10669 result["offset"] = offset; |
10670 result["length"] = length; | 10670 result["length"] = length; |
10671 result["targets"] = targets; | 10671 result["targets"] = targets; |
10672 return result; | 10672 return result; |
10673 } | 10673 } |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10849 throw jsonDecoder.missingKey(jsonPath, "startLine"); | 10849 throw jsonDecoder.missingKey(jsonPath, "startLine"); |
10850 } | 10850 } |
10851 int startColumn; | 10851 int startColumn; |
10852 if (json.containsKey("startColumn")) { | 10852 if (json.containsKey("startColumn")) { |
10853 startColumn = jsonDecoder._decodeInt(jsonPath + ".startColumn", json["st
artColumn"]); | 10853 startColumn = jsonDecoder._decodeInt(jsonPath + ".startColumn", json["st
artColumn"]); |
10854 } else { | 10854 } else { |
10855 throw jsonDecoder.missingKey(jsonPath, "startColumn"); | 10855 throw jsonDecoder.missingKey(jsonPath, "startColumn"); |
10856 } | 10856 } |
10857 return new NavigationTarget(kind, fileIndex, offset, length, startLine, st
artColumn); | 10857 return new NavigationTarget(kind, fileIndex, offset, length, startLine, st
artColumn); |
10858 } else { | 10858 } else { |
10859 throw jsonDecoder.mismatch(jsonPath, "NavigationTarget"); | 10859 throw jsonDecoder.mismatch(jsonPath, "NavigationTarget", json); |
10860 } | 10860 } |
10861 } | 10861 } |
10862 | 10862 |
10863 Map<String, dynamic> toJson() { | 10863 Map<String, dynamic> toJson() { |
10864 Map<String, dynamic> result = {}; | 10864 Map<String, dynamic> result = {}; |
10865 result["kind"] = kind.toJson(); | 10865 result["kind"] = kind.toJson(); |
10866 result["fileIndex"] = fileIndex; | 10866 result["fileIndex"] = fileIndex; |
10867 result["offset"] = offset; | 10867 result["offset"] = offset; |
10868 result["length"] = length; | 10868 result["length"] = length; |
10869 result["startLine"] = startLine; | 10869 result["startLine"] = startLine; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10979 throw jsonDecoder.missingKey(jsonPath, "offsets"); | 10979 throw jsonDecoder.missingKey(jsonPath, "offsets"); |
10980 } | 10980 } |
10981 int length; | 10981 int length; |
10982 if (json.containsKey("length")) { | 10982 if (json.containsKey("length")) { |
10983 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 10983 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
10984 } else { | 10984 } else { |
10985 throw jsonDecoder.missingKey(jsonPath, "length"); | 10985 throw jsonDecoder.missingKey(jsonPath, "length"); |
10986 } | 10986 } |
10987 return new Occurrences(element, offsets, length); | 10987 return new Occurrences(element, offsets, length); |
10988 } else { | 10988 } else { |
10989 throw jsonDecoder.mismatch(jsonPath, "Occurrences"); | 10989 throw jsonDecoder.mismatch(jsonPath, "Occurrences", json); |
10990 } | 10990 } |
10991 } | 10991 } |
10992 | 10992 |
10993 Map<String, dynamic> toJson() { | 10993 Map<String, dynamic> toJson() { |
10994 Map<String, dynamic> result = {}; | 10994 Map<String, dynamic> result = {}; |
10995 result["element"] = element.toJson(); | 10995 result["element"] = element.toJson(); |
10996 result["offsets"] = offsets; | 10996 result["offsets"] = offsets; |
10997 result["length"] = length; | 10997 result["length"] = length; |
10998 return result; | 10998 return result; |
10999 } | 10999 } |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11128 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 11128 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
11129 } else { | 11129 } else { |
11130 throw jsonDecoder.missingKey(jsonPath, "length"); | 11130 throw jsonDecoder.missingKey(jsonPath, "length"); |
11131 } | 11131 } |
11132 List<Outline> children; | 11132 List<Outline> children; |
11133 if (json.containsKey("children")) { | 11133 if (json.containsKey("children")) { |
11134 children = jsonDecoder._decodeList(jsonPath + ".children", json["childre
n"], (String jsonPath, Object json) => new Outline.fromJson(jsonDecoder, jsonPat
h, json)); | 11134 children = jsonDecoder._decodeList(jsonPath + ".children", json["childre
n"], (String jsonPath, Object json) => new Outline.fromJson(jsonDecoder, jsonPat
h, json)); |
11135 } | 11135 } |
11136 return new Outline(element, offset, length, children: children); | 11136 return new Outline(element, offset, length, children: children); |
11137 } else { | 11137 } else { |
11138 throw jsonDecoder.mismatch(jsonPath, "Outline"); | 11138 throw jsonDecoder.mismatch(jsonPath, "Outline", json); |
11139 } | 11139 } |
11140 } | 11140 } |
11141 | 11141 |
11142 Map<String, dynamic> toJson() { | 11142 Map<String, dynamic> toJson() { |
11143 Map<String, dynamic> result = {}; | 11143 Map<String, dynamic> result = {}; |
11144 result["element"] = element.toJson(); | 11144 result["element"] = element.toJson(); |
11145 result["offset"] = offset; | 11145 result["offset"] = offset; |
11146 result["length"] = length; | 11146 result["length"] = length; |
11147 if (children != null) { | 11147 if (children != null) { |
11148 result["children"] = children.map((Outline value) => value.toJson()).toLis
t(); | 11148 result["children"] = children.map((Outline value) => value.toJson()).toLis
t(); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11279 OverriddenMember superclassMember; | 11279 OverriddenMember superclassMember; |
11280 if (json.containsKey("superclassMember")) { | 11280 if (json.containsKey("superclassMember")) { |
11281 superclassMember = new OverriddenMember.fromJson(jsonDecoder, jsonPath +
".superclassMember", json["superclassMember"]); | 11281 superclassMember = new OverriddenMember.fromJson(jsonDecoder, jsonPath +
".superclassMember", json["superclassMember"]); |
11282 } | 11282 } |
11283 List<OverriddenMember> interfaceMembers; | 11283 List<OverriddenMember> interfaceMembers; |
11284 if (json.containsKey("interfaceMembers")) { | 11284 if (json.containsKey("interfaceMembers")) { |
11285 interfaceMembers = jsonDecoder._decodeList(jsonPath + ".interfaceMembers
", json["interfaceMembers"], (String jsonPath, Object json) => new OverriddenMem
ber.fromJson(jsonDecoder, jsonPath, json)); | 11285 interfaceMembers = jsonDecoder._decodeList(jsonPath + ".interfaceMembers
", json["interfaceMembers"], (String jsonPath, Object json) => new OverriddenMem
ber.fromJson(jsonDecoder, jsonPath, json)); |
11286 } | 11286 } |
11287 return new Override(offset, length, superclassMember: superclassMember, in
terfaceMembers: interfaceMembers); | 11287 return new Override(offset, length, superclassMember: superclassMember, in
terfaceMembers: interfaceMembers); |
11288 } else { | 11288 } else { |
11289 throw jsonDecoder.mismatch(jsonPath, "Override"); | 11289 throw jsonDecoder.mismatch(jsonPath, "Override", json); |
11290 } | 11290 } |
11291 } | 11291 } |
11292 | 11292 |
11293 Map<String, dynamic> toJson() { | 11293 Map<String, dynamic> toJson() { |
11294 Map<String, dynamic> result = {}; | 11294 Map<String, dynamic> result = {}; |
11295 result["offset"] = offset; | 11295 result["offset"] = offset; |
11296 result["length"] = length; | 11296 result["length"] = length; |
11297 if (superclassMember != null) { | 11297 if (superclassMember != null) { |
11298 result["superclassMember"] = superclassMember.toJson(); | 11298 result["superclassMember"] = superclassMember.toJson(); |
11299 } | 11299 } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11384 throw jsonDecoder.missingKey(jsonPath, "element"); | 11384 throw jsonDecoder.missingKey(jsonPath, "element"); |
11385 } | 11385 } |
11386 String className; | 11386 String className; |
11387 if (json.containsKey("className")) { | 11387 if (json.containsKey("className")) { |
11388 className = jsonDecoder._decodeString(jsonPath + ".className", json["cla
ssName"]); | 11388 className = jsonDecoder._decodeString(jsonPath + ".className", json["cla
ssName"]); |
11389 } else { | 11389 } else { |
11390 throw jsonDecoder.missingKey(jsonPath, "className"); | 11390 throw jsonDecoder.missingKey(jsonPath, "className"); |
11391 } | 11391 } |
11392 return new OverriddenMember(element, className); | 11392 return new OverriddenMember(element, className); |
11393 } else { | 11393 } else { |
11394 throw jsonDecoder.mismatch(jsonPath, "OverriddenMember"); | 11394 throw jsonDecoder.mismatch(jsonPath, "OverriddenMember", json); |
11395 } | 11395 } |
11396 } | 11396 } |
11397 | 11397 |
11398 Map<String, dynamic> toJson() { | 11398 Map<String, dynamic> toJson() { |
11399 Map<String, dynamic> result = {}; | 11399 Map<String, dynamic> result = {}; |
11400 result["element"] = element.toJson(); | 11400 result["element"] = element.toJson(); |
11401 result["className"] = className; | 11401 result["className"] = className; |
11402 return result; | 11402 return result; |
11403 } | 11403 } |
11404 | 11404 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11479 throw jsonDecoder.missingKey(jsonPath, "file"); | 11479 throw jsonDecoder.missingKey(jsonPath, "file"); |
11480 } | 11480 } |
11481 int offset; | 11481 int offset; |
11482 if (json.containsKey("offset")) { | 11482 if (json.containsKey("offset")) { |
11483 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 11483 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); |
11484 } else { | 11484 } else { |
11485 throw jsonDecoder.missingKey(jsonPath, "offset"); | 11485 throw jsonDecoder.missingKey(jsonPath, "offset"); |
11486 } | 11486 } |
11487 return new Position(file, offset); | 11487 return new Position(file, offset); |
11488 } else { | 11488 } else { |
11489 throw jsonDecoder.mismatch(jsonPath, "Position"); | 11489 throw jsonDecoder.mismatch(jsonPath, "Position", json); |
11490 } | 11490 } |
11491 } | 11491 } |
11492 | 11492 |
11493 Map<String, dynamic> toJson() { | 11493 Map<String, dynamic> toJson() { |
11494 Map<String, dynamic> result = {}; | 11494 Map<String, dynamic> result = {}; |
11495 result["file"] = file; | 11495 result["file"] = file; |
11496 result["offset"] = offset; | 11496 result["offset"] = offset; |
11497 return result; | 11497 return result; |
11498 } | 11498 } |
11499 | 11499 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11553 } | 11553 } |
11554 if (json is Map) { | 11554 if (json is Map) { |
11555 bool isListingPackageDirs; | 11555 bool isListingPackageDirs; |
11556 if (json.containsKey("isListingPackageDirs")) { | 11556 if (json.containsKey("isListingPackageDirs")) { |
11557 isListingPackageDirs = jsonDecoder._decodeBool(jsonPath + ".isListingPac
kageDirs", json["isListingPackageDirs"]); | 11557 isListingPackageDirs = jsonDecoder._decodeBool(jsonPath + ".isListingPac
kageDirs", json["isListingPackageDirs"]); |
11558 } else { | 11558 } else { |
11559 throw jsonDecoder.missingKey(jsonPath, "isListingPackageDirs"); | 11559 throw jsonDecoder.missingKey(jsonPath, "isListingPackageDirs"); |
11560 } | 11560 } |
11561 return new PubStatus(isListingPackageDirs); | 11561 return new PubStatus(isListingPackageDirs); |
11562 } else { | 11562 } else { |
11563 throw jsonDecoder.mismatch(jsonPath, "PubStatus"); | 11563 throw jsonDecoder.mismatch(jsonPath, "PubStatus", json); |
11564 } | 11564 } |
11565 } | 11565 } |
11566 | 11566 |
11567 Map<String, dynamic> toJson() { | 11567 Map<String, dynamic> toJson() { |
11568 Map<String, dynamic> result = {}; | 11568 Map<String, dynamic> result = {}; |
11569 result["isListingPackageDirs"] = isListingPackageDirs; | 11569 result["isListingPackageDirs"] = isListingPackageDirs; |
11570 return result; | 11570 return result; |
11571 } | 11571 } |
11572 | 11572 |
11573 @override | 11573 @override |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11657 } | 11657 } |
11658 | 11658 |
11659 factory RefactoringKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 11659 factory RefactoringKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
11660 if (json is String) { | 11660 if (json is String) { |
11661 try { | 11661 try { |
11662 return new RefactoringKind(json); | 11662 return new RefactoringKind(json); |
11663 } catch(_) { | 11663 } catch(_) { |
11664 // Fall through | 11664 // Fall through |
11665 } | 11665 } |
11666 } | 11666 } |
11667 throw jsonDecoder.mismatch(jsonPath, "RefactoringKind"); | 11667 throw jsonDecoder.mismatch(jsonPath, "RefactoringKind", json); |
11668 } | 11668 } |
11669 | 11669 |
11670 @override | 11670 @override |
11671 String toString() => "RefactoringKind.$name"; | 11671 String toString() => "RefactoringKind.$name"; |
11672 | 11672 |
11673 String toJson() => name; | 11673 String toJson() => name; |
11674 } | 11674 } |
11675 | 11675 |
11676 /** | 11676 /** |
11677 * RefactoringMethodParameter | 11677 * RefactoringMethodParameter |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11800 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 11800 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); |
11801 } else { | 11801 } else { |
11802 throw jsonDecoder.missingKey(jsonPath, "name"); | 11802 throw jsonDecoder.missingKey(jsonPath, "name"); |
11803 } | 11803 } |
11804 String parameters; | 11804 String parameters; |
11805 if (json.containsKey("parameters")) { | 11805 if (json.containsKey("parameters")) { |
11806 parameters = jsonDecoder._decodeString(jsonPath + ".parameters", json["p
arameters"]); | 11806 parameters = jsonDecoder._decodeString(jsonPath + ".parameters", json["p
arameters"]); |
11807 } | 11807 } |
11808 return new RefactoringMethodParameter(kind, type, name, id: id, parameters
: parameters); | 11808 return new RefactoringMethodParameter(kind, type, name, id: id, parameters
: parameters); |
11809 } else { | 11809 } else { |
11810 throw jsonDecoder.mismatch(jsonPath, "RefactoringMethodParameter"); | 11810 throw jsonDecoder.mismatch(jsonPath, "RefactoringMethodParameter", json); |
11811 } | 11811 } |
11812 } | 11812 } |
11813 | 11813 |
11814 Map<String, dynamic> toJson() { | 11814 Map<String, dynamic> toJson() { |
11815 Map<String, dynamic> result = {}; | 11815 Map<String, dynamic> result = {}; |
11816 if (id != null) { | 11816 if (id != null) { |
11817 result["id"] = id; | 11817 result["id"] = id; |
11818 } | 11818 } |
11819 result["kind"] = kind.toJson(); | 11819 result["kind"] = kind.toJson(); |
11820 result["type"] = type; | 11820 result["type"] = type; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11962 } | 11962 } |
11963 | 11963 |
11964 factory RefactoringMethodParameterKind.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 11964 factory RefactoringMethodParameterKind.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
11965 if (json is String) { | 11965 if (json is String) { |
11966 try { | 11966 try { |
11967 return new RefactoringMethodParameterKind(json); | 11967 return new RefactoringMethodParameterKind(json); |
11968 } catch(_) { | 11968 } catch(_) { |
11969 // Fall through | 11969 // Fall through |
11970 } | 11970 } |
11971 } | 11971 } |
11972 throw jsonDecoder.mismatch(jsonPath, "RefactoringMethodParameterKind"); | 11972 throw jsonDecoder.mismatch(jsonPath, "RefactoringMethodParameterKind", json)
; |
11973 } | 11973 } |
11974 | 11974 |
11975 @override | 11975 @override |
11976 String toString() => "RefactoringMethodParameterKind.$name"; | 11976 String toString() => "RefactoringMethodParameterKind.$name"; |
11977 | 11977 |
11978 String toJson() => name; | 11978 String toJson() => name; |
11979 } | 11979 } |
11980 | 11980 |
11981 /** | 11981 /** |
11982 * RefactoringProblem | 11982 * RefactoringProblem |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12058 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); | 12058 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); |
12059 } else { | 12059 } else { |
12060 throw jsonDecoder.missingKey(jsonPath, "message"); | 12060 throw jsonDecoder.missingKey(jsonPath, "message"); |
12061 } | 12061 } |
12062 Location location; | 12062 Location location; |
12063 if (json.containsKey("location")) { | 12063 if (json.containsKey("location")) { |
12064 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); | 12064 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); |
12065 } | 12065 } |
12066 return new RefactoringProblem(severity, message, location: location); | 12066 return new RefactoringProblem(severity, message, location: location); |
12067 } else { | 12067 } else { |
12068 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblem"); | 12068 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblem", json); |
12069 } | 12069 } |
12070 } | 12070 } |
12071 | 12071 |
12072 Map<String, dynamic> toJson() { | 12072 Map<String, dynamic> toJson() { |
12073 Map<String, dynamic> result = {}; | 12073 Map<String, dynamic> result = {}; |
12074 result["severity"] = severity.toJson(); | 12074 result["severity"] = severity.toJson(); |
12075 result["message"] = message; | 12075 result["message"] = message; |
12076 if (location != null) { | 12076 if (location != null) { |
12077 result["location"] = location.toJson(); | 12077 result["location"] = location.toJson(); |
12078 } | 12078 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12145 } | 12145 } |
12146 | 12146 |
12147 factory RefactoringProblemSeverity.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 12147 factory RefactoringProblemSeverity.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { |
12148 if (json is String) { | 12148 if (json is String) { |
12149 try { | 12149 try { |
12150 return new RefactoringProblemSeverity(json); | 12150 return new RefactoringProblemSeverity(json); |
12151 } catch(_) { | 12151 } catch(_) { |
12152 // Fall through | 12152 // Fall through |
12153 } | 12153 } |
12154 } | 12154 } |
12155 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblemSeverity"); | 12155 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblemSeverity", json); |
12156 } | 12156 } |
12157 | 12157 |
12158 /** | 12158 /** |
12159 * Returns the [RefactoringProblemSeverity] with the maximal severity. | 12159 * Returns the [RefactoringProblemSeverity] with the maximal severity. |
12160 */ | 12160 */ |
12161 static RefactoringProblemSeverity max(RefactoringProblemSeverity a, Refactorin
gProblemSeverity b) => | 12161 static RefactoringProblemSeverity max(RefactoringProblemSeverity a, Refactorin
gProblemSeverity b) => |
12162 _maxRefactoringProblemSeverity(a, b); | 12162 _maxRefactoringProblemSeverity(a, b); |
12163 | 12163 |
12164 @override | 12164 @override |
12165 String toString() => "RefactoringProblemSeverity.$name"; | 12165 String toString() => "RefactoringProblemSeverity.$name"; |
(...skipping 10 matching lines...) Expand all Loading... |
12176 */ | 12176 */ |
12177 class RemoveContentOverlay implements HasToJson { | 12177 class RemoveContentOverlay implements HasToJson { |
12178 RemoveContentOverlay(); | 12178 RemoveContentOverlay(); |
12179 | 12179 |
12180 factory RemoveContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 12180 factory RemoveContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
12181 if (json == null) { | 12181 if (json == null) { |
12182 json = {}; | 12182 json = {}; |
12183 } | 12183 } |
12184 if (json is Map) { | 12184 if (json is Map) { |
12185 if (json["type"] != "remove") { | 12185 if (json["type"] != "remove") { |
12186 throw jsonDecoder.mismatch(jsonPath, "equal " + "remove"); | 12186 throw jsonDecoder.mismatch(jsonPath, "equal " + "remove", json); |
12187 } | 12187 } |
12188 return new RemoveContentOverlay(); | 12188 return new RemoveContentOverlay(); |
12189 } else { | 12189 } else { |
12190 throw jsonDecoder.mismatch(jsonPath, "RemoveContentOverlay"); | 12190 throw jsonDecoder.mismatch(jsonPath, "RemoveContentOverlay", json); |
12191 } | 12191 } |
12192 } | 12192 } |
12193 | 12193 |
12194 Map<String, dynamic> toJson() { | 12194 Map<String, dynamic> toJson() { |
12195 Map<String, dynamic> result = {}; | 12195 Map<String, dynamic> result = {}; |
12196 result["type"] = "remove"; | 12196 result["type"] = "remove"; |
12197 return result; | 12197 return result; |
12198 } | 12198 } |
12199 | 12199 |
12200 @override | 12200 @override |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12294 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); | 12294 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); |
12295 } else { | 12295 } else { |
12296 throw jsonDecoder.missingKey(jsonPath, "message"); | 12296 throw jsonDecoder.missingKey(jsonPath, "message"); |
12297 } | 12297 } |
12298 String stackTrace; | 12298 String stackTrace; |
12299 if (json.containsKey("stackTrace")) { | 12299 if (json.containsKey("stackTrace")) { |
12300 stackTrace = jsonDecoder._decodeString(jsonPath + ".stackTrace", json["s
tackTrace"]); | 12300 stackTrace = jsonDecoder._decodeString(jsonPath + ".stackTrace", json["s
tackTrace"]); |
12301 } | 12301 } |
12302 return new RequestError(code, message, stackTrace: stackTrace); | 12302 return new RequestError(code, message, stackTrace: stackTrace); |
12303 } else { | 12303 } else { |
12304 throw jsonDecoder.mismatch(jsonPath, "RequestError"); | 12304 throw jsonDecoder.mismatch(jsonPath, "RequestError", json); |
12305 } | 12305 } |
12306 } | 12306 } |
12307 | 12307 |
12308 Map<String, dynamic> toJson() { | 12308 Map<String, dynamic> toJson() { |
12309 Map<String, dynamic> result = {}; | 12309 Map<String, dynamic> result = {}; |
12310 result["code"] = code.toJson(); | 12310 result["code"] = code.toJson(); |
12311 result["message"] = message; | 12311 result["message"] = message; |
12312 if (stackTrace != null) { | 12312 if (stackTrace != null) { |
12313 result["stackTrace"] = stackTrace; | 12313 result["stackTrace"] = stackTrace; |
12314 } | 12314 } |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12548 } | 12548 } |
12549 | 12549 |
12550 factory RequestErrorCode.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 12550 factory RequestErrorCode.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
12551 if (json is String) { | 12551 if (json is String) { |
12552 try { | 12552 try { |
12553 return new RequestErrorCode(json); | 12553 return new RequestErrorCode(json); |
12554 } catch(_) { | 12554 } catch(_) { |
12555 // Fall through | 12555 // Fall through |
12556 } | 12556 } |
12557 } | 12557 } |
12558 throw jsonDecoder.mismatch(jsonPath, "RequestErrorCode"); | 12558 throw jsonDecoder.mismatch(jsonPath, "RequestErrorCode", json); |
12559 } | 12559 } |
12560 | 12560 |
12561 @override | 12561 @override |
12562 String toString() => "RequestErrorCode.$name"; | 12562 String toString() => "RequestErrorCode.$name"; |
12563 | 12563 |
12564 String toJson() => name; | 12564 String toJson() => name; |
12565 } | 12565 } |
12566 | 12566 |
12567 /** | 12567 /** |
12568 * SearchResult | 12568 * SearchResult |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12676 throw jsonDecoder.missingKey(jsonPath, "isPotential"); | 12676 throw jsonDecoder.missingKey(jsonPath, "isPotential"); |
12677 } | 12677 } |
12678 List<Element> path; | 12678 List<Element> path; |
12679 if (json.containsKey("path")) { | 12679 if (json.containsKey("path")) { |
12680 path = jsonDecoder._decodeList(jsonPath + ".path", json["path"], (String
jsonPath, Object json) => new Element.fromJson(jsonDecoder, jsonPath, json)); | 12680 path = jsonDecoder._decodeList(jsonPath + ".path", json["path"], (String
jsonPath, Object json) => new Element.fromJson(jsonDecoder, jsonPath, json)); |
12681 } else { | 12681 } else { |
12682 throw jsonDecoder.missingKey(jsonPath, "path"); | 12682 throw jsonDecoder.missingKey(jsonPath, "path"); |
12683 } | 12683 } |
12684 return new SearchResult(location, kind, isPotential, path); | 12684 return new SearchResult(location, kind, isPotential, path); |
12685 } else { | 12685 } else { |
12686 throw jsonDecoder.mismatch(jsonPath, "SearchResult"); | 12686 throw jsonDecoder.mismatch(jsonPath, "SearchResult", json); |
12687 } | 12687 } |
12688 } | 12688 } |
12689 | 12689 |
12690 Map<String, dynamic> toJson() { | 12690 Map<String, dynamic> toJson() { |
12691 Map<String, dynamic> result = {}; | 12691 Map<String, dynamic> result = {}; |
12692 result["location"] = location.toJson(); | 12692 result["location"] = location.toJson(); |
12693 result["kind"] = kind.toJson(); | 12693 result["kind"] = kind.toJson(); |
12694 result["isPotential"] = isPotential; | 12694 result["isPotential"] = isPotential; |
12695 result["path"] = path.map((Element value) => value.toJson()).toList(); | 12695 result["path"] = path.map((Element value) => value.toJson()).toList(); |
12696 return result; | 12696 return result; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12801 } | 12801 } |
12802 | 12802 |
12803 factory SearchResultKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 12803 factory SearchResultKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
12804 if (json is String) { | 12804 if (json is String) { |
12805 try { | 12805 try { |
12806 return new SearchResultKind(json); | 12806 return new SearchResultKind(json); |
12807 } catch(_) { | 12807 } catch(_) { |
12808 // Fall through | 12808 // Fall through |
12809 } | 12809 } |
12810 } | 12810 } |
12811 throw jsonDecoder.mismatch(jsonPath, "SearchResultKind"); | 12811 throw jsonDecoder.mismatch(jsonPath, "SearchResultKind", json); |
12812 } | 12812 } |
12813 | 12813 |
12814 @override | 12814 @override |
12815 String toString() => "SearchResultKind.$name"; | 12815 String toString() => "SearchResultKind.$name"; |
12816 | 12816 |
12817 String toJson() => name; | 12817 String toJson() => name; |
12818 } | 12818 } |
12819 | 12819 |
12820 /** | 12820 /** |
12821 * ServerService | 12821 * ServerService |
(...skipping 23 matching lines...) Expand all Loading... |
12845 } | 12845 } |
12846 | 12846 |
12847 factory ServerService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 12847 factory ServerService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { |
12848 if (json is String) { | 12848 if (json is String) { |
12849 try { | 12849 try { |
12850 return new ServerService(json); | 12850 return new ServerService(json); |
12851 } catch(_) { | 12851 } catch(_) { |
12852 // Fall through | 12852 // Fall through |
12853 } | 12853 } |
12854 } | 12854 } |
12855 throw jsonDecoder.mismatch(jsonPath, "ServerService"); | 12855 throw jsonDecoder.mismatch(jsonPath, "ServerService", json); |
12856 } | 12856 } |
12857 | 12857 |
12858 @override | 12858 @override |
12859 String toString() => "ServerService.$name"; | 12859 String toString() => "ServerService.$name"; |
12860 | 12860 |
12861 String toJson() => name; | 12861 String toJson() => name; |
12862 } | 12862 } |
12863 | 12863 |
12864 /** | 12864 /** |
12865 * SourceChange | 12865 * SourceChange |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12970 linkedEditGroups = jsonDecoder._decodeList(jsonPath + ".linkedEditGroups
", json["linkedEditGroups"], (String jsonPath, Object json) => new LinkedEditGro
up.fromJson(jsonDecoder, jsonPath, json)); | 12970 linkedEditGroups = jsonDecoder._decodeList(jsonPath + ".linkedEditGroups
", json["linkedEditGroups"], (String jsonPath, Object json) => new LinkedEditGro
up.fromJson(jsonDecoder, jsonPath, json)); |
12971 } else { | 12971 } else { |
12972 throw jsonDecoder.missingKey(jsonPath, "linkedEditGroups"); | 12972 throw jsonDecoder.missingKey(jsonPath, "linkedEditGroups"); |
12973 } | 12973 } |
12974 Position selection; | 12974 Position selection; |
12975 if (json.containsKey("selection")) { | 12975 if (json.containsKey("selection")) { |
12976 selection = new Position.fromJson(jsonDecoder, jsonPath + ".selection",
json["selection"]); | 12976 selection = new Position.fromJson(jsonDecoder, jsonPath + ".selection",
json["selection"]); |
12977 } | 12977 } |
12978 return new SourceChange(message, edits: edits, linkedEditGroups: linkedEdi
tGroups, selection: selection); | 12978 return new SourceChange(message, edits: edits, linkedEditGroups: linkedEdi
tGroups, selection: selection); |
12979 } else { | 12979 } else { |
12980 throw jsonDecoder.mismatch(jsonPath, "SourceChange"); | 12980 throw jsonDecoder.mismatch(jsonPath, "SourceChange", json); |
12981 } | 12981 } |
12982 } | 12982 } |
12983 | 12983 |
12984 Map<String, dynamic> toJson() { | 12984 Map<String, dynamic> toJson() { |
12985 Map<String, dynamic> result = {}; | 12985 Map<String, dynamic> result = {}; |
12986 result["message"] = message; | 12986 result["message"] = message; |
12987 result["edits"] = edits.map((SourceFileEdit value) => value.toJson()).toList
(); | 12987 result["edits"] = edits.map((SourceFileEdit value) => value.toJson()).toList
(); |
12988 result["linkedEditGroups"] = linkedEditGroups.map((LinkedEditGroup value) =>
value.toJson()).toList(); | 12988 result["linkedEditGroups"] = linkedEditGroups.map((LinkedEditGroup value) =>
value.toJson()).toList(); |
12989 if (selection != null) { | 12989 if (selection != null) { |
12990 result["selection"] = selection.toJson(); | 12990 result["selection"] = selection.toJson(); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13163 replacement = jsonDecoder._decodeString(jsonPath + ".replacement", json[
"replacement"]); | 13163 replacement = jsonDecoder._decodeString(jsonPath + ".replacement", json[
"replacement"]); |
13164 } else { | 13164 } else { |
13165 throw jsonDecoder.missingKey(jsonPath, "replacement"); | 13165 throw jsonDecoder.missingKey(jsonPath, "replacement"); |
13166 } | 13166 } |
13167 String id; | 13167 String id; |
13168 if (json.containsKey("id")) { | 13168 if (json.containsKey("id")) { |
13169 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 13169 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
13170 } | 13170 } |
13171 return new SourceEdit(offset, length, replacement, id: id); | 13171 return new SourceEdit(offset, length, replacement, id: id); |
13172 } else { | 13172 } else { |
13173 throw jsonDecoder.mismatch(jsonPath, "SourceEdit"); | 13173 throw jsonDecoder.mismatch(jsonPath, "SourceEdit", json); |
13174 } | 13174 } |
13175 } | 13175 } |
13176 | 13176 |
13177 /** | 13177 /** |
13178 * The end of the region to be modified. | 13178 * The end of the region to be modified. |
13179 */ | 13179 */ |
13180 int get end => offset + length; | 13180 int get end => offset + length; |
13181 | 13181 |
13182 Map<String, dynamic> toJson() { | 13182 Map<String, dynamic> toJson() { |
13183 Map<String, dynamic> result = {}; | 13183 Map<String, dynamic> result = {}; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13311 throw jsonDecoder.missingKey(jsonPath, "fileStamp"); | 13311 throw jsonDecoder.missingKey(jsonPath, "fileStamp"); |
13312 } | 13312 } |
13313 List<SourceEdit> edits; | 13313 List<SourceEdit> edits; |
13314 if (json.containsKey("edits")) { | 13314 if (json.containsKey("edits")) { |
13315 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str
ing jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, jso
n)); | 13315 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str
ing jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, jso
n)); |
13316 } else { | 13316 } else { |
13317 throw jsonDecoder.missingKey(jsonPath, "edits"); | 13317 throw jsonDecoder.missingKey(jsonPath, "edits"); |
13318 } | 13318 } |
13319 return new SourceFileEdit(file, fileStamp, edits: edits); | 13319 return new SourceFileEdit(file, fileStamp, edits: edits); |
13320 } else { | 13320 } else { |
13321 throw jsonDecoder.mismatch(jsonPath, "SourceFileEdit"); | 13321 throw jsonDecoder.mismatch(jsonPath, "SourceFileEdit", json); |
13322 } | 13322 } |
13323 } | 13323 } |
13324 | 13324 |
13325 Map<String, dynamic> toJson() { | 13325 Map<String, dynamic> toJson() { |
13326 Map<String, dynamic> result = {}; | 13326 Map<String, dynamic> result = {}; |
13327 result["file"] = file; | 13327 result["file"] = file; |
13328 result["fileStamp"] = fileStamp; | 13328 result["fileStamp"] = fileStamp; |
13329 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); | 13329 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); |
13330 return result; | 13330 return result; |
13331 } | 13331 } |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13560 throw jsonDecoder.missingKey(jsonPath, "mixins"); | 13560 throw jsonDecoder.missingKey(jsonPath, "mixins"); |
13561 } | 13561 } |
13562 List<int> subclasses; | 13562 List<int> subclasses; |
13563 if (json.containsKey("subclasses")) { | 13563 if (json.containsKey("subclasses")) { |
13564 subclasses = jsonDecoder._decodeList(jsonPath + ".subclasses", json["sub
classes"], jsonDecoder._decodeInt); | 13564 subclasses = jsonDecoder._decodeList(jsonPath + ".subclasses", json["sub
classes"], jsonDecoder._decodeInt); |
13565 } else { | 13565 } else { |
13566 throw jsonDecoder.missingKey(jsonPath, "subclasses"); | 13566 throw jsonDecoder.missingKey(jsonPath, "subclasses"); |
13567 } | 13567 } |
13568 return new TypeHierarchyItem(classElement, displayName: displayName, membe
rElement: memberElement, superclass: superclass, interfaces: interfaces, mixins:
mixins, subclasses: subclasses); | 13568 return new TypeHierarchyItem(classElement, displayName: displayName, membe
rElement: memberElement, superclass: superclass, interfaces: interfaces, mixins:
mixins, subclasses: subclasses); |
13569 } else { | 13569 } else { |
13570 throw jsonDecoder.mismatch(jsonPath, "TypeHierarchyItem"); | 13570 throw jsonDecoder.mismatch(jsonPath, "TypeHierarchyItem", json); |
13571 } | 13571 } |
13572 } | 13572 } |
13573 | 13573 |
13574 Map<String, dynamic> toJson() { | 13574 Map<String, dynamic> toJson() { |
13575 Map<String, dynamic> result = {}; | 13575 Map<String, dynamic> result = {}; |
13576 result["classElement"] = classElement.toJson(); | 13576 result["classElement"] = classElement.toJson(); |
13577 if (displayName != null) { | 13577 if (displayName != null) { |
13578 result["displayName"] = displayName; | 13578 result["displayName"] = displayName; |
13579 } | 13579 } |
13580 if (memberElement != null) { | 13580 if (memberElement != null) { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13775 throw jsonDecoder.missingKey(jsonPath, "offsets"); | 13775 throw jsonDecoder.missingKey(jsonPath, "offsets"); |
13776 } | 13776 } |
13777 List<int> lengths; | 13777 List<int> lengths; |
13778 if (json.containsKey("lengths")) { | 13778 if (json.containsKey("lengths")) { |
13779 lengths = jsonDecoder._decodeList(jsonPath + ".lengths", json["lengths"]
, jsonDecoder._decodeInt); | 13779 lengths = jsonDecoder._decodeList(jsonPath + ".lengths", json["lengths"]
, jsonDecoder._decodeInt); |
13780 } else { | 13780 } else { |
13781 throw jsonDecoder.missingKey(jsonPath, "lengths"); | 13781 throw jsonDecoder.missingKey(jsonPath, "lengths"); |
13782 } | 13782 } |
13783 return new ExtractLocalVariableFeedback(names, offsets, lengths); | 13783 return new ExtractLocalVariableFeedback(names, offsets, lengths); |
13784 } else { | 13784 } else { |
13785 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable feedback"); | 13785 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable feedback", json
); |
13786 } | 13786 } |
13787 } | 13787 } |
13788 | 13788 |
13789 Map<String, dynamic> toJson() { | 13789 Map<String, dynamic> toJson() { |
13790 Map<String, dynamic> result = {}; | 13790 Map<String, dynamic> result = {}; |
13791 result["names"] = names; | 13791 result["names"] = names; |
13792 result["offsets"] = offsets; | 13792 result["offsets"] = offsets; |
13793 result["lengths"] = lengths; | 13793 result["lengths"] = lengths; |
13794 return result; | 13794 return result; |
13795 } | 13795 } |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13879 throw jsonDecoder.missingKey(jsonPath, "name"); | 13879 throw jsonDecoder.missingKey(jsonPath, "name"); |
13880 } | 13880 } |
13881 bool extractAll; | 13881 bool extractAll; |
13882 if (json.containsKey("extractAll")) { | 13882 if (json.containsKey("extractAll")) { |
13883 extractAll = jsonDecoder._decodeBool(jsonPath + ".extractAll", json["ext
ractAll"]); | 13883 extractAll = jsonDecoder._decodeBool(jsonPath + ".extractAll", json["ext
ractAll"]); |
13884 } else { | 13884 } else { |
13885 throw jsonDecoder.missingKey(jsonPath, "extractAll"); | 13885 throw jsonDecoder.missingKey(jsonPath, "extractAll"); |
13886 } | 13886 } |
13887 return new ExtractLocalVariableOptions(name, extractAll); | 13887 return new ExtractLocalVariableOptions(name, extractAll); |
13888 } else { | 13888 } else { |
13889 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable options"); | 13889 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable options", json)
; |
13890 } | 13890 } |
13891 } | 13891 } |
13892 | 13892 |
13893 factory ExtractLocalVariableOptions.fromRefactoringParams(EditGetRefactoringPa
rams refactoringParams, Request request) { | 13893 factory ExtractLocalVariableOptions.fromRefactoringParams(EditGetRefactoringPa
rams refactoringParams, Request request) { |
13894 return new ExtractLocalVariableOptions.fromJson( | 13894 return new ExtractLocalVariableOptions.fromJson( |
13895 new RequestDecoder(request), "options", refactoringParams.options); | 13895 new RequestDecoder(request), "options", refactoringParams.options); |
13896 } | 13896 } |
13897 | 13897 |
13898 Map<String, dynamic> toJson() { | 13898 Map<String, dynamic> toJson() { |
13899 Map<String, dynamic> result = {}; | 13899 Map<String, dynamic> result = {}; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14131 throw jsonDecoder.missingKey(jsonPath, "offsets"); | 14131 throw jsonDecoder.missingKey(jsonPath, "offsets"); |
14132 } | 14132 } |
14133 List<int> lengths; | 14133 List<int> lengths; |
14134 if (json.containsKey("lengths")) { | 14134 if (json.containsKey("lengths")) { |
14135 lengths = jsonDecoder._decodeList(jsonPath + ".lengths", json["lengths"]
, jsonDecoder._decodeInt); | 14135 lengths = jsonDecoder._decodeList(jsonPath + ".lengths", json["lengths"]
, jsonDecoder._decodeInt); |
14136 } else { | 14136 } else { |
14137 throw jsonDecoder.missingKey(jsonPath, "lengths"); | 14137 throw jsonDecoder.missingKey(jsonPath, "lengths"); |
14138 } | 14138 } |
14139 return new ExtractMethodFeedback(offset, length, returnType, names, canCre
ateGetter, parameters, offsets, lengths); | 14139 return new ExtractMethodFeedback(offset, length, returnType, names, canCre
ateGetter, parameters, offsets, lengths); |
14140 } else { | 14140 } else { |
14141 throw jsonDecoder.mismatch(jsonPath, "extractMethod feedback"); | 14141 throw jsonDecoder.mismatch(jsonPath, "extractMethod feedback", json); |
14142 } | 14142 } |
14143 } | 14143 } |
14144 | 14144 |
14145 Map<String, dynamic> toJson() { | 14145 Map<String, dynamic> toJson() { |
14146 Map<String, dynamic> result = {}; | 14146 Map<String, dynamic> result = {}; |
14147 result["offset"] = offset; | 14147 result["offset"] = offset; |
14148 result["length"] = length; | 14148 result["length"] = length; |
14149 result["returnType"] = returnType; | 14149 result["returnType"] = returnType; |
14150 result["names"] = names; | 14150 result["names"] = names; |
14151 result["canCreateGetter"] = canCreateGetter; | 14151 result["canCreateGetter"] = canCreateGetter; |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14337 throw jsonDecoder.missingKey(jsonPath, "parameters"); | 14337 throw jsonDecoder.missingKey(jsonPath, "parameters"); |
14338 } | 14338 } |
14339 bool extractAll; | 14339 bool extractAll; |
14340 if (json.containsKey("extractAll")) { | 14340 if (json.containsKey("extractAll")) { |
14341 extractAll = jsonDecoder._decodeBool(jsonPath + ".extractAll", json["ext
ractAll"]); | 14341 extractAll = jsonDecoder._decodeBool(jsonPath + ".extractAll", json["ext
ractAll"]); |
14342 } else { | 14342 } else { |
14343 throw jsonDecoder.missingKey(jsonPath, "extractAll"); | 14343 throw jsonDecoder.missingKey(jsonPath, "extractAll"); |
14344 } | 14344 } |
14345 return new ExtractMethodOptions(returnType, createGetter, name, parameters
, extractAll); | 14345 return new ExtractMethodOptions(returnType, createGetter, name, parameters
, extractAll); |
14346 } else { | 14346 } else { |
14347 throw jsonDecoder.mismatch(jsonPath, "extractMethod options"); | 14347 throw jsonDecoder.mismatch(jsonPath, "extractMethod options", json); |
14348 } | 14348 } |
14349 } | 14349 } |
14350 | 14350 |
14351 factory ExtractMethodOptions.fromRefactoringParams(EditGetRefactoringParams re
factoringParams, Request request) { | 14351 factory ExtractMethodOptions.fromRefactoringParams(EditGetRefactoringParams re
factoringParams, Request request) { |
14352 return new ExtractMethodOptions.fromJson( | 14352 return new ExtractMethodOptions.fromJson( |
14353 new RequestDecoder(request), "options", refactoringParams.options); | 14353 new RequestDecoder(request), "options", refactoringParams.options); |
14354 } | 14354 } |
14355 | 14355 |
14356 Map<String, dynamic> toJson() { | 14356 Map<String, dynamic> toJson() { |
14357 Map<String, dynamic> result = {}; | 14357 Map<String, dynamic> result = {}; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14446 throw jsonDecoder.missingKey(jsonPath, "name"); | 14446 throw jsonDecoder.missingKey(jsonPath, "name"); |
14447 } | 14447 } |
14448 int occurrences; | 14448 int occurrences; |
14449 if (json.containsKey("occurrences")) { | 14449 if (json.containsKey("occurrences")) { |
14450 occurrences = jsonDecoder._decodeInt(jsonPath + ".occurrences", json["oc
currences"]); | 14450 occurrences = jsonDecoder._decodeInt(jsonPath + ".occurrences", json["oc
currences"]); |
14451 } else { | 14451 } else { |
14452 throw jsonDecoder.missingKey(jsonPath, "occurrences"); | 14452 throw jsonDecoder.missingKey(jsonPath, "occurrences"); |
14453 } | 14453 } |
14454 return new InlineLocalVariableFeedback(name, occurrences); | 14454 return new InlineLocalVariableFeedback(name, occurrences); |
14455 } else { | 14455 } else { |
14456 throw jsonDecoder.mismatch(jsonPath, "inlineLocalVariable feedback"); | 14456 throw jsonDecoder.mismatch(jsonPath, "inlineLocalVariable feedback", json)
; |
14457 } | 14457 } |
14458 } | 14458 } |
14459 | 14459 |
14460 Map<String, dynamic> toJson() { | 14460 Map<String, dynamic> toJson() { |
14461 Map<String, dynamic> result = {}; | 14461 Map<String, dynamic> result = {}; |
14462 result["name"] = name; | 14462 result["name"] = name; |
14463 result["occurrences"] = occurrences; | 14463 result["occurrences"] = occurrences; |
14464 return result; | 14464 return result; |
14465 } | 14465 } |
14466 | 14466 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14582 throw jsonDecoder.missingKey(jsonPath, "methodName"); | 14582 throw jsonDecoder.missingKey(jsonPath, "methodName"); |
14583 } | 14583 } |
14584 bool isDeclaration; | 14584 bool isDeclaration; |
14585 if (json.containsKey("isDeclaration")) { | 14585 if (json.containsKey("isDeclaration")) { |
14586 isDeclaration = jsonDecoder._decodeBool(jsonPath + ".isDeclaration", jso
n["isDeclaration"]); | 14586 isDeclaration = jsonDecoder._decodeBool(jsonPath + ".isDeclaration", jso
n["isDeclaration"]); |
14587 } else { | 14587 } else { |
14588 throw jsonDecoder.missingKey(jsonPath, "isDeclaration"); | 14588 throw jsonDecoder.missingKey(jsonPath, "isDeclaration"); |
14589 } | 14589 } |
14590 return new InlineMethodFeedback(methodName, isDeclaration, className: clas
sName); | 14590 return new InlineMethodFeedback(methodName, isDeclaration, className: clas
sName); |
14591 } else { | 14591 } else { |
14592 throw jsonDecoder.mismatch(jsonPath, "inlineMethod feedback"); | 14592 throw jsonDecoder.mismatch(jsonPath, "inlineMethod feedback", json); |
14593 } | 14593 } |
14594 } | 14594 } |
14595 | 14595 |
14596 Map<String, dynamic> toJson() { | 14596 Map<String, dynamic> toJson() { |
14597 Map<String, dynamic> result = {}; | 14597 Map<String, dynamic> result = {}; |
14598 if (className != null) { | 14598 if (className != null) { |
14599 result["className"] = className; | 14599 result["className"] = className; |
14600 } | 14600 } |
14601 result["methodName"] = methodName; | 14601 result["methodName"] = methodName; |
14602 result["isDeclaration"] = isDeclaration; | 14602 result["isDeclaration"] = isDeclaration; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14686 throw jsonDecoder.missingKey(jsonPath, "deleteSource"); | 14686 throw jsonDecoder.missingKey(jsonPath, "deleteSource"); |
14687 } | 14687 } |
14688 bool inlineAll; | 14688 bool inlineAll; |
14689 if (json.containsKey("inlineAll")) { | 14689 if (json.containsKey("inlineAll")) { |
14690 inlineAll = jsonDecoder._decodeBool(jsonPath + ".inlineAll", json["inlin
eAll"]); | 14690 inlineAll = jsonDecoder._decodeBool(jsonPath + ".inlineAll", json["inlin
eAll"]); |
14691 } else { | 14691 } else { |
14692 throw jsonDecoder.missingKey(jsonPath, "inlineAll"); | 14692 throw jsonDecoder.missingKey(jsonPath, "inlineAll"); |
14693 } | 14693 } |
14694 return new InlineMethodOptions(deleteSource, inlineAll); | 14694 return new InlineMethodOptions(deleteSource, inlineAll); |
14695 } else { | 14695 } else { |
14696 throw jsonDecoder.mismatch(jsonPath, "inlineMethod options"); | 14696 throw jsonDecoder.mismatch(jsonPath, "inlineMethod options", json); |
14697 } | 14697 } |
14698 } | 14698 } |
14699 | 14699 |
14700 factory InlineMethodOptions.fromRefactoringParams(EditGetRefactoringParams ref
actoringParams, Request request) { | 14700 factory InlineMethodOptions.fromRefactoringParams(EditGetRefactoringParams ref
actoringParams, Request request) { |
14701 return new InlineMethodOptions.fromJson( | 14701 return new InlineMethodOptions.fromJson( |
14702 new RequestDecoder(request), "options", refactoringParams.options); | 14702 new RequestDecoder(request), "options", refactoringParams.options); |
14703 } | 14703 } |
14704 | 14704 |
14705 Map<String, dynamic> toJson() { | 14705 Map<String, dynamic> toJson() { |
14706 Map<String, dynamic> result = {}; | 14706 Map<String, dynamic> result = {}; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14780 } | 14780 } |
14781 if (json is Map) { | 14781 if (json is Map) { |
14782 String newFile; | 14782 String newFile; |
14783 if (json.containsKey("newFile")) { | 14783 if (json.containsKey("newFile")) { |
14784 newFile = jsonDecoder._decodeString(jsonPath + ".newFile", json["newFile
"]); | 14784 newFile = jsonDecoder._decodeString(jsonPath + ".newFile", json["newFile
"]); |
14785 } else { | 14785 } else { |
14786 throw jsonDecoder.missingKey(jsonPath, "newFile"); | 14786 throw jsonDecoder.missingKey(jsonPath, "newFile"); |
14787 } | 14787 } |
14788 return new MoveFileOptions(newFile); | 14788 return new MoveFileOptions(newFile); |
14789 } else { | 14789 } else { |
14790 throw jsonDecoder.mismatch(jsonPath, "moveFile options"); | 14790 throw jsonDecoder.mismatch(jsonPath, "moveFile options", json); |
14791 } | 14791 } |
14792 } | 14792 } |
14793 | 14793 |
14794 factory MoveFileOptions.fromRefactoringParams(EditGetRefactoringParams refacto
ringParams, Request request) { | 14794 factory MoveFileOptions.fromRefactoringParams(EditGetRefactoringParams refacto
ringParams, Request request) { |
14795 return new MoveFileOptions.fromJson( | 14795 return new MoveFileOptions.fromJson( |
14796 new RequestDecoder(request), "options", refactoringParams.options); | 14796 new RequestDecoder(request), "options", refactoringParams.options); |
14797 } | 14797 } |
14798 | 14798 |
14799 Map<String, dynamic> toJson() { | 14799 Map<String, dynamic> toJson() { |
14800 Map<String, dynamic> result = {}; | 14800 Map<String, dynamic> result = {}; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14925 throw jsonDecoder.missingKey(jsonPath, "elementKindName"); | 14925 throw jsonDecoder.missingKey(jsonPath, "elementKindName"); |
14926 } | 14926 } |
14927 String oldName; | 14927 String oldName; |
14928 if (json.containsKey("oldName")) { | 14928 if (json.containsKey("oldName")) { |
14929 oldName = jsonDecoder._decodeString(jsonPath + ".oldName", json["oldName
"]); | 14929 oldName = jsonDecoder._decodeString(jsonPath + ".oldName", json["oldName
"]); |
14930 } else { | 14930 } else { |
14931 throw jsonDecoder.missingKey(jsonPath, "oldName"); | 14931 throw jsonDecoder.missingKey(jsonPath, "oldName"); |
14932 } | 14932 } |
14933 return new RenameFeedback(offset, length, elementKindName, oldName); | 14933 return new RenameFeedback(offset, length, elementKindName, oldName); |
14934 } else { | 14934 } else { |
14935 throw jsonDecoder.mismatch(jsonPath, "rename feedback"); | 14935 throw jsonDecoder.mismatch(jsonPath, "rename feedback", json); |
14936 } | 14936 } |
14937 } | 14937 } |
14938 | 14938 |
14939 Map<String, dynamic> toJson() { | 14939 Map<String, dynamic> toJson() { |
14940 Map<String, dynamic> result = {}; | 14940 Map<String, dynamic> result = {}; |
14941 result["offset"] = offset; | 14941 result["offset"] = offset; |
14942 result["length"] = length; | 14942 result["length"] = length; |
14943 result["elementKindName"] = elementKindName; | 14943 result["elementKindName"] = elementKindName; |
14944 result["oldName"] = oldName; | 14944 result["oldName"] = oldName; |
14945 return result; | 14945 return result; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15003 } | 15003 } |
15004 if (json is Map) { | 15004 if (json is Map) { |
15005 String newName; | 15005 String newName; |
15006 if (json.containsKey("newName")) { | 15006 if (json.containsKey("newName")) { |
15007 newName = jsonDecoder._decodeString(jsonPath + ".newName", json["newName
"]); | 15007 newName = jsonDecoder._decodeString(jsonPath + ".newName", json["newName
"]); |
15008 } else { | 15008 } else { |
15009 throw jsonDecoder.missingKey(jsonPath, "newName"); | 15009 throw jsonDecoder.missingKey(jsonPath, "newName"); |
15010 } | 15010 } |
15011 return new RenameOptions(newName); | 15011 return new RenameOptions(newName); |
15012 } else { | 15012 } else { |
15013 throw jsonDecoder.mismatch(jsonPath, "rename options"); | 15013 throw jsonDecoder.mismatch(jsonPath, "rename options", json); |
15014 } | 15014 } |
15015 } | 15015 } |
15016 | 15016 |
15017 factory RenameOptions.fromRefactoringParams(EditGetRefactoringParams refactori
ngParams, Request request) { | 15017 factory RenameOptions.fromRefactoringParams(EditGetRefactoringParams refactori
ngParams, Request request) { |
15018 return new RenameOptions.fromJson( | 15018 return new RenameOptions.fromJson( |
15019 new RequestDecoder(request), "options", refactoringParams.options); | 15019 new RequestDecoder(request), "options", refactoringParams.options); |
15020 } | 15020 } |
15021 | 15021 |
15022 Map<String, dynamic> toJson() { | 15022 Map<String, dynamic> toJson() { |
15023 Map<String, dynamic> result = {}; | 15023 Map<String, dynamic> result = {}; |
(...skipping 12 matching lines...) Expand all Loading... |
15036 return false; | 15036 return false; |
15037 } | 15037 } |
15038 | 15038 |
15039 @override | 15039 @override |
15040 int get hashCode { | 15040 int get hashCode { |
15041 int hash = 0; | 15041 int hash = 0; |
15042 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 15042 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
15043 return _JenkinsSmiHash.finish(hash); | 15043 return _JenkinsSmiHash.finish(hash); |
15044 } | 15044 } |
15045 } | 15045 } |
OLD | NEW |