Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: pkg/analysis_server/lib/src/generated_protocol.dart

Issue 1083223003: Fix additional cases where analysis server might send null, violating protocol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 19 matching lines...) Expand all
30 } 30 }
31 31
32 /** 32 /**
33 * server.getVersion result 33 * server.getVersion result
34 * 34 *
35 * { 35 * {
36 * "version": String 36 * "version": String
37 * } 37 * }
38 */ 38 */
39 class ServerGetVersionResult implements HasToJson { 39 class ServerGetVersionResult implements HasToJson {
40 String _version;
41
40 /** 42 /**
41 * The version number of the analysis server. 43 * The version number of the analysis server.
42 */ 44 */
43 String version; 45 String get version => _version;
44 46
45 ServerGetVersionResult(this.version); 47 /**
48 * The version number of the analysis server.
49 */
50 void set version(String value) {
51 assert(value != null);
52 this._version = value;
53 }
54
55 ServerGetVersionResult(String version) {
56 this.version = version;
57 }
46 58
47 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa th, Object json) { 59 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa th, Object json) {
48 if (json == null) { 60 if (json == null) {
49 json = {}; 61 json = {};
50 } 62 }
51 if (json is Map) { 63 if (json is Map) {
52 String version; 64 String version;
53 if (json.containsKey("version")) { 65 if (json.containsKey("version")) {
54 version = jsonDecoder._decodeString(jsonPath + ".version", json["version "]); 66 version = jsonDecoder._decodeString(jsonPath + ".version", json["version "]);
55 } else { 67 } else {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 150 }
139 151
140 /** 152 /**
141 * server.setSubscriptions params 153 * server.setSubscriptions params
142 * 154 *
143 * { 155 * {
144 * "subscriptions": List<ServerService> 156 * "subscriptions": List<ServerService>
145 * } 157 * }
146 */ 158 */
147 class ServerSetSubscriptionsParams implements HasToJson { 159 class ServerSetSubscriptionsParams implements HasToJson {
160 List<ServerService> _subscriptions;
161
148 /** 162 /**
149 * A list of the services being subscribed to. 163 * A list of the services being subscribed to.
150 */ 164 */
151 List<ServerService> subscriptions; 165 List<ServerService> get subscriptions => _subscriptions;
152 166
153 ServerSetSubscriptionsParams(this.subscriptions); 167 /**
168 * A list of the services being subscribed to.
169 */
170 void set subscriptions(List<ServerService> value) {
171 assert(value != null);
172 this._subscriptions = value;
173 }
174
175 ServerSetSubscriptionsParams(List<ServerService> subscriptions) {
176 this.subscriptions = subscriptions;
177 }
154 178
155 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 179 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
156 if (json == null) { 180 if (json == null) {
157 json = {}; 181 json = {};
158 } 182 }
159 if (json is Map) { 183 if (json is Map) {
160 List<ServerService> subscriptions; 184 List<ServerService> subscriptions;
161 if (json.containsKey("subscriptions")) { 185 if (json.containsKey("subscriptions")) {
162 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));
163 } else { 187 } else {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 249 }
226 250
227 /** 251 /**
228 * server.connected params 252 * server.connected params
229 * 253 *
230 * { 254 * {
231 * "version": String 255 * "version": String
232 * } 256 * }
233 */ 257 */
234 class ServerConnectedParams implements HasToJson { 258 class ServerConnectedParams implements HasToJson {
259 String _version;
260
235 /** 261 /**
236 * The version number of the analysis server. 262 * The version number of the analysis server.
237 */ 263 */
238 String version; 264 String get version => _version;
239 265
240 ServerConnectedParams(this.version); 266 /**
267 * The version number of the analysis server.
268 */
269 void set version(String value) {
270 assert(value != null);
271 this._version = value;
272 }
273
274 ServerConnectedParams(String version) {
275 this.version = version;
276 }
241 277
242 factory ServerConnectedParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) { 278 factory ServerConnectedParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
243 if (json == null) { 279 if (json == null) {
244 json = {}; 280 json = {};
245 } 281 }
246 if (json is Map) { 282 if (json is Map) {
247 String version; 283 String version;
248 if (json.containsKey("version")) { 284 if (json.containsKey("version")) {
249 version = jsonDecoder._decodeString(jsonPath + ".version", json["version "]); 285 version = jsonDecoder._decodeString(jsonPath + ".version", json["version "]);
250 } else { 286 } else {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 /** 329 /**
294 * server.error params 330 * server.error params
295 * 331 *
296 * { 332 * {
297 * "isFatal": bool 333 * "isFatal": bool
298 * "message": String 334 * "message": String
299 * "stackTrace": String 335 * "stackTrace": String
300 * } 336 * }
301 */ 337 */
302 class ServerErrorParams implements HasToJson { 338 class ServerErrorParams implements HasToJson {
339 bool _isFatal;
340
341 String _message;
342
343 String _stackTrace;
344
303 /** 345 /**
304 * True if the error is a fatal error, meaning that the server will shutdown 346 * True if the error is a fatal error, meaning that the server will shutdown
305 * automatically after sending this notification. 347 * automatically after sending this notification.
306 */ 348 */
307 bool isFatal; 349 bool get isFatal => _isFatal;
350
351 /**
352 * True if the error is a fatal error, meaning that the server will shutdown
353 * automatically after sending this notification.
354 */
355 void set isFatal(bool value) {
356 assert(value != null);
357 this._isFatal = value;
358 }
308 359
309 /** 360 /**
310 * The error message indicating what kind of error was encountered. 361 * The error message indicating what kind of error was encountered.
311 */ 362 */
312 String message; 363 String get message => _message;
364
365 /**
366 * The error message indicating what kind of error was encountered.
367 */
368 void set message(String value) {
369 assert(value != null);
370 this._message = value;
371 }
313 372
314 /** 373 /**
315 * The stack trace associated with the generation of the error, used for 374 * The stack trace associated with the generation of the error, used for
316 * debugging the server. 375 * debugging the server.
317 */ 376 */
318 String stackTrace; 377 String get stackTrace => _stackTrace;
319 378
320 ServerErrorParams(this.isFatal, this.message, this.stackTrace); 379 /**
380 * The stack trace associated with the generation of the error, used for
381 * debugging the server.
382 */
383 void set stackTrace(String value) {
384 assert(value != null);
385 this._stackTrace = value;
386 }
387
388 ServerErrorParams(bool isFatal, String message, String stackTrace) {
389 this.isFatal = isFatal;
390 this.message = message;
391 this.stackTrace = stackTrace;
392 }
321 393
322 factory ServerErrorParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O bject json) { 394 factory ServerErrorParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O bject json) {
323 if (json == null) { 395 if (json == null) {
324 json = {}; 396 json = {};
325 } 397 }
326 if (json is Map) { 398 if (json is Map) {
327 bool isFatal; 399 bool isFatal;
328 if (json.containsKey("isFatal")) { 400 if (json.containsKey("isFatal")) {
329 isFatal = jsonDecoder._decodeBool(jsonPath + ".isFatal", json["isFatal"] ); 401 isFatal = jsonDecoder._decodeBool(jsonPath + ".isFatal", json["isFatal"] );
330 } else { 402 } else {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 462
391 /** 463 /**
392 * server.status params 464 * server.status params
393 * 465 *
394 * { 466 * {
395 * "analysis": optional AnalysisStatus 467 * "analysis": optional AnalysisStatus
396 * "pub": optional PubStatus 468 * "pub": optional PubStatus
397 * } 469 * }
398 */ 470 */
399 class ServerStatusParams implements HasToJson { 471 class ServerStatusParams implements HasToJson {
472 AnalysisStatus _analysis;
473
474 PubStatus _pub;
475
400 /** 476 /**
401 * The current status of analysis, including whether analysis is being 477 * The current status of analysis, including whether analysis is being
402 * performed and if so what is being analyzed. 478 * performed and if so what is being analyzed.
403 */ 479 */
404 AnalysisStatus analysis; 480 AnalysisStatus get analysis => _analysis;
481
482 /**
483 * The current status of analysis, including whether analysis is being
484 * performed and if so what is being analyzed.
485 */
486 void set analysis(AnalysisStatus value) {
487 this._analysis = value;
488 }
405 489
406 /** 490 /**
407 * The current status of pub execution, indicating whether we are currently 491 * The current status of pub execution, indicating whether we are currently
408 * running pub. 492 * running pub.
409 */ 493 */
410 PubStatus pub; 494 PubStatus get pub => _pub;
411 495
412 ServerStatusParams({this.analysis, this.pub}); 496 /**
497 * The current status of pub execution, indicating whether we are currently
498 * running pub.
499 */
500 void set pub(PubStatus value) {
501 this._pub = value;
502 }
503
504 ServerStatusParams({AnalysisStatus analysis, PubStatus pub}) {
505 this.analysis = analysis;
506 this.pub = pub;
507 }
413 508
414 factory ServerStatusParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 509 factory ServerStatusParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
415 if (json == null) { 510 if (json == null) {
416 json = {}; 511 json = {};
417 } 512 }
418 if (json is Map) { 513 if (json is Map) {
419 AnalysisStatus analysis; 514 AnalysisStatus analysis;
420 if (json.containsKey("analysis")) { 515 if (json.containsKey("analysis")) {
421 analysis = new AnalysisStatus.fromJson(jsonDecoder, jsonPath + ".analysi s", json["analysis"]); 516 analysis = new AnalysisStatus.fromJson(jsonDecoder, jsonPath + ".analysi s", json["analysis"]);
422 } 517 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 } 567 }
473 568
474 /** 569 /**
475 * analysis.getErrors params 570 * analysis.getErrors params
476 * 571 *
477 * { 572 * {
478 * "file": FilePath 573 * "file": FilePath
479 * } 574 * }
480 */ 575 */
481 class AnalysisGetErrorsParams implements HasToJson { 576 class AnalysisGetErrorsParams implements HasToJson {
577 String _file;
578
482 /** 579 /**
483 * The file for which errors are being requested. 580 * The file for which errors are being requested.
484 */ 581 */
485 String file; 582 String get file => _file;
486 583
487 AnalysisGetErrorsParams(this.file); 584 /**
585 * The file for which errors are being requested.
586 */
587 void set file(String value) {
588 assert(value != null);
589 this._file = value;
590 }
591
592 AnalysisGetErrorsParams(String file) {
593 this.file = file;
594 }
488 595
489 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) { 596 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) {
490 if (json == null) { 597 if (json == null) {
491 json = {}; 598 json = {};
492 } 599 }
493 if (json is Map) { 600 if (json is Map) {
494 String file; 601 String file;
495 if (json.containsKey("file")) { 602 if (json.containsKey("file")) {
496 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 603 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
497 } else { 604 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 } 645 }
539 646
540 /** 647 /**
541 * analysis.getErrors result 648 * analysis.getErrors result
542 * 649 *
543 * { 650 * {
544 * "errors": List<AnalysisError> 651 * "errors": List<AnalysisError>
545 * } 652 * }
546 */ 653 */
547 class AnalysisGetErrorsResult implements HasToJson { 654 class AnalysisGetErrorsResult implements HasToJson {
655 List<AnalysisError> _errors;
656
548 /** 657 /**
549 * The errors associated with the file. 658 * The errors associated with the file.
550 */ 659 */
551 List<AnalysisError> errors; 660 List<AnalysisError> get errors => _errors;
552 661
553 AnalysisGetErrorsResult(this.errors); 662 /**
663 * The errors associated with the file.
664 */
665 void set errors(List<AnalysisError> value) {
666 assert(value != null);
667 this._errors = value;
668 }
669
670 AnalysisGetErrorsResult(List<AnalysisError> errors) {
671 this.errors = errors;
672 }
554 673
555 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) { 674 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) {
556 if (json == null) { 675 if (json == null) {
557 json = {}; 676 json = {};
558 } 677 }
559 if (json is Map) { 678 if (json is Map) {
560 List<AnalysisError> errors; 679 List<AnalysisError> errors;
561 if (json.containsKey("errors")) { 680 if (json.containsKey("errors")) {
562 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));
563 } else { 682 } else {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 724
606 /** 725 /**
607 * analysis.getHover params 726 * analysis.getHover params
608 * 727 *
609 * { 728 * {
610 * "file": FilePath 729 * "file": FilePath
611 * "offset": int 730 * "offset": int
612 * } 731 * }
613 */ 732 */
614 class AnalysisGetHoverParams implements HasToJson { 733 class AnalysisGetHoverParams implements HasToJson {
734 String _file;
735
736 int _offset;
737
615 /** 738 /**
616 * The file in which hover information is being requested. 739 * The file in which hover information is being requested.
617 */ 740 */
618 String file; 741 String get file => _file;
742
743 /**
744 * The file in which hover information is being requested.
745 */
746 void set file(String value) {
747 assert(value != null);
748 this._file = value;
749 }
619 750
620 /** 751 /**
621 * The offset for which hover information is being requested. 752 * The offset for which hover information is being requested.
622 */ 753 */
623 int offset; 754 int get offset => _offset;
624 755
625 AnalysisGetHoverParams(this.file, this.offset); 756 /**
757 * The offset for which hover information is being requested.
758 */
759 void set offset(int value) {
760 assert(value != null);
761 this._offset = value;
762 }
763
764 AnalysisGetHoverParams(String file, int offset) {
765 this.file = file;
766 this.offset = offset;
767 }
626 768
627 factory AnalysisGetHoverParams.fromJson(JsonDecoder jsonDecoder, String jsonPa th, Object json) { 769 factory AnalysisGetHoverParams.fromJson(JsonDecoder jsonDecoder, String jsonPa th, Object json) {
628 if (json == null) { 770 if (json == null) {
629 json = {}; 771 json = {};
630 } 772 }
631 if (json is Map) { 773 if (json is Map) {
632 String file; 774 String file;
633 if (json.containsKey("file")) { 775 if (json.containsKey("file")) {
634 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 776 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
635 } else { 777 } else {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 } 827 }
686 828
687 /** 829 /**
688 * analysis.getHover result 830 * analysis.getHover result
689 * 831 *
690 * { 832 * {
691 * "hovers": List<HoverInformation> 833 * "hovers": List<HoverInformation>
692 * } 834 * }
693 */ 835 */
694 class AnalysisGetHoverResult implements HasToJson { 836 class AnalysisGetHoverResult implements HasToJson {
837 List<HoverInformation> _hovers;
838
695 /** 839 /**
696 * The hover information associated with the location. The list will be empty 840 * The hover information associated with the location. The list will be empty
697 * if no information could be determined for the location. The list can 841 * if no information could be determined for the location. The list can
842 * contain multiple items if the file is being analyzed in multiple contexts
843 * in conflicting ways (such as a part that is included in multiple
844 * libraries).
845 */
846 List<HoverInformation> get hovers => _hovers;
847
848 /**
849 * The hover information associated with the location. The list will be empty
850 * if no information could be determined for the location. The list can
698 * contain multiple items if the file is being analyzed in multiple contexts 851 * contain multiple items if the file is being analyzed in multiple contexts
699 * in conflicting ways (such as a part that is included in multiple 852 * in conflicting ways (such as a part that is included in multiple
700 * libraries). 853 * libraries).
701 */ 854 */
702 List<HoverInformation> hovers; 855 void set hovers(List<HoverInformation> value) {
856 assert(value != null);
857 this._hovers = value;
858 }
703 859
704 AnalysisGetHoverResult(this.hovers); 860 AnalysisGetHoverResult(List<HoverInformation> hovers) {
861 this.hovers = hovers;
862 }
705 863
706 factory AnalysisGetHoverResult.fromJson(JsonDecoder jsonDecoder, String jsonPa th, Object json) { 864 factory AnalysisGetHoverResult.fromJson(JsonDecoder jsonDecoder, String jsonPa th, Object json) {
707 if (json == null) { 865 if (json == null) {
708 json = {}; 866 json = {};
709 } 867 }
710 if (json is Map) { 868 if (json is Map) {
711 List<HoverInformation> hovers; 869 List<HoverInformation> hovers;
712 if (json.containsKey("hovers")) { 870 if (json.containsKey("hovers")) {
713 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));
714 } else { 872 } else {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 935
778 /** 936 /**
779 * analysis.getLibraryDependencies result 937 * analysis.getLibraryDependencies result
780 * 938 *
781 * { 939 * {
782 * "libraries": List<FilePath> 940 * "libraries": List<FilePath>
783 * "packageMap": Map<String, Map<String, List<FilePath>>> 941 * "packageMap": Map<String, Map<String, List<FilePath>>>
784 * } 942 * }
785 */ 943 */
786 class AnalysisGetLibraryDependenciesResult implements HasToJson { 944 class AnalysisGetLibraryDependenciesResult implements HasToJson {
945 List<String> _libraries;
946
947 Map<String, Map<String, List<String>>> _packageMap;
948
787 /** 949 /**
788 * A list of the paths of library elements referenced by files in existing 950 * A list of the paths of library elements referenced by files in existing
789 * analysis roots. 951 * analysis roots.
790 */ 952 */
791 List<String> libraries; 953 List<String> get libraries => _libraries;
954
955 /**
956 * A list of the paths of library elements referenced by files in existing
957 * analysis roots.
958 */
959 void set libraries(List<String> value) {
960 assert(value != null);
961 this._libraries = value;
962 }
792 963
793 /** 964 /**
794 * A mapping from context source roots to package maps which map package 965 * A mapping from context source roots to package maps which map package
795 * names to source directories for use in client-side package URI resolution. 966 * names to source directories for use in client-side package URI resolution.
796 */ 967 */
797 Map<String, Map<String, List<String>>> packageMap; 968 Map<String, Map<String, List<String>>> get packageMap => _packageMap;
798 969
799 AnalysisGetLibraryDependenciesResult(this.libraries, this.packageMap); 970 /**
971 * A mapping from context source roots to package maps which map package
972 * names to source directories for use in client-side package URI resolution.
973 */
974 void set packageMap(Map<String, Map<String, List<String>>> value) {
975 assert(value != null);
976 this._packageMap = value;
977 }
978
979 AnalysisGetLibraryDependenciesResult(List<String> libraries, Map<String, Map<S tring, List<String>>> packageMap) {
980 this.libraries = libraries;
981 this.packageMap = packageMap;
982 }
800 983
801 factory AnalysisGetLibraryDependenciesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 984 factory AnalysisGetLibraryDependenciesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
802 if (json == null) { 985 if (json == null) {
803 json = {}; 986 json = {};
804 } 987 }
805 if (json is Map) { 988 if (json is Map) {
806 List<String> libraries; 989 List<String> libraries;
807 if (json.containsKey("libraries")) { 990 if (json.containsKey("libraries")) {
808 libraries = jsonDecoder._decodeList(jsonPath + ".libraries", json["libra ries"], jsonDecoder._decodeString); 991 libraries = jsonDecoder._decodeList(jsonPath + ".libraries", json["libra ries"], jsonDecoder._decodeString);
809 } else { 992 } else {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 /** 1044 /**
862 * analysis.getNavigation params 1045 * analysis.getNavigation params
863 * 1046 *
864 * { 1047 * {
865 * "file": FilePath 1048 * "file": FilePath
866 * "offset": int 1049 * "offset": int
867 * "length": int 1050 * "length": int
868 * } 1051 * }
869 */ 1052 */
870 class AnalysisGetNavigationParams implements HasToJson { 1053 class AnalysisGetNavigationParams implements HasToJson {
1054 String _file;
1055
1056 int _offset;
1057
1058 int _length;
1059
871 /** 1060 /**
872 * The file in which navigation information is being requested. 1061 * The file in which navigation information is being requested.
873 */ 1062 */
874 String file; 1063 String get file => _file;
1064
1065 /**
1066 * The file in which navigation information is being requested.
1067 */
1068 void set file(String value) {
1069 assert(value != null);
1070 this._file = value;
1071 }
875 1072
876 /** 1073 /**
877 * The offset of the region for which navigation information is being 1074 * The offset of the region for which navigation information is being
878 * requested. 1075 * requested.
879 */ 1076 */
880 int offset; 1077 int get offset => _offset;
1078
1079 /**
1080 * The offset of the region for which navigation information is being
1081 * requested.
1082 */
1083 void set offset(int value) {
1084 assert(value != null);
1085 this._offset = value;
1086 }
881 1087
882 /** 1088 /**
883 * The length of the region for which navigation information is being 1089 * The length of the region for which navigation information is being
884 * requested. 1090 * requested.
885 */ 1091 */
886 int length; 1092 int get length => _length;
887 1093
888 AnalysisGetNavigationParams(this.file, this.offset, this.length); 1094 /**
1095 * The length of the region for which navigation information is being
1096 * requested.
1097 */
1098 void set length(int value) {
1099 assert(value != null);
1100 this._length = value;
1101 }
1102
1103 AnalysisGetNavigationParams(String file, int offset, int length) {
1104 this.file = file;
1105 this.offset = offset;
1106 this.length = length;
1107 }
889 1108
890 factory AnalysisGetNavigationParams.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) { 1109 factory AnalysisGetNavigationParams.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) {
891 if (json == null) { 1110 if (json == null) {
892 json = {}; 1111 json = {};
893 } 1112 }
894 if (json is Map) { 1113 if (json is Map) {
895 String file; 1114 String file;
896 if (json.containsKey("file")) { 1115 if (json.containsKey("file")) {
897 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 1116 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
898 } else { 1117 } else {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 /** 1178 /**
960 * analysis.getNavigation result 1179 * analysis.getNavigation result
961 * 1180 *
962 * { 1181 * {
963 * "files": List<FilePath> 1182 * "files": List<FilePath>
964 * "targets": List<NavigationTarget> 1183 * "targets": List<NavigationTarget>
965 * "regions": List<NavigationRegion> 1184 * "regions": List<NavigationRegion>
966 * } 1185 * }
967 */ 1186 */
968 class AnalysisGetNavigationResult implements HasToJson { 1187 class AnalysisGetNavigationResult implements HasToJson {
1188 List<String> _files;
1189
1190 List<NavigationTarget> _targets;
1191
1192 List<NavigationRegion> _regions;
1193
969 /** 1194 /**
970 * A list of the paths of files that are referenced by the navigation 1195 * A list of the paths of files that are referenced by the navigation
971 * targets. 1196 * targets.
972 */ 1197 */
973 List<String> files; 1198 List<String> get files => _files;
1199
1200 /**
1201 * A list of the paths of files that are referenced by the navigation
1202 * targets.
1203 */
1204 void set files(List<String> value) {
1205 assert(value != null);
1206 this._files = value;
1207 }
974 1208
975 /** 1209 /**
976 * A list of the navigation targets that are referenced by the navigation 1210 * A list of the navigation targets that are referenced by the navigation
977 * regions. 1211 * regions.
978 */ 1212 */
979 List<NavigationTarget> targets; 1213 List<NavigationTarget> get targets => _targets;
1214
1215 /**
1216 * A list of the navigation targets that are referenced by the navigation
1217 * regions.
1218 */
1219 void set targets(List<NavigationTarget> value) {
1220 assert(value != null);
1221 this._targets = value;
1222 }
980 1223
981 /** 1224 /**
982 * A list of the navigation regions within the requested region of the file. 1225 * A list of the navigation regions within the requested region of the file.
983 */ 1226 */
984 List<NavigationRegion> regions; 1227 List<NavigationRegion> get regions => _regions;
985 1228
986 AnalysisGetNavigationResult(this.files, this.targets, this.regions); 1229 /**
1230 * A list of the navigation regions within the requested region of the file.
1231 */
1232 void set regions(List<NavigationRegion> value) {
1233 assert(value != null);
1234 this._regions = value;
1235 }
1236
1237 AnalysisGetNavigationResult(List<String> files, List<NavigationTarget> targets , List<NavigationRegion> regions) {
1238 this.files = files;
1239 this.targets = targets;
1240 this.regions = regions;
1241 }
987 1242
988 factory AnalysisGetNavigationResult.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) { 1243 factory AnalysisGetNavigationResult.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) {
989 if (json == null) { 1244 if (json == null) {
990 json = {}; 1245 json = {};
991 } 1246 }
992 if (json is Map) { 1247 if (json is Map) {
993 List<String> files; 1248 List<String> files;
994 if (json.containsKey("files")) { 1249 if (json.containsKey("files")) {
995 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json Decoder._decodeString); 1250 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json Decoder._decodeString);
996 } else { 1251 } else {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 } 1310 }
1056 1311
1057 /** 1312 /**
1058 * analysis.reanalyze params 1313 * analysis.reanalyze params
1059 * 1314 *
1060 * { 1315 * {
1061 * "roots": optional List<FilePath> 1316 * "roots": optional List<FilePath>
1062 * } 1317 * }
1063 */ 1318 */
1064 class AnalysisReanalyzeParams implements HasToJson { 1319 class AnalysisReanalyzeParams implements HasToJson {
1320 List<String> _roots;
1321
1065 /** 1322 /**
1066 * A list of the analysis roots that are to be re-analyzed. 1323 * A list of the analysis roots that are to be re-analyzed.
1067 */ 1324 */
1068 List<String> roots; 1325 List<String> get roots => _roots;
1069 1326
1070 AnalysisReanalyzeParams({this.roots}); 1327 /**
1328 * A list of the analysis roots that are to be re-analyzed.
1329 */
1330 void set roots(List<String> value) {
1331 this._roots = value;
1332 }
1333
1334 AnalysisReanalyzeParams({List<String> roots}) {
1335 this.roots = roots;
1336 }
1071 1337
1072 factory AnalysisReanalyzeParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) { 1338 factory AnalysisReanalyzeParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) {
1073 if (json == null) { 1339 if (json == null) {
1074 json = {}; 1340 json = {};
1075 } 1341 }
1076 if (json is Map) { 1342 if (json is Map) {
1077 List<String> roots; 1343 List<String> roots;
1078 if (json.containsKey("roots")) { 1344 if (json.containsKey("roots")) {
1079 roots = jsonDecoder._decodeList(jsonPath + ".roots", json["roots"], json Decoder._decodeString); 1345 roots = jsonDecoder._decodeList(jsonPath + ".roots", json["roots"], json Decoder._decodeString);
1080 } 1346 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 /** 1410 /**
1145 * analysis.setAnalysisRoots params 1411 * analysis.setAnalysisRoots params
1146 * 1412 *
1147 * { 1413 * {
1148 * "included": List<FilePath> 1414 * "included": List<FilePath>
1149 * "excluded": List<FilePath> 1415 * "excluded": List<FilePath>
1150 * "packageRoots": optional Map<FilePath, FilePath> 1416 * "packageRoots": optional Map<FilePath, FilePath>
1151 * } 1417 * }
1152 */ 1418 */
1153 class AnalysisSetAnalysisRootsParams implements HasToJson { 1419 class AnalysisSetAnalysisRootsParams implements HasToJson {
1420 List<String> _included;
1421
1422 List<String> _excluded;
1423
1424 Map<String, String> _packageRoots;
1425
1154 /** 1426 /**
1155 * A list of the files and directories that should be analyzed. 1427 * A list of the files and directories that should be analyzed.
1156 */ 1428 */
1157 List<String> included; 1429 List<String> get included => _included;
1430
1431 /**
1432 * A list of the files and directories that should be analyzed.
1433 */
1434 void set included(List<String> value) {
1435 assert(value != null);
1436 this._included = value;
1437 }
1158 1438
1159 /** 1439 /**
1160 * A list of the files and directories within the included directories that 1440 * A list of the files and directories within the included directories that
1161 * should not be analyzed. 1441 * should not be analyzed.
1162 */ 1442 */
1163 List<String> excluded; 1443 List<String> get excluded => _excluded;
1444
1445 /**
1446 * A list of the files and directories within the included directories that
1447 * should not be analyzed.
1448 */
1449 void set excluded(List<String> value) {
1450 assert(value != null);
1451 this._excluded = value;
1452 }
1164 1453
1165 /** 1454 /**
1166 * A mapping from source directories to target directories that should 1455 * A mapping from source directories to target directories that should
1456 * override the normal package: URI resolution mechanism. The analyzer will
1457 * behave as though each source directory in the map contains a special
1458 * pubspec.yaml file which resolves any package: URI to the corresponding
1459 * path within the target directory. The effect is the same as specifying the
1460 * target directory as a "--package_root" parameter to the Dart VM when
1461 * executing any Dart file inside the source directory.
1462 *
1463 * Files in any directories that are not overridden by this mapping have
1464 * their package: URI's resolved using the normal pubspec.yaml mechanism. If
1465 * this field is absent, or the empty map is specified, that indicates that
1466 * the normal pubspec.yaml mechanism should always be used.
1467 */
1468 Map<String, String> get packageRoots => _packageRoots;
1469
1470 /**
1471 * A mapping from source directories to target directories that should
1167 * override the normal package: URI resolution mechanism. The analyzer will 1472 * override the normal package: URI resolution mechanism. The analyzer will
1168 * behave as though each source directory in the map contains a special 1473 * behave as though each source directory in the map contains a special
1169 * pubspec.yaml file which resolves any package: URI to the corresponding 1474 * pubspec.yaml file which resolves any package: URI to the corresponding
1170 * path within the target directory. The effect is the same as specifying the 1475 * path within the target directory. The effect is the same as specifying the
1171 * target directory as a "--package_root" parameter to the Dart VM when 1476 * target directory as a "--package_root" parameter to the Dart VM when
1172 * executing any Dart file inside the source directory. 1477 * executing any Dart file inside the source directory.
1173 * 1478 *
1174 * Files in any directories that are not overridden by this mapping have 1479 * Files in any directories that are not overridden by this mapping have
1175 * their package: URI's resolved using the normal pubspec.yaml mechanism. If 1480 * their package: URI's resolved using the normal pubspec.yaml mechanism. If
1176 * this field is absent, or the empty map is specified, that indicates that 1481 * this field is absent, or the empty map is specified, that indicates that
1177 * the normal pubspec.yaml mechanism should always be used. 1482 * the normal pubspec.yaml mechanism should always be used.
1178 */ 1483 */
1179 Map<String, String> packageRoots; 1484 void set packageRoots(Map<String, String> value) {
1485 this._packageRoots = value;
1486 }
1180 1487
1181 AnalysisSetAnalysisRootsParams(this.included, this.excluded, {this.packageRoot s}); 1488 AnalysisSetAnalysisRootsParams(List<String> included, List<String> excluded, { Map<String, String> packageRoots}) {
1489 this.included = included;
1490 this.excluded = excluded;
1491 this.packageRoots = packageRoots;
1492 }
1182 1493
1183 factory AnalysisSetAnalysisRootsParams.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) { 1494 factory AnalysisSetAnalysisRootsParams.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) {
1184 if (json == null) { 1495 if (json == null) {
1185 json = {}; 1496 json = {};
1186 } 1497 }
1187 if (json is Map) { 1498 if (json is Map) {
1188 List<String> included; 1499 List<String> included;
1189 if (json.containsKey("included")) { 1500 if (json.containsKey("included")) {
1190 included = jsonDecoder._decodeList(jsonPath + ".included", json["include d"], jsonDecoder._decodeString); 1501 included = jsonDecoder._decodeList(jsonPath + ".included", json["include d"], jsonDecoder._decodeString);
1191 } else { 1502 } else {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 } 1582 }
1272 1583
1273 /** 1584 /**
1274 * analysis.setPriorityFiles params 1585 * analysis.setPriorityFiles params
1275 * 1586 *
1276 * { 1587 * {
1277 * "files": List<FilePath> 1588 * "files": List<FilePath>
1278 * } 1589 * }
1279 */ 1590 */
1280 class AnalysisSetPriorityFilesParams implements HasToJson { 1591 class AnalysisSetPriorityFilesParams implements HasToJson {
1592 List<String> _files;
1593
1281 /** 1594 /**
1282 * The files that are to be a priority for analysis. 1595 * The files that are to be a priority for analysis.
1283 */ 1596 */
1284 List<String> files; 1597 List<String> get files => _files;
1285 1598
1286 AnalysisSetPriorityFilesParams(this.files); 1599 /**
1600 * The files that are to be a priority for analysis.
1601 */
1602 void set files(List<String> value) {
1603 assert(value != null);
1604 this._files = value;
1605 }
1606
1607 AnalysisSetPriorityFilesParams(List<String> files) {
1608 this.files = files;
1609 }
1287 1610
1288 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) { 1611 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) {
1289 if (json == null) { 1612 if (json == null) {
1290 json = {}; 1613 json = {};
1291 } 1614 }
1292 if (json is Map) { 1615 if (json is Map) {
1293 List<String> files; 1616 List<String> files;
1294 if (json.containsKey("files")) { 1617 if (json.containsKey("files")) {
1295 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json Decoder._decodeString); 1618 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json Decoder._decodeString);
1296 } else { 1619 } else {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 } 1681 }
1359 1682
1360 /** 1683 /**
1361 * analysis.setSubscriptions params 1684 * analysis.setSubscriptions params
1362 * 1685 *
1363 * { 1686 * {
1364 * "subscriptions": Map<AnalysisService, List<FilePath>> 1687 * "subscriptions": Map<AnalysisService, List<FilePath>>
1365 * } 1688 * }
1366 */ 1689 */
1367 class AnalysisSetSubscriptionsParams implements HasToJson { 1690 class AnalysisSetSubscriptionsParams implements HasToJson {
1691 Map<AnalysisService, List<String>> _subscriptions;
1692
1368 /** 1693 /**
1369 * A table mapping services to a list of the files being subscribed to the 1694 * A table mapping services to a list of the files being subscribed to the
1370 * service. 1695 * service.
1371 */ 1696 */
1372 Map<AnalysisService, List<String>> subscriptions; 1697 Map<AnalysisService, List<String>> get subscriptions => _subscriptions;
1373 1698
1374 AnalysisSetSubscriptionsParams(this.subscriptions); 1699 /**
1700 * A table mapping services to a list of the files being subscribed to the
1701 * service.
1702 */
1703 void set subscriptions(Map<AnalysisService, List<String>> value) {
1704 assert(value != null);
1705 this._subscriptions = value;
1706 }
1707
1708 AnalysisSetSubscriptionsParams(Map<AnalysisService, List<String>> subscription s) {
1709 this.subscriptions = subscriptions;
1710 }
1375 1711
1376 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) { 1712 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) {
1377 if (json == null) { 1713 if (json == null) {
1378 json = {}; 1714 json = {};
1379 } 1715 }
1380 if (json is Map) { 1716 if (json is Map) {
1381 Map<AnalysisService, List<String>> subscriptions; 1717 Map<AnalysisService, List<String>> subscriptions;
1382 if (json.containsKey("subscriptions")) { 1718 if (json.containsKey("subscriptions")) {
1383 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)); 1719 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));
1384 } else { 1720 } else {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 } 1782 }
1447 1783
1448 /** 1784 /**
1449 * analysis.updateContent params 1785 * analysis.updateContent params
1450 * 1786 *
1451 * { 1787 * {
1452 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon tentOverlay> 1788 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon tentOverlay>
1453 * } 1789 * }
1454 */ 1790 */
1455 class AnalysisUpdateContentParams implements HasToJson { 1791 class AnalysisUpdateContentParams implements HasToJson {
1792 Map<String, dynamic> _files;
1793
1456 /** 1794 /**
1457 * A table mapping the files whose content has changed to a description of 1795 * A table mapping the files whose content has changed to a description of
1458 * the content change. 1796 * the content change.
1459 */ 1797 */
1460 Map<String, dynamic> files; 1798 Map<String, dynamic> get files => _files;
1461 1799
1462 AnalysisUpdateContentParams(this.files); 1800 /**
1801 * A table mapping the files whose content has changed to a description of
1802 * the content change.
1803 */
1804 void set files(Map<String, dynamic> value) {
1805 assert(value != null);
1806 this._files = value;
1807 }
1808
1809 AnalysisUpdateContentParams(Map<String, dynamic> files) {
1810 this.files = files;
1811 }
1463 1812
1464 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) { 1813 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) {
1465 if (json == null) { 1814 if (json == null) {
1466 json = {}; 1815 json = {};
1467 } 1816 }
1468 if (json is Map) { 1817 if (json is Map) {
1469 Map<String, dynamic> files; 1818 Map<String, dynamic> files;
1470 if (json.containsKey("files")) { 1819 if (json.containsKey("files")) {
1471 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)})); 1820 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)}));
1472 } else { 1821 } else {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 } 1914 }
1566 1915
1567 /** 1916 /**
1568 * analysis.updateOptions params 1917 * analysis.updateOptions params
1569 * 1918 *
1570 * { 1919 * {
1571 * "options": AnalysisOptions 1920 * "options": AnalysisOptions
1572 * } 1921 * }
1573 */ 1922 */
1574 class AnalysisUpdateOptionsParams implements HasToJson { 1923 class AnalysisUpdateOptionsParams implements HasToJson {
1924 AnalysisOptions _options;
1925
1575 /** 1926 /**
1576 * The options that are to be used to control analysis. 1927 * The options that are to be used to control analysis.
1577 */ 1928 */
1578 AnalysisOptions options; 1929 AnalysisOptions get options => _options;
1579 1930
1580 AnalysisUpdateOptionsParams(this.options); 1931 /**
1932 * The options that are to be used to control analysis.
1933 */
1934 void set options(AnalysisOptions value) {
1935 assert(value != null);
1936 this._options = value;
1937 }
1938
1939 AnalysisUpdateOptionsParams(AnalysisOptions options) {
1940 this.options = options;
1941 }
1581 1942
1582 factory AnalysisUpdateOptionsParams.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) { 1943 factory AnalysisUpdateOptionsParams.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) {
1583 if (json == null) { 1944 if (json == null) {
1584 json = {}; 1945 json = {};
1585 } 1946 }
1586 if (json is Map) { 1947 if (json is Map) {
1587 AnalysisOptions options; 1948 AnalysisOptions options;
1588 if (json.containsKey("options")) { 1949 if (json.containsKey("options")) {
1589 options = new AnalysisOptions.fromJson(jsonDecoder, jsonPath + ".options ", json["options"]); 1950 options = new AnalysisOptions.fromJson(jsonDecoder, jsonPath + ".options ", json["options"]);
1590 } else { 1951 } else {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 2014
1654 /** 2015 /**
1655 * analysis.errors params 2016 * analysis.errors params
1656 * 2017 *
1657 * { 2018 * {
1658 * "file": FilePath 2019 * "file": FilePath
1659 * "errors": List<AnalysisError> 2020 * "errors": List<AnalysisError>
1660 * } 2021 * }
1661 */ 2022 */
1662 class AnalysisErrorsParams implements HasToJson { 2023 class AnalysisErrorsParams implements HasToJson {
2024 String _file;
2025
2026 List<AnalysisError> _errors;
2027
1663 /** 2028 /**
1664 * The file containing the errors. 2029 * The file containing the errors.
1665 */ 2030 */
1666 String file; 2031 String get file => _file;
2032
2033 /**
2034 * The file containing the errors.
2035 */
2036 void set file(String value) {
2037 assert(value != null);
2038 this._file = value;
2039 }
1667 2040
1668 /** 2041 /**
1669 * The errors contained in the file. 2042 * The errors contained in the file.
1670 */ 2043 */
1671 List<AnalysisError> errors; 2044 List<AnalysisError> get errors => _errors;
1672 2045
1673 AnalysisErrorsParams(this.file, this.errors); 2046 /**
2047 * The errors contained in the file.
2048 */
2049 void set errors(List<AnalysisError> value) {
2050 assert(value != null);
2051 this._errors = value;
2052 }
2053
2054 AnalysisErrorsParams(String file, List<AnalysisError> errors) {
2055 this.file = file;
2056 this.errors = errors;
2057 }
1674 2058
1675 factory AnalysisErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) { 2059 factory AnalysisErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) {
1676 if (json == null) { 2060 if (json == null) {
1677 json = {}; 2061 json = {};
1678 } 2062 }
1679 if (json is Map) { 2063 if (json is Map) {
1680 String file; 2064 String file;
1681 if (json.containsKey("file")) { 2065 if (json.containsKey("file")) {
1682 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 2066 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
1683 } else { 2067 } else {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 } 2117 }
1734 2118
1735 /** 2119 /**
1736 * analysis.flushResults params 2120 * analysis.flushResults params
1737 * 2121 *
1738 * { 2122 * {
1739 * "files": List<FilePath> 2123 * "files": List<FilePath>
1740 * } 2124 * }
1741 */ 2125 */
1742 class AnalysisFlushResultsParams implements HasToJson { 2126 class AnalysisFlushResultsParams implements HasToJson {
2127 List<String> _files;
2128
1743 /** 2129 /**
1744 * The files that are no longer being analyzed. 2130 * The files that are no longer being analyzed.
1745 */ 2131 */
1746 List<String> files; 2132 List<String> get files => _files;
1747 2133
1748 AnalysisFlushResultsParams(this.files); 2134 /**
2135 * The files that are no longer being analyzed.
2136 */
2137 void set files(List<String> value) {
2138 assert(value != null);
2139 this._files = value;
2140 }
2141
2142 AnalysisFlushResultsParams(List<String> files) {
2143 this.files = files;
2144 }
1749 2145
1750 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js onPath, Object json) { 2146 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js onPath, Object json) {
1751 if (json == null) { 2147 if (json == null) {
1752 json = {}; 2148 json = {};
1753 } 2149 }
1754 if (json is Map) { 2150 if (json is Map) {
1755 List<String> files; 2151 List<String> files;
1756 if (json.containsKey("files")) { 2152 if (json.containsKey("files")) {
1757 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json Decoder._decodeString); 2153 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json Decoder._decodeString);
1758 } else { 2154 } else {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 2196
1801 /** 2197 /**
1802 * analysis.folding params 2198 * analysis.folding params
1803 * 2199 *
1804 * { 2200 * {
1805 * "file": FilePath 2201 * "file": FilePath
1806 * "regions": List<FoldingRegion> 2202 * "regions": List<FoldingRegion>
1807 * } 2203 * }
1808 */ 2204 */
1809 class AnalysisFoldingParams implements HasToJson { 2205 class AnalysisFoldingParams implements HasToJson {
2206 String _file;
2207
2208 List<FoldingRegion> _regions;
2209
1810 /** 2210 /**
1811 * The file containing the folding regions. 2211 * The file containing the folding regions.
1812 */ 2212 */
1813 String file; 2213 String get file => _file;
2214
2215 /**
2216 * The file containing the folding regions.
2217 */
2218 void set file(String value) {
2219 assert(value != null);
2220 this._file = value;
2221 }
1814 2222
1815 /** 2223 /**
1816 * The folding regions contained in the file. 2224 * The folding regions contained in the file.
1817 */ 2225 */
1818 List<FoldingRegion> regions; 2226 List<FoldingRegion> get regions => _regions;
1819 2227
1820 AnalysisFoldingParams(this.file, this.regions); 2228 /**
2229 * The folding regions contained in the file.
2230 */
2231 void set regions(List<FoldingRegion> value) {
2232 assert(value != null);
2233 this._regions = value;
2234 }
2235
2236 AnalysisFoldingParams(String file, List<FoldingRegion> regions) {
2237 this.file = file;
2238 this.regions = regions;
2239 }
1821 2240
1822 factory AnalysisFoldingParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) { 2241 factory AnalysisFoldingParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
1823 if (json == null) { 2242 if (json == null) {
1824 json = {}; 2243 json = {};
1825 } 2244 }
1826 if (json is Map) { 2245 if (json is Map) {
1827 String file; 2246 String file;
1828 if (json.containsKey("file")) { 2247 if (json.containsKey("file")) {
1829 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 2248 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
1830 } else { 2249 } else {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 2300
1882 /** 2301 /**
1883 * analysis.highlights params 2302 * analysis.highlights params
1884 * 2303 *
1885 * { 2304 * {
1886 * "file": FilePath 2305 * "file": FilePath
1887 * "regions": List<HighlightRegion> 2306 * "regions": List<HighlightRegion>
1888 * } 2307 * }
1889 */ 2308 */
1890 class AnalysisHighlightsParams implements HasToJson { 2309 class AnalysisHighlightsParams implements HasToJson {
2310 String _file;
2311
2312 List<HighlightRegion> _regions;
2313
1891 /** 2314 /**
1892 * The file containing the highlight regions. 2315 * The file containing the highlight regions.
1893 */ 2316 */
1894 String file; 2317 String get file => _file;
2318
2319 /**
2320 * The file containing the highlight regions.
2321 */
2322 void set file(String value) {
2323 assert(value != null);
2324 this._file = value;
2325 }
1895 2326
1896 /** 2327 /**
1897 * The highlight regions contained in the file. Each highlight region 2328 * The highlight regions contained in the file. Each highlight region
2329 * represents a particular syntactic or semantic meaning associated with some
2330 * range. Note that the highlight regions that are returned can overlap other
2331 * highlight regions if there is more than one meaning associated with a
2332 * particular region.
2333 */
2334 List<HighlightRegion> get regions => _regions;
2335
2336 /**
2337 * The highlight regions contained in the file. Each highlight region
1898 * represents a particular syntactic or semantic meaning associated with some 2338 * represents a particular syntactic or semantic meaning associated with some
1899 * range. Note that the highlight regions that are returned can overlap other 2339 * range. Note that the highlight regions that are returned can overlap other
1900 * highlight regions if there is more than one meaning associated with a 2340 * highlight regions if there is more than one meaning associated with a
1901 * particular region. 2341 * particular region.
1902 */ 2342 */
1903 List<HighlightRegion> regions; 2343 void set regions(List<HighlightRegion> value) {
2344 assert(value != null);
2345 this._regions = value;
2346 }
1904 2347
1905 AnalysisHighlightsParams(this.file, this.regions); 2348 AnalysisHighlightsParams(String file, List<HighlightRegion> regions) {
2349 this.file = file;
2350 this.regions = regions;
2351 }
1906 2352
1907 factory AnalysisHighlightsParams.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) { 2353 factory AnalysisHighlightsParams.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) {
1908 if (json == null) { 2354 if (json == null) {
1909 json = {}; 2355 json = {};
1910 } 2356 }
1911 if (json is Map) { 2357 if (json is Map) {
1912 String file; 2358 String file;
1913 if (json.containsKey("file")) { 2359 if (json.containsKey("file")) {
1914 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 2360 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
1915 } else { 2361 } else {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1968 * analysis.invalidate params 2414 * analysis.invalidate params
1969 * 2415 *
1970 * { 2416 * {
1971 * "file": FilePath 2417 * "file": FilePath
1972 * "offset": int 2418 * "offset": int
1973 * "length": int 2419 * "length": int
1974 * "delta": int 2420 * "delta": int
1975 * } 2421 * }
1976 */ 2422 */
1977 class AnalysisInvalidateParams implements HasToJson { 2423 class AnalysisInvalidateParams implements HasToJson {
2424 String _file;
2425
2426 int _offset;
2427
2428 int _length;
2429
2430 int _delta;
2431
1978 /** 2432 /**
1979 * The file whose information has been invalidated. 2433 * The file whose information has been invalidated.
1980 */ 2434 */
1981 String file; 2435 String get file => _file;
2436
2437 /**
2438 * The file whose information has been invalidated.
2439 */
2440 void set file(String value) {
2441 assert(value != null);
2442 this._file = value;
2443 }
1982 2444
1983 /** 2445 /**
1984 * The offset of the invalidated region. 2446 * The offset of the invalidated region.
1985 */ 2447 */
1986 int offset; 2448 int get offset => _offset;
2449
2450 /**
2451 * The offset of the invalidated region.
2452 */
2453 void set offset(int value) {
2454 assert(value != null);
2455 this._offset = value;
2456 }
1987 2457
1988 /** 2458 /**
1989 * The length of the invalidated region. 2459 * The length of the invalidated region.
1990 */ 2460 */
1991 int length; 2461 int get length => _length;
2462
2463 /**
2464 * The length of the invalidated region.
2465 */
2466 void set length(int value) {
2467 assert(value != null);
2468 this._length = value;
2469 }
1992 2470
1993 /** 2471 /**
1994 * The delta to be applied to the offsets in information that follows the 2472 * The delta to be applied to the offsets in information that follows the
1995 * invalidated region in order to update it so that it doesn't need to be 2473 * invalidated region in order to update it so that it doesn't need to be
1996 * re-requested. 2474 * re-requested.
1997 */ 2475 */
1998 int delta; 2476 int get delta => _delta;
1999 2477
2000 AnalysisInvalidateParams(this.file, this.offset, this.length, this.delta); 2478 /**
2479 * The delta to be applied to the offsets in information that follows the
2480 * invalidated region in order to update it so that it doesn't need to be
2481 * re-requested.
2482 */
2483 void set delta(int value) {
2484 assert(value != null);
2485 this._delta = value;
2486 }
2487
2488 AnalysisInvalidateParams(String file, int offset, int length, int delta) {
2489 this.file = file;
2490 this.offset = offset;
2491 this.length = length;
2492 this.delta = delta;
2493 }
2001 2494
2002 factory AnalysisInvalidateParams.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) { 2495 factory AnalysisInvalidateParams.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) {
2003 if (json == null) { 2496 if (json == null) {
2004 json = {}; 2497 json = {};
2005 } 2498 }
2006 if (json is Map) { 2499 if (json is Map) {
2007 String file; 2500 String file;
2008 if (json.containsKey("file")) { 2501 if (json.containsKey("file")) {
2009 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 2502 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
2010 } else { 2503 } else {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2081 * analysis.navigation params 2574 * analysis.navigation params
2082 * 2575 *
2083 * { 2576 * {
2084 * "file": FilePath 2577 * "file": FilePath
2085 * "regions": List<NavigationRegion> 2578 * "regions": List<NavigationRegion>
2086 * "targets": List<NavigationTarget> 2579 * "targets": List<NavigationTarget>
2087 * "files": List<FilePath> 2580 * "files": List<FilePath>
2088 * } 2581 * }
2089 */ 2582 */
2090 class AnalysisNavigationParams implements HasToJson { 2583 class AnalysisNavigationParams implements HasToJson {
2584 String _file;
2585
2586 List<NavigationRegion> _regions;
2587
2588 List<NavigationTarget> _targets;
2589
2590 List<String> _files;
2591
2091 /** 2592 /**
2092 * The file containing the navigation regions. 2593 * The file containing the navigation regions.
2093 */ 2594 */
2094 String file; 2595 String get file => _file;
2596
2597 /**
2598 * The file containing the navigation regions.
2599 */
2600 void set file(String value) {
2601 assert(value != null);
2602 this._file = value;
2603 }
2095 2604
2096 /** 2605 /**
2097 * The navigation regions contained in the file. The regions are sorted by 2606 * The navigation regions contained in the file. The regions are sorted by
2607 * their offsets. Each navigation region represents a list of targets
2608 * associated with some range. The lists will usually contain a single
2609 * target, but can contain more in the case of a part that is included in
2610 * multiple libraries or in Dart code that is compiled against multiple
2611 * versions of a package. Note that the navigation regions that are returned
2612 * do not overlap other navigation regions.
2613 */
2614 List<NavigationRegion> get regions => _regions;
2615
2616 /**
2617 * The navigation regions contained in the file. The regions are sorted by
2098 * their offsets. Each navigation region represents a list of targets 2618 * their offsets. Each navigation region represents a list of targets
2099 * associated with some range. The lists will usually contain a single 2619 * associated with some range. The lists will usually contain a single
2100 * target, but can contain more in the case of a part that is included in 2620 * target, but can contain more in the case of a part that is included in
2101 * multiple libraries or in Dart code that is compiled against multiple 2621 * multiple libraries or in Dart code that is compiled against multiple
2102 * versions of a package. Note that the navigation regions that are returned 2622 * versions of a package. Note that the navigation regions that are returned
2103 * do not overlap other navigation regions. 2623 * do not overlap other navigation regions.
2104 */ 2624 */
2105 List<NavigationRegion> regions; 2625 void set regions(List<NavigationRegion> value) {
2626 assert(value != null);
2627 this._regions = value;
2628 }
2106 2629
2107 /** 2630 /**
2108 * The navigation targets referenced in the file. They are referenced by 2631 * The navigation targets referenced in the file. They are referenced by
2109 * NavigationRegions by their index in this array. 2632 * NavigationRegions by their index in this array.
2110 */ 2633 */
2111 List<NavigationTarget> targets; 2634 List<NavigationTarget> get targets => _targets;
2635
2636 /**
2637 * The navigation targets referenced in the file. They are referenced by
2638 * NavigationRegions by their index in this array.
2639 */
2640 void set targets(List<NavigationTarget> value) {
2641 assert(value != null);
2642 this._targets = value;
2643 }
2112 2644
2113 /** 2645 /**
2114 * The files containing navigation targets referenced in the file. They are 2646 * The files containing navigation targets referenced in the file. They are
2115 * referenced by NavigationTargets by their index in this array. 2647 * referenced by NavigationTargets by their index in this array.
2116 */ 2648 */
2117 List<String> files; 2649 List<String> get files => _files;
2118 2650
2119 AnalysisNavigationParams(this.file, this.regions, this.targets, this.files); 2651 /**
2652 * The files containing navigation targets referenced in the file. They are
2653 * referenced by NavigationTargets by their index in this array.
2654 */
2655 void set files(List<String> value) {
2656 assert(value != null);
2657 this._files = value;
2658 }
2659
2660 AnalysisNavigationParams(String file, List<NavigationRegion> regions, List<Nav igationTarget> targets, List<String> files) {
2661 this.file = file;
2662 this.regions = regions;
2663 this.targets = targets;
2664 this.files = files;
2665 }
2120 2666
2121 factory AnalysisNavigationParams.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) { 2667 factory AnalysisNavigationParams.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) {
2122 if (json == null) { 2668 if (json == null) {
2123 json = {}; 2669 json = {};
2124 } 2670 }
2125 if (json is Map) { 2671 if (json is Map) {
2126 String file; 2672 String file;
2127 if (json.containsKey("file")) { 2673 if (json.containsKey("file")) {
2128 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 2674 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
2129 } else { 2675 } else {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
2198 2744
2199 /** 2745 /**
2200 * analysis.occurrences params 2746 * analysis.occurrences params
2201 * 2747 *
2202 * { 2748 * {
2203 * "file": FilePath 2749 * "file": FilePath
2204 * "occurrences": List<Occurrences> 2750 * "occurrences": List<Occurrences>
2205 * } 2751 * }
2206 */ 2752 */
2207 class AnalysisOccurrencesParams implements HasToJson { 2753 class AnalysisOccurrencesParams implements HasToJson {
2754 String _file;
2755
2756 List<Occurrences> _occurrences;
2757
2208 /** 2758 /**
2209 * The file in which the references occur. 2759 * The file in which the references occur.
2210 */ 2760 */
2211 String file; 2761 String get file => _file;
2762
2763 /**
2764 * The file in which the references occur.
2765 */
2766 void set file(String value) {
2767 assert(value != null);
2768 this._file = value;
2769 }
2212 2770
2213 /** 2771 /**
2214 * The occurrences of references to elements within the file. 2772 * The occurrences of references to elements within the file.
2215 */ 2773 */
2216 List<Occurrences> occurrences; 2774 List<Occurrences> get occurrences => _occurrences;
2217 2775
2218 AnalysisOccurrencesParams(this.file, this.occurrences); 2776 /**
2777 * The occurrences of references to elements within the file.
2778 */
2779 void set occurrences(List<Occurrences> value) {
2780 assert(value != null);
2781 this._occurrences = value;
2782 }
2783
2784 AnalysisOccurrencesParams(String file, List<Occurrences> occurrences) {
2785 this.file = file;
2786 this.occurrences = occurrences;
2787 }
2219 2788
2220 factory AnalysisOccurrencesParams.fromJson(JsonDecoder jsonDecoder, String jso nPath, Object json) { 2789 factory AnalysisOccurrencesParams.fromJson(JsonDecoder jsonDecoder, String jso nPath, Object json) {
2221 if (json == null) { 2790 if (json == null) {
2222 json = {}; 2791 json = {};
2223 } 2792 }
2224 if (json is Map) { 2793 if (json is Map) {
2225 String file; 2794 String file;
2226 if (json.containsKey("file")) { 2795 if (json.containsKey("file")) {
2227 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 2796 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
2228 } else { 2797 } else {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
2279 2848
2280 /** 2849 /**
2281 * analysis.outline params 2850 * analysis.outline params
2282 * 2851 *
2283 * { 2852 * {
2284 * "file": FilePath 2853 * "file": FilePath
2285 * "outline": Outline 2854 * "outline": Outline
2286 * } 2855 * }
2287 */ 2856 */
2288 class AnalysisOutlineParams implements HasToJson { 2857 class AnalysisOutlineParams implements HasToJson {
2858 String _file;
2859
2860 Outline _outline;
2861
2289 /** 2862 /**
2290 * The file with which the outline is associated. 2863 * The file with which the outline is associated.
2291 */ 2864 */
2292 String file; 2865 String get file => _file;
2866
2867 /**
2868 * The file with which the outline is associated.
2869 */
2870 void set file(String value) {
2871 assert(value != null);
2872 this._file = value;
2873 }
2293 2874
2294 /** 2875 /**
2295 * The outline associated with the file. 2876 * The outline associated with the file.
2296 */ 2877 */
2297 Outline outline; 2878 Outline get outline => _outline;
2298 2879
2299 AnalysisOutlineParams(this.file, this.outline); 2880 /**
2881 * The outline associated with the file.
2882 */
2883 void set outline(Outline value) {
2884 assert(value != null);
2885 this._outline = value;
2886 }
2887
2888 AnalysisOutlineParams(String file, Outline outline) {
2889 this.file = file;
2890 this.outline = outline;
2891 }
2300 2892
2301 factory AnalysisOutlineParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) { 2893 factory AnalysisOutlineParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
2302 if (json == null) { 2894 if (json == null) {
2303 json = {}; 2895 json = {};
2304 } 2896 }
2305 if (json is Map) { 2897 if (json is Map) {
2306 String file; 2898 String file;
2307 if (json.containsKey("file")) { 2899 if (json.containsKey("file")) {
2308 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 2900 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
2309 } else { 2901 } else {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
2360 2952
2361 /** 2953 /**
2362 * analysis.overrides params 2954 * analysis.overrides params
2363 * 2955 *
2364 * { 2956 * {
2365 * "file": FilePath 2957 * "file": FilePath
2366 * "overrides": List<Override> 2958 * "overrides": List<Override>
2367 * } 2959 * }
2368 */ 2960 */
2369 class AnalysisOverridesParams implements HasToJson { 2961 class AnalysisOverridesParams implements HasToJson {
2962 String _file;
2963
2964 List<Override> _overrides;
2965
2370 /** 2966 /**
2371 * The file with which the overrides are associated. 2967 * The file with which the overrides are associated.
2372 */ 2968 */
2373 String file; 2969 String get file => _file;
2970
2971 /**
2972 * The file with which the overrides are associated.
2973 */
2974 void set file(String value) {
2975 assert(value != null);
2976 this._file = value;
2977 }
2374 2978
2375 /** 2979 /**
2376 * The overrides associated with the file. 2980 * The overrides associated with the file.
2377 */ 2981 */
2378 List<Override> overrides; 2982 List<Override> get overrides => _overrides;
2379 2983
2380 AnalysisOverridesParams(this.file, this.overrides); 2984 /**
2985 * The overrides associated with the file.
2986 */
2987 void set overrides(List<Override> value) {
2988 assert(value != null);
2989 this._overrides = value;
2990 }
2991
2992 AnalysisOverridesParams(String file, List<Override> overrides) {
2993 this.file = file;
2994 this.overrides = overrides;
2995 }
2381 2996
2382 factory AnalysisOverridesParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) { 2997 factory AnalysisOverridesParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) {
2383 if (json == null) { 2998 if (json == null) {
2384 json = {}; 2999 json = {};
2385 } 3000 }
2386 if (json is Map) { 3001 if (json is Map) {
2387 String file; 3002 String file;
2388 if (json.containsKey("file")) { 3003 if (json.containsKey("file")) {
2389 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 3004 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
2390 } else { 3005 } else {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
2441 3056
2442 /** 3057 /**
2443 * completion.getSuggestions params 3058 * completion.getSuggestions params
2444 * 3059 *
2445 * { 3060 * {
2446 * "file": FilePath 3061 * "file": FilePath
2447 * "offset": int 3062 * "offset": int
2448 * } 3063 * }
2449 */ 3064 */
2450 class CompletionGetSuggestionsParams implements HasToJson { 3065 class CompletionGetSuggestionsParams implements HasToJson {
3066 String _file;
3067
3068 int _offset;
3069
2451 /** 3070 /**
2452 * The file containing the point at which suggestions are to be made. 3071 * The file containing the point at which suggestions are to be made.
2453 */ 3072 */
2454 String file; 3073 String get file => _file;
3074
3075 /**
3076 * The file containing the point at which suggestions are to be made.
3077 */
3078 void set file(String value) {
3079 assert(value != null);
3080 this._file = value;
3081 }
2455 3082
2456 /** 3083 /**
2457 * The offset within the file at which suggestions are to be made. 3084 * The offset within the file at which suggestions are to be made.
2458 */ 3085 */
2459 int offset; 3086 int get offset => _offset;
2460 3087
2461 CompletionGetSuggestionsParams(this.file, this.offset); 3088 /**
3089 * The offset within the file at which suggestions are to be made.
3090 */
3091 void set offset(int value) {
3092 assert(value != null);
3093 this._offset = value;
3094 }
3095
3096 CompletionGetSuggestionsParams(String file, int offset) {
3097 this.file = file;
3098 this.offset = offset;
3099 }
2462 3100
2463 factory CompletionGetSuggestionsParams.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) { 3101 factory CompletionGetSuggestionsParams.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) {
2464 if (json == null) { 3102 if (json == null) {
2465 json = {}; 3103 json = {};
2466 } 3104 }
2467 if (json is Map) { 3105 if (json is Map) {
2468 String file; 3106 String file;
2469 if (json.containsKey("file")) { 3107 if (json.containsKey("file")) {
2470 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 3108 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
2471 } else { 3109 } else {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 } 3159 }
2522 3160
2523 /** 3161 /**
2524 * completion.getSuggestions result 3162 * completion.getSuggestions result
2525 * 3163 *
2526 * { 3164 * {
2527 * "id": CompletionId 3165 * "id": CompletionId
2528 * } 3166 * }
2529 */ 3167 */
2530 class CompletionGetSuggestionsResult implements HasToJson { 3168 class CompletionGetSuggestionsResult implements HasToJson {
3169 String _id;
3170
2531 /** 3171 /**
2532 * The identifier used to associate results with this completion request. 3172 * The identifier used to associate results with this completion request.
2533 */ 3173 */
2534 String id; 3174 String get id => _id;
2535 3175
2536 CompletionGetSuggestionsResult(this.id); 3176 /**
3177 * The identifier used to associate results with this completion request.
3178 */
3179 void set id(String value) {
3180 assert(value != null);
3181 this._id = value;
3182 }
3183
3184 CompletionGetSuggestionsResult(String id) {
3185 this.id = id;
3186 }
2537 3187
2538 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) { 3188 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) {
2539 if (json == null) { 3189 if (json == null) {
2540 json = {}; 3190 json = {};
2541 } 3191 }
2542 if (json is Map) { 3192 if (json is Map) {
2543 String id; 3193 String id;
2544 if (json.containsKey("id")) { 3194 if (json.containsKey("id")) {
2545 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 3195 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
2546 } else { 3196 } else {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2591 * 3241 *
2592 * { 3242 * {
2593 * "id": CompletionId 3243 * "id": CompletionId
2594 * "replacementOffset": int 3244 * "replacementOffset": int
2595 * "replacementLength": int 3245 * "replacementLength": int
2596 * "results": List<CompletionSuggestion> 3246 * "results": List<CompletionSuggestion>
2597 * "isLast": bool 3247 * "isLast": bool
2598 * } 3248 * }
2599 */ 3249 */
2600 class CompletionResultsParams implements HasToJson { 3250 class CompletionResultsParams implements HasToJson {
3251 String _id;
3252
3253 int _replacementOffset;
3254
3255 int _replacementLength;
3256
3257 List<CompletionSuggestion> _results;
3258
3259 bool _isLast;
3260
2601 /** 3261 /**
2602 * The id associated with the completion. 3262 * The id associated with the completion.
2603 */ 3263 */
2604 String id; 3264 String get id => _id;
3265
3266 /**
3267 * The id associated with the completion.
3268 */
3269 void set id(String value) {
3270 assert(value != null);
3271 this._id = value;
3272 }
2605 3273
2606 /** 3274 /**
2607 * The offset of the start of the text to be replaced. This will be different 3275 * The offset of the start of the text to be replaced. This will be different
3276 * than the offset used to request the completion suggestions if there was a
3277 * portion of an identifier before the original offset. In particular, the
3278 * replacementOffset will be the offset of the beginning of said identifier.
3279 */
3280 int get replacementOffset => _replacementOffset;
3281
3282 /**
3283 * The offset of the start of the text to be replaced. This will be different
2608 * than the offset used to request the completion suggestions if there was a 3284 * than the offset used to request the completion suggestions if there was a
2609 * portion of an identifier before the original offset. In particular, the 3285 * portion of an identifier before the original offset. In particular, the
2610 * replacementOffset will be the offset of the beginning of said identifier. 3286 * replacementOffset will be the offset of the beginning of said identifier.
2611 */ 3287 */
2612 int replacementOffset; 3288 void set replacementOffset(int value) {
3289 assert(value != null);
3290 this._replacementOffset = value;
3291 }
2613 3292
2614 /** 3293 /**
2615 * The length of the text to be replaced if the remainder of the identifier 3294 * The length of the text to be replaced if the remainder of the identifier
2616 * containing the cursor is to be replaced when the suggestion is applied 3295 * containing the cursor is to be replaced when the suggestion is applied
2617 * (that is, the number of characters in the existing identifier). 3296 * (that is, the number of characters in the existing identifier).
2618 */ 3297 */
2619 int replacementLength; 3298 int get replacementLength => _replacementLength;
3299
3300 /**
3301 * The length of the text to be replaced if the remainder of the identifier
3302 * containing the cursor is to be replaced when the suggestion is applied
3303 * (that is, the number of characters in the existing identifier).
3304 */
3305 void set replacementLength(int value) {
3306 assert(value != null);
3307 this._replacementLength = value;
3308 }
2620 3309
2621 /** 3310 /**
2622 * The completion suggestions being reported. The notification contains all 3311 * The completion suggestions being reported. The notification contains all
3312 * possible completions at the requested cursor position, even those that do
3313 * not match the characters the user has already typed. This allows the
3314 * client to respond to further keystrokes from the user without having to
3315 * make additional requests.
3316 */
3317 List<CompletionSuggestion> get results => _results;
3318
3319 /**
3320 * The completion suggestions being reported. The notification contains all
2623 * possible completions at the requested cursor position, even those that do 3321 * possible completions at the requested cursor position, even those that do
2624 * not match the characters the user has already typed. This allows the 3322 * not match the characters the user has already typed. This allows the
2625 * client to respond to further keystrokes from the user without having to 3323 * client to respond to further keystrokes from the user without having to
2626 * make additional requests. 3324 * make additional requests.
2627 */ 3325 */
2628 List<CompletionSuggestion> results; 3326 void set results(List<CompletionSuggestion> value) {
3327 assert(value != null);
3328 this._results = value;
3329 }
2629 3330
2630 /** 3331 /**
2631 * True if this is that last set of results that will be returned for the 3332 * True if this is that last set of results that will be returned for the
2632 * indicated completion. 3333 * indicated completion.
2633 */ 3334 */
2634 bool isLast; 3335 bool get isLast => _isLast;
2635 3336
2636 CompletionResultsParams(this.id, this.replacementOffset, this.replacementLengt h, this.results, this.isLast); 3337 /**
3338 * True if this is that last set of results that will be returned for the
3339 * indicated completion.
3340 */
3341 void set isLast(bool value) {
3342 assert(value != null);
3343 this._isLast = value;
3344 }
3345
3346 CompletionResultsParams(String id, int replacementOffset, int replacementLengt h, List<CompletionSuggestion> results, bool isLast) {
3347 this.id = id;
3348 this.replacementOffset = replacementOffset;
3349 this.replacementLength = replacementLength;
3350 this.results = results;
3351 this.isLast = isLast;
3352 }
2637 3353
2638 factory CompletionResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) { 3354 factory CompletionResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) {
2639 if (json == null) { 3355 if (json == null) {
2640 json = {}; 3356 json = {};
2641 } 3357 }
2642 if (json is Map) { 3358 if (json is Map) {
2643 String id; 3359 String id;
2644 if (json.containsKey("id")) { 3360 if (json.containsKey("id")) {
2645 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 3361 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
2646 } else { 3362 } else {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
2725 /** 3441 /**
2726 * search.findElementReferences params 3442 * search.findElementReferences params
2727 * 3443 *
2728 * { 3444 * {
2729 * "file": FilePath 3445 * "file": FilePath
2730 * "offset": int 3446 * "offset": int
2731 * "includePotential": bool 3447 * "includePotential": bool
2732 * } 3448 * }
2733 */ 3449 */
2734 class SearchFindElementReferencesParams implements HasToJson { 3450 class SearchFindElementReferencesParams implements HasToJson {
3451 String _file;
3452
3453 int _offset;
3454
3455 bool _includePotential;
3456
2735 /** 3457 /**
2736 * The file containing the declaration of or reference to the element used to 3458 * The file containing the declaration of or reference to the element used to
2737 * define the search. 3459 * define the search.
2738 */ 3460 */
2739 String file; 3461 String get file => _file;
3462
3463 /**
3464 * The file containing the declaration of or reference to the element used to
3465 * define the search.
3466 */
3467 void set file(String value) {
3468 assert(value != null);
3469 this._file = value;
3470 }
2740 3471
2741 /** 3472 /**
2742 * The offset within the file of the declaration of or reference to the 3473 * The offset within the file of the declaration of or reference to the
2743 * element. 3474 * element.
2744 */ 3475 */
2745 int offset; 3476 int get offset => _offset;
3477
3478 /**
3479 * The offset within the file of the declaration of or reference to the
3480 * element.
3481 */
3482 void set offset(int value) {
3483 assert(value != null);
3484 this._offset = value;
3485 }
2746 3486
2747 /** 3487 /**
2748 * True if potential matches are to be included in the results. 3488 * True if potential matches are to be included in the results.
2749 */ 3489 */
2750 bool includePotential; 3490 bool get includePotential => _includePotential;
2751 3491
2752 SearchFindElementReferencesParams(this.file, this.offset, this.includePotentia l); 3492 /**
3493 * True if potential matches are to be included in the results.
3494 */
3495 void set includePotential(bool value) {
3496 assert(value != null);
3497 this._includePotential = value;
3498 }
3499
3500 SearchFindElementReferencesParams(String file, int offset, bool includePotenti al) {
3501 this.file = file;
3502 this.offset = offset;
3503 this.includePotential = includePotential;
3504 }
2753 3505
2754 factory SearchFindElementReferencesParams.fromJson(JsonDecoder jsonDecoder, St ring jsonPath, Object json) { 3506 factory SearchFindElementReferencesParams.fromJson(JsonDecoder jsonDecoder, St ring jsonPath, Object json) {
2755 if (json == null) { 3507 if (json == null) {
2756 json = {}; 3508 json = {};
2757 } 3509 }
2758 if (json is Map) { 3510 if (json is Map) {
2759 String file; 3511 String file;
2760 if (json.containsKey("file")) { 3512 if (json.containsKey("file")) {
2761 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 3513 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
2762 } else { 3514 } else {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
2822 3574
2823 /** 3575 /**
2824 * search.findElementReferences result 3576 * search.findElementReferences result
2825 * 3577 *
2826 * { 3578 * {
2827 * "id": optional SearchId 3579 * "id": optional SearchId
2828 * "element": optional Element 3580 * "element": optional Element
2829 * } 3581 * }
2830 */ 3582 */
2831 class SearchFindElementReferencesResult implements HasToJson { 3583 class SearchFindElementReferencesResult implements HasToJson {
3584 String _id;
3585
3586 Element _element;
3587
2832 /** 3588 /**
2833 * The identifier used to associate results with this search request. 3589 * The identifier used to associate results with this search request.
2834 * 3590 *
2835 * If no element was found at the given location, this field will be absent, 3591 * If no element was found at the given location, this field will be absent,
2836 * and no results will be reported via the search.results notification. 3592 * and no results will be reported via the search.results notification.
2837 */ 3593 */
2838 String id; 3594 String get id => _id;
3595
3596 /**
3597 * The identifier used to associate results with this search request.
3598 *
3599 * If no element was found at the given location, this field will be absent,
3600 * and no results will be reported via the search.results notification.
3601 */
3602 void set id(String value) {
3603 this._id = value;
3604 }
2839 3605
2840 /** 3606 /**
2841 * The element referenced or defined at the given offset and whose references 3607 * The element referenced or defined at the given offset and whose references
3608 * will be returned in the search results.
3609 *
3610 * If no element was found at the given location, this field will be absent.
3611 */
3612 Element get element => _element;
3613
3614 /**
3615 * The element referenced or defined at the given offset and whose references
2842 * will be returned in the search results. 3616 * will be returned in the search results.
2843 * 3617 *
2844 * If no element was found at the given location, this field will be absent. 3618 * If no element was found at the given location, this field will be absent.
2845 */ 3619 */
2846 Element element; 3620 void set element(Element value) {
3621 this._element = value;
3622 }
2847 3623
2848 SearchFindElementReferencesResult({this.id, this.element}); 3624 SearchFindElementReferencesResult({String id, Element element}) {
3625 this.id = id;
3626 this.element = element;
3627 }
2849 3628
2850 factory SearchFindElementReferencesResult.fromJson(JsonDecoder jsonDecoder, St ring jsonPath, Object json) { 3629 factory SearchFindElementReferencesResult.fromJson(JsonDecoder jsonDecoder, St ring jsonPath, Object json) {
2851 if (json == null) { 3630 if (json == null) {
2852 json = {}; 3631 json = {};
2853 } 3632 }
2854 if (json is Map) { 3633 if (json is Map) {
2855 String id; 3634 String id;
2856 if (json.containsKey("id")) { 3635 if (json.containsKey("id")) {
2857 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 3636 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
2858 } 3637 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
2908 } 3687 }
2909 3688
2910 /** 3689 /**
2911 * search.findMemberDeclarations params 3690 * search.findMemberDeclarations params
2912 * 3691 *
2913 * { 3692 * {
2914 * "name": String 3693 * "name": String
2915 * } 3694 * }
2916 */ 3695 */
2917 class SearchFindMemberDeclarationsParams implements HasToJson { 3696 class SearchFindMemberDeclarationsParams implements HasToJson {
3697 String _name;
3698
2918 /** 3699 /**
2919 * The name of the declarations to be found. 3700 * The name of the declarations to be found.
2920 */ 3701 */
2921 String name; 3702 String get name => _name;
2922 3703
2923 SearchFindMemberDeclarationsParams(this.name); 3704 /**
3705 * The name of the declarations to be found.
3706 */
3707 void set name(String value) {
3708 assert(value != null);
3709 this._name = value;
3710 }
3711
3712 SearchFindMemberDeclarationsParams(String name) {
3713 this.name = name;
3714 }
2924 3715
2925 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S tring jsonPath, Object json) { 3716 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S tring jsonPath, Object json) {
2926 if (json == null) { 3717 if (json == null) {
2927 json = {}; 3718 json = {};
2928 } 3719 }
2929 if (json is Map) { 3720 if (json is Map) {
2930 String name; 3721 String name;
2931 if (json.containsKey("name")) { 3722 if (json.containsKey("name")) {
2932 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); 3723 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]);
2933 } else { 3724 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2974 } 3765 }
2975 3766
2976 /** 3767 /**
2977 * search.findMemberDeclarations result 3768 * search.findMemberDeclarations result
2978 * 3769 *
2979 * { 3770 * {
2980 * "id": SearchId 3771 * "id": SearchId
2981 * } 3772 * }
2982 */ 3773 */
2983 class SearchFindMemberDeclarationsResult implements HasToJson { 3774 class SearchFindMemberDeclarationsResult implements HasToJson {
3775 String _id;
3776
2984 /** 3777 /**
2985 * The identifier used to associate results with this search request. 3778 * The identifier used to associate results with this search request.
2986 */ 3779 */
2987 String id; 3780 String get id => _id;
2988 3781
2989 SearchFindMemberDeclarationsResult(this.id); 3782 /**
3783 * The identifier used to associate results with this search request.
3784 */
3785 void set id(String value) {
3786 assert(value != null);
3787 this._id = value;
3788 }
3789
3790 SearchFindMemberDeclarationsResult(String id) {
3791 this.id = id;
3792 }
2990 3793
2991 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S tring jsonPath, Object json) { 3794 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S tring jsonPath, Object json) {
2992 if (json == null) { 3795 if (json == null) {
2993 json = {}; 3796 json = {};
2994 } 3797 }
2995 if (json is Map) { 3798 if (json is Map) {
2996 String id; 3799 String id;
2997 if (json.containsKey("id")) { 3800 if (json.containsKey("id")) {
2998 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 3801 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
2999 } else { 3802 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
3040 } 3843 }
3041 3844
3042 /** 3845 /**
3043 * search.findMemberReferences params 3846 * search.findMemberReferences params
3044 * 3847 *
3045 * { 3848 * {
3046 * "name": String 3849 * "name": String
3047 * } 3850 * }
3048 */ 3851 */
3049 class SearchFindMemberReferencesParams implements HasToJson { 3852 class SearchFindMemberReferencesParams implements HasToJson {
3853 String _name;
3854
3050 /** 3855 /**
3051 * The name of the references to be found. 3856 * The name of the references to be found.
3052 */ 3857 */
3053 String name; 3858 String get name => _name;
3054 3859
3055 SearchFindMemberReferencesParams(this.name); 3860 /**
3861 * The name of the references to be found.
3862 */
3863 void set name(String value) {
3864 assert(value != null);
3865 this._name = value;
3866 }
3867
3868 SearchFindMemberReferencesParams(String name) {
3869 this.name = name;
3870 }
3056 3871
3057 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str ing jsonPath, Object json) { 3872 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str ing jsonPath, Object json) {
3058 if (json == null) { 3873 if (json == null) {
3059 json = {}; 3874 json = {};
3060 } 3875 }
3061 if (json is Map) { 3876 if (json is Map) {
3062 String name; 3877 String name;
3063 if (json.containsKey("name")) { 3878 if (json.containsKey("name")) {
3064 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); 3879 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]);
3065 } else { 3880 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
3106 } 3921 }
3107 3922
3108 /** 3923 /**
3109 * search.findMemberReferences result 3924 * search.findMemberReferences result
3110 * 3925 *
3111 * { 3926 * {
3112 * "id": SearchId 3927 * "id": SearchId
3113 * } 3928 * }
3114 */ 3929 */
3115 class SearchFindMemberReferencesResult implements HasToJson { 3930 class SearchFindMemberReferencesResult implements HasToJson {
3931 String _id;
3932
3116 /** 3933 /**
3117 * The identifier used to associate results with this search request. 3934 * The identifier used to associate results with this search request.
3118 */ 3935 */
3119 String id; 3936 String get id => _id;
3120 3937
3121 SearchFindMemberReferencesResult(this.id); 3938 /**
3939 * The identifier used to associate results with this search request.
3940 */
3941 void set id(String value) {
3942 assert(value != null);
3943 this._id = value;
3944 }
3945
3946 SearchFindMemberReferencesResult(String id) {
3947 this.id = id;
3948 }
3122 3949
3123 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str ing jsonPath, Object json) { 3950 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str ing jsonPath, Object json) {
3124 if (json == null) { 3951 if (json == null) {
3125 json = {}; 3952 json = {};
3126 } 3953 }
3127 if (json is Map) { 3954 if (json is Map) {
3128 String id; 3955 String id;
3129 if (json.containsKey("id")) { 3956 if (json.containsKey("id")) {
3130 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 3957 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
3131 } else { 3958 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
3172 } 3999 }
3173 4000
3174 /** 4001 /**
3175 * search.findTopLevelDeclarations params 4002 * search.findTopLevelDeclarations params
3176 * 4003 *
3177 * { 4004 * {
3178 * "pattern": String 4005 * "pattern": String
3179 * } 4006 * }
3180 */ 4007 */
3181 class SearchFindTopLevelDeclarationsParams implements HasToJson { 4008 class SearchFindTopLevelDeclarationsParams implements HasToJson {
4009 String _pattern;
4010
3182 /** 4011 /**
3183 * The regular expression used to match the names of the declarations to be 4012 * The regular expression used to match the names of the declarations to be
3184 * found. 4013 * found.
3185 */ 4014 */
3186 String pattern; 4015 String get pattern => _pattern;
3187 4016
3188 SearchFindTopLevelDeclarationsParams(this.pattern); 4017 /**
4018 * The regular expression used to match the names of the declarations to be
4019 * found.
4020 */
4021 void set pattern(String value) {
4022 assert(value != null);
4023 this._pattern = value;
4024 }
4025
4026 SearchFindTopLevelDeclarationsParams(String pattern) {
4027 this.pattern = pattern;
4028 }
3189 4029
3190 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 4030 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
3191 if (json == null) { 4031 if (json == null) {
3192 json = {}; 4032 json = {};
3193 } 4033 }
3194 if (json is Map) { 4034 if (json is Map) {
3195 String pattern; 4035 String pattern;
3196 if (json.containsKey("pattern")) { 4036 if (json.containsKey("pattern")) {
3197 pattern = jsonDecoder._decodeString(jsonPath + ".pattern", json["pattern "]); 4037 pattern = jsonDecoder._decodeString(jsonPath + ".pattern", json["pattern "]);
3198 } else { 4038 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
3239 } 4079 }
3240 4080
3241 /** 4081 /**
3242 * search.findTopLevelDeclarations result 4082 * search.findTopLevelDeclarations result
3243 * 4083 *
3244 * { 4084 * {
3245 * "id": SearchId 4085 * "id": SearchId
3246 * } 4086 * }
3247 */ 4087 */
3248 class SearchFindTopLevelDeclarationsResult implements HasToJson { 4088 class SearchFindTopLevelDeclarationsResult implements HasToJson {
4089 String _id;
4090
3249 /** 4091 /**
3250 * The identifier used to associate results with this search request. 4092 * The identifier used to associate results with this search request.
3251 */ 4093 */
3252 String id; 4094 String get id => _id;
3253 4095
3254 SearchFindTopLevelDeclarationsResult(this.id); 4096 /**
4097 * The identifier used to associate results with this search request.
4098 */
4099 void set id(String value) {
4100 assert(value != null);
4101 this._id = value;
4102 }
4103
4104 SearchFindTopLevelDeclarationsResult(String id) {
4105 this.id = id;
4106 }
3255 4107
3256 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 4108 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
3257 if (json == null) { 4109 if (json == null) {
3258 json = {}; 4110 json = {};
3259 } 4111 }
3260 if (json is Map) { 4112 if (json is Map) {
3261 String id; 4113 String id;
3262 if (json.containsKey("id")) { 4114 if (json.containsKey("id")) {
3263 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 4115 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
3264 } else { 4116 } else {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
3306 4158
3307 /** 4159 /**
3308 * search.getTypeHierarchy params 4160 * search.getTypeHierarchy params
3309 * 4161 *
3310 * { 4162 * {
3311 * "file": FilePath 4163 * "file": FilePath
3312 * "offset": int 4164 * "offset": int
3313 * } 4165 * }
3314 */ 4166 */
3315 class SearchGetTypeHierarchyParams implements HasToJson { 4167 class SearchGetTypeHierarchyParams implements HasToJson {
4168 String _file;
4169
4170 int _offset;
4171
3316 /** 4172 /**
3317 * The file containing the declaration or reference to the type for which a 4173 * The file containing the declaration or reference to the type for which a
3318 * hierarchy is being requested. 4174 * hierarchy is being requested.
3319 */ 4175 */
3320 String file; 4176 String get file => _file;
4177
4178 /**
4179 * The file containing the declaration or reference to the type for which a
4180 * hierarchy is being requested.
4181 */
4182 void set file(String value) {
4183 assert(value != null);
4184 this._file = value;
4185 }
3321 4186
3322 /** 4187 /**
3323 * The offset of the name of the type within the file. 4188 * The offset of the name of the type within the file.
3324 */ 4189 */
3325 int offset; 4190 int get offset => _offset;
3326 4191
3327 SearchGetTypeHierarchyParams(this.file, this.offset); 4192 /**
4193 * The offset of the name of the type within the file.
4194 */
4195 void set offset(int value) {
4196 assert(value != null);
4197 this._offset = value;
4198 }
4199
4200 SearchGetTypeHierarchyParams(String file, int offset) {
4201 this.file = file;
4202 this.offset = offset;
4203 }
3328 4204
3329 factory SearchGetTypeHierarchyParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 4205 factory SearchGetTypeHierarchyParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
3330 if (json == null) { 4206 if (json == null) {
3331 json = {}; 4207 json = {};
3332 } 4208 }
3333 if (json is Map) { 4209 if (json is Map) {
3334 String file; 4210 String file;
3335 if (json.containsKey("file")) { 4211 if (json.containsKey("file")) {
3336 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 4212 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
3337 } else { 4213 } else {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
3387 } 4263 }
3388 4264
3389 /** 4265 /**
3390 * search.getTypeHierarchy result 4266 * search.getTypeHierarchy result
3391 * 4267 *
3392 * { 4268 * {
3393 * "hierarchyItems": optional List<TypeHierarchyItem> 4269 * "hierarchyItems": optional List<TypeHierarchyItem>
3394 * } 4270 * }
3395 */ 4271 */
3396 class SearchGetTypeHierarchyResult implements HasToJson { 4272 class SearchGetTypeHierarchyResult implements HasToJson {
4273 List<TypeHierarchyItem> _hierarchyItems;
4274
3397 /** 4275 /**
3398 * A list of the types in the requested hierarchy. The first element of the 4276 * A list of the types in the requested hierarchy. The first element of the
3399 * list is the item representing the type for which the hierarchy was 4277 * list is the item representing the type for which the hierarchy was
4278 * requested. The index of other elements of the list is unspecified, but
4279 * correspond to the integers used to reference supertype and subtype items
4280 * within the items.
4281 *
4282 * This field will be absent if the code at the given file and offset does
4283 * not represent a type, or if the file has not been sufficiently analyzed to
4284 * allow a type hierarchy to be produced.
4285 */
4286 List<TypeHierarchyItem> get hierarchyItems => _hierarchyItems;
4287
4288 /**
4289 * A list of the types in the requested hierarchy. The first element of the
4290 * list is the item representing the type for which the hierarchy was
3400 * requested. The index of other elements of the list is unspecified, but 4291 * requested. The index of other elements of the list is unspecified, but
3401 * correspond to the integers used to reference supertype and subtype items 4292 * correspond to the integers used to reference supertype and subtype items
3402 * within the items. 4293 * within the items.
3403 * 4294 *
3404 * This field will be absent if the code at the given file and offset does 4295 * This field will be absent if the code at the given file and offset does
3405 * not represent a type, or if the file has not been sufficiently analyzed to 4296 * not represent a type, or if the file has not been sufficiently analyzed to
3406 * allow a type hierarchy to be produced. 4297 * allow a type hierarchy to be produced.
3407 */ 4298 */
3408 List<TypeHierarchyItem> hierarchyItems; 4299 void set hierarchyItems(List<TypeHierarchyItem> value) {
4300 this._hierarchyItems = value;
4301 }
3409 4302
3410 SearchGetTypeHierarchyResult({this.hierarchyItems}); 4303 SearchGetTypeHierarchyResult({List<TypeHierarchyItem> hierarchyItems}) {
4304 this.hierarchyItems = hierarchyItems;
4305 }
3411 4306
3412 factory SearchGetTypeHierarchyResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 4307 factory SearchGetTypeHierarchyResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
3413 if (json == null) { 4308 if (json == null) {
3414 json = {}; 4309 json = {};
3415 } 4310 }
3416 if (json is Map) { 4311 if (json is Map) {
3417 List<TypeHierarchyItem> hierarchyItems; 4312 List<TypeHierarchyItem> hierarchyItems;
3418 if (json.containsKey("hierarchyItems")) { 4313 if (json.containsKey("hierarchyItems")) {
3419 hierarchyItems = jsonDecoder._decodeList(jsonPath + ".hierarchyItems", j son["hierarchyItems"], (String jsonPath, Object json) => new TypeHierarchyItem.f romJson(jsonDecoder, jsonPath, json)); 4314 hierarchyItems = jsonDecoder._decodeList(jsonPath + ".hierarchyItems", j son["hierarchyItems"], (String jsonPath, Object json) => new TypeHierarchyItem.f romJson(jsonDecoder, jsonPath, json));
3420 } 4315 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
3463 /** 4358 /**
3464 * search.results params 4359 * search.results params
3465 * 4360 *
3466 * { 4361 * {
3467 * "id": SearchId 4362 * "id": SearchId
3468 * "results": List<SearchResult> 4363 * "results": List<SearchResult>
3469 * "isLast": bool 4364 * "isLast": bool
3470 * } 4365 * }
3471 */ 4366 */
3472 class SearchResultsParams implements HasToJson { 4367 class SearchResultsParams implements HasToJson {
4368 String _id;
4369
4370 List<SearchResult> _results;
4371
4372 bool _isLast;
4373
3473 /** 4374 /**
3474 * The id associated with the search. 4375 * The id associated with the search.
3475 */ 4376 */
3476 String id; 4377 String get id => _id;
4378
4379 /**
4380 * The id associated with the search.
4381 */
4382 void set id(String value) {
4383 assert(value != null);
4384 this._id = value;
4385 }
3477 4386
3478 /** 4387 /**
3479 * The search results being reported. 4388 * The search results being reported.
3480 */ 4389 */
3481 List<SearchResult> results; 4390 List<SearchResult> get results => _results;
4391
4392 /**
4393 * The search results being reported.
4394 */
4395 void set results(List<SearchResult> value) {
4396 assert(value != null);
4397 this._results = value;
4398 }
3482 4399
3483 /** 4400 /**
3484 * True if this is that last set of results that will be returned for the 4401 * True if this is that last set of results that will be returned for the
3485 * indicated search. 4402 * indicated search.
3486 */ 4403 */
3487 bool isLast; 4404 bool get isLast => _isLast;
3488 4405
3489 SearchResultsParams(this.id, this.results, this.isLast); 4406 /**
4407 * True if this is that last set of results that will be returned for the
4408 * indicated search.
4409 */
4410 void set isLast(bool value) {
4411 assert(value != null);
4412 this._isLast = value;
4413 }
4414
4415 SearchResultsParams(String id, List<SearchResult> results, bool isLast) {
4416 this.id = id;
4417 this.results = results;
4418 this.isLast = isLast;
4419 }
3490 4420
3491 factory SearchResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 4421 factory SearchResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
3492 if (json == null) { 4422 if (json == null) {
3493 json = {}; 4423 json = {};
3494 } 4424 }
3495 if (json is Map) { 4425 if (json is Map) {
3496 String id; 4426 String id;
3497 if (json.containsKey("id")) { 4427 if (json.containsKey("id")) {
3498 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 4428 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
3499 } else { 4429 } else {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
3560 /** 4490 /**
3561 * edit.format params 4491 * edit.format params
3562 * 4492 *
3563 * { 4493 * {
3564 * "file": FilePath 4494 * "file": FilePath
3565 * "selectionOffset": int 4495 * "selectionOffset": int
3566 * "selectionLength": int 4496 * "selectionLength": int
3567 * } 4497 * }
3568 */ 4498 */
3569 class EditFormatParams implements HasToJson { 4499 class EditFormatParams implements HasToJson {
4500 String _file;
4501
4502 int _selectionOffset;
4503
4504 int _selectionLength;
4505
3570 /** 4506 /**
3571 * The file containing the code to be formatted. 4507 * The file containing the code to be formatted.
3572 */ 4508 */
3573 String file; 4509 String get file => _file;
4510
4511 /**
4512 * The file containing the code to be formatted.
4513 */
4514 void set file(String value) {
4515 assert(value != null);
4516 this._file = value;
4517 }
3574 4518
3575 /** 4519 /**
3576 * The offset of the current selection in the file. 4520 * The offset of the current selection in the file.
3577 */ 4521 */
3578 int selectionOffset; 4522 int get selectionOffset => _selectionOffset;
4523
4524 /**
4525 * The offset of the current selection in the file.
4526 */
4527 void set selectionOffset(int value) {
4528 assert(value != null);
4529 this._selectionOffset = value;
4530 }
3579 4531
3580 /** 4532 /**
3581 * The length of the current selection in the file. 4533 * The length of the current selection in the file.
3582 */ 4534 */
3583 int selectionLength; 4535 int get selectionLength => _selectionLength;
3584 4536
3585 EditFormatParams(this.file, this.selectionOffset, this.selectionLength); 4537 /**
4538 * The length of the current selection in the file.
4539 */
4540 void set selectionLength(int value) {
4541 assert(value != null);
4542 this._selectionLength = value;
4543 }
4544
4545 EditFormatParams(String file, int selectionOffset, int selectionLength) {
4546 this.file = file;
4547 this.selectionOffset = selectionOffset;
4548 this.selectionLength = selectionLength;
4549 }
3586 4550
3587 factory EditFormatParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) { 4551 factory EditFormatParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) {
3588 if (json == null) { 4552 if (json == null) {
3589 json = {}; 4553 json = {};
3590 } 4554 }
3591 if (json is Map) { 4555 if (json is Map) {
3592 String file; 4556 String file;
3593 if (json.containsKey("file")) { 4557 if (json.containsKey("file")) {
3594 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 4558 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
3595 } else { 4559 } else {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
3656 /** 4620 /**
3657 * edit.format result 4621 * edit.format result
3658 * 4622 *
3659 * { 4623 * {
3660 * "edits": List<SourceEdit> 4624 * "edits": List<SourceEdit>
3661 * "selectionOffset": int 4625 * "selectionOffset": int
3662 * "selectionLength": int 4626 * "selectionLength": int
3663 * } 4627 * }
3664 */ 4628 */
3665 class EditFormatResult implements HasToJson { 4629 class EditFormatResult implements HasToJson {
4630 List<SourceEdit> _edits;
4631
4632 int _selectionOffset;
4633
4634 int _selectionLength;
4635
3666 /** 4636 /**
3667 * The edit(s) to be applied in order to format the code. The list will be 4637 * The edit(s) to be applied in order to format the code. The list will be
3668 * empty if the code was already formatted (there are no changes). 4638 * empty if the code was already formatted (there are no changes).
3669 */ 4639 */
3670 List<SourceEdit> edits; 4640 List<SourceEdit> get edits => _edits;
4641
4642 /**
4643 * The edit(s) to be applied in order to format the code. The list will be
4644 * empty if the code was already formatted (there are no changes).
4645 */
4646 void set edits(List<SourceEdit> value) {
4647 assert(value != null);
4648 this._edits = value;
4649 }
3671 4650
3672 /** 4651 /**
3673 * The offset of the selection after formatting the code. 4652 * The offset of the selection after formatting the code.
3674 */ 4653 */
3675 int selectionOffset; 4654 int get selectionOffset => _selectionOffset;
4655
4656 /**
4657 * The offset of the selection after formatting the code.
4658 */
4659 void set selectionOffset(int value) {
4660 assert(value != null);
4661 this._selectionOffset = value;
4662 }
3676 4663
3677 /** 4664 /**
3678 * The length of the selection after formatting the code. 4665 * The length of the selection after formatting the code.
3679 */ 4666 */
3680 int selectionLength; 4667 int get selectionLength => _selectionLength;
3681 4668
3682 EditFormatResult(this.edits, this.selectionOffset, this.selectionLength); 4669 /**
4670 * The length of the selection after formatting the code.
4671 */
4672 void set selectionLength(int value) {
4673 assert(value != null);
4674 this._selectionLength = value;
4675 }
4676
4677 EditFormatResult(List<SourceEdit> edits, int selectionOffset, int selectionLen gth) {
4678 this.edits = edits;
4679 this.selectionOffset = selectionOffset;
4680 this.selectionLength = selectionLength;
4681 }
3683 4682
3684 factory EditFormatResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) { 4683 factory EditFormatResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) {
3685 if (json == null) { 4684 if (json == null) {
3686 json = {}; 4685 json = {};
3687 } 4686 }
3688 if (json is Map) { 4687 if (json is Map) {
3689 List<SourceEdit> edits; 4688 List<SourceEdit> edits;
3690 if (json.containsKey("edits")) { 4689 if (json.containsKey("edits")) {
3691 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str ing jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, jso n)); 4690 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str ing jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, jso n));
3692 } else { 4691 } else {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
3753 /** 4752 /**
3754 * edit.getAssists params 4753 * edit.getAssists params
3755 * 4754 *
3756 * { 4755 * {
3757 * "file": FilePath 4756 * "file": FilePath
3758 * "offset": int 4757 * "offset": int
3759 * "length": int 4758 * "length": int
3760 * } 4759 * }
3761 */ 4760 */
3762 class EditGetAssistsParams implements HasToJson { 4761 class EditGetAssistsParams implements HasToJson {
4762 String _file;
4763
4764 int _offset;
4765
4766 int _length;
4767
3763 /** 4768 /**
3764 * The file containing the code for which assists are being requested. 4769 * The file containing the code for which assists are being requested.
3765 */ 4770 */
3766 String file; 4771 String get file => _file;
4772
4773 /**
4774 * The file containing the code for which assists are being requested.
4775 */
4776 void set file(String value) {
4777 assert(value != null);
4778 this._file = value;
4779 }
3767 4780
3768 /** 4781 /**
3769 * The offset of the code for which assists are being requested. 4782 * The offset of the code for which assists are being requested.
3770 */ 4783 */
3771 int offset; 4784 int get offset => _offset;
4785
4786 /**
4787 * The offset of the code for which assists are being requested.
4788 */
4789 void set offset(int value) {
4790 assert(value != null);
4791 this._offset = value;
4792 }
3772 4793
3773 /** 4794 /**
3774 * The length of the code for which assists are being requested. 4795 * The length of the code for which assists are being requested.
3775 */ 4796 */
3776 int length; 4797 int get length => _length;
3777 4798
3778 EditGetAssistsParams(this.file, this.offset, this.length); 4799 /**
4800 * The length of the code for which assists are being requested.
4801 */
4802 void set length(int value) {
4803 assert(value != null);
4804 this._length = value;
4805 }
4806
4807 EditGetAssistsParams(String file, int offset, int length) {
4808 this.file = file;
4809 this.offset = offset;
4810 this.length = length;
4811 }
3779 4812
3780 factory EditGetAssistsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) { 4813 factory EditGetAssistsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) {
3781 if (json == null) { 4814 if (json == null) {
3782 json = {}; 4815 json = {};
3783 } 4816 }
3784 if (json is Map) { 4817 if (json is Map) {
3785 String file; 4818 String file;
3786 if (json.containsKey("file")) { 4819 if (json.containsKey("file")) {
3787 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 4820 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
3788 } else { 4821 } else {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
3847 } 4880 }
3848 4881
3849 /** 4882 /**
3850 * edit.getAssists result 4883 * edit.getAssists result
3851 * 4884 *
3852 * { 4885 * {
3853 * "assists": List<SourceChange> 4886 * "assists": List<SourceChange>
3854 * } 4887 * }
3855 */ 4888 */
3856 class EditGetAssistsResult implements HasToJson { 4889 class EditGetAssistsResult implements HasToJson {
4890 List<SourceChange> _assists;
4891
3857 /** 4892 /**
3858 * The assists that are available at the given location. 4893 * The assists that are available at the given location.
3859 */ 4894 */
3860 List<SourceChange> assists; 4895 List<SourceChange> get assists => _assists;
3861 4896
3862 EditGetAssistsResult(this.assists); 4897 /**
4898 * The assists that are available at the given location.
4899 */
4900 void set assists(List<SourceChange> value) {
4901 assert(value != null);
4902 this._assists = value;
4903 }
4904
4905 EditGetAssistsResult(List<SourceChange> assists) {
4906 this.assists = assists;
4907 }
3863 4908
3864 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) { 4909 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) {
3865 if (json == null) { 4910 if (json == null) {
3866 json = {}; 4911 json = {};
3867 } 4912 }
3868 if (json is Map) { 4913 if (json is Map) {
3869 List<SourceChange> assists; 4914 List<SourceChange> assists;
3870 if (json.containsKey("assists")) { 4915 if (json.containsKey("assists")) {
3871 assists = jsonDecoder._decodeList(jsonPath + ".assists", json["assists"] , (String jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonP ath, json)); 4916 assists = jsonDecoder._decodeList(jsonPath + ".assists", json["assists"] , (String jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonP ath, json));
3872 } else { 4917 } else {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
3915 /** 4960 /**
3916 * edit.getAvailableRefactorings params 4961 * edit.getAvailableRefactorings params
3917 * 4962 *
3918 * { 4963 * {
3919 * "file": FilePath 4964 * "file": FilePath
3920 * "offset": int 4965 * "offset": int
3921 * "length": int 4966 * "length": int
3922 * } 4967 * }
3923 */ 4968 */
3924 class EditGetAvailableRefactoringsParams implements HasToJson { 4969 class EditGetAvailableRefactoringsParams implements HasToJson {
4970 String _file;
4971
4972 int _offset;
4973
4974 int _length;
4975
3925 /** 4976 /**
3926 * The file containing the code on which the refactoring would be based. 4977 * The file containing the code on which the refactoring would be based.
3927 */ 4978 */
3928 String file; 4979 String get file => _file;
4980
4981 /**
4982 * The file containing the code on which the refactoring would be based.
4983 */
4984 void set file(String value) {
4985 assert(value != null);
4986 this._file = value;
4987 }
3929 4988
3930 /** 4989 /**
3931 * The offset of the code on which the refactoring would be based. 4990 * The offset of the code on which the refactoring would be based.
3932 */ 4991 */
3933 int offset; 4992 int get offset => _offset;
4993
4994 /**
4995 * The offset of the code on which the refactoring would be based.
4996 */
4997 void set offset(int value) {
4998 assert(value != null);
4999 this._offset = value;
5000 }
3934 5001
3935 /** 5002 /**
3936 * The length of the code on which the refactoring would be based. 5003 * The length of the code on which the refactoring would be based.
3937 */ 5004 */
3938 int length; 5005 int get length => _length;
3939 5006
3940 EditGetAvailableRefactoringsParams(this.file, this.offset, this.length); 5007 /**
5008 * The length of the code on which the refactoring would be based.
5009 */
5010 void set length(int value) {
5011 assert(value != null);
5012 this._length = value;
5013 }
5014
5015 EditGetAvailableRefactoringsParams(String file, int offset, int length) {
5016 this.file = file;
5017 this.offset = offset;
5018 this.length = length;
5019 }
3941 5020
3942 factory EditGetAvailableRefactoringsParams.fromJson(JsonDecoder jsonDecoder, S tring jsonPath, Object json) { 5021 factory EditGetAvailableRefactoringsParams.fromJson(JsonDecoder jsonDecoder, S tring jsonPath, Object json) {
3943 if (json == null) { 5022 if (json == null) {
3944 json = {}; 5023 json = {};
3945 } 5024 }
3946 if (json is Map) { 5025 if (json is Map) {
3947 String file; 5026 String file;
3948 if (json.containsKey("file")) { 5027 if (json.containsKey("file")) {
3949 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 5028 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
3950 } else { 5029 } else {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
4009 } 5088 }
4010 5089
4011 /** 5090 /**
4012 * edit.getAvailableRefactorings result 5091 * edit.getAvailableRefactorings result
4013 * 5092 *
4014 * { 5093 * {
4015 * "kinds": List<RefactoringKind> 5094 * "kinds": List<RefactoringKind>
4016 * } 5095 * }
4017 */ 5096 */
4018 class EditGetAvailableRefactoringsResult implements HasToJson { 5097 class EditGetAvailableRefactoringsResult implements HasToJson {
5098 List<RefactoringKind> _kinds;
5099
4019 /** 5100 /**
4020 * The kinds of refactorings that are valid for the given selection. 5101 * The kinds of refactorings that are valid for the given selection.
4021 */ 5102 */
4022 List<RefactoringKind> kinds; 5103 List<RefactoringKind> get kinds => _kinds;
4023 5104
4024 EditGetAvailableRefactoringsResult(this.kinds); 5105 /**
5106 * The kinds of refactorings that are valid for the given selection.
5107 */
5108 void set kinds(List<RefactoringKind> value) {
5109 assert(value != null);
5110 this._kinds = value;
5111 }
5112
5113 EditGetAvailableRefactoringsResult(List<RefactoringKind> kinds) {
5114 this.kinds = kinds;
5115 }
4025 5116
4026 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S tring jsonPath, Object json) { 5117 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S tring jsonPath, Object json) {
4027 if (json == null) { 5118 if (json == null) {
4028 json = {}; 5119 json = {};
4029 } 5120 }
4030 if (json is Map) { 5121 if (json is Map) {
4031 List<RefactoringKind> kinds; 5122 List<RefactoringKind> kinds;
4032 if (json.containsKey("kinds")) { 5123 if (json.containsKey("kinds")) {
4033 kinds = jsonDecoder._decodeList(jsonPath + ".kinds", json["kinds"], (Str ing jsonPath, Object json) => new RefactoringKind.fromJson(jsonDecoder, jsonPath , json)); 5124 kinds = jsonDecoder._decodeList(jsonPath + ".kinds", json["kinds"], (Str ing jsonPath, Object json) => new RefactoringKind.fromJson(jsonDecoder, jsonPath , json));
4034 } else { 5125 } else {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
4076 5167
4077 /** 5168 /**
4078 * edit.getFixes params 5169 * edit.getFixes params
4079 * 5170 *
4080 * { 5171 * {
4081 * "file": FilePath 5172 * "file": FilePath
4082 * "offset": int 5173 * "offset": int
4083 * } 5174 * }
4084 */ 5175 */
4085 class EditGetFixesParams implements HasToJson { 5176 class EditGetFixesParams implements HasToJson {
5177 String _file;
5178
5179 int _offset;
5180
4086 /** 5181 /**
4087 * The file containing the errors for which fixes are being requested. 5182 * The file containing the errors for which fixes are being requested.
4088 */ 5183 */
4089 String file; 5184 String get file => _file;
5185
5186 /**
5187 * The file containing the errors for which fixes are being requested.
5188 */
5189 void set file(String value) {
5190 assert(value != null);
5191 this._file = value;
5192 }
4090 5193
4091 /** 5194 /**
4092 * The offset used to select the errors for which fixes will be returned. 5195 * The offset used to select the errors for which fixes will be returned.
4093 */ 5196 */
4094 int offset; 5197 int get offset => _offset;
4095 5198
4096 EditGetFixesParams(this.file, this.offset); 5199 /**
5200 * The offset used to select the errors for which fixes will be returned.
5201 */
5202 void set offset(int value) {
5203 assert(value != null);
5204 this._offset = value;
5205 }
5206
5207 EditGetFixesParams(String file, int offset) {
5208 this.file = file;
5209 this.offset = offset;
5210 }
4097 5211
4098 factory EditGetFixesParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 5212 factory EditGetFixesParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
4099 if (json == null) { 5213 if (json == null) {
4100 json = {}; 5214 json = {};
4101 } 5215 }
4102 if (json is Map) { 5216 if (json is Map) {
4103 String file; 5217 String file;
4104 if (json.containsKey("file")) { 5218 if (json.containsKey("file")) {
4105 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 5219 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
4106 } else { 5220 } else {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
4156 } 5270 }
4157 5271
4158 /** 5272 /**
4159 * edit.getFixes result 5273 * edit.getFixes result
4160 * 5274 *
4161 * { 5275 * {
4162 * "fixes": List<AnalysisErrorFixes> 5276 * "fixes": List<AnalysisErrorFixes>
4163 * } 5277 * }
4164 */ 5278 */
4165 class EditGetFixesResult implements HasToJson { 5279 class EditGetFixesResult implements HasToJson {
5280 List<AnalysisErrorFixes> _fixes;
5281
4166 /** 5282 /**
4167 * The fixes that are available for the errors at the given offset. 5283 * The fixes that are available for the errors at the given offset.
4168 */ 5284 */
4169 List<AnalysisErrorFixes> fixes; 5285 List<AnalysisErrorFixes> get fixes => _fixes;
4170 5286
4171 EditGetFixesResult(this.fixes); 5287 /**
5288 * The fixes that are available for the errors at the given offset.
5289 */
5290 void set fixes(List<AnalysisErrorFixes> value) {
5291 assert(value != null);
5292 this._fixes = value;
5293 }
5294
5295 EditGetFixesResult(List<AnalysisErrorFixes> fixes) {
5296 this.fixes = fixes;
5297 }
4172 5298
4173 factory EditGetFixesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 5299 factory EditGetFixesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
4174 if (json == null) { 5300 if (json == null) {
4175 json = {}; 5301 json = {};
4176 } 5302 }
4177 if (json is Map) { 5303 if (json is Map) {
4178 List<AnalysisErrorFixes> fixes; 5304 List<AnalysisErrorFixes> fixes;
4179 if (json.containsKey("fixes")) { 5305 if (json.containsKey("fixes")) {
4180 fixes = jsonDecoder._decodeList(jsonPath + ".fixes", json["fixes"], (Str ing jsonPath, Object json) => new AnalysisErrorFixes.fromJson(jsonDecoder, jsonP ath, json)); 5306 fixes = jsonDecoder._decodeList(jsonPath + ".fixes", json["fixes"], (Str ing jsonPath, Object json) => new AnalysisErrorFixes.fromJson(jsonDecoder, jsonP ath, json));
4181 } else { 5307 } else {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
4227 * { 5353 * {
4228 * "kind": RefactoringKind 5354 * "kind": RefactoringKind
4229 * "file": FilePath 5355 * "file": FilePath
4230 * "offset": int 5356 * "offset": int
4231 * "length": int 5357 * "length": int
4232 * "validateOnly": bool 5358 * "validateOnly": bool
4233 * "options": optional RefactoringOptions 5359 * "options": optional RefactoringOptions
4234 * } 5360 * }
4235 */ 5361 */
4236 class EditGetRefactoringParams implements HasToJson { 5362 class EditGetRefactoringParams implements HasToJson {
5363 RefactoringKind _kind;
5364
5365 String _file;
5366
5367 int _offset;
5368
5369 int _length;
5370
5371 bool _validateOnly;
5372
5373 RefactoringOptions _options;
5374
4237 /** 5375 /**
4238 * The kind of refactoring to be performed. 5376 * The kind of refactoring to be performed.
4239 */ 5377 */
4240 RefactoringKind kind; 5378 RefactoringKind get kind => _kind;
5379
5380 /**
5381 * The kind of refactoring to be performed.
5382 */
5383 void set kind(RefactoringKind value) {
5384 assert(value != null);
5385 this._kind = value;
5386 }
4241 5387
4242 /** 5388 /**
4243 * The file containing the code involved in the refactoring. 5389 * The file containing the code involved in the refactoring.
4244 */ 5390 */
4245 String file; 5391 String get file => _file;
5392
5393 /**
5394 * The file containing the code involved in the refactoring.
5395 */
5396 void set file(String value) {
5397 assert(value != null);
5398 this._file = value;
5399 }
4246 5400
4247 /** 5401 /**
4248 * The offset of the region involved in the refactoring. 5402 * The offset of the region involved in the refactoring.
4249 */ 5403 */
4250 int offset; 5404 int get offset => _offset;
5405
5406 /**
5407 * The offset of the region involved in the refactoring.
5408 */
5409 void set offset(int value) {
5410 assert(value != null);
5411 this._offset = value;
5412 }
4251 5413
4252 /** 5414 /**
4253 * The length of the region involved in the refactoring. 5415 * The length of the region involved in the refactoring.
4254 */ 5416 */
4255 int length; 5417 int get length => _length;
5418
5419 /**
5420 * The length of the region involved in the refactoring.
5421 */
5422 void set length(int value) {
5423 assert(value != null);
5424 this._length = value;
5425 }
4256 5426
4257 /** 5427 /**
4258 * True if the client is only requesting that the values of the options be 5428 * True if the client is only requesting that the values of the options be
4259 * validated and no change be generated. 5429 * validated and no change be generated.
4260 */ 5430 */
4261 bool validateOnly; 5431 bool get validateOnly => _validateOnly;
5432
5433 /**
5434 * True if the client is only requesting that the values of the options be
5435 * validated and no change be generated.
5436 */
5437 void set validateOnly(bool value) {
5438 assert(value != null);
5439 this._validateOnly = value;
5440 }
4262 5441
4263 /** 5442 /**
4264 * Data used to provide values provided by the user. The structure of the 5443 * Data used to provide values provided by the user. The structure of the
5444 * data is dependent on the kind of refactoring being performed. The data
5445 * that is expected is documented in the section titled Refactorings, labeled
5446 * as “Options”. This field can be omitted if the refactoring does not
5447 * require any options or if the values of those options are not known.
5448 */
5449 RefactoringOptions get options => _options;
5450
5451 /**
5452 * Data used to provide values provided by the user. The structure of the
4265 * data is dependent on the kind of refactoring being performed. The data 5453 * data is dependent on the kind of refactoring being performed. The data
4266 * that is expected is documented in the section titled Refactorings, labeled 5454 * that is expected is documented in the section titled Refactorings, labeled
4267 * as “Options”. This field can be omitted if the refactoring does not 5455 * as “Options”. This field can be omitted if the refactoring does not
4268 * require any options or if the values of those options are not known. 5456 * require any options or if the values of those options are not known.
4269 */ 5457 */
4270 RefactoringOptions options; 5458 void set options(RefactoringOptions value) {
5459 this._options = value;
5460 }
4271 5461
4272 EditGetRefactoringParams(this.kind, this.file, this.offset, this.length, this. validateOnly, {this.options}); 5462 EditGetRefactoringParams(RefactoringKind kind, String file, int offset, int le ngth, bool validateOnly, {RefactoringOptions options}) {
5463 this.kind = kind;
5464 this.file = file;
5465 this.offset = offset;
5466 this.length = length;
5467 this.validateOnly = validateOnly;
5468 this.options = options;
5469 }
4273 5470
4274 factory EditGetRefactoringParams.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) { 5471 factory EditGetRefactoringParams.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) {
4275 if (json == null) { 5472 if (json == null) {
4276 json = {}; 5473 json = {};
4277 } 5474 }
4278 if (json is Map) { 5475 if (json is Map) {
4279 RefactoringKind kind; 5476 RefactoringKind kind;
4280 if (json.containsKey("kind")) { 5477 if (json.containsKey("kind")) {
4281 kind = new RefactoringKind.fromJson(jsonDecoder, jsonPath + ".kind", jso n["kind"]); 5478 kind = new RefactoringKind.fromJson(jsonDecoder, jsonPath + ".kind", jso n["kind"]);
4282 } else { 5479 } else {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
4375 * { 5572 * {
4376 * "initialProblems": List<RefactoringProblem> 5573 * "initialProblems": List<RefactoringProblem>
4377 * "optionsProblems": List<RefactoringProblem> 5574 * "optionsProblems": List<RefactoringProblem>
4378 * "finalProblems": List<RefactoringProblem> 5575 * "finalProblems": List<RefactoringProblem>
4379 * "feedback": optional RefactoringFeedback 5576 * "feedback": optional RefactoringFeedback
4380 * "change": optional SourceChange 5577 * "change": optional SourceChange
4381 * "potentialEdits": optional List<String> 5578 * "potentialEdits": optional List<String>
4382 * } 5579 * }
4383 */ 5580 */
4384 class EditGetRefactoringResult implements HasToJson { 5581 class EditGetRefactoringResult implements HasToJson {
5582 List<RefactoringProblem> _initialProblems;
5583
5584 List<RefactoringProblem> _optionsProblems;
5585
5586 List<RefactoringProblem> _finalProblems;
5587
5588 RefactoringFeedback _feedback;
5589
5590 SourceChange _change;
5591
5592 List<String> _potentialEdits;
5593
4385 /** 5594 /**
4386 * The initial status of the refactoring, i.e. problems related to the 5595 * The initial status of the refactoring, i.e. problems related to the
4387 * context in which the refactoring is requested. The array will be empty if 5596 * context in which the refactoring is requested. The array will be empty if
4388 * there are no known problems. 5597 * there are no known problems.
4389 */ 5598 */
4390 List<RefactoringProblem> initialProblems; 5599 List<RefactoringProblem> get initialProblems => _initialProblems;
5600
5601 /**
5602 * The initial status of the refactoring, i.e. problems related to the
5603 * context in which the refactoring is requested. The array will be empty if
5604 * there are no known problems.
5605 */
5606 void set initialProblems(List<RefactoringProblem> value) {
5607 assert(value != null);
5608 this._initialProblems = value;
5609 }
4391 5610
4392 /** 5611 /**
4393 * The options validation status, i.e. problems in the given options, such as 5612 * The options validation status, i.e. problems in the given options, such as
4394 * light-weight validation of a new name, flags compatibility, etc. The array 5613 * light-weight validation of a new name, flags compatibility, etc. The array
4395 * will be empty if there are no known problems. 5614 * will be empty if there are no known problems.
4396 */ 5615 */
4397 List<RefactoringProblem> optionsProblems; 5616 List<RefactoringProblem> get optionsProblems => _optionsProblems;
5617
5618 /**
5619 * The options validation status, i.e. problems in the given options, such as
5620 * light-weight validation of a new name, flags compatibility, etc. The array
5621 * will be empty if there are no known problems.
5622 */
5623 void set optionsProblems(List<RefactoringProblem> value) {
5624 assert(value != null);
5625 this._optionsProblems = value;
5626 }
4398 5627
4399 /** 5628 /**
4400 * The final status of the refactoring, i.e. problems identified in the 5629 * The final status of the refactoring, i.e. problems identified in the
4401 * result of a full, potentially expensive validation and / or change 5630 * result of a full, potentially expensive validation and / or change
4402 * creation. The array will be empty if there are no known problems. 5631 * creation. The array will be empty if there are no known problems.
4403 */ 5632 */
4404 List<RefactoringProblem> finalProblems; 5633 List<RefactoringProblem> get finalProblems => _finalProblems;
5634
5635 /**
5636 * The final status of the refactoring, i.e. problems identified in the
5637 * result of a full, potentially expensive validation and / or change
5638 * creation. The array will be empty if there are no known problems.
5639 */
5640 void set finalProblems(List<RefactoringProblem> value) {
5641 assert(value != null);
5642 this._finalProblems = value;
5643 }
4405 5644
4406 /** 5645 /**
4407 * Data used to provide feedback to the user. The structure of the data is 5646 * Data used to provide feedback to the user. The structure of the data is
5647 * dependent on the kind of refactoring being created. The data that is
5648 * returned is documented in the section titled Refactorings, labeled as
5649 * “Feedback”.
5650 */
5651 RefactoringFeedback get feedback => _feedback;
5652
5653 /**
5654 * Data used to provide feedback to the user. The structure of the data is
4408 * dependent on the kind of refactoring being created. The data that is 5655 * dependent on the kind of refactoring being created. The data that is
4409 * returned is documented in the section titled Refactorings, labeled as 5656 * returned is documented in the section titled Refactorings, labeled as
4410 * “Feedback”. 5657 * “Feedback”.
4411 */ 5658 */
4412 RefactoringFeedback feedback; 5659 void set feedback(RefactoringFeedback value) {
5660 this._feedback = value;
5661 }
4413 5662
4414 /** 5663 /**
4415 * The changes that are to be applied to affect the refactoring. This field 5664 * The changes that are to be applied to affect the refactoring. This field
4416 * will be omitted if there are problems that prevent a set of changes from 5665 * will be omitted if there are problems that prevent a set of changes from
4417 * being computed, such as having no options specified for a refactoring that 5666 * being computed, such as having no options specified for a refactoring that
4418 * requires them, or if only validation was requested. 5667 * requires them, or if only validation was requested.
4419 */ 5668 */
4420 SourceChange change; 5669 SourceChange get change => _change;
5670
5671 /**
5672 * The changes that are to be applied to affect the refactoring. This field
5673 * will be omitted if there are problems that prevent a set of changes from
5674 * being computed, such as having no options specified for a refactoring that
5675 * requires them, or if only validation was requested.
5676 */
5677 void set change(SourceChange value) {
5678 this._change = value;
5679 }
4421 5680
4422 /** 5681 /**
4423 * The ids of source edits that are not known to be valid. An edit is not 5682 * The ids of source edits that are not known to be valid. An edit is not
4424 * known to be valid if there was insufficient type information for the 5683 * known to be valid if there was insufficient type information for the
4425 * server to be able to determine whether or not the code needs to be 5684 * server to be able to determine whether or not the code needs to be
4426 * modified, such as when a member is being renamed and there is a reference 5685 * modified, such as when a member is being renamed and there is a reference
4427 * to a member from an unknown type. This field will be omitted if the change 5686 * to a member from an unknown type. This field will be omitted if the change
4428 * field is omitted or if there are no potential edits for the refactoring. 5687 * field is omitted or if there are no potential edits for the refactoring.
4429 */ 5688 */
4430 List<String> potentialEdits; 5689 List<String> get potentialEdits => _potentialEdits;
4431 5690
4432 EditGetRefactoringResult(this.initialProblems, this.optionsProblems, this.fina lProblems, {this.feedback, this.change, this.potentialEdits}); 5691 /**
5692 * The ids of source edits that are not known to be valid. An edit is not
5693 * known to be valid if there was insufficient type information for the
5694 * server to be able to determine whether or not the code needs to be
5695 * modified, such as when a member is being renamed and there is a reference
5696 * to a member from an unknown type. This field will be omitted if the change
5697 * field is omitted or if there are no potential edits for the refactoring.
5698 */
5699 void set potentialEdits(List<String> value) {
5700 this._potentialEdits = value;
5701 }
5702
5703 EditGetRefactoringResult(List<RefactoringProblem> initialProblems, List<Refact oringProblem> optionsProblems, List<RefactoringProblem> finalProblems, {Refactor ingFeedback feedback, SourceChange change, List<String> potentialEdits}) {
5704 this.initialProblems = initialProblems;
5705 this.optionsProblems = optionsProblems;
5706 this.finalProblems = finalProblems;
5707 this.feedback = feedback;
5708 this.change = change;
5709 this.potentialEdits = potentialEdits;
5710 }
4433 5711
4434 factory EditGetRefactoringResult.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) { 5712 factory EditGetRefactoringResult.fromJson(JsonDecoder jsonDecoder, String json Path, Object json) {
4435 if (json == null) { 5713 if (json == null) {
4436 json = {}; 5714 json = {};
4437 } 5715 }
4438 if (json is Map) { 5716 if (json is Map) {
4439 List<RefactoringProblem> initialProblems; 5717 List<RefactoringProblem> initialProblems;
4440 if (json.containsKey("initialProblems")) { 5718 if (json.containsKey("initialProblems")) {
4441 initialProblems = jsonDecoder._decodeList(jsonPath + ".initialProblems", json["initialProblems"], (String jsonPath, Object json) => new RefactoringProbl em.fromJson(jsonDecoder, jsonPath, json)); 5719 initialProblems = jsonDecoder._decodeList(jsonPath + ".initialProblems", json["initialProblems"], (String jsonPath, Object json) => new RefactoringProbl em.fromJson(jsonDecoder, jsonPath, json));
4442 } else { 5720 } else {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
4528 } 5806 }
4529 5807
4530 /** 5808 /**
4531 * edit.sortMembers params 5809 * edit.sortMembers params
4532 * 5810 *
4533 * { 5811 * {
4534 * "file": FilePath 5812 * "file": FilePath
4535 * } 5813 * }
4536 */ 5814 */
4537 class EditSortMembersParams implements HasToJson { 5815 class EditSortMembersParams implements HasToJson {
5816 String _file;
5817
4538 /** 5818 /**
4539 * The Dart file to sort. 5819 * The Dart file to sort.
4540 */ 5820 */
4541 String file; 5821 String get file => _file;
4542 5822
4543 EditSortMembersParams(this.file); 5823 /**
5824 * The Dart file to sort.
5825 */
5826 void set file(String value) {
5827 assert(value != null);
5828 this._file = value;
5829 }
5830
5831 EditSortMembersParams(String file) {
5832 this.file = file;
5833 }
4544 5834
4545 factory EditSortMembersParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) { 5835 factory EditSortMembersParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
4546 if (json == null) { 5836 if (json == null) {
4547 json = {}; 5837 json = {};
4548 } 5838 }
4549 if (json is Map) { 5839 if (json is Map) {
4550 String file; 5840 String file;
4551 if (json.containsKey("file")) { 5841 if (json.containsKey("file")) {
4552 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 5842 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
4553 } else { 5843 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
4594 } 5884 }
4595 5885
4596 /** 5886 /**
4597 * edit.sortMembers result 5887 * edit.sortMembers result
4598 * 5888 *
4599 * { 5889 * {
4600 * "edit": SourceFileEdit 5890 * "edit": SourceFileEdit
4601 * } 5891 * }
4602 */ 5892 */
4603 class EditSortMembersResult implements HasToJson { 5893 class EditSortMembersResult implements HasToJson {
5894 SourceFileEdit _edit;
5895
4604 /** 5896 /**
4605 * The file edit that is to be applied to the given file to effect the 5897 * The file edit that is to be applied to the given file to effect the
4606 * sorting. 5898 * sorting.
4607 */ 5899 */
4608 SourceFileEdit edit; 5900 SourceFileEdit get edit => _edit;
4609 5901
4610 EditSortMembersResult(this.edit); 5902 /**
5903 * The file edit that is to be applied to the given file to effect the
5904 * sorting.
5905 */
5906 void set edit(SourceFileEdit value) {
5907 assert(value != null);
5908 this._edit = value;
5909 }
5910
5911 EditSortMembersResult(SourceFileEdit edit) {
5912 this.edit = edit;
5913 }
4611 5914
4612 factory EditSortMembersResult.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) { 5915 factory EditSortMembersResult.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
4613 if (json == null) { 5916 if (json == null) {
4614 json = {}; 5917 json = {};
4615 } 5918 }
4616 if (json is Map) { 5919 if (json is Map) {
4617 SourceFileEdit edit; 5920 SourceFileEdit edit;
4618 if (json.containsKey("edit")) { 5921 if (json.containsKey("edit")) {
4619 edit = new SourceFileEdit.fromJson(jsonDecoder, jsonPath + ".edit", json ["edit"]); 5922 edit = new SourceFileEdit.fromJson(jsonDecoder, jsonPath + ".edit", json ["edit"]);
4620 } else { 5923 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
4661 } 5964 }
4662 5965
4663 /** 5966 /**
4664 * execution.createContext params 5967 * execution.createContext params
4665 * 5968 *
4666 * { 5969 * {
4667 * "contextRoot": FilePath 5970 * "contextRoot": FilePath
4668 * } 5971 * }
4669 */ 5972 */
4670 class ExecutionCreateContextParams implements HasToJson { 5973 class ExecutionCreateContextParams implements HasToJson {
5974 String _contextRoot;
5975
4671 /** 5976 /**
4672 * The path of the Dart or HTML file that will be launched, or the path of 5977 * The path of the Dart or HTML file that will be launched, or the path of
4673 * the directory containing the file. 5978 * the directory containing the file.
4674 */ 5979 */
4675 String contextRoot; 5980 String get contextRoot => _contextRoot;
4676 5981
4677 ExecutionCreateContextParams(this.contextRoot); 5982 /**
5983 * The path of the Dart or HTML file that will be launched, or the path of
5984 * the directory containing the file.
5985 */
5986 void set contextRoot(String value) {
5987 assert(value != null);
5988 this._contextRoot = value;
5989 }
5990
5991 ExecutionCreateContextParams(String contextRoot) {
5992 this.contextRoot = contextRoot;
5993 }
4678 5994
4679 factory ExecutionCreateContextParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 5995 factory ExecutionCreateContextParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
4680 if (json == null) { 5996 if (json == null) {
4681 json = {}; 5997 json = {};
4682 } 5998 }
4683 if (json is Map) { 5999 if (json is Map) {
4684 String contextRoot; 6000 String contextRoot;
4685 if (json.containsKey("contextRoot")) { 6001 if (json.containsKey("contextRoot")) {
4686 contextRoot = jsonDecoder._decodeString(jsonPath + ".contextRoot", json[ "contextRoot"]); 6002 contextRoot = jsonDecoder._decodeString(jsonPath + ".contextRoot", json[ "contextRoot"]);
4687 } else { 6003 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
4728 } 6044 }
4729 6045
4730 /** 6046 /**
4731 * execution.createContext result 6047 * execution.createContext result
4732 * 6048 *
4733 * { 6049 * {
4734 * "id": ExecutionContextId 6050 * "id": ExecutionContextId
4735 * } 6051 * }
4736 */ 6052 */
4737 class ExecutionCreateContextResult implements HasToJson { 6053 class ExecutionCreateContextResult implements HasToJson {
6054 String _id;
6055
4738 /** 6056 /**
4739 * The identifier used to refer to the execution context that was created. 6057 * The identifier used to refer to the execution context that was created.
4740 */ 6058 */
4741 String id; 6059 String get id => _id;
4742 6060
4743 ExecutionCreateContextResult(this.id); 6061 /**
6062 * The identifier used to refer to the execution context that was created.
6063 */
6064 void set id(String value) {
6065 assert(value != null);
6066 this._id = value;
6067 }
6068
6069 ExecutionCreateContextResult(String id) {
6070 this.id = id;
6071 }
4744 6072
4745 factory ExecutionCreateContextResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 6073 factory ExecutionCreateContextResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
4746 if (json == null) { 6074 if (json == null) {
4747 json = {}; 6075 json = {};
4748 } 6076 }
4749 if (json is Map) { 6077 if (json is Map) {
4750 String id; 6078 String id;
4751 if (json.containsKey("id")) { 6079 if (json.containsKey("id")) {
4752 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 6080 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
4753 } else { 6081 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
4794 } 6122 }
4795 6123
4796 /** 6124 /**
4797 * execution.deleteContext params 6125 * execution.deleteContext params
4798 * 6126 *
4799 * { 6127 * {
4800 * "id": ExecutionContextId 6128 * "id": ExecutionContextId
4801 * } 6129 * }
4802 */ 6130 */
4803 class ExecutionDeleteContextParams implements HasToJson { 6131 class ExecutionDeleteContextParams implements HasToJson {
6132 String _id;
6133
4804 /** 6134 /**
4805 * The identifier of the execution context that is to be deleted. 6135 * The identifier of the execution context that is to be deleted.
4806 */ 6136 */
4807 String id; 6137 String get id => _id;
4808 6138
4809 ExecutionDeleteContextParams(this.id); 6139 /**
6140 * The identifier of the execution context that is to be deleted.
6141 */
6142 void set id(String value) {
6143 assert(value != null);
6144 this._id = value;
6145 }
6146
6147 ExecutionDeleteContextParams(String id) {
6148 this.id = id;
6149 }
4810 6150
4811 factory ExecutionDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 6151 factory ExecutionDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
4812 if (json == null) { 6152 if (json == null) {
4813 json = {}; 6153 json = {};
4814 } 6154 }
4815 if (json is Map) { 6155 if (json is Map) {
4816 String id; 6156 String id;
4817 if (json.containsKey("id")) { 6157 if (json.containsKey("id")) {
4818 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 6158 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
4819 } else { 6159 } else {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
4883 /** 6223 /**
4884 * execution.mapUri params 6224 * execution.mapUri params
4885 * 6225 *
4886 * { 6226 * {
4887 * "id": ExecutionContextId 6227 * "id": ExecutionContextId
4888 * "file": optional FilePath 6228 * "file": optional FilePath
4889 * "uri": optional String 6229 * "uri": optional String
4890 * } 6230 * }
4891 */ 6231 */
4892 class ExecutionMapUriParams implements HasToJson { 6232 class ExecutionMapUriParams implements HasToJson {
6233 String _id;
6234
6235 String _file;
6236
6237 String _uri;
6238
4893 /** 6239 /**
4894 * The identifier of the execution context in which the URI is to be mapped. 6240 * The identifier of the execution context in which the URI is to be mapped.
4895 */ 6241 */
4896 String id; 6242 String get id => _id;
6243
6244 /**
6245 * The identifier of the execution context in which the URI is to be mapped.
6246 */
6247 void set id(String value) {
6248 assert(value != null);
6249 this._id = value;
6250 }
4897 6251
4898 /** 6252 /**
4899 * The path of the file to be mapped into a URI. 6253 * The path of the file to be mapped into a URI.
4900 */ 6254 */
4901 String file; 6255 String get file => _file;
6256
6257 /**
6258 * The path of the file to be mapped into a URI.
6259 */
6260 void set file(String value) {
6261 this._file = value;
6262 }
4902 6263
4903 /** 6264 /**
4904 * The URI to be mapped into a file path. 6265 * The URI to be mapped into a file path.
4905 */ 6266 */
4906 String uri; 6267 String get uri => _uri;
4907 6268
4908 ExecutionMapUriParams(this.id, {this.file, this.uri}); 6269 /**
6270 * The URI to be mapped into a file path.
6271 */
6272 void set uri(String value) {
6273 this._uri = value;
6274 }
6275
6276 ExecutionMapUriParams(String id, {String file, String uri}) {
6277 this.id = id;
6278 this.file = file;
6279 this.uri = uri;
6280 }
4909 6281
4910 factory ExecutionMapUriParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) { 6282 factory ExecutionMapUriParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
4911 if (json == null) { 6283 if (json == null) {
4912 json = {}; 6284 json = {};
4913 } 6285 }
4914 if (json is Map) { 6286 if (json is Map) {
4915 String id; 6287 String id;
4916 if (json.containsKey("id")) { 6288 if (json.containsKey("id")) {
4917 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 6289 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
4918 } else { 6290 } else {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
4978 6350
4979 /** 6351 /**
4980 * execution.mapUri result 6352 * execution.mapUri result
4981 * 6353 *
4982 * { 6354 * {
4983 * "file": optional FilePath 6355 * "file": optional FilePath
4984 * "uri": optional String 6356 * "uri": optional String
4985 * } 6357 * }
4986 */ 6358 */
4987 class ExecutionMapUriResult implements HasToJson { 6359 class ExecutionMapUriResult implements HasToJson {
6360 String _file;
6361
6362 String _uri;
6363
4988 /** 6364 /**
4989 * The file to which the URI was mapped. This field is omitted if the uri 6365 * The file to which the URI was mapped. This field is omitted if the uri
4990 * field was not given in the request. 6366 * field was not given in the request.
4991 */ 6367 */
4992 String file; 6368 String get file => _file;
6369
6370 /**
6371 * The file to which the URI was mapped. This field is omitted if the uri
6372 * field was not given in the request.
6373 */
6374 void set file(String value) {
6375 this._file = value;
6376 }
4993 6377
4994 /** 6378 /**
4995 * The URI to which the file path was mapped. This field is omitted if the 6379 * The URI to which the file path was mapped. This field is omitted if the
4996 * file field was not given in the request. 6380 * file field was not given in the request.
4997 */ 6381 */
4998 String uri; 6382 String get uri => _uri;
4999 6383
5000 ExecutionMapUriResult({this.file, this.uri}); 6384 /**
6385 * The URI to which the file path was mapped. This field is omitted if the
6386 * file field was not given in the request.
6387 */
6388 void set uri(String value) {
6389 this._uri = value;
6390 }
6391
6392 ExecutionMapUriResult({String file, String uri}) {
6393 this.file = file;
6394 this.uri = uri;
6395 }
5001 6396
5002 factory ExecutionMapUriResult.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) { 6397 factory ExecutionMapUriResult.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
5003 if (json == null) { 6398 if (json == null) {
5004 json = {}; 6399 json = {};
5005 } 6400 }
5006 if (json is Map) { 6401 if (json is Map) {
5007 String file; 6402 String file;
5008 if (json.containsKey("file")) { 6403 if (json.containsKey("file")) {
5009 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 6404 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
5010 } 6405 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
5060 } 6455 }
5061 6456
5062 /** 6457 /**
5063 * execution.setSubscriptions params 6458 * execution.setSubscriptions params
5064 * 6459 *
5065 * { 6460 * {
5066 * "subscriptions": List<ExecutionService> 6461 * "subscriptions": List<ExecutionService>
5067 * } 6462 * }
5068 */ 6463 */
5069 class ExecutionSetSubscriptionsParams implements HasToJson { 6464 class ExecutionSetSubscriptionsParams implements HasToJson {
6465 List<ExecutionService> _subscriptions;
6466
5070 /** 6467 /**
5071 * A list of the services being subscribed to. 6468 * A list of the services being subscribed to.
5072 */ 6469 */
5073 List<ExecutionService> subscriptions; 6470 List<ExecutionService> get subscriptions => _subscriptions;
5074 6471
5075 ExecutionSetSubscriptionsParams(this.subscriptions); 6472 /**
6473 * A list of the services being subscribed to.
6474 */
6475 void set subscriptions(List<ExecutionService> value) {
6476 assert(value != null);
6477 this._subscriptions = value;
6478 }
6479
6480 ExecutionSetSubscriptionsParams(List<ExecutionService> subscriptions) {
6481 this.subscriptions = subscriptions;
6482 }
5076 6483
5077 factory ExecutionSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Stri ng jsonPath, Object json) { 6484 factory ExecutionSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Stri ng jsonPath, Object json) {
5078 if (json == null) { 6485 if (json == null) {
5079 json = {}; 6486 json = {};
5080 } 6487 }
5081 if (json is Map) { 6488 if (json is Map) {
5082 List<ExecutionService> subscriptions; 6489 List<ExecutionService> subscriptions;
5083 if (json.containsKey("subscriptions")) { 6490 if (json.containsKey("subscriptions")) {
5084 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso n["subscriptions"], (String jsonPath, Object json) => new ExecutionService.fromJ son(jsonDecoder, jsonPath, json)); 6491 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso n["subscriptions"], (String jsonPath, Object json) => new ExecutionService.fromJ son(jsonDecoder, jsonPath, json));
5085 } else { 6492 } else {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
5149 /** 6556 /**
5150 * execution.launchData params 6557 * execution.launchData params
5151 * 6558 *
5152 * { 6559 * {
5153 * "file": FilePath 6560 * "file": FilePath
5154 * "kind": optional ExecutableKind 6561 * "kind": optional ExecutableKind
5155 * "referencedFiles": optional List<FilePath> 6562 * "referencedFiles": optional List<FilePath>
5156 * } 6563 * }
5157 */ 6564 */
5158 class ExecutionLaunchDataParams implements HasToJson { 6565 class ExecutionLaunchDataParams implements HasToJson {
6566 String _file;
6567
6568 ExecutableKind _kind;
6569
6570 List<String> _referencedFiles;
6571
5159 /** 6572 /**
5160 * The file for which launch data is being provided. This will either be a 6573 * The file for which launch data is being provided. This will either be a
5161 * Dart library or an HTML file. 6574 * Dart library or an HTML file.
5162 */ 6575 */
5163 String file; 6576 String get file => _file;
6577
6578 /**
6579 * The file for which launch data is being provided. This will either be a
6580 * Dart library or an HTML file.
6581 */
6582 void set file(String value) {
6583 assert(value != null);
6584 this._file = value;
6585 }
5164 6586
5165 /** 6587 /**
5166 * The kind of the executable file. This field is omitted if the file is not 6588 * The kind of the executable file. This field is omitted if the file is not
5167 * a Dart file. 6589 * a Dart file.
5168 */ 6590 */
5169 ExecutableKind kind; 6591 ExecutableKind get kind => _kind;
6592
6593 /**
6594 * The kind of the executable file. This field is omitted if the file is not
6595 * a Dart file.
6596 */
6597 void set kind(ExecutableKind value) {
6598 this._kind = value;
6599 }
5170 6600
5171 /** 6601 /**
5172 * A list of the Dart files that are referenced by the file. This field is 6602 * A list of the Dart files that are referenced by the file. This field is
5173 * omitted if the file is not an HTML file. 6603 * omitted if the file is not an HTML file.
5174 */ 6604 */
5175 List<String> referencedFiles; 6605 List<String> get referencedFiles => _referencedFiles;
5176 6606
5177 ExecutionLaunchDataParams(this.file, {this.kind, this.referencedFiles}); 6607 /**
6608 * A list of the Dart files that are referenced by the file. This field is
6609 * omitted if the file is not an HTML file.
6610 */
6611 void set referencedFiles(List<String> value) {
6612 this._referencedFiles = value;
6613 }
6614
6615 ExecutionLaunchDataParams(String file, {ExecutableKind kind, List<String> refe rencedFiles}) {
6616 this.file = file;
6617 this.kind = kind;
6618 this.referencedFiles = referencedFiles;
6619 }
5178 6620
5179 factory ExecutionLaunchDataParams.fromJson(JsonDecoder jsonDecoder, String jso nPath, Object json) { 6621 factory ExecutionLaunchDataParams.fromJson(JsonDecoder jsonDecoder, String jso nPath, Object json) {
5180 if (json == null) { 6622 if (json == null) {
5181 json = {}; 6623 json = {};
5182 } 6624 }
5183 if (json is Map) { 6625 if (json is Map) {
5184 String file; 6626 String file;
5185 if (json.containsKey("file")) { 6627 if (json.containsKey("file")) {
5186 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 6628 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
5187 } else { 6629 } else {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
5247 6689
5248 /** 6690 /**
5249 * AddContentOverlay 6691 * AddContentOverlay
5250 * 6692 *
5251 * { 6693 * {
5252 * "type": "add" 6694 * "type": "add"
5253 * "content": String 6695 * "content": String
5254 * } 6696 * }
5255 */ 6697 */
5256 class AddContentOverlay implements HasToJson { 6698 class AddContentOverlay implements HasToJson {
6699 String _content;
6700
5257 /** 6701 /**
5258 * The new content of the file. 6702 * The new content of the file.
5259 */ 6703 */
5260 String content; 6704 String get content => _content;
5261 6705
5262 AddContentOverlay(this.content); 6706 /**
6707 * The new content of the file.
6708 */
6709 void set content(String value) {
6710 assert(value != null);
6711 this._content = value;
6712 }
6713
6714 AddContentOverlay(String content) {
6715 this.content = content;
6716 }
5263 6717
5264 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O bject json) { 6718 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O bject json) {
5265 if (json == null) { 6719 if (json == null) {
5266 json = {}; 6720 json = {};
5267 } 6721 }
5268 if (json is Map) { 6722 if (json is Map) {
5269 if (json["type"] != "add") { 6723 if (json["type"] != "add") {
5270 throw jsonDecoder.mismatch(jsonPath, "equal " + "add"); 6724 throw jsonDecoder.mismatch(jsonPath, "equal " + "add");
5271 } 6725 }
5272 String content; 6726 String content;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
5313 * 6767 *
5314 * { 6768 * {
5315 * "severity": AnalysisErrorSeverity 6769 * "severity": AnalysisErrorSeverity
5316 * "type": AnalysisErrorType 6770 * "type": AnalysisErrorType
5317 * "location": Location 6771 * "location": Location
5318 * "message": String 6772 * "message": String
5319 * "correction": optional String 6773 * "correction": optional String
5320 * } 6774 * }
5321 */ 6775 */
5322 class AnalysisError implements HasToJson { 6776 class AnalysisError implements HasToJson {
6777 AnalysisErrorSeverity _severity;
6778
6779 AnalysisErrorType _type;
6780
6781 Location _location;
6782
6783 String _message;
6784
6785 String _correction;
6786
5323 /** 6787 /**
5324 * The severity of the error. 6788 * The severity of the error.
5325 */ 6789 */
5326 AnalysisErrorSeverity severity; 6790 AnalysisErrorSeverity get severity => _severity;
6791
6792 /**
6793 * The severity of the error.
6794 */
6795 void set severity(AnalysisErrorSeverity value) {
6796 assert(value != null);
6797 this._severity = value;
6798 }
5327 6799
5328 /** 6800 /**
5329 * The type of the error. 6801 * The type of the error.
5330 */ 6802 */
5331 AnalysisErrorType type; 6803 AnalysisErrorType get type => _type;
6804
6805 /**
6806 * The type of the error.
6807 */
6808 void set type(AnalysisErrorType value) {
6809 assert(value != null);
6810 this._type = value;
6811 }
5332 6812
5333 /** 6813 /**
5334 * The location associated with the error. 6814 * The location associated with the error.
5335 */ 6815 */
5336 Location location; 6816 Location get location => _location;
6817
6818 /**
6819 * The location associated with the error.
6820 */
6821 void set location(Location value) {
6822 assert(value != null);
6823 this._location = value;
6824 }
5337 6825
5338 /** 6826 /**
5339 * The message to be displayed for this error. The message should indicate 6827 * The message to be displayed for this error. The message should indicate
5340 * what is wrong with the code and why it is wrong. 6828 * what is wrong with the code and why it is wrong.
5341 */ 6829 */
5342 String message; 6830 String get message => _message;
6831
6832 /**
6833 * The message to be displayed for this error. The message should indicate
6834 * what is wrong with the code and why it is wrong.
6835 */
6836 void set message(String value) {
6837 assert(value != null);
6838 this._message = value;
6839 }
5343 6840
5344 /** 6841 /**
5345 * The correction message to be displayed for this error. The correction 6842 * The correction message to be displayed for this error. The correction
5346 * message should indicate how the user can fix the error. The field is 6843 * message should indicate how the user can fix the error. The field is
5347 * omitted if there is no correction message associated with the error code. 6844 * omitted if there is no correction message associated with the error code.
5348 */ 6845 */
5349 String correction; 6846 String get correction => _correction;
5350 6847
5351 AnalysisError(this.severity, this.type, this.location, this.message, {this.cor rection}); 6848 /**
6849 * The correction message to be displayed for this error. The correction
6850 * message should indicate how the user can fix the error. The field is
6851 * omitted if there is no correction message associated with the error code.
6852 */
6853 void set correction(String value) {
6854 this._correction = value;
6855 }
6856
6857 AnalysisError(AnalysisErrorSeverity severity, AnalysisErrorType type, Location location, String message, {String correction}) {
6858 this.severity = severity;
6859 this.type = type;
6860 this.location = location;
6861 this.message = message;
6862 this.correction = correction;
6863 }
5352 6864
5353 factory AnalysisError.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec t json) { 6865 factory AnalysisError.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec t json) {
5354 if (json == null) { 6866 if (json == null) {
5355 json = {}; 6867 json = {};
5356 } 6868 }
5357 if (json is Map) { 6869 if (json is Map) {
5358 AnalysisErrorSeverity severity; 6870 AnalysisErrorSeverity severity;
5359 if (json.containsKey("severity")) { 6871 if (json.containsKey("severity")) {
5360 severity = new AnalysisErrorSeverity.fromJson(jsonDecoder, jsonPath + ". severity", json["severity"]); 6872 severity = new AnalysisErrorSeverity.fromJson(jsonDecoder, jsonPath + ". severity", json["severity"]);
5361 } else { 6873 } else {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
5430 6942
5431 /** 6943 /**
5432 * AnalysisErrorFixes 6944 * AnalysisErrorFixes
5433 * 6945 *
5434 * { 6946 * {
5435 * "error": AnalysisError 6947 * "error": AnalysisError
5436 * "fixes": List<SourceChange> 6948 * "fixes": List<SourceChange>
5437 * } 6949 * }
5438 */ 6950 */
5439 class AnalysisErrorFixes implements HasToJson { 6951 class AnalysisErrorFixes implements HasToJson {
6952 AnalysisError _error;
6953
6954 List<SourceChange> _fixes;
6955
5440 /** 6956 /**
5441 * The error with which the fixes are associated. 6957 * The error with which the fixes are associated.
5442 */ 6958 */
5443 AnalysisError error; 6959 AnalysisError get error => _error;
6960
6961 /**
6962 * The error with which the fixes are associated.
6963 */
6964 void set error(AnalysisError value) {
6965 assert(value != null);
6966 this._error = value;
6967 }
5444 6968
5445 /** 6969 /**
5446 * The fixes associated with the error. 6970 * The fixes associated with the error.
5447 */ 6971 */
5448 List<SourceChange> fixes; 6972 List<SourceChange> get fixes => _fixes;
5449 6973
5450 AnalysisErrorFixes(this.error, {this.fixes}) { 6974 /**
6975 * The fixes associated with the error.
6976 */
6977 void set fixes(List<SourceChange> value) {
6978 assert(value != null);
6979 this._fixes = value;
6980 }
6981
6982 AnalysisErrorFixes(AnalysisError error, {List<SourceChange> fixes}) {
6983 this.error = error;
5451 if (fixes == null) { 6984 if (fixes == null) {
5452 fixes = <SourceChange>[]; 6985 this.fixes = <SourceChange>[];
6986 } else {
6987 this.fixes = fixes;
5453 } 6988 }
5454 } 6989 }
5455 6990
5456 factory AnalysisErrorFixes.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 6991 factory AnalysisErrorFixes.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
5457 if (json == null) { 6992 if (json == null) {
5458 json = {}; 6993 json = {};
5459 } 6994 }
5460 if (json is Map) { 6995 if (json is Map) {
5461 AnalysisError error; 6996 AnalysisError error;
5462 if (json.containsKey("error")) { 6997 if (json.containsKey("error")) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
5644 * "enableAsync": optional bool 7179 * "enableAsync": optional bool
5645 * "enableDeferredLoading": optional bool 7180 * "enableDeferredLoading": optional bool
5646 * "enableEnums": optional bool 7181 * "enableEnums": optional bool
5647 * "enableNullAwareOperators": optional bool 7182 * "enableNullAwareOperators": optional bool
5648 * "generateDart2jsHints": optional bool 7183 * "generateDart2jsHints": optional bool
5649 * "generateHints": optional bool 7184 * "generateHints": optional bool
5650 * "generateLints": optional bool 7185 * "generateLints": optional bool
5651 * } 7186 * }
5652 */ 7187 */
5653 class AnalysisOptions implements HasToJson { 7188 class AnalysisOptions implements HasToJson {
7189 bool _enableAsync;
7190
7191 bool _enableDeferredLoading;
7192
7193 bool _enableEnums;
7194
7195 bool _enableNullAwareOperators;
7196
7197 bool _generateDart2jsHints;
7198
7199 bool _generateHints;
7200
7201 bool _generateLints;
7202
5654 /** 7203 /**
5655 * Deprecated 7204 * Deprecated
5656 * 7205 *
5657 * True if the client wants to enable support for the proposed async feature. 7206 * True if the client wants to enable support for the proposed async feature.
5658 */ 7207 */
5659 bool enableAsync; 7208 bool get enableAsync => _enableAsync;
5660 7209
5661 /** 7210 /**
5662 * Deprecated 7211 * Deprecated
7212 *
7213 * True if the client wants to enable support for the proposed async feature.
7214 */
7215 void set enableAsync(bool value) {
7216 this._enableAsync = value;
7217 }
7218
7219 /**
7220 * Deprecated
7221 *
7222 * True if the client wants to enable support for the proposed deferred
7223 * loading feature.
7224 */
7225 bool get enableDeferredLoading => _enableDeferredLoading;
7226
7227 /**
7228 * Deprecated
5663 * 7229 *
5664 * True if the client wants to enable support for the proposed deferred 7230 * True if the client wants to enable support for the proposed deferred
5665 * loading feature. 7231 * loading feature.
5666 */ 7232 */
5667 bool enableDeferredLoading; 7233 void set enableDeferredLoading(bool value) {
7234 this._enableDeferredLoading = value;
7235 }
5668 7236
5669 /** 7237 /**
5670 * Deprecated 7238 * Deprecated
5671 * 7239 *
5672 * True if the client wants to enable support for the proposed enum feature. 7240 * True if the client wants to enable support for the proposed enum feature.
5673 */ 7241 */
5674 bool enableEnums; 7242 bool get enableEnums => _enableEnums;
7243
7244 /**
7245 * Deprecated
7246 *
7247 * True if the client wants to enable support for the proposed enum feature.
7248 */
7249 void set enableEnums(bool value) {
7250 this._enableEnums = value;
7251 }
5675 7252
5676 /** 7253 /**
5677 * True if the client wants to enable support for the proposed "null aware 7254 * True if the client wants to enable support for the proposed "null aware
5678 * operators" feature. 7255 * operators" feature.
5679 */ 7256 */
5680 bool enableNullAwareOperators; 7257 bool get enableNullAwareOperators => _enableNullAwareOperators;
7258
7259 /**
7260 * True if the client wants to enable support for the proposed "null aware
7261 * operators" feature.
7262 */
7263 void set enableNullAwareOperators(bool value) {
7264 this._enableNullAwareOperators = value;
7265 }
5681 7266
5682 /** 7267 /**
5683 * True if hints that are specific to dart2js should be generated. This 7268 * True if hints that are specific to dart2js should be generated. This
5684 * option is ignored if generateHints is false. 7269 * option is ignored if generateHints is false.
5685 */ 7270 */
5686 bool generateDart2jsHints; 7271 bool get generateDart2jsHints => _generateDart2jsHints;
7272
7273 /**
7274 * True if hints that are specific to dart2js should be generated. This
7275 * option is ignored if generateHints is false.
7276 */
7277 void set generateDart2jsHints(bool value) {
7278 this._generateDart2jsHints = value;
7279 }
5687 7280
5688 /** 7281 /**
5689 * True if hints should be generated as part of generating errors and 7282 * True if hints should be generated as part of generating errors and
5690 * warnings. 7283 * warnings.
5691 */ 7284 */
5692 bool generateHints; 7285 bool get generateHints => _generateHints;
7286
7287 /**
7288 * True if hints should be generated as part of generating errors and
7289 * warnings.
7290 */
7291 void set generateHints(bool value) {
7292 this._generateHints = value;
7293 }
5693 7294
5694 /** 7295 /**
5695 * True if lints should be generated as part of generating errors and 7296 * True if lints should be generated as part of generating errors and
5696 * warnings. 7297 * warnings.
5697 */ 7298 */
5698 bool generateLints; 7299 bool get generateLints => _generateLints;
5699 7300
5700 AnalysisOptions({this.enableAsync, this.enableDeferredLoading, this.enableEnum s, this.enableNullAwareOperators, this.generateDart2jsHints, this.generateHints, this.generateLints}); 7301 /**
7302 * True if lints should be generated as part of generating errors and
7303 * warnings.
7304 */
7305 void set generateLints(bool value) {
7306 this._generateLints = value;
7307 }
7308
7309 AnalysisOptions({bool enableAsync, bool enableDeferredLoading, bool enableEnum s, bool enableNullAwareOperators, bool generateDart2jsHints, bool generateHints, bool generateLints}) {
7310 this.enableAsync = enableAsync;
7311 this.enableDeferredLoading = enableDeferredLoading;
7312 this.enableEnums = enableEnums;
7313 this.enableNullAwareOperators = enableNullAwareOperators;
7314 this.generateDart2jsHints = generateDart2jsHints;
7315 this.generateHints = generateHints;
7316 this.generateLints = generateLints;
7317 }
5701 7318
5702 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) { 7319 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) {
5703 if (json == null) { 7320 if (json == null) {
5704 json = {}; 7321 json = {};
5705 } 7322 }
5706 if (json is Map) { 7323 if (json is Map) {
5707 bool enableAsync; 7324 bool enableAsync;
5708 if (json.containsKey("enableAsync")) { 7325 if (json.containsKey("enableAsync")) {
5709 enableAsync = jsonDecoder._decodeBool(jsonPath + ".enableAsync", json["e nableAsync"]); 7326 enableAsync = jsonDecoder._decodeBool(jsonPath + ".enableAsync", json["e nableAsync"]);
5710 } 7327 }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
5871 7488
5872 /** 7489 /**
5873 * AnalysisStatus 7490 * AnalysisStatus
5874 * 7491 *
5875 * { 7492 * {
5876 * "isAnalyzing": bool 7493 * "isAnalyzing": bool
5877 * "analysisTarget": optional String 7494 * "analysisTarget": optional String
5878 * } 7495 * }
5879 */ 7496 */
5880 class AnalysisStatus implements HasToJson { 7497 class AnalysisStatus implements HasToJson {
7498 bool _isAnalyzing;
7499
7500 String _analysisTarget;
7501
5881 /** 7502 /**
5882 * True if analysis is currently being performed. 7503 * True if analysis is currently being performed.
5883 */ 7504 */
5884 bool isAnalyzing; 7505 bool get isAnalyzing => _isAnalyzing;
7506
7507 /**
7508 * True if analysis is currently being performed.
7509 */
7510 void set isAnalyzing(bool value) {
7511 assert(value != null);
7512 this._isAnalyzing = value;
7513 }
5885 7514
5886 /** 7515 /**
5887 * The name of the current target of analysis. This field is omitted if 7516 * The name of the current target of analysis. This field is omitted if
5888 * analyzing is false. 7517 * analyzing is false.
5889 */ 7518 */
5890 String analysisTarget; 7519 String get analysisTarget => _analysisTarget;
5891 7520
5892 AnalysisStatus(this.isAnalyzing, {this.analysisTarget}); 7521 /**
7522 * The name of the current target of analysis. This field is omitted if
7523 * analyzing is false.
7524 */
7525 void set analysisTarget(String value) {
7526 this._analysisTarget = value;
7527 }
7528
7529 AnalysisStatus(bool isAnalyzing, {String analysisTarget}) {
7530 this.isAnalyzing = isAnalyzing;
7531 this.analysisTarget = analysisTarget;
7532 }
5893 7533
5894 factory AnalysisStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) { 7534 factory AnalysisStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) {
5895 if (json == null) { 7535 if (json == null) {
5896 json = {}; 7536 json = {};
5897 } 7537 }
5898 if (json is Map) { 7538 if (json is Map) {
5899 bool isAnalyzing; 7539 bool isAnalyzing;
5900 if (json.containsKey("isAnalyzing")) { 7540 if (json.containsKey("isAnalyzing")) {
5901 isAnalyzing = jsonDecoder._decodeBool(jsonPath + ".isAnalyzing", json["i sAnalyzing"]); 7541 isAnalyzing = jsonDecoder._decodeBool(jsonPath + ".isAnalyzing", json["i sAnalyzing"]);
5902 } else { 7542 } else {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5944 7584
5945 /** 7585 /**
5946 * ChangeContentOverlay 7586 * ChangeContentOverlay
5947 * 7587 *
5948 * { 7588 * {
5949 * "type": "change" 7589 * "type": "change"
5950 * "edits": List<SourceEdit> 7590 * "edits": List<SourceEdit>
5951 * } 7591 * }
5952 */ 7592 */
5953 class ChangeContentOverlay implements HasToJson { 7593 class ChangeContentOverlay implements HasToJson {
7594 List<SourceEdit> _edits;
7595
5954 /** 7596 /**
5955 * The edits to be applied to the file. 7597 * The edits to be applied to the file.
5956 */ 7598 */
5957 List<SourceEdit> edits; 7599 List<SourceEdit> get edits => _edits;
5958 7600
5959 ChangeContentOverlay(this.edits); 7601 /**
7602 * The edits to be applied to the file.
7603 */
7604 void set edits(List<SourceEdit> value) {
7605 assert(value != null);
7606 this._edits = value;
7607 }
7608
7609 ChangeContentOverlay(List<SourceEdit> edits) {
7610 this.edits = edits;
7611 }
5960 7612
5961 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) { 7613 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) {
5962 if (json == null) { 7614 if (json == null) {
5963 json = {}; 7615 json = {};
5964 } 7616 }
5965 if (json is Map) { 7617 if (json is Map) {
5966 if (json["type"] != "change") { 7618 if (json["type"] != "change") {
5967 throw jsonDecoder.mismatch(jsonPath, "equal " + "change"); 7619 throw jsonDecoder.mismatch(jsonPath, "equal " + "change");
5968 } 7620 }
5969 List<SourceEdit> edits; 7621 List<SourceEdit> edits;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
6023 * "returnType": optional String 7675 * "returnType": optional String
6024 * "parameterNames": optional List<String> 7676 * "parameterNames": optional List<String>
6025 * "parameterTypes": optional List<String> 7677 * "parameterTypes": optional List<String>
6026 * "requiredParameterCount": optional int 7678 * "requiredParameterCount": optional int
6027 * "hasNamedParameters": optional bool 7679 * "hasNamedParameters": optional bool
6028 * "parameterName": optional String 7680 * "parameterName": optional String
6029 * "parameterType": optional String 7681 * "parameterType": optional String
6030 * } 7682 * }
6031 */ 7683 */
6032 class CompletionSuggestion implements HasToJson { 7684 class CompletionSuggestion implements HasToJson {
7685 CompletionSuggestionKind _kind;
7686
7687 int _relevance;
7688
7689 String _completion;
7690
7691 int _selectionOffset;
7692
7693 int _selectionLength;
7694
7695 bool _isDeprecated;
7696
7697 bool _isPotential;
7698
7699 String _docSummary;
7700
7701 String _docComplete;
7702
7703 String _declaringType;
7704
7705 Element _element;
7706
7707 String _returnType;
7708
7709 List<String> _parameterNames;
7710
7711 List<String> _parameterTypes;
7712
7713 int _requiredParameterCount;
7714
7715 bool _hasNamedParameters;
7716
7717 String _parameterName;
7718
7719 String _parameterType;
7720
6033 /** 7721 /**
6034 * The kind of element being suggested. 7722 * The kind of element being suggested.
6035 */ 7723 */
6036 CompletionSuggestionKind kind; 7724 CompletionSuggestionKind get kind => _kind;
7725
7726 /**
7727 * The kind of element being suggested.
7728 */
7729 void set kind(CompletionSuggestionKind value) {
7730 assert(value != null);
7731 this._kind = value;
7732 }
6037 7733
6038 /** 7734 /**
6039 * The relevance of this completion suggestion where a higher number 7735 * The relevance of this completion suggestion where a higher number
6040 * indicates a higher relevance. 7736 * indicates a higher relevance.
6041 */ 7737 */
6042 int relevance; 7738 int get relevance => _relevance;
7739
7740 /**
7741 * The relevance of this completion suggestion where a higher number
7742 * indicates a higher relevance.
7743 */
7744 void set relevance(int value) {
7745 assert(value != null);
7746 this._relevance = value;
7747 }
6043 7748
6044 /** 7749 /**
6045 * The identifier to be inserted if the suggestion is selected. If the 7750 * The identifier to be inserted if the suggestion is selected. If the
7751 * suggestion is for a method or function, the client might want to
7752 * additionally insert a template for the parameters. The information
7753 * required in order to do so is contained in other fields.
7754 */
7755 String get completion => _completion;
7756
7757 /**
7758 * The identifier to be inserted if the suggestion is selected. If the
6046 * suggestion is for a method or function, the client might want to 7759 * suggestion is for a method or function, the client might want to
6047 * additionally insert a template for the parameters. The information 7760 * additionally insert a template for the parameters. The information
6048 * required in order to do so is contained in other fields. 7761 * required in order to do so is contained in other fields.
6049 */ 7762 */
6050 String completion; 7763 void set completion(String value) {
7764 assert(value != null);
7765 this._completion = value;
7766 }
6051 7767
6052 /** 7768 /**
6053 * The offset, relative to the beginning of the completion, of where the 7769 * The offset, relative to the beginning of the completion, of where the
6054 * selection should be placed after insertion. 7770 * selection should be placed after insertion.
6055 */ 7771 */
6056 int selectionOffset; 7772 int get selectionOffset => _selectionOffset;
7773
7774 /**
7775 * The offset, relative to the beginning of the completion, of where the
7776 * selection should be placed after insertion.
7777 */
7778 void set selectionOffset(int value) {
7779 assert(value != null);
7780 this._selectionOffset = value;
7781 }
6057 7782
6058 /** 7783 /**
6059 * The number of characters that should be selected after insertion. 7784 * The number of characters that should be selected after insertion.
6060 */ 7785 */
6061 int selectionLength; 7786 int get selectionLength => _selectionLength;
7787
7788 /**
7789 * The number of characters that should be selected after insertion.
7790 */
7791 void set selectionLength(int value) {
7792 assert(value != null);
7793 this._selectionLength = value;
7794 }
6062 7795
6063 /** 7796 /**
6064 * True if the suggested element is deprecated. 7797 * True if the suggested element is deprecated.
6065 */ 7798 */
6066 bool isDeprecated; 7799 bool get isDeprecated => _isDeprecated;
7800
7801 /**
7802 * True if the suggested element is deprecated.
7803 */
7804 void set isDeprecated(bool value) {
7805 assert(value != null);
7806 this._isDeprecated = value;
7807 }
6067 7808
6068 /** 7809 /**
6069 * True if the element is not known to be valid for the target. This happens 7810 * True if the element is not known to be valid for the target. This happens
6070 * if the type of the target is dynamic. 7811 * if the type of the target is dynamic.
6071 */ 7812 */
6072 bool isPotential; 7813 bool get isPotential => _isPotential;
7814
7815 /**
7816 * True if the element is not known to be valid for the target. This happens
7817 * if the type of the target is dynamic.
7818 */
7819 void set isPotential(bool value) {
7820 assert(value != null);
7821 this._isPotential = value;
7822 }
6073 7823
6074 /** 7824 /**
6075 * An abbreviated version of the Dartdoc associated with the element being 7825 * An abbreviated version of the Dartdoc associated with the element being
6076 * suggested, This field is omitted if there is no Dartdoc associated with 7826 * suggested, This field is omitted if there is no Dartdoc associated with
6077 * the element. 7827 * the element.
6078 */ 7828 */
6079 String docSummary; 7829 String get docSummary => _docSummary;
7830
7831 /**
7832 * An abbreviated version of the Dartdoc associated with the element being
7833 * suggested, This field is omitted if there is no Dartdoc associated with
7834 * the element.
7835 */
7836 void set docSummary(String value) {
7837 this._docSummary = value;
7838 }
6080 7839
6081 /** 7840 /**
6082 * The Dartdoc associated with the element being suggested, This field is 7841 * The Dartdoc associated with the element being suggested, This field is
6083 * omitted if there is no Dartdoc associated with the element. 7842 * omitted if there is no Dartdoc associated with the element.
6084 */ 7843 */
6085 String docComplete; 7844 String get docComplete => _docComplete;
7845
7846 /**
7847 * The Dartdoc associated with the element being suggested, This field is
7848 * omitted if there is no Dartdoc associated with the element.
7849 */
7850 void set docComplete(String value) {
7851 this._docComplete = value;
7852 }
6086 7853
6087 /** 7854 /**
6088 * The class that declares the element being suggested. This field is omitted 7855 * The class that declares the element being suggested. This field is omitted
6089 * if the suggested element is not a member of a class. 7856 * if the suggested element is not a member of a class.
6090 */ 7857 */
6091 String declaringType; 7858 String get declaringType => _declaringType;
7859
7860 /**
7861 * The class that declares the element being suggested. This field is omitted
7862 * if the suggested element is not a member of a class.
7863 */
7864 void set declaringType(String value) {
7865 this._declaringType = value;
7866 }
6092 7867
6093 /** 7868 /**
6094 * Information about the element reference being suggested. 7869 * Information about the element reference being suggested.
6095 */ 7870 */
6096 Element element; 7871 Element get element => _element;
7872
7873 /**
7874 * Information about the element reference being suggested.
7875 */
7876 void set element(Element value) {
7877 this._element = value;
7878 }
6097 7879
6098 /** 7880 /**
6099 * The return type of the getter, function or method or the type of the field 7881 * The return type of the getter, function or method or the type of the field
6100 * being suggested. This field is omitted if the suggested element is not a 7882 * being suggested. This field is omitted if the suggested element is not a
6101 * getter, function or method. 7883 * getter, function or method.
6102 */ 7884 */
6103 String returnType; 7885 String get returnType => _returnType;
7886
7887 /**
7888 * The return type of the getter, function or method or the type of the field
7889 * being suggested. This field is omitted if the suggested element is not a
7890 * getter, function or method.
7891 */
7892 void set returnType(String value) {
7893 this._returnType = value;
7894 }
6104 7895
6105 /** 7896 /**
6106 * The names of the parameters of the function or method being suggested. 7897 * The names of the parameters of the function or method being suggested.
6107 * This field is omitted if the suggested element is not a setter, function 7898 * This field is omitted if the suggested element is not a setter, function
6108 * or method. 7899 * or method.
6109 */ 7900 */
6110 List<String> parameterNames; 7901 List<String> get parameterNames => _parameterNames;
7902
7903 /**
7904 * The names of the parameters of the function or method being suggested.
7905 * This field is omitted if the suggested element is not a setter, function
7906 * or method.
7907 */
7908 void set parameterNames(List<String> value) {
7909 this._parameterNames = value;
7910 }
6111 7911
6112 /** 7912 /**
6113 * The types of the parameters of the function or method being suggested. 7913 * The types of the parameters of the function or method being suggested.
6114 * This field is omitted if the parameterNames field is omitted. 7914 * This field is omitted if the parameterNames field is omitted.
6115 */ 7915 */
6116 List<String> parameterTypes; 7916 List<String> get parameterTypes => _parameterTypes;
7917
7918 /**
7919 * The types of the parameters of the function or method being suggested.
7920 * This field is omitted if the parameterNames field is omitted.
7921 */
7922 void set parameterTypes(List<String> value) {
7923 this._parameterTypes = value;
7924 }
6117 7925
6118 /** 7926 /**
6119 * The number of required parameters for the function or method being 7927 * The number of required parameters for the function or method being
6120 * suggested. This field is omitted if the parameterNames field is omitted. 7928 * suggested. This field is omitted if the parameterNames field is omitted.
6121 */ 7929 */
6122 int requiredParameterCount; 7930 int get requiredParameterCount => _requiredParameterCount;
7931
7932 /**
7933 * The number of required parameters for the function or method being
7934 * suggested. This field is omitted if the parameterNames field is omitted.
7935 */
7936 void set requiredParameterCount(int value) {
7937 this._requiredParameterCount = value;
7938 }
6123 7939
6124 /** 7940 /**
6125 * True if the function or method being suggested has at least one named 7941 * True if the function or method being suggested has at least one named
6126 * parameter. This field is omitted if the parameterNames field is omitted. 7942 * parameter. This field is omitted if the parameterNames field is omitted.
6127 */ 7943 */
6128 bool hasNamedParameters; 7944 bool get hasNamedParameters => _hasNamedParameters;
7945
7946 /**
7947 * True if the function or method being suggested has at least one named
7948 * parameter. This field is omitted if the parameterNames field is omitted.
7949 */
7950 void set hasNamedParameters(bool value) {
7951 this._hasNamedParameters = value;
7952 }
6129 7953
6130 /** 7954 /**
6131 * The name of the optional parameter being suggested. This field is omitted 7955 * The name of the optional parameter being suggested. This field is omitted
6132 * if the suggestion is not the addition of an optional argument within an 7956 * if the suggestion is not the addition of an optional argument within an
6133 * argument list. 7957 * argument list.
6134 */ 7958 */
6135 String parameterName; 7959 String get parameterName => _parameterName;
7960
7961 /**
7962 * The name of the optional parameter being suggested. This field is omitted
7963 * if the suggestion is not the addition of an optional argument within an
7964 * argument list.
7965 */
7966 void set parameterName(String value) {
7967 this._parameterName = value;
7968 }
6136 7969
6137 /** 7970 /**
6138 * The type of the options parameter being suggested. This field is omitted 7971 * The type of the options parameter being suggested. This field is omitted
6139 * if the parameterName field is omitted. 7972 * if the parameterName field is omitted.
6140 */ 7973 */
6141 String parameterType; 7974 String get parameterType => _parameterType;
6142 7975
6143 CompletionSuggestion(this.kind, this.relevance, this.completion, this.selectio nOffset, this.selectionLength, this.isDeprecated, this.isPotential, {this.docSum mary, this.docComplete, this.declaringType, this.element, this.returnType, this. parameterNames, this.parameterTypes, this.requiredParameterCount, this.hasNamedP arameters, this.parameterName, this.parameterType}); 7976 /**
7977 * The type of the options parameter being suggested. This field is omitted
7978 * if the parameterName field is omitted.
7979 */
7980 void set parameterType(String value) {
7981 this._parameterType = value;
7982 }
7983
7984 CompletionSuggestion(CompletionSuggestionKind kind, int relevance, String comp letion, int selectionOffset, int selectionLength, bool isDeprecated, bool isPote ntial, {String docSummary, String docComplete, String declaringType, Element ele ment, String returnType, List<String> parameterNames, List<String> parameterType s, int requiredParameterCount, bool hasNamedParameters, String parameterName, St ring parameterType}) {
7985 this.kind = kind;
7986 this.relevance = relevance;
7987 this.completion = completion;
7988 this.selectionOffset = selectionOffset;
7989 this.selectionLength = selectionLength;
7990 this.isDeprecated = isDeprecated;
7991 this.isPotential = isPotential;
7992 this.docSummary = docSummary;
7993 this.docComplete = docComplete;
7994 this.declaringType = declaringType;
7995 this.element = element;
7996 this.returnType = returnType;
7997 this.parameterNames = parameterNames;
7998 this.parameterTypes = parameterTypes;
7999 this.requiredParameterCount = requiredParameterCount;
8000 this.hasNamedParameters = hasNamedParameters;
8001 this.parameterName = parameterName;
8002 this.parameterType = parameterType;
8003 }
6144 8004
6145 factory CompletionSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) { 8005 factory CompletionSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) {
6146 if (json == null) { 8006 if (json == null) {
6147 json = {}; 8007 json = {};
6148 } 8008 }
6149 if (json is Map) { 8009 if (json is Map) {
6150 CompletionSuggestionKind kind; 8010 CompletionSuggestionKind kind;
6151 if (json.containsKey("kind")) { 8011 if (json.containsKey("kind")) {
6152 kind = new CompletionSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k ind", json["kind"]); 8012 kind = new CompletionSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k ind", json["kind"]);
6153 } else { 8013 } else {
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
6463 int flags = 0; 8323 int flags = 0;
6464 if (isAbstract) flags |= FLAG_ABSTRACT; 8324 if (isAbstract) flags |= FLAG_ABSTRACT;
6465 if (isConst) flags |= FLAG_CONST; 8325 if (isConst) flags |= FLAG_CONST;
6466 if (isFinal) flags |= FLAG_FINAL; 8326 if (isFinal) flags |= FLAG_FINAL;
6467 if (isStatic) flags |= FLAG_STATIC; 8327 if (isStatic) flags |= FLAG_STATIC;
6468 if (isPrivate) flags |= FLAG_PRIVATE; 8328 if (isPrivate) flags |= FLAG_PRIVATE;
6469 if (isDeprecated) flags |= FLAG_DEPRECATED; 8329 if (isDeprecated) flags |= FLAG_DEPRECATED;
6470 return flags; 8330 return flags;
6471 } 8331 }
6472 8332
8333 ElementKind _kind;
8334
8335 String _name;
8336
8337 Location _location;
8338
8339 int _flags;
8340
8341 String _parameters;
8342
8343 String _returnType;
8344
8345 String _typeParameters;
8346
6473 /** 8347 /**
6474 * The kind of the element. 8348 * The kind of the element.
6475 */ 8349 */
6476 ElementKind kind; 8350 ElementKind get kind => _kind;
8351
8352 /**
8353 * The kind of the element.
8354 */
8355 void set kind(ElementKind value) {
8356 assert(value != null);
8357 this._kind = value;
8358 }
6477 8359
6478 /** 8360 /**
6479 * The name of the element. This is typically used as the label in the 8361 * The name of the element. This is typically used as the label in the
6480 * outline. 8362 * outline.
6481 */ 8363 */
6482 String name; 8364 String get name => _name;
8365
8366 /**
8367 * The name of the element. This is typically used as the label in the
8368 * outline.
8369 */
8370 void set name(String value) {
8371 assert(value != null);
8372 this._name = value;
8373 }
6483 8374
6484 /** 8375 /**
6485 * The location of the name in the declaration of the element. 8376 * The location of the name in the declaration of the element.
6486 */ 8377 */
6487 Location location; 8378 Location get location => _location;
8379
8380 /**
8381 * The location of the name in the declaration of the element.
8382 */
8383 void set location(Location value) {
8384 this._location = value;
8385 }
6488 8386
6489 /** 8387 /**
6490 * A bit-map containing the following flags: 8388 * A bit-map containing the following flags:
8389 *
8390 * - 0x01 - set if the element is explicitly or implicitly abstract
8391 * - 0x02 - set if the element was declared to be ‘const’
8392 * - 0x04 - set if the element was declared to be ‘final’
8393 * - 0x08 - set if the element is a static member of a class or is a
8394 * top-level function or field
8395 * - 0x10 - set if the element is private
8396 * - 0x20 - set if the element is deprecated
8397 */
8398 int get flags => _flags;
8399
8400 /**
8401 * A bit-map containing the following flags:
6491 * 8402 *
6492 * - 0x01 - set if the element is explicitly or implicitly abstract 8403 * - 0x01 - set if the element is explicitly or implicitly abstract
6493 * - 0x02 - set if the element was declared to be ‘const’ 8404 * - 0x02 - set if the element was declared to be ‘const’
6494 * - 0x04 - set if the element was declared to be ‘final’ 8405 * - 0x04 - set if the element was declared to be ‘final’
6495 * - 0x08 - set if the element is a static member of a class or is a 8406 * - 0x08 - set if the element is a static member of a class or is a
6496 * top-level function or field 8407 * top-level function or field
6497 * - 0x10 - set if the element is private 8408 * - 0x10 - set if the element is private
6498 * - 0x20 - set if the element is deprecated 8409 * - 0x20 - set if the element is deprecated
6499 */ 8410 */
6500 int flags; 8411 void set flags(int value) {
8412 assert(value != null);
8413 this._flags = value;
8414 }
6501 8415
6502 /** 8416 /**
6503 * The parameter list for the element. If the element is not a method or 8417 * The parameter list for the element. If the element is not a method or
8418 * function this field will not be defined. If the element doesn't have
8419 * parameters (e.g. getter), this field will not be defined. If the element
8420 * has zero parameters, this field will have a value of "()".
8421 */
8422 String get parameters => _parameters;
8423
8424 /**
8425 * The parameter list for the element. If the element is not a method or
6504 * function this field will not be defined. If the element doesn't have 8426 * function this field will not be defined. If the element doesn't have
6505 * parameters (e.g. getter), this field will not be defined. If the element 8427 * parameters (e.g. getter), this field will not be defined. If the element
6506 * has zero parameters, this field will have a value of "()". 8428 * has zero parameters, this field will have a value of "()".
6507 */ 8429 */
6508 String parameters; 8430 void set parameters(String value) {
8431 this._parameters = value;
8432 }
6509 8433
6510 /** 8434 /**
6511 * The return type of the element. If the element is not a method or function 8435 * The return type of the element. If the element is not a method or function
6512 * this field will not be defined. If the element does not have a declared 8436 * this field will not be defined. If the element does not have a declared
6513 * return type, this field will contain an empty string. 8437 * return type, this field will contain an empty string.
6514 */ 8438 */
6515 String returnType; 8439 String get returnType => _returnType;
8440
8441 /**
8442 * The return type of the element. If the element is not a method or function
8443 * this field will not be defined. If the element does not have a declared
8444 * return type, this field will contain an empty string.
8445 */
8446 void set returnType(String value) {
8447 this._returnType = value;
8448 }
6516 8449
6517 /** 8450 /**
6518 * The type parameter list for the element. If the element doesn't have type 8451 * The type parameter list for the element. If the element doesn't have type
6519 * parameters, this field will not be defined. 8452 * parameters, this field will not be defined.
6520 */ 8453 */
6521 String typeParameters; 8454 String get typeParameters => _typeParameters;
6522 8455
6523 Element(this.kind, this.name, this.flags, {this.location, this.parameters, thi s.returnType, this.typeParameters}); 8456 /**
8457 * The type parameter list for the element. If the element doesn't have type
8458 * parameters, this field will not be defined.
8459 */
8460 void set typeParameters(String value) {
8461 this._typeParameters = value;
8462 }
8463
8464 Element(ElementKind kind, String name, int flags, {Location location, String p arameters, String returnType, String typeParameters}) {
8465 this.kind = kind;
8466 this.name = name;
8467 this.location = location;
8468 this.flags = flags;
8469 this.parameters = parameters;
8470 this.returnType = returnType;
8471 this.typeParameters = typeParameters;
8472 }
6524 8473
6525 factory Element.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json ) { 8474 factory Element.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json ) {
6526 if (json == null) { 8475 if (json == null) {
6527 json = {}; 8476 json = {};
6528 } 8477 }
6529 if (json is Map) { 8478 if (json is Map) {
6530 ElementKind kind; 8479 ElementKind kind;
6531 if (json.containsKey("kind")) { 8480 if (json.containsKey("kind")) {
6532 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k ind"]); 8481 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k ind"]);
6533 } else { 8482 } else {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
6776 8725
6777 /** 8726 /**
6778 * ExecutableFile 8727 * ExecutableFile
6779 * 8728 *
6780 * { 8729 * {
6781 * "file": FilePath 8730 * "file": FilePath
6782 * "kind": ExecutableKind 8731 * "kind": ExecutableKind
6783 * } 8732 * }
6784 */ 8733 */
6785 class ExecutableFile implements HasToJson { 8734 class ExecutableFile implements HasToJson {
8735 String _file;
8736
8737 ExecutableKind _kind;
8738
6786 /** 8739 /**
6787 * The path of the executable file. 8740 * The path of the executable file.
6788 */ 8741 */
6789 String file; 8742 String get file => _file;
8743
8744 /**
8745 * The path of the executable file.
8746 */
8747 void set file(String value) {
8748 assert(value != null);
8749 this._file = value;
8750 }
6790 8751
6791 /** 8752 /**
6792 * The kind of the executable file. 8753 * The kind of the executable file.
6793 */ 8754 */
6794 ExecutableKind kind; 8755 ExecutableKind get kind => _kind;
6795 8756
6796 ExecutableFile(this.file, this.kind); 8757 /**
8758 * The kind of the executable file.
8759 */
8760 void set kind(ExecutableKind value) {
8761 assert(value != null);
8762 this._kind = value;
8763 }
8764
8765 ExecutableFile(String file, ExecutableKind kind) {
8766 this.file = file;
8767 this.kind = kind;
8768 }
6797 8769
6798 factory ExecutableFile.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) { 8770 factory ExecutableFile.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) {
6799 if (json == null) { 8771 if (json == null) {
6800 json = {}; 8772 json = {};
6801 } 8773 }
6802 if (json is Map) { 8774 if (json is Map) {
6803 String file; 8775 String file;
6804 if (json.containsKey("file")) { 8776 if (json.containsKey("file")) {
6805 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 8777 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
6806 } else { 8778 } else {
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
7016 /** 8988 /**
7017 * FoldingRegion 8989 * FoldingRegion
7018 * 8990 *
7019 * { 8991 * {
7020 * "kind": FoldingKind 8992 * "kind": FoldingKind
7021 * "offset": int 8993 * "offset": int
7022 * "length": int 8994 * "length": int
7023 * } 8995 * }
7024 */ 8996 */
7025 class FoldingRegion implements HasToJson { 8997 class FoldingRegion implements HasToJson {
8998 FoldingKind _kind;
8999
9000 int _offset;
9001
9002 int _length;
9003
7026 /** 9004 /**
7027 * The kind of the region. 9005 * The kind of the region.
7028 */ 9006 */
7029 FoldingKind kind; 9007 FoldingKind get kind => _kind;
9008
9009 /**
9010 * The kind of the region.
9011 */
9012 void set kind(FoldingKind value) {
9013 assert(value != null);
9014 this._kind = value;
9015 }
7030 9016
7031 /** 9017 /**
7032 * The offset of the region to be folded. 9018 * The offset of the region to be folded.
7033 */ 9019 */
7034 int offset; 9020 int get offset => _offset;
9021
9022 /**
9023 * The offset of the region to be folded.
9024 */
9025 void set offset(int value) {
9026 assert(value != null);
9027 this._offset = value;
9028 }
7035 9029
7036 /** 9030 /**
7037 * The length of the region to be folded. 9031 * The length of the region to be folded.
7038 */ 9032 */
7039 int length; 9033 int get length => _length;
7040 9034
7041 FoldingRegion(this.kind, this.offset, this.length); 9035 /**
9036 * The length of the region to be folded.
9037 */
9038 void set length(int value) {
9039 assert(value != null);
9040 this._length = value;
9041 }
9042
9043 FoldingRegion(FoldingKind kind, int offset, int length) {
9044 this.kind = kind;
9045 this.offset = offset;
9046 this.length = length;
9047 }
7042 9048
7043 factory FoldingRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec t json) { 9049 factory FoldingRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec t json) {
7044 if (json == null) { 9050 if (json == null) {
7045 json = {}; 9051 json = {};
7046 } 9052 }
7047 if (json is Map) { 9053 if (json is Map) {
7048 FoldingKind kind; 9054 FoldingKind kind;
7049 if (json.containsKey("kind")) { 9055 if (json.containsKey("kind")) {
7050 kind = new FoldingKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k ind"]); 9056 kind = new FoldingKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k ind"]);
7051 } else { 9057 } else {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
7103 /** 9109 /**
7104 * HighlightRegion 9110 * HighlightRegion
7105 * 9111 *
7106 * { 9112 * {
7107 * "type": HighlightRegionType 9113 * "type": HighlightRegionType
7108 * "offset": int 9114 * "offset": int
7109 * "length": int 9115 * "length": int
7110 * } 9116 * }
7111 */ 9117 */
7112 class HighlightRegion implements HasToJson { 9118 class HighlightRegion implements HasToJson {
9119 HighlightRegionType _type;
9120
9121 int _offset;
9122
9123 int _length;
9124
7113 /** 9125 /**
7114 * The type of highlight associated with the region. 9126 * The type of highlight associated with the region.
7115 */ 9127 */
7116 HighlightRegionType type; 9128 HighlightRegionType get type => _type;
9129
9130 /**
9131 * The type of highlight associated with the region.
9132 */
9133 void set type(HighlightRegionType value) {
9134 assert(value != null);
9135 this._type = value;
9136 }
7117 9137
7118 /** 9138 /**
7119 * The offset of the region to be highlighted. 9139 * The offset of the region to be highlighted.
7120 */ 9140 */
7121 int offset; 9141 int get offset => _offset;
9142
9143 /**
9144 * The offset of the region to be highlighted.
9145 */
9146 void set offset(int value) {
9147 assert(value != null);
9148 this._offset = value;
9149 }
7122 9150
7123 /** 9151 /**
7124 * The length of the region to be highlighted. 9152 * The length of the region to be highlighted.
7125 */ 9153 */
7126 int length; 9154 int get length => _length;
7127 9155
7128 HighlightRegion(this.type, this.offset, this.length); 9156 /**
9157 * The length of the region to be highlighted.
9158 */
9159 void set length(int value) {
9160 assert(value != null);
9161 this._length = value;
9162 }
9163
9164 HighlightRegion(HighlightRegionType type, int offset, int length) {
9165 this.type = type;
9166 this.offset = offset;
9167 this.length = length;
9168 }
7129 9169
7130 factory HighlightRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) { 9170 factory HighlightRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) {
7131 if (json == null) { 9171 if (json == null) {
7132 json = {}; 9172 json = {};
7133 } 9173 }
7134 if (json is Map) { 9174 if (json is Map) {
7135 HighlightRegionType type; 9175 HighlightRegionType type;
7136 if (json.containsKey("type")) { 9176 if (json.containsKey("type")) {
7137 type = new HighlightRegionType.fromJson(jsonDecoder, jsonPath + ".type", json["type"]); 9177 type = new HighlightRegionType.fromJson(jsonDecoder, jsonPath + ".type", json["type"]);
7138 } else { 9178 } else {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
7427 * "containingClassDescription": optional String 9467 * "containingClassDescription": optional String
7428 * "dartdoc": optional String 9468 * "dartdoc": optional String
7429 * "elementDescription": optional String 9469 * "elementDescription": optional String
7430 * "elementKind": optional String 9470 * "elementKind": optional String
7431 * "parameter": optional String 9471 * "parameter": optional String
7432 * "propagatedType": optional String 9472 * "propagatedType": optional String
7433 * "staticType": optional String 9473 * "staticType": optional String
7434 * } 9474 * }
7435 */ 9475 */
7436 class HoverInformation implements HasToJson { 9476 class HoverInformation implements HasToJson {
9477 int _offset;
9478
9479 int _length;
9480
9481 String _containingLibraryPath;
9482
9483 String _containingLibraryName;
9484
9485 String _containingClassDescription;
9486
9487 String _dartdoc;
9488
9489 String _elementDescription;
9490
9491 String _elementKind;
9492
9493 String _parameter;
9494
9495 String _propagatedType;
9496
9497 String _staticType;
9498
7437 /** 9499 /**
7438 * The offset of the range of characters that encompases the cursor position 9500 * The offset of the range of characters that encompases the cursor position
7439 * and has the same hover information as the cursor position. 9501 * and has the same hover information as the cursor position.
7440 */ 9502 */
7441 int offset; 9503 int get offset => _offset;
9504
9505 /**
9506 * The offset of the range of characters that encompases the cursor position
9507 * and has the same hover information as the cursor position.
9508 */
9509 void set offset(int value) {
9510 assert(value != null);
9511 this._offset = value;
9512 }
7442 9513
7443 /** 9514 /**
7444 * The length of the range of characters that encompases the cursor position 9515 * The length of the range of characters that encompases the cursor position
7445 * and has the same hover information as the cursor position. 9516 * and has the same hover information as the cursor position.
7446 */ 9517 */
7447 int length; 9518 int get length => _length;
9519
9520 /**
9521 * The length of the range of characters that encompases the cursor position
9522 * and has the same hover information as the cursor position.
9523 */
9524 void set length(int value) {
9525 assert(value != null);
9526 this._length = value;
9527 }
7448 9528
7449 /** 9529 /**
7450 * The path to the defining compilation unit of the library in which the 9530 * The path to the defining compilation unit of the library in which the
7451 * referenced element is declared. This data is omitted if there is no 9531 * referenced element is declared. This data is omitted if there is no
7452 * referenced element, or if the element is declared inside an HTML file. 9532 * referenced element, or if the element is declared inside an HTML file.
7453 */ 9533 */
7454 String containingLibraryPath; 9534 String get containingLibraryPath => _containingLibraryPath;
9535
9536 /**
9537 * The path to the defining compilation unit of the library in which the
9538 * referenced element is declared. This data is omitted if there is no
9539 * referenced element, or if the element is declared inside an HTML file.
9540 */
9541 void set containingLibraryPath(String value) {
9542 this._containingLibraryPath = value;
9543 }
7455 9544
7456 /** 9545 /**
7457 * The name of the library in which the referenced element is declared. This 9546 * The name of the library in which the referenced element is declared. This
7458 * data is omitted if there is no referenced element, or if the element is 9547 * data is omitted if there is no referenced element, or if the element is
7459 * declared inside an HTML file. 9548 * declared inside an HTML file.
7460 */ 9549 */
7461 String containingLibraryName; 9550 String get containingLibraryName => _containingLibraryName;
9551
9552 /**
9553 * The name of the library in which the referenced element is declared. This
9554 * data is omitted if there is no referenced element, or if the element is
9555 * declared inside an HTML file.
9556 */
9557 void set containingLibraryName(String value) {
9558 this._containingLibraryName = value;
9559 }
7462 9560
7463 /** 9561 /**
7464 * A human-readable description of the class declaring the element being 9562 * A human-readable description of the class declaring the element being
7465 * referenced. This data is omitted if there is no referenced element, or if 9563 * referenced. This data is omitted if there is no referenced element, or if
7466 * the element is not a class member. 9564 * the element is not a class member.
7467 */ 9565 */
7468 String containingClassDescription; 9566 String get containingClassDescription => _containingClassDescription;
9567
9568 /**
9569 * A human-readable description of the class declaring the element being
9570 * referenced. This data is omitted if there is no referenced element, or if
9571 * the element is not a class member.
9572 */
9573 void set containingClassDescription(String value) {
9574 this._containingClassDescription = value;
9575 }
7469 9576
7470 /** 9577 /**
7471 * The dartdoc associated with the referenced element. Other than the removal 9578 * The dartdoc associated with the referenced element. Other than the removal
7472 * of the comment delimiters, including leading asterisks in the case of a 9579 * of the comment delimiters, including leading asterisks in the case of a
7473 * block comment, the dartdoc is unprocessed markdown. This data is omitted 9580 * block comment, the dartdoc is unprocessed markdown. This data is omitted
7474 * if there is no referenced element, or if the element has no dartdoc. 9581 * if there is no referenced element, or if the element has no dartdoc.
7475 */ 9582 */
7476 String dartdoc; 9583 String get dartdoc => _dartdoc;
9584
9585 /**
9586 * The dartdoc associated with the referenced element. Other than the removal
9587 * of the comment delimiters, including leading asterisks in the case of a
9588 * block comment, the dartdoc is unprocessed markdown. This data is omitted
9589 * if there is no referenced element, or if the element has no dartdoc.
9590 */
9591 void set dartdoc(String value) {
9592 this._dartdoc = value;
9593 }
7477 9594
7478 /** 9595 /**
7479 * A human-readable description of the element being referenced. This data is 9596 * A human-readable description of the element being referenced. This data is
7480 * omitted if there is no referenced element. 9597 * omitted if there is no referenced element.
7481 */ 9598 */
7482 String elementDescription; 9599 String get elementDescription => _elementDescription;
9600
9601 /**
9602 * A human-readable description of the element being referenced. This data is
9603 * omitted if there is no referenced element.
9604 */
9605 void set elementDescription(String value) {
9606 this._elementDescription = value;
9607 }
7483 9608
7484 /** 9609 /**
7485 * A human-readable description of the kind of element being referenced (such 9610 * A human-readable description of the kind of element being referenced (such
7486 * as “class” or “function type alias”). This data is omitted if there is no 9611 * as “class” or “function type alias”). This data is omitted if there is no
7487 * referenced element. 9612 * referenced element.
7488 */ 9613 */
7489 String elementKind; 9614 String get elementKind => _elementKind;
9615
9616 /**
9617 * A human-readable description of the kind of element being referenced (such
9618 * as “class” or “function type alias”). This data is omitted if there is no
9619 * referenced element.
9620 */
9621 void set elementKind(String value) {
9622 this._elementKind = value;
9623 }
7490 9624
7491 /** 9625 /**
7492 * A human-readable description of the parameter corresponding to the 9626 * A human-readable description of the parameter corresponding to the
7493 * expression being hovered over. This data is omitted if the location is not 9627 * expression being hovered over. This data is omitted if the location is not
7494 * in an argument to a function. 9628 * in an argument to a function.
7495 */ 9629 */
7496 String parameter; 9630 String get parameter => _parameter;
9631
9632 /**
9633 * A human-readable description of the parameter corresponding to the
9634 * expression being hovered over. This data is omitted if the location is not
9635 * in an argument to a function.
9636 */
9637 void set parameter(String value) {
9638 this._parameter = value;
9639 }
7497 9640
7498 /** 9641 /**
7499 * The name of the propagated type of the expression. This data is omitted if 9642 * The name of the propagated type of the expression. This data is omitted if
7500 * the location does not correspond to an expression or if there is no 9643 * the location does not correspond to an expression or if there is no
7501 * propagated type information. 9644 * propagated type information.
7502 */ 9645 */
7503 String propagatedType; 9646 String get propagatedType => _propagatedType;
9647
9648 /**
9649 * The name of the propagated type of the expression. This data is omitted if
9650 * the location does not correspond to an expression or if there is no
9651 * propagated type information.
9652 */
9653 void set propagatedType(String value) {
9654 this._propagatedType = value;
9655 }
7504 9656
7505 /** 9657 /**
7506 * The name of the static type of the expression. This data is omitted if the 9658 * The name of the static type of the expression. This data is omitted if the
7507 * location does not correspond to an expression. 9659 * location does not correspond to an expression.
7508 */ 9660 */
7509 String staticType; 9661 String get staticType => _staticType;
7510 9662
7511 HoverInformation(this.offset, this.length, {this.containingLibraryPath, this.c ontainingLibraryName, this.containingClassDescription, this.dartdoc, this.elemen tDescription, this.elementKind, this.parameter, this.propagatedType, this.static Type}); 9663 /**
9664 * The name of the static type of the expression. This data is omitted if the
9665 * location does not correspond to an expression.
9666 */
9667 void set staticType(String value) {
9668 this._staticType = value;
9669 }
9670
9671 HoverInformation(int offset, int length, {String containingLibraryPath, String containingLibraryName, String containingClassDescription, String dartdoc, Strin g elementDescription, String elementKind, String parameter, String propagatedTyp e, String staticType}) {
9672 this.offset = offset;
9673 this.length = length;
9674 this.containingLibraryPath = containingLibraryPath;
9675 this.containingLibraryName = containingLibraryName;
9676 this.containingClassDescription = containingClassDescription;
9677 this.dartdoc = dartdoc;
9678 this.elementDescription = elementDescription;
9679 this.elementKind = elementKind;
9680 this.parameter = parameter;
9681 this.propagatedType = propagatedType;
9682 this.staticType = staticType;
9683 }
7512 9684
7513 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) { 9685 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) {
7514 if (json == null) { 9686 if (json == null) {
7515 json = {}; 9687 json = {};
7516 } 9688 }
7517 if (json is Map) { 9689 if (json is Map) {
7518 int offset; 9690 int offset;
7519 if (json.containsKey("offset")) { 9691 if (json.containsKey("offset")) {
7520 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); 9692 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]);
7521 } else { 9693 } else {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
7645 /** 9817 /**
7646 * LinkedEditGroup 9818 * LinkedEditGroup
7647 * 9819 *
7648 * { 9820 * {
7649 * "positions": List<Position> 9821 * "positions": List<Position>
7650 * "length": int 9822 * "length": int
7651 * "suggestions": List<LinkedEditSuggestion> 9823 * "suggestions": List<LinkedEditSuggestion>
7652 * } 9824 * }
7653 */ 9825 */
7654 class LinkedEditGroup implements HasToJson { 9826 class LinkedEditGroup implements HasToJson {
9827 List<Position> _positions;
9828
9829 int _length;
9830
9831 List<LinkedEditSuggestion> _suggestions;
9832
7655 /** 9833 /**
7656 * The positions of the regions that should be edited simultaneously. 9834 * The positions of the regions that should be edited simultaneously.
7657 */ 9835 */
7658 List<Position> positions; 9836 List<Position> get positions => _positions;
9837
9838 /**
9839 * The positions of the regions that should be edited simultaneously.
9840 */
9841 void set positions(List<Position> value) {
9842 assert(value != null);
9843 this._positions = value;
9844 }
7659 9845
7660 /** 9846 /**
7661 * The length of the regions that should be edited simultaneously. 9847 * The length of the regions that should be edited simultaneously.
7662 */ 9848 */
7663 int length; 9849 int get length => _length;
9850
9851 /**
9852 * The length of the regions that should be edited simultaneously.
9853 */
9854 void set length(int value) {
9855 assert(value != null);
9856 this._length = value;
9857 }
7664 9858
7665 /** 9859 /**
7666 * Pre-computed suggestions for what every region might want to be changed 9860 * Pre-computed suggestions for what every region might want to be changed
7667 * to. 9861 * to.
7668 */ 9862 */
7669 List<LinkedEditSuggestion> suggestions; 9863 List<LinkedEditSuggestion> get suggestions => _suggestions;
7670 9864
7671 LinkedEditGroup(this.positions, this.length, this.suggestions); 9865 /**
9866 * Pre-computed suggestions for what every region might want to be changed
9867 * to.
9868 */
9869 void set suggestions(List<LinkedEditSuggestion> value) {
9870 assert(value != null);
9871 this._suggestions = value;
9872 }
9873
9874 LinkedEditGroup(List<Position> positions, int length, List<LinkedEditSuggestio n> suggestions) {
9875 this.positions = positions;
9876 this.length = length;
9877 this.suggestions = suggestions;
9878 }
7672 9879
7673 factory LinkedEditGroup.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) { 9880 factory LinkedEditGroup.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) {
7674 if (json == null) { 9881 if (json == null) {
7675 json = {}; 9882 json = {};
7676 } 9883 }
7677 if (json is Map) { 9884 if (json is Map) {
7678 List<Position> positions; 9885 List<Position> positions;
7679 if (json.containsKey("positions")) { 9886 if (json.containsKey("positions")) {
7680 positions = jsonDecoder._decodeList(jsonPath + ".positions", json["posit ions"], (String jsonPath, Object json) => new Position.fromJson(jsonDecoder, jso nPath, json)); 9887 positions = jsonDecoder._decodeList(jsonPath + ".positions", json["posit ions"], (String jsonPath, Object json) => new Position.fromJson(jsonDecoder, jso nPath, json));
7681 } else { 9888 } else {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
7752 9959
7753 /** 9960 /**
7754 * LinkedEditSuggestion 9961 * LinkedEditSuggestion
7755 * 9962 *
7756 * { 9963 * {
7757 * "value": String 9964 * "value": String
7758 * "kind": LinkedEditSuggestionKind 9965 * "kind": LinkedEditSuggestionKind
7759 * } 9966 * }
7760 */ 9967 */
7761 class LinkedEditSuggestion implements HasToJson { 9968 class LinkedEditSuggestion implements HasToJson {
9969 String _value;
9970
9971 LinkedEditSuggestionKind _kind;
9972
7762 /** 9973 /**
7763 * The value that could be used to replace all of the linked edit regions. 9974 * The value that could be used to replace all of the linked edit regions.
7764 */ 9975 */
7765 String value; 9976 String get value => _value;
9977
9978 /**
9979 * The value that could be used to replace all of the linked edit regions.
9980 */
9981 void set value(String value) {
9982 assert(value != null);
9983 this._value = value;
9984 }
7766 9985
7767 /** 9986 /**
7768 * The kind of value being proposed. 9987 * The kind of value being proposed.
7769 */ 9988 */
7770 LinkedEditSuggestionKind kind; 9989 LinkedEditSuggestionKind get kind => _kind;
7771 9990
7772 LinkedEditSuggestion(this.value, this.kind); 9991 /**
9992 * The kind of value being proposed.
9993 */
9994 void set kind(LinkedEditSuggestionKind value) {
9995 assert(value != null);
9996 this._kind = value;
9997 }
9998
9999 LinkedEditSuggestion(String value, LinkedEditSuggestionKind kind) {
10000 this.value = value;
10001 this.kind = kind;
10002 }
7773 10003
7774 factory LinkedEditSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) { 10004 factory LinkedEditSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) {
7775 if (json == null) { 10005 if (json == null) {
7776 json = {}; 10006 json = {};
7777 } 10007 }
7778 if (json is Map) { 10008 if (json is Map) {
7779 String value; 10009 String value;
7780 if (json.containsKey("value")) { 10010 if (json.containsKey("value")) {
7781 value = jsonDecoder._decodeString(jsonPath + ".value", json["value"]); 10011 value = jsonDecoder._decodeString(jsonPath + ".value", json["value"]);
7782 } else { 10012 } else {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
7886 * 10116 *
7887 * { 10117 * {
7888 * "file": FilePath 10118 * "file": FilePath
7889 * "offset": int 10119 * "offset": int
7890 * "length": int 10120 * "length": int
7891 * "startLine": int 10121 * "startLine": int
7892 * "startColumn": int 10122 * "startColumn": int
7893 * } 10123 * }
7894 */ 10124 */
7895 class Location implements HasToJson { 10125 class Location implements HasToJson {
10126 String _file;
10127
10128 int _offset;
10129
10130 int _length;
10131
10132 int _startLine;
10133
10134 int _startColumn;
10135
7896 /** 10136 /**
7897 * The file containing the range. 10137 * The file containing the range.
7898 */ 10138 */
7899 String file; 10139 String get file => _file;
10140
10141 /**
10142 * The file containing the range.
10143 */
10144 void set file(String value) {
10145 assert(value != null);
10146 this._file = value;
10147 }
7900 10148
7901 /** 10149 /**
7902 * The offset of the range. 10150 * The offset of the range.
7903 */ 10151 */
7904 int offset; 10152 int get offset => _offset;
10153
10154 /**
10155 * The offset of the range.
10156 */
10157 void set offset(int value) {
10158 assert(value != null);
10159 this._offset = value;
10160 }
7905 10161
7906 /** 10162 /**
7907 * The length of the range. 10163 * The length of the range.
7908 */ 10164 */
7909 int length; 10165 int get length => _length;
10166
10167 /**
10168 * The length of the range.
10169 */
10170 void set length(int value) {
10171 assert(value != null);
10172 this._length = value;
10173 }
7910 10174
7911 /** 10175 /**
7912 * The one-based index of the line containing the first character of the 10176 * The one-based index of the line containing the first character of the
7913 * range. 10177 * range.
7914 */ 10178 */
7915 int startLine; 10179 int get startLine => _startLine;
10180
10181 /**
10182 * The one-based index of the line containing the first character of the
10183 * range.
10184 */
10185 void set startLine(int value) {
10186 assert(value != null);
10187 this._startLine = value;
10188 }
7916 10189
7917 /** 10190 /**
7918 * The one-based index of the column containing the first character of the 10191 * The one-based index of the column containing the first character of the
7919 * range. 10192 * range.
7920 */ 10193 */
7921 int startColumn; 10194 int get startColumn => _startColumn;
7922 10195
7923 Location(this.file, this.offset, this.length, this.startLine, this.startColumn ); 10196 /**
10197 * The one-based index of the column containing the first character of the
10198 * range.
10199 */
10200 void set startColumn(int value) {
10201 assert(value != null);
10202 this._startColumn = value;
10203 }
10204
10205 Location(String file, int offset, int length, int startLine, int startColumn) {
10206 this.file = file;
10207 this.offset = offset;
10208 this.length = length;
10209 this.startLine = startLine;
10210 this.startColumn = startColumn;
10211 }
7924 10212
7925 factory Location.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso n) { 10213 factory Location.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso n) {
7926 if (json == null) { 10214 if (json == null) {
7927 json = {}; 10215 json = {};
7928 } 10216 }
7929 if (json is Map) { 10217 if (json is Map) {
7930 String file; 10218 String file;
7931 if (json.containsKey("file")) { 10219 if (json.containsKey("file")) {
7932 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 10220 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
7933 } else { 10221 } else {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
8003 /** 10291 /**
8004 * NavigationRegion 10292 * NavigationRegion
8005 * 10293 *
8006 * { 10294 * {
8007 * "offset": int 10295 * "offset": int
8008 * "length": int 10296 * "length": int
8009 * "targets": List<int> 10297 * "targets": List<int>
8010 * } 10298 * }
8011 */ 10299 */
8012 class NavigationRegion implements HasToJson { 10300 class NavigationRegion implements HasToJson {
10301 int _offset;
10302
10303 int _length;
10304
10305 List<int> _targets;
10306
8013 /** 10307 /**
8014 * The offset of the region from which the user can navigate. 10308 * The offset of the region from which the user can navigate.
8015 */ 10309 */
8016 int offset; 10310 int get offset => _offset;
10311
10312 /**
10313 * The offset of the region from which the user can navigate.
10314 */
10315 void set offset(int value) {
10316 assert(value != null);
10317 this._offset = value;
10318 }
8017 10319
8018 /** 10320 /**
8019 * The length of the region from which the user can navigate. 10321 * The length of the region from which the user can navigate.
8020 */ 10322 */
8021 int length; 10323 int get length => _length;
10324
10325 /**
10326 * The length of the region from which the user can navigate.
10327 */
10328 void set length(int value) {
10329 assert(value != null);
10330 this._length = value;
10331 }
8022 10332
8023 /** 10333 /**
8024 * The indexes of the targets (in the enclosing navigation response) to which 10334 * The indexes of the targets (in the enclosing navigation response) to which
8025 * the given region is bound. By opening the target, clients can implement 10335 * the given region is bound. By opening the target, clients can implement
8026 * one form of navigation. 10336 * one form of navigation.
8027 */ 10337 */
8028 List<int> targets; 10338 List<int> get targets => _targets;
8029 10339
8030 NavigationRegion(this.offset, this.length, this.targets); 10340 /**
10341 * The indexes of the targets (in the enclosing navigation response) to which
10342 * the given region is bound. By opening the target, clients can implement
10343 * one form of navigation.
10344 */
10345 void set targets(List<int> value) {
10346 assert(value != null);
10347 this._targets = value;
10348 }
10349
10350 NavigationRegion(int offset, int length, List<int> targets) {
10351 this.offset = offset;
10352 this.length = length;
10353 this.targets = targets;
10354 }
8031 10355
8032 factory NavigationRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) { 10356 factory NavigationRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) {
8033 if (json == null) { 10357 if (json == null) {
8034 json = {}; 10358 json = {};
8035 } 10359 }
8036 if (json is Map) { 10360 if (json is Map) {
8037 int offset; 10361 int offset;
8038 if (json.containsKey("offset")) { 10362 if (json.containsKey("offset")) {
8039 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); 10363 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]);
8040 } else { 10364 } else {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
8095 * { 10419 * {
8096 * "kind": ElementKind 10420 * "kind": ElementKind
8097 * "fileIndex": int 10421 * "fileIndex": int
8098 * "offset": int 10422 * "offset": int
8099 * "length": int 10423 * "length": int
8100 * "startLine": int 10424 * "startLine": int
8101 * "startColumn": int 10425 * "startColumn": int
8102 * } 10426 * }
8103 */ 10427 */
8104 class NavigationTarget implements HasToJson { 10428 class NavigationTarget implements HasToJson {
10429 ElementKind _kind;
10430
10431 int _fileIndex;
10432
10433 int _offset;
10434
10435 int _length;
10436
10437 int _startLine;
10438
10439 int _startColumn;
10440
8105 /** 10441 /**
8106 * The kind of the element. 10442 * The kind of the element.
8107 */ 10443 */
8108 ElementKind kind; 10444 ElementKind get kind => _kind;
10445
10446 /**
10447 * The kind of the element.
10448 */
10449 void set kind(ElementKind value) {
10450 assert(value != null);
10451 this._kind = value;
10452 }
8109 10453
8110 /** 10454 /**
8111 * The index of the file (in the enclosing navigation response) to navigate 10455 * The index of the file (in the enclosing navigation response) to navigate
8112 * to. 10456 * to.
8113 */ 10457 */
8114 int fileIndex; 10458 int get fileIndex => _fileIndex;
10459
10460 /**
10461 * The index of the file (in the enclosing navigation response) to navigate
10462 * to.
10463 */
10464 void set fileIndex(int value) {
10465 assert(value != null);
10466 this._fileIndex = value;
10467 }
8115 10468
8116 /** 10469 /**
8117 * The offset of the region from which the user can navigate. 10470 * The offset of the region from which the user can navigate.
8118 */ 10471 */
8119 int offset; 10472 int get offset => _offset;
10473
10474 /**
10475 * The offset of the region from which the user can navigate.
10476 */
10477 void set offset(int value) {
10478 assert(value != null);
10479 this._offset = value;
10480 }
8120 10481
8121 /** 10482 /**
8122 * The length of the region from which the user can navigate. 10483 * The length of the region from which the user can navigate.
8123 */ 10484 */
8124 int length; 10485 int get length => _length;
10486
10487 /**
10488 * The length of the region from which the user can navigate.
10489 */
10490 void set length(int value) {
10491 assert(value != null);
10492 this._length = value;
10493 }
8125 10494
8126 /** 10495 /**
8127 * The one-based index of the line containing the first character of the 10496 * The one-based index of the line containing the first character of the
8128 * region. 10497 * region.
8129 */ 10498 */
8130 int startLine; 10499 int get startLine => _startLine;
10500
10501 /**
10502 * The one-based index of the line containing the first character of the
10503 * region.
10504 */
10505 void set startLine(int value) {
10506 assert(value != null);
10507 this._startLine = value;
10508 }
8131 10509
8132 /** 10510 /**
8133 * The one-based index of the column containing the first character of the 10511 * The one-based index of the column containing the first character of the
8134 * region. 10512 * region.
8135 */ 10513 */
8136 int startColumn; 10514 int get startColumn => _startColumn;
8137 10515
8138 NavigationTarget(this.kind, this.fileIndex, this.offset, this.length, this.sta rtLine, this.startColumn); 10516 /**
10517 * The one-based index of the column containing the first character of the
10518 * region.
10519 */
10520 void set startColumn(int value) {
10521 assert(value != null);
10522 this._startColumn = value;
10523 }
10524
10525 NavigationTarget(ElementKind kind, int fileIndex, int offset, int length, int startLine, int startColumn) {
10526 this.kind = kind;
10527 this.fileIndex = fileIndex;
10528 this.offset = offset;
10529 this.length = length;
10530 this.startLine = startLine;
10531 this.startColumn = startColumn;
10532 }
8139 10533
8140 factory NavigationTarget.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) { 10534 factory NavigationTarget.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) {
8141 if (json == null) { 10535 if (json == null) {
8142 json = {}; 10536 json = {};
8143 } 10537 }
8144 if (json is Map) { 10538 if (json is Map) {
8145 ElementKind kind; 10539 ElementKind kind;
8146 if (json.containsKey("kind")) { 10540 if (json.containsKey("kind")) {
8147 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k ind"]); 10541 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k ind"]);
8148 } else { 10542 } else {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
8227 /** 10621 /**
8228 * Occurrences 10622 * Occurrences
8229 * 10623 *
8230 * { 10624 * {
8231 * "element": Element 10625 * "element": Element
8232 * "offsets": List<int> 10626 * "offsets": List<int>
8233 * "length": int 10627 * "length": int
8234 * } 10628 * }
8235 */ 10629 */
8236 class Occurrences implements HasToJson { 10630 class Occurrences implements HasToJson {
10631 Element _element;
10632
10633 List<int> _offsets;
10634
10635 int _length;
10636
8237 /** 10637 /**
8238 * The element that was referenced. 10638 * The element that was referenced.
8239 */ 10639 */
8240 Element element; 10640 Element get element => _element;
10641
10642 /**
10643 * The element that was referenced.
10644 */
10645 void set element(Element value) {
10646 assert(value != null);
10647 this._element = value;
10648 }
8241 10649
8242 /** 10650 /**
8243 * The offsets of the name of the referenced element within the file. 10651 * The offsets of the name of the referenced element within the file.
8244 */ 10652 */
8245 List<int> offsets; 10653 List<int> get offsets => _offsets;
10654
10655 /**
10656 * The offsets of the name of the referenced element within the file.
10657 */
10658 void set offsets(List<int> value) {
10659 assert(value != null);
10660 this._offsets = value;
10661 }
8246 10662
8247 /** 10663 /**
8248 * The length of the name of the referenced element. 10664 * The length of the name of the referenced element.
8249 */ 10665 */
8250 int length; 10666 int get length => _length;
8251 10667
8252 Occurrences(this.element, this.offsets, this.length); 10668 /**
10669 * The length of the name of the referenced element.
10670 */
10671 void set length(int value) {
10672 assert(value != null);
10673 this._length = value;
10674 }
10675
10676 Occurrences(Element element, List<int> offsets, int length) {
10677 this.element = element;
10678 this.offsets = offsets;
10679 this.length = length;
10680 }
8253 10681
8254 factory Occurrences.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 10682 factory Occurrences.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
8255 if (json == null) { 10683 if (json == null) {
8256 json = {}; 10684 json = {};
8257 } 10685 }
8258 if (json is Map) { 10686 if (json is Map) {
8259 Element element; 10687 Element element;
8260 if (json.containsKey("element")) { 10688 if (json.containsKey("element")) {
8261 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]); 10689 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]);
8262 } else { 10690 } else {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
8315 * Outline 10743 * Outline
8316 * 10744 *
8317 * { 10745 * {
8318 * "element": Element 10746 * "element": Element
8319 * "offset": int 10747 * "offset": int
8320 * "length": int 10748 * "length": int
8321 * "children": optional List<Outline> 10749 * "children": optional List<Outline>
8322 * } 10750 * }
8323 */ 10751 */
8324 class Outline implements HasToJson { 10752 class Outline implements HasToJson {
10753 Element _element;
10754
10755 int _offset;
10756
10757 int _length;
10758
10759 List<Outline> _children;
10760
8325 /** 10761 /**
8326 * A description of the element represented by this node. 10762 * A description of the element represented by this node.
8327 */ 10763 */
8328 Element element; 10764 Element get element => _element;
10765
10766 /**
10767 * A description of the element represented by this node.
10768 */
10769 void set element(Element value) {
10770 assert(value != null);
10771 this._element = value;
10772 }
8329 10773
8330 /** 10774 /**
8331 * The offset of the first character of the element. This is different than 10775 * The offset of the first character of the element. This is different than
8332 * the offset in the Element, which if the offset of the name of the element. 10776 * the offset in the Element, which if the offset of the name of the element.
8333 * It can be used, for example, to map locations in the file back to an 10777 * It can be used, for example, to map locations in the file back to an
8334 * outline. 10778 * outline.
8335 */ 10779 */
8336 int offset; 10780 int get offset => _offset;
10781
10782 /**
10783 * The offset of the first character of the element. This is different than
10784 * the offset in the Element, which if the offset of the name of the element.
10785 * It can be used, for example, to map locations in the file back to an
10786 * outline.
10787 */
10788 void set offset(int value) {
10789 assert(value != null);
10790 this._offset = value;
10791 }
8337 10792
8338 /** 10793 /**
8339 * The length of the element. 10794 * The length of the element.
8340 */ 10795 */
8341 int length; 10796 int get length => _length;
10797
10798 /**
10799 * The length of the element.
10800 */
10801 void set length(int value) {
10802 assert(value != null);
10803 this._length = value;
10804 }
8342 10805
8343 /** 10806 /**
8344 * The children of the node. The field will be omitted if the node has no 10807 * The children of the node. The field will be omitted if the node has no
8345 * children. 10808 * children.
8346 */ 10809 */
8347 List<Outline> children; 10810 List<Outline> get children => _children;
8348 10811
8349 Outline(this.element, this.offset, this.length, {this.children}); 10812 /**
10813 * The children of the node. The field will be omitted if the node has no
10814 * children.
10815 */
10816 void set children(List<Outline> value) {
10817 this._children = value;
10818 }
10819
10820 Outline(Element element, int offset, int length, {List<Outline> children}) {
10821 this.element = element;
10822 this.offset = offset;
10823 this.length = length;
10824 this.children = children;
10825 }
8350 10826
8351 factory Outline.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json ) { 10827 factory Outline.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json ) {
8352 if (json == null) { 10828 if (json == null) {
8353 json = {}; 10829 json = {};
8354 } 10830 }
8355 if (json is Map) { 10831 if (json is Map) {
8356 Element element; 10832 Element element;
8357 if (json.containsKey("element")) { 10833 if (json.containsKey("element")) {
8358 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]); 10834 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]);
8359 } else { 10835 } else {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
8421 * Override 10897 * Override
8422 * 10898 *
8423 * { 10899 * {
8424 * "offset": int 10900 * "offset": int
8425 * "length": int 10901 * "length": int
8426 * "superclassMember": optional OverriddenMember 10902 * "superclassMember": optional OverriddenMember
8427 * "interfaceMembers": optional List<OverriddenMember> 10903 * "interfaceMembers": optional List<OverriddenMember>
8428 * } 10904 * }
8429 */ 10905 */
8430 class Override implements HasToJson { 10906 class Override implements HasToJson {
10907 int _offset;
10908
10909 int _length;
10910
10911 OverriddenMember _superclassMember;
10912
10913 List<OverriddenMember> _interfaceMembers;
10914
8431 /** 10915 /**
8432 * The offset of the name of the overriding member. 10916 * The offset of the name of the overriding member.
8433 */ 10917 */
8434 int offset; 10918 int get offset => _offset;
10919
10920 /**
10921 * The offset of the name of the overriding member.
10922 */
10923 void set offset(int value) {
10924 assert(value != null);
10925 this._offset = value;
10926 }
8435 10927
8436 /** 10928 /**
8437 * The length of the name of the overriding member. 10929 * The length of the name of the overriding member.
8438 */ 10930 */
8439 int length; 10931 int get length => _length;
10932
10933 /**
10934 * The length of the name of the overriding member.
10935 */
10936 void set length(int value) {
10937 assert(value != null);
10938 this._length = value;
10939 }
8440 10940
8441 /** 10941 /**
8442 * The member inherited from a superclass that is overridden by the 10942 * The member inherited from a superclass that is overridden by the
8443 * overriding member. The field is omitted if there is no superclass member, 10943 * overriding member. The field is omitted if there is no superclass member,
8444 * in which case there must be at least one interface member. 10944 * in which case there must be at least one interface member.
8445 */ 10945 */
8446 OverriddenMember superclassMember; 10946 OverriddenMember get superclassMember => _superclassMember;
10947
10948 /**
10949 * The member inherited from a superclass that is overridden by the
10950 * overriding member. The field is omitted if there is no superclass member,
10951 * in which case there must be at least one interface member.
10952 */
10953 void set superclassMember(OverriddenMember value) {
10954 this._superclassMember = value;
10955 }
8447 10956
8448 /** 10957 /**
8449 * The members inherited from interfaces that are overridden by the 10958 * The members inherited from interfaces that are overridden by the
8450 * overriding member. The field is omitted if there are no interface members, 10959 * overriding member. The field is omitted if there are no interface members,
8451 * in which case there must be a superclass member. 10960 * in which case there must be a superclass member.
8452 */ 10961 */
8453 List<OverriddenMember> interfaceMembers; 10962 List<OverriddenMember> get interfaceMembers => _interfaceMembers;
8454 10963
8455 Override(this.offset, this.length, {this.superclassMember, this.interfaceMembe rs}); 10964 /**
10965 * The members inherited from interfaces that are overridden by the
10966 * overriding member. The field is omitted if there are no interface members,
10967 * in which case there must be a superclass member.
10968 */
10969 void set interfaceMembers(List<OverriddenMember> value) {
10970 this._interfaceMembers = value;
10971 }
10972
10973 Override(int offset, int length, {OverriddenMember superclassMember, List<Over riddenMember> interfaceMembers}) {
10974 this.offset = offset;
10975 this.length = length;
10976 this.superclassMember = superclassMember;
10977 this.interfaceMembers = interfaceMembers;
10978 }
8456 10979
8457 factory Override.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso n) { 10980 factory Override.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso n) {
8458 if (json == null) { 10981 if (json == null) {
8459 json = {}; 10982 json = {};
8460 } 10983 }
8461 if (json is Map) { 10984 if (json is Map) {
8462 int offset; 10985 int offset;
8463 if (json.containsKey("offset")) { 10986 if (json.containsKey("offset")) {
8464 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); 10987 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]);
8465 } else { 10988 } else {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
8525 11048
8526 /** 11049 /**
8527 * OverriddenMember 11050 * OverriddenMember
8528 * 11051 *
8529 * { 11052 * {
8530 * "element": Element 11053 * "element": Element
8531 * "className": String 11054 * "className": String
8532 * } 11055 * }
8533 */ 11056 */
8534 class OverriddenMember implements HasToJson { 11057 class OverriddenMember implements HasToJson {
11058 Element _element;
11059
11060 String _className;
11061
8535 /** 11062 /**
8536 * The element that is being overridden. 11063 * The element that is being overridden.
8537 */ 11064 */
8538 Element element; 11065 Element get element => _element;
11066
11067 /**
11068 * The element that is being overridden.
11069 */
11070 void set element(Element value) {
11071 assert(value != null);
11072 this._element = value;
11073 }
8539 11074
8540 /** 11075 /**
8541 * The name of the class in which the member is defined. 11076 * The name of the class in which the member is defined.
8542 */ 11077 */
8543 String className; 11078 String get className => _className;
8544 11079
8545 OverriddenMember(this.element, this.className); 11080 /**
11081 * The name of the class in which the member is defined.
11082 */
11083 void set className(String value) {
11084 assert(value != null);
11085 this._className = value;
11086 }
11087
11088 OverriddenMember(Element element, String className) {
11089 this.element = element;
11090 this.className = className;
11091 }
8546 11092
8547 factory OverriddenMember.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) { 11093 factory OverriddenMember.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) {
8548 if (json == null) { 11094 if (json == null) {
8549 json = {}; 11095 json = {};
8550 } 11096 }
8551 if (json is Map) { 11097 if (json is Map) {
8552 Element element; 11098 Element element;
8553 if (json.containsKey("element")) { 11099 if (json.containsKey("element")) {
8554 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]); 11100 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]);
8555 } else { 11101 } else {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
8597 11143
8598 /** 11144 /**
8599 * Position 11145 * Position
8600 * 11146 *
8601 * { 11147 * {
8602 * "file": FilePath 11148 * "file": FilePath
8603 * "offset": int 11149 * "offset": int
8604 * } 11150 * }
8605 */ 11151 */
8606 class Position implements HasToJson { 11152 class Position implements HasToJson {
11153 String _file;
11154
11155 int _offset;
11156
8607 /** 11157 /**
8608 * The file containing the position. 11158 * The file containing the position.
8609 */ 11159 */
8610 String file; 11160 String get file => _file;
11161
11162 /**
11163 * The file containing the position.
11164 */
11165 void set file(String value) {
11166 assert(value != null);
11167 this._file = value;
11168 }
8611 11169
8612 /** 11170 /**
8613 * The offset of the position. 11171 * The offset of the position.
8614 */ 11172 */
8615 int offset; 11173 int get offset => _offset;
8616 11174
8617 Position(this.file, this.offset); 11175 /**
11176 * The offset of the position.
11177 */
11178 void set offset(int value) {
11179 assert(value != null);
11180 this._offset = value;
11181 }
11182
11183 Position(String file, int offset) {
11184 this.file = file;
11185 this.offset = offset;
11186 }
8618 11187
8619 factory Position.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso n) { 11188 factory Position.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso n) {
8620 if (json == null) { 11189 if (json == null) {
8621 json = {}; 11190 json = {};
8622 } 11191 }
8623 if (json is Map) { 11192 if (json is Map) {
8624 String file; 11193 String file;
8625 if (json.containsKey("file")) { 11194 if (json.containsKey("file")) {
8626 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); 11195 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
8627 } else { 11196 } else {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
8668 } 11237 }
8669 11238
8670 /** 11239 /**
8671 * PubStatus 11240 * PubStatus
8672 * 11241 *
8673 * { 11242 * {
8674 * "isListingPackageDirs": bool 11243 * "isListingPackageDirs": bool
8675 * } 11244 * }
8676 */ 11245 */
8677 class PubStatus implements HasToJson { 11246 class PubStatus implements HasToJson {
11247 bool _isListingPackageDirs;
11248
8678 /** 11249 /**
8679 * True if the server is currently running pub to produce a list of package 11250 * True if the server is currently running pub to produce a list of package
8680 * directories. 11251 * directories.
8681 */ 11252 */
8682 bool isListingPackageDirs; 11253 bool get isListingPackageDirs => _isListingPackageDirs;
8683 11254
8684 PubStatus(this.isListingPackageDirs); 11255 /**
11256 * True if the server is currently running pub to produce a list of package
11257 * directories.
11258 */
11259 void set isListingPackageDirs(bool value) {
11260 assert(value != null);
11261 this._isListingPackageDirs = value;
11262 }
11263
11264 PubStatus(bool isListingPackageDirs) {
11265 this.isListingPackageDirs = isListingPackageDirs;
11266 }
8685 11267
8686 factory PubStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object js on) { 11268 factory PubStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object js on) {
8687 if (json == null) { 11269 if (json == null) {
8688 json = {}; 11270 json = {};
8689 } 11271 }
8690 if (json is Map) { 11272 if (json is Map) {
8691 bool isListingPackageDirs; 11273 bool isListingPackageDirs;
8692 if (json.containsKey("isListingPackageDirs")) { 11274 if (json.containsKey("isListingPackageDirs")) {
8693 isListingPackageDirs = jsonDecoder._decodeBool(jsonPath + ".isListingPac kageDirs", json["isListingPackageDirs"]); 11275 isListingPackageDirs = jsonDecoder._decodeBool(jsonPath + ".isListingPac kageDirs", json["isListingPackageDirs"]);
8694 } else { 11276 } else {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
8814 * 11396 *
8815 * { 11397 * {
8816 * "id": optional String 11398 * "id": optional String
8817 * "kind": RefactoringMethodParameterKind 11399 * "kind": RefactoringMethodParameterKind
8818 * "type": String 11400 * "type": String
8819 * "name": String 11401 * "name": String
8820 * "parameters": optional String 11402 * "parameters": optional String
8821 * } 11403 * }
8822 */ 11404 */
8823 class RefactoringMethodParameter implements HasToJson { 11405 class RefactoringMethodParameter implements HasToJson {
11406 String _id;
11407
11408 RefactoringMethodParameterKind _kind;
11409
11410 String _type;
11411
11412 String _name;
11413
11414 String _parameters;
11415
8824 /** 11416 /**
8825 * The unique identifier of the parameter. Clients may omit this field for 11417 * The unique identifier of the parameter. Clients may omit this field for
8826 * the parameters they want to add. 11418 * the parameters they want to add.
8827 */ 11419 */
8828 String id; 11420 String get id => _id;
11421
11422 /**
11423 * The unique identifier of the parameter. Clients may omit this field for
11424 * the parameters they want to add.
11425 */
11426 void set id(String value) {
11427 this._id = value;
11428 }
8829 11429
8830 /** 11430 /**
8831 * The kind of the parameter. 11431 * The kind of the parameter.
8832 */ 11432 */
8833 RefactoringMethodParameterKind kind; 11433 RefactoringMethodParameterKind get kind => _kind;
11434
11435 /**
11436 * The kind of the parameter.
11437 */
11438 void set kind(RefactoringMethodParameterKind value) {
11439 assert(value != null);
11440 this._kind = value;
11441 }
8834 11442
8835 /** 11443 /**
8836 * The type that should be given to the parameter, or the return type of the 11444 * The type that should be given to the parameter, or the return type of the
8837 * parameter's function type. 11445 * parameter's function type.
8838 */ 11446 */
8839 String type; 11447 String get type => _type;
11448
11449 /**
11450 * The type that should be given to the parameter, or the return type of the
11451 * parameter's function type.
11452 */
11453 void set type(String value) {
11454 assert(value != null);
11455 this._type = value;
11456 }
8840 11457
8841 /** 11458 /**
8842 * The name that should be given to the parameter. 11459 * The name that should be given to the parameter.
8843 */ 11460 */
8844 String name; 11461 String get name => _name;
11462
11463 /**
11464 * The name that should be given to the parameter.
11465 */
11466 void set name(String value) {
11467 assert(value != null);
11468 this._name = value;
11469 }
8845 11470
8846 /** 11471 /**
8847 * The parameter list of the parameter's function type. If the parameter is 11472 * The parameter list of the parameter's function type. If the parameter is
8848 * not of a function type, this field will not be defined. If the function 11473 * not of a function type, this field will not be defined. If the function
8849 * type has zero parameters, this field will have a value of "()". 11474 * type has zero parameters, this field will have a value of "()".
8850 */ 11475 */
8851 String parameters; 11476 String get parameters => _parameters;
8852 11477
8853 RefactoringMethodParameter(this.kind, this.type, this.name, {this.id, this.par ameters}); 11478 /**
11479 * The parameter list of the parameter's function type. If the parameter is
11480 * not of a function type, this field will not be defined. If the function
11481 * type has zero parameters, this field will have a value of "()".
11482 */
11483 void set parameters(String value) {
11484 this._parameters = value;
11485 }
11486
11487 RefactoringMethodParameter(RefactoringMethodParameterKind kind, String type, S tring name, {String id, String parameters}) {
11488 this.id = id;
11489 this.kind = kind;
11490 this.type = type;
11491 this.name = name;
11492 this.parameters = parameters;
11493 }
8854 11494
8855 factory RefactoringMethodParameter.fromJson(JsonDecoder jsonDecoder, String js onPath, Object json) { 11495 factory RefactoringMethodParameter.fromJson(JsonDecoder jsonDecoder, String js onPath, Object json) {
8856 if (json == null) { 11496 if (json == null) {
8857 json = {}; 11497 json = {};
8858 } 11498 }
8859 if (json is Map) { 11499 if (json is Map) {
8860 String id; 11500 String id;
8861 if (json.containsKey("id")) { 11501 if (json.containsKey("id")) {
8862 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 11502 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
8863 } 11503 }
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
9059 /** 11699 /**
9060 * RefactoringProblem 11700 * RefactoringProblem
9061 * 11701 *
9062 * { 11702 * {
9063 * "severity": RefactoringProblemSeverity 11703 * "severity": RefactoringProblemSeverity
9064 * "message": String 11704 * "message": String
9065 * "location": optional Location 11705 * "location": optional Location
9066 * } 11706 * }
9067 */ 11707 */
9068 class RefactoringProblem implements HasToJson { 11708 class RefactoringProblem implements HasToJson {
11709 RefactoringProblemSeverity _severity;
11710
11711 String _message;
11712
11713 Location _location;
11714
9069 /** 11715 /**
9070 * The severity of the problem being represented. 11716 * The severity of the problem being represented.
9071 */ 11717 */
9072 RefactoringProblemSeverity severity; 11718 RefactoringProblemSeverity get severity => _severity;
11719
11720 /**
11721 * The severity of the problem being represented.
11722 */
11723 void set severity(RefactoringProblemSeverity value) {
11724 assert(value != null);
11725 this._severity = value;
11726 }
9073 11727
9074 /** 11728 /**
9075 * A human-readable description of the problem being represented. 11729 * A human-readable description of the problem being represented.
9076 */ 11730 */
9077 String message; 11731 String get message => _message;
11732
11733 /**
11734 * A human-readable description of the problem being represented.
11735 */
11736 void set message(String value) {
11737 assert(value != null);
11738 this._message = value;
11739 }
9078 11740
9079 /** 11741 /**
9080 * The location of the problem being represented. This field is omitted 11742 * The location of the problem being represented. This field is omitted
9081 * unless there is a specific location associated with the problem (such as a 11743 * unless there is a specific location associated with the problem (such as a
9082 * location where an element being renamed will be shadowed). 11744 * location where an element being renamed will be shadowed).
9083 */ 11745 */
9084 Location location; 11746 Location get location => _location;
9085 11747
9086 RefactoringProblem(this.severity, this.message, {this.location}); 11748 /**
11749 * The location of the problem being represented. This field is omitted
11750 * unless there is a specific location associated with the problem (such as a
11751 * location where an element being renamed will be shadowed).
11752 */
11753 void set location(Location value) {
11754 this._location = value;
11755 }
11756
11757 RefactoringProblem(RefactoringProblemSeverity severity, String message, {Locat ion location}) {
11758 this.severity = severity;
11759 this.message = message;
11760 this.location = location;
11761 }
9087 11762
9088 factory RefactoringProblem.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 11763 factory RefactoringProblem.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
9089 if (json == null) { 11764 if (json == null) {
9090 json = {}; 11765 json = {};
9091 } 11766 }
9092 if (json is Map) { 11767 if (json is Map) {
9093 RefactoringProblemSeverity severity; 11768 RefactoringProblemSeverity severity;
9094 if (json.containsKey("severity")) { 11769 if (json.containsKey("severity")) {
9095 severity = new RefactoringProblemSeverity.fromJson(jsonDecoder, jsonPath + ".severity", json["severity"]); 11770 severity = new RefactoringProblemSeverity.fromJson(jsonDecoder, jsonPath + ".severity", json["severity"]);
9096 } else { 11771 } else {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
9262 /** 11937 /**
9263 * RequestError 11938 * RequestError
9264 * 11939 *
9265 * { 11940 * {
9266 * "code": RequestErrorCode 11941 * "code": RequestErrorCode
9267 * "message": String 11942 * "message": String
9268 * "stackTrace": optional String 11943 * "stackTrace": optional String
9269 * } 11944 * }
9270 */ 11945 */
9271 class RequestError implements HasToJson { 11946 class RequestError implements HasToJson {
11947 RequestErrorCode _code;
11948
11949 String _message;
11950
11951 String _stackTrace;
11952
9272 /** 11953 /**
9273 * A code that uniquely identifies the error that occurred. 11954 * A code that uniquely identifies the error that occurred.
9274 */ 11955 */
9275 RequestErrorCode code; 11956 RequestErrorCode get code => _code;
11957
11958 /**
11959 * A code that uniquely identifies the error that occurred.
11960 */
11961 void set code(RequestErrorCode value) {
11962 assert(value != null);
11963 this._code = value;
11964 }
9276 11965
9277 /** 11966 /**
9278 * A short description of the error. 11967 * A short description of the error.
9279 */ 11968 */
9280 String message; 11969 String get message => _message;
11970
11971 /**
11972 * A short description of the error.
11973 */
11974 void set message(String value) {
11975 assert(value != null);
11976 this._message = value;
11977 }
9281 11978
9282 /** 11979 /**
9283 * The stack trace associated with processing the request, used for debugging 11980 * The stack trace associated with processing the request, used for debugging
9284 * the server. 11981 * the server.
9285 */ 11982 */
9286 String stackTrace; 11983 String get stackTrace => _stackTrace;
9287 11984
9288 RequestError(this.code, this.message, {this.stackTrace}); 11985 /**
11986 * The stack trace associated with processing the request, used for debugging
11987 * the server.
11988 */
11989 void set stackTrace(String value) {
11990 this._stackTrace = value;
11991 }
11992
11993 RequestError(RequestErrorCode code, String message, {String stackTrace}) {
11994 this.code = code;
11995 this.message = message;
11996 this.stackTrace = stackTrace;
11997 }
9289 11998
9290 factory RequestError.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 11999 factory RequestError.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
9291 if (json == null) { 12000 if (json == null) {
9292 json = {}; 12001 json = {};
9293 } 12002 }
9294 if (json is Map) { 12003 if (json is Map) {
9295 RequestErrorCode code; 12004 RequestErrorCode code;
9296 if (json.containsKey("code")) { 12005 if (json.containsKey("code")) {
9297 code = new RequestErrorCode.fromJson(jsonDecoder, jsonPath + ".code", js on["code"]); 12006 code = new RequestErrorCode.fromJson(jsonDecoder, jsonPath + ".code", js on["code"]);
9298 } else { 12007 } else {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
9560 * SearchResult 12269 * SearchResult
9561 * 12270 *
9562 * { 12271 * {
9563 * "location": Location 12272 * "location": Location
9564 * "kind": SearchResultKind 12273 * "kind": SearchResultKind
9565 * "isPotential": bool 12274 * "isPotential": bool
9566 * "path": List<Element> 12275 * "path": List<Element>
9567 * } 12276 * }
9568 */ 12277 */
9569 class SearchResult implements HasToJson { 12278 class SearchResult implements HasToJson {
12279 Location _location;
12280
12281 SearchResultKind _kind;
12282
12283 bool _isPotential;
12284
12285 List<Element> _path;
12286
9570 /** 12287 /**
9571 * The location of the code that matched the search criteria. 12288 * The location of the code that matched the search criteria.
9572 */ 12289 */
9573 Location location; 12290 Location get location => _location;
12291
12292 /**
12293 * The location of the code that matched the search criteria.
12294 */
12295 void set location(Location value) {
12296 assert(value != null);
12297 this._location = value;
12298 }
9574 12299
9575 /** 12300 /**
9576 * The kind of element that was found or the kind of reference that was 12301 * The kind of element that was found or the kind of reference that was
9577 * found. 12302 * found.
9578 */ 12303 */
9579 SearchResultKind kind; 12304 SearchResultKind get kind => _kind;
12305
12306 /**
12307 * The kind of element that was found or the kind of reference that was
12308 * found.
12309 */
12310 void set kind(SearchResultKind value) {
12311 assert(value != null);
12312 this._kind = value;
12313 }
9580 12314
9581 /** 12315 /**
9582 * True if the result is a potential match but cannot be confirmed to be a 12316 * True if the result is a potential match but cannot be confirmed to be a
12317 * match. For example, if all references to a method m defined in some class
12318 * were requested, and a reference to a method m from an unknown class were
12319 * found, it would be marked as being a potential match.
12320 */
12321 bool get isPotential => _isPotential;
12322
12323 /**
12324 * True if the result is a potential match but cannot be confirmed to be a
9583 * match. For example, if all references to a method m defined in some class 12325 * match. For example, if all references to a method m defined in some class
9584 * were requested, and a reference to a method m from an unknown class were 12326 * were requested, and a reference to a method m from an unknown class were
9585 * found, it would be marked as being a potential match. 12327 * found, it would be marked as being a potential match.
9586 */ 12328 */
9587 bool isPotential; 12329 void set isPotential(bool value) {
12330 assert(value != null);
12331 this._isPotential = value;
12332 }
9588 12333
9589 /** 12334 /**
9590 * The elements that contain the result, starting with the most immediately 12335 * The elements that contain the result, starting with the most immediately
9591 * enclosing ancestor and ending with the library. 12336 * enclosing ancestor and ending with the library.
9592 */ 12337 */
9593 List<Element> path; 12338 List<Element> get path => _path;
9594 12339
9595 SearchResult(this.location, this.kind, this.isPotential, this.path); 12340 /**
12341 * The elements that contain the result, starting with the most immediately
12342 * enclosing ancestor and ending with the library.
12343 */
12344 void set path(List<Element> value) {
12345 assert(value != null);
12346 this._path = value;
12347 }
12348
12349 SearchResult(Location location, SearchResultKind kind, bool isPotential, List< Element> path) {
12350 this.location = location;
12351 this.kind = kind;
12352 this.isPotential = isPotential;
12353 this.path = path;
12354 }
9596 12355
9597 factory SearchResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 12356 factory SearchResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
9598 if (json == null) { 12357 if (json == null) {
9599 json = {}; 12358 json = {};
9600 } 12359 }
9601 if (json is Map) { 12360 if (json is Map) {
9602 Location location; 12361 Location location;
9603 if (json.containsKey("location")) { 12362 if (json.containsKey("location")) {
9604 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js on["location"]); 12363 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js on["location"]);
9605 } else { 12364 } else {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
9807 * SourceChange 12566 * SourceChange
9808 * 12567 *
9809 * { 12568 * {
9810 * "message": String 12569 * "message": String
9811 * "edits": List<SourceFileEdit> 12570 * "edits": List<SourceFileEdit>
9812 * "linkedEditGroups": List<LinkedEditGroup> 12571 * "linkedEditGroups": List<LinkedEditGroup>
9813 * "selection": optional Position 12572 * "selection": optional Position
9814 * } 12573 * }
9815 */ 12574 */
9816 class SourceChange implements HasToJson { 12575 class SourceChange implements HasToJson {
12576 String _message;
12577
12578 List<SourceFileEdit> _edits;
12579
12580 List<LinkedEditGroup> _linkedEditGroups;
12581
12582 Position _selection;
12583
9817 /** 12584 /**
9818 * A human-readable description of the change to be applied. 12585 * A human-readable description of the change to be applied.
9819 */ 12586 */
9820 String message; 12587 String get message => _message;
12588
12589 /**
12590 * A human-readable description of the change to be applied.
12591 */
12592 void set message(String value) {
12593 assert(value != null);
12594 this._message = value;
12595 }
9821 12596
9822 /** 12597 /**
9823 * A list of the edits used to effect the change, grouped by file. 12598 * A list of the edits used to effect the change, grouped by file.
9824 */ 12599 */
9825 List<SourceFileEdit> edits; 12600 List<SourceFileEdit> get edits => _edits;
12601
12602 /**
12603 * A list of the edits used to effect the change, grouped by file.
12604 */
12605 void set edits(List<SourceFileEdit> value) {
12606 assert(value != null);
12607 this._edits = value;
12608 }
9826 12609
9827 /** 12610 /**
9828 * A list of the linked editing groups used to customize the changes that 12611 * A list of the linked editing groups used to customize the changes that
9829 * were made. 12612 * were made.
9830 */ 12613 */
9831 List<LinkedEditGroup> linkedEditGroups; 12614 List<LinkedEditGroup> get linkedEditGroups => _linkedEditGroups;
12615
12616 /**
12617 * A list of the linked editing groups used to customize the changes that
12618 * were made.
12619 */
12620 void set linkedEditGroups(List<LinkedEditGroup> value) {
12621 assert(value != null);
12622 this._linkedEditGroups = value;
12623 }
9832 12624
9833 /** 12625 /**
9834 * The position that should be selected after the edits have been applied. 12626 * The position that should be selected after the edits have been applied.
9835 */ 12627 */
9836 Position selection; 12628 Position get selection => _selection;
9837 12629
9838 SourceChange(this.message, {this.edits, this.linkedEditGroups, this.selection} ) { 12630 /**
12631 * The position that should be selected after the edits have been applied.
12632 */
12633 void set selection(Position value) {
12634 this._selection = value;
12635 }
12636
12637 SourceChange(String message, {List<SourceFileEdit> edits, List<LinkedEditGroup > linkedEditGroups, Position selection}) {
12638 this.message = message;
9839 if (edits == null) { 12639 if (edits == null) {
9840 edits = <SourceFileEdit>[]; 12640 this.edits = <SourceFileEdit>[];
12641 } else {
12642 this.edits = edits;
9841 } 12643 }
9842 if (linkedEditGroups == null) { 12644 if (linkedEditGroups == null) {
9843 linkedEditGroups = <LinkedEditGroup>[]; 12645 this.linkedEditGroups = <LinkedEditGroup>[];
12646 } else {
12647 this.linkedEditGroups = linkedEditGroups;
9844 } 12648 }
12649 this.selection = selection;
9845 } 12650 }
9846 12651
9847 factory SourceChange.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 12652 factory SourceChange.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
9848 if (json == null) { 12653 if (json == null) {
9849 json = {}; 12654 json = {};
9850 } 12655 }
9851 if (json is Map) { 12656 if (json is Map) {
9852 String message; 12657 String message;
9853 if (json.containsKey("message")) { 12658 if (json.containsKey("message")) {
9854 message = jsonDecoder._decodeString(jsonPath + ".message", json["message "]); 12659 message = jsonDecoder._decodeString(jsonPath + ".message", json["message "]);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
9950 * } 12755 * }
9951 */ 12756 */
9952 class SourceEdit implements HasToJson { 12757 class SourceEdit implements HasToJson {
9953 /** 12758 /**
9954 * Get the result of applying a set of [edits] to the given [code]. Edits are 12759 * Get the result of applying a set of [edits] to the given [code]. Edits are
9955 * applied in the order they appear in [edits]. 12760 * applied in the order they appear in [edits].
9956 */ 12761 */
9957 static String applySequence(String code, Iterable<SourceEdit> edits) => 12762 static String applySequence(String code, Iterable<SourceEdit> edits) =>
9958 _applySequence(code, edits); 12763 _applySequence(code, edits);
9959 12764
12765 int _offset;
12766
12767 int _length;
12768
12769 String _replacement;
12770
12771 String _id;
12772
9960 /** 12773 /**
9961 * The offset of the region to be modified. 12774 * The offset of the region to be modified.
9962 */ 12775 */
9963 int offset; 12776 int get offset => _offset;
12777
12778 /**
12779 * The offset of the region to be modified.
12780 */
12781 void set offset(int value) {
12782 assert(value != null);
12783 this._offset = value;
12784 }
9964 12785
9965 /** 12786 /**
9966 * The length of the region to be modified. 12787 * The length of the region to be modified.
9967 */ 12788 */
9968 int length; 12789 int get length => _length;
12790
12791 /**
12792 * The length of the region to be modified.
12793 */
12794 void set length(int value) {
12795 assert(value != null);
12796 this._length = value;
12797 }
9969 12798
9970 /** 12799 /**
9971 * The code that is to replace the specified region in the original code. 12800 * The code that is to replace the specified region in the original code.
9972 */ 12801 */
9973 String replacement; 12802 String get replacement => _replacement;
12803
12804 /**
12805 * The code that is to replace the specified region in the original code.
12806 */
12807 void set replacement(String value) {
12808 assert(value != null);
12809 this._replacement = value;
12810 }
9974 12811
9975 /** 12812 /**
9976 * An identifier that uniquely identifies this source edit from other edits 12813 * An identifier that uniquely identifies this source edit from other edits
12814 * in the same response. This field is omitted unless a containing structure
12815 * needs to be able to identify the edit for some reason.
12816 *
12817 * For example, some refactoring operations can produce edits that might not
12818 * be appropriate (referred to as potential edits). Such edits will have an
12819 * id so that they can be referenced. Edits in the same response that do not
12820 * need to be referenced will not have an id.
12821 */
12822 String get id => _id;
12823
12824 /**
12825 * An identifier that uniquely identifies this source edit from other edits
9977 * in the same response. This field is omitted unless a containing structure 12826 * in the same response. This field is omitted unless a containing structure
9978 * needs to be able to identify the edit for some reason. 12827 * needs to be able to identify the edit for some reason.
9979 * 12828 *
9980 * For example, some refactoring operations can produce edits that might not 12829 * For example, some refactoring operations can produce edits that might not
9981 * be appropriate (referred to as potential edits). Such edits will have an 12830 * be appropriate (referred to as potential edits). Such edits will have an
9982 * id so that they can be referenced. Edits in the same response that do not 12831 * id so that they can be referenced. Edits in the same response that do not
9983 * need to be referenced will not have an id. 12832 * need to be referenced will not have an id.
9984 */ 12833 */
9985 String id; 12834 void set id(String value) {
12835 this._id = value;
12836 }
9986 12837
9987 SourceEdit(this.offset, this.length, this.replacement, {this.id}); 12838 SourceEdit(int offset, int length, String replacement, {String id}) {
12839 this.offset = offset;
12840 this.length = length;
12841 this.replacement = replacement;
12842 this.id = id;
12843 }
9988 12844
9989 factory SourceEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object j son) { 12845 factory SourceEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object j son) {
9990 if (json == null) { 12846 if (json == null) {
9991 json = {}; 12847 json = {};
9992 } 12848 }
9993 if (json is Map) { 12849 if (json is Map) {
9994 int offset; 12850 int offset;
9995 if (json.containsKey("offset")) { 12851 if (json.containsKey("offset")) {
9996 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); 12852 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]);
9997 } else { 12853 } else {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
10068 /** 12924 /**
10069 * SourceFileEdit 12925 * SourceFileEdit
10070 * 12926 *
10071 * { 12927 * {
10072 * "file": FilePath 12928 * "file": FilePath
10073 * "fileStamp": long 12929 * "fileStamp": long
10074 * "edits": List<SourceEdit> 12930 * "edits": List<SourceEdit>
10075 * } 12931 * }
10076 */ 12932 */
10077 class SourceFileEdit implements HasToJson { 12933 class SourceFileEdit implements HasToJson {
12934 String _file;
12935
12936 int _fileStamp;
12937
12938 List<SourceEdit> _edits;
12939
10078 /** 12940 /**
10079 * The file containing the code to be modified. 12941 * The file containing the code to be modified.
10080 */ 12942 */
10081 String file; 12943 String get file => _file;
12944
12945 /**
12946 * The file containing the code to be modified.
12947 */
12948 void set file(String value) {
12949 assert(value != null);
12950 this._file = value;
12951 }
10082 12952
10083 /** 12953 /**
10084 * The modification stamp of the file at the moment when the change was 12954 * The modification stamp of the file at the moment when the change was
12955 * created, in milliseconds since the "Unix epoch". Will be -1 if the file
12956 * did not exist and should be created. The client may use this field to make
12957 * sure that the file was not changed since then, so it is safe to apply the
12958 * change.
12959 */
12960 int get fileStamp => _fileStamp;
12961
12962 /**
12963 * The modification stamp of the file at the moment when the change was
10085 * created, in milliseconds since the "Unix epoch". Will be -1 if the file 12964 * created, in milliseconds since the "Unix epoch". Will be -1 if the file
10086 * did not exist and should be created. The client may use this field to make 12965 * did not exist and should be created. The client may use this field to make
10087 * sure that the file was not changed since then, so it is safe to apply the 12966 * sure that the file was not changed since then, so it is safe to apply the
10088 * change. 12967 * change.
10089 */ 12968 */
10090 int fileStamp; 12969 void set fileStamp(int value) {
12970 assert(value != null);
12971 this._fileStamp = value;
12972 }
10091 12973
10092 /** 12974 /**
10093 * A list of the edits used to effect the change. 12975 * A list of the edits used to effect the change.
10094 */ 12976 */
10095 List<SourceEdit> edits; 12977 List<SourceEdit> get edits => _edits;
10096 12978
10097 SourceFileEdit(this.file, this.fileStamp, {this.edits}) { 12979 /**
12980 * A list of the edits used to effect the change.
12981 */
12982 void set edits(List<SourceEdit> value) {
12983 assert(value != null);
12984 this._edits = value;
12985 }
12986
12987 SourceFileEdit(String file, int fileStamp, {List<SourceEdit> edits}) {
12988 this.file = file;
12989 this.fileStamp = fileStamp;
10098 if (edits == null) { 12990 if (edits == null) {
10099 edits = <SourceEdit>[]; 12991 this.edits = <SourceEdit>[];
12992 } else {
12993 this.edits = edits;
10100 } 12994 }
10101 } 12995 }
10102 12996
10103 factory SourceFileEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) { 12997 factory SourceFileEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) {
10104 if (json == null) { 12998 if (json == null) {
10105 json = {}; 12999 json = {};
10106 } 13000 }
10107 if (json is Map) { 13001 if (json is Map) {
10108 String file; 13002 String file;
10109 if (json.containsKey("file")) { 13003 if (json.containsKey("file")) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
10178 * "classElement": Element 13072 * "classElement": Element
10179 * "displayName": optional String 13073 * "displayName": optional String
10180 * "memberElement": optional Element 13074 * "memberElement": optional Element
10181 * "superclass": optional int 13075 * "superclass": optional int
10182 * "interfaces": List<int> 13076 * "interfaces": List<int>
10183 * "mixins": List<int> 13077 * "mixins": List<int>
10184 * "subclasses": List<int> 13078 * "subclasses": List<int>
10185 * } 13079 * }
10186 */ 13080 */
10187 class TypeHierarchyItem implements HasToJson { 13081 class TypeHierarchyItem implements HasToJson {
13082 Element _classElement;
13083
13084 String _displayName;
13085
13086 Element _memberElement;
13087
13088 int _superclass;
13089
13090 List<int> _interfaces;
13091
13092 List<int> _mixins;
13093
13094 List<int> _subclasses;
13095
10188 /** 13096 /**
10189 * The class element represented by this item. 13097 * The class element represented by this item.
10190 */ 13098 */
10191 Element classElement; 13099 Element get classElement => _classElement;
13100
13101 /**
13102 * The class element represented by this item.
13103 */
13104 void set classElement(Element value) {
13105 assert(value != null);
13106 this._classElement = value;
13107 }
10192 13108
10193 /** 13109 /**
10194 * The name to be displayed for the class. This field will be omitted if the 13110 * The name to be displayed for the class. This field will be omitted if the
13111 * display name is the same as the name of the element. The display name is
13112 * different if there is additional type information to be displayed, such as
13113 * type arguments.
13114 */
13115 String get displayName => _displayName;
13116
13117 /**
13118 * The name to be displayed for the class. This field will be omitted if the
10195 * display name is the same as the name of the element. The display name is 13119 * display name is the same as the name of the element. The display name is
10196 * different if there is additional type information to be displayed, such as 13120 * different if there is additional type information to be displayed, such as
10197 * type arguments. 13121 * type arguments.
10198 */ 13122 */
10199 String displayName; 13123 void set displayName(String value) {
13124 this._displayName = value;
13125 }
10200 13126
10201 /** 13127 /**
10202 * The member in the class corresponding to the member on which the hierarchy 13128 * The member in the class corresponding to the member on which the hierarchy
13129 * was requested. This field will be omitted if the hierarchy was not
13130 * requested for a member or if the class does not have a corresponding
13131 * member.
13132 */
13133 Element get memberElement => _memberElement;
13134
13135 /**
13136 * The member in the class corresponding to the member on which the hierarchy
10203 * was requested. This field will be omitted if the hierarchy was not 13137 * was requested. This field will be omitted if the hierarchy was not
10204 * requested for a member or if the class does not have a corresponding 13138 * requested for a member or if the class does not have a corresponding
10205 * member. 13139 * member.
10206 */ 13140 */
10207 Element memberElement; 13141 void set memberElement(Element value) {
13142 this._memberElement = value;
13143 }
10208 13144
10209 /** 13145 /**
10210 * The index of the item representing the superclass of this class. This 13146 * The index of the item representing the superclass of this class. This
10211 * field will be omitted if this item represents the class Object. 13147 * field will be omitted if this item represents the class Object.
10212 */ 13148 */
10213 int superclass; 13149 int get superclass => _superclass;
13150
13151 /**
13152 * The index of the item representing the superclass of this class. This
13153 * field will be omitted if this item represents the class Object.
13154 */
13155 void set superclass(int value) {
13156 this._superclass = value;
13157 }
10214 13158
10215 /** 13159 /**
10216 * The indexes of the items representing the interfaces implemented by this 13160 * The indexes of the items representing the interfaces implemented by this
10217 * class. The list will be empty if there are no implemented interfaces. 13161 * class. The list will be empty if there are no implemented interfaces.
10218 */ 13162 */
10219 List<int> interfaces; 13163 List<int> get interfaces => _interfaces;
13164
13165 /**
13166 * The indexes of the items representing the interfaces implemented by this
13167 * class. The list will be empty if there are no implemented interfaces.
13168 */
13169 void set interfaces(List<int> value) {
13170 assert(value != null);
13171 this._interfaces = value;
13172 }
10220 13173
10221 /** 13174 /**
10222 * The indexes of the items representing the mixins referenced by this class. 13175 * The indexes of the items representing the mixins referenced by this class.
10223 * The list will be empty if there are no classes mixed in to this class. 13176 * The list will be empty if there are no classes mixed in to this class.
10224 */ 13177 */
10225 List<int> mixins; 13178 List<int> get mixins => _mixins;
13179
13180 /**
13181 * The indexes of the items representing the mixins referenced by this class.
13182 * The list will be empty if there are no classes mixed in to this class.
13183 */
13184 void set mixins(List<int> value) {
13185 assert(value != null);
13186 this._mixins = value;
13187 }
10226 13188
10227 /** 13189 /**
10228 * The indexes of the items representing the subtypes of this class. The list 13190 * The indexes of the items representing the subtypes of this class. The list
10229 * will be empty if there are no subtypes or if this item represents a 13191 * will be empty if there are no subtypes or if this item represents a
10230 * supertype of the pivot type. 13192 * supertype of the pivot type.
10231 */ 13193 */
10232 List<int> subclasses; 13194 List<int> get subclasses => _subclasses;
10233 13195
10234 TypeHierarchyItem(this.classElement, {this.displayName, this.memberElement, th is.superclass, this.interfaces, this.mixins, this.subclasses}) { 13196 /**
13197 * The indexes of the items representing the subtypes of this class. The list
13198 * will be empty if there are no subtypes or if this item represents a
13199 * supertype of the pivot type.
13200 */
13201 void set subclasses(List<int> value) {
13202 assert(value != null);
13203 this._subclasses = value;
13204 }
13205
13206 TypeHierarchyItem(Element classElement, {String displayName, Element memberEle ment, int superclass, List<int> interfaces, List<int> mixins, List<int> subclass es}) {
13207 this.classElement = classElement;
13208 this.displayName = displayName;
13209 this.memberElement = memberElement;
13210 this.superclass = superclass;
10235 if (interfaces == null) { 13211 if (interfaces == null) {
10236 interfaces = <int>[]; 13212 this.interfaces = <int>[];
13213 } else {
13214 this.interfaces = interfaces;
10237 } 13215 }
10238 if (mixins == null) { 13216 if (mixins == null) {
10239 mixins = <int>[]; 13217 this.mixins = <int>[];
13218 } else {
13219 this.mixins = mixins;
10240 } 13220 }
10241 if (subclasses == null) { 13221 if (subclasses == null) {
10242 subclasses = <int>[]; 13222 this.subclasses = <int>[];
13223 } else {
13224 this.subclasses = subclasses;
10243 } 13225 }
10244 } 13226 }
10245 13227
10246 factory TypeHierarchyItem.fromJson(JsonDecoder jsonDecoder, String jsonPath, O bject json) { 13228 factory TypeHierarchyItem.fromJson(JsonDecoder jsonDecoder, String jsonPath, O bject json) {
10247 if (json == null) { 13229 if (json == null) {
10248 json = {}; 13230 json = {};
10249 } 13231 }
10250 if (json is Map) { 13232 if (json is Map) {
10251 Element classElement; 13233 Element classElement;
10252 if (json.containsKey("classElement")) { 13234 if (json.containsKey("classElement")) {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
10410 /** 13392 /**
10411 * extractLocalVariable feedback 13393 * extractLocalVariable feedback
10412 * 13394 *
10413 * { 13395 * {
10414 * "names": List<String> 13396 * "names": List<String>
10415 * "offsets": List<int> 13397 * "offsets": List<int>
10416 * "lengths": List<int> 13398 * "lengths": List<int>
10417 * } 13399 * }
10418 */ 13400 */
10419 class ExtractLocalVariableFeedback extends RefactoringFeedback implements HasToJ son { 13401 class ExtractLocalVariableFeedback extends RefactoringFeedback implements HasToJ son {
13402 List<String> _names;
13403
13404 List<int> _offsets;
13405
13406 List<int> _lengths;
13407
10420 /** 13408 /**
10421 * The proposed names for the local variable. 13409 * The proposed names for the local variable.
10422 */ 13410 */
10423 List<String> names; 13411 List<String> get names => _names;
13412
13413 /**
13414 * The proposed names for the local variable.
13415 */
13416 void set names(List<String> value) {
13417 assert(value != null);
13418 this._names = value;
13419 }
10424 13420
10425 /** 13421 /**
10426 * The offsets of the expressions that would be replaced by a reference to 13422 * The offsets of the expressions that would be replaced by a reference to
10427 * the variable. 13423 * the variable.
10428 */ 13424 */
10429 List<int> offsets; 13425 List<int> get offsets => _offsets;
13426
13427 /**
13428 * The offsets of the expressions that would be replaced by a reference to
13429 * the variable.
13430 */
13431 void set offsets(List<int> value) {
13432 assert(value != null);
13433 this._offsets = value;
13434 }
10430 13435
10431 /** 13436 /**
10432 * The lengths of the expressions that would be replaced by a reference to 13437 * The lengths of the expressions that would be replaced by a reference to
13438 * the variable. The lengths correspond to the offsets. In other words, for a
13439 * given expression, if the offset of that expression is offsets[i], then the
13440 * length of that expression is lengths[i].
13441 */
13442 List<int> get lengths => _lengths;
13443
13444 /**
13445 * The lengths of the expressions that would be replaced by a reference to
10433 * the variable. The lengths correspond to the offsets. In other words, for a 13446 * the variable. The lengths correspond to the offsets. In other words, for a
10434 * given expression, if the offset of that expression is offsets[i], then the 13447 * given expression, if the offset of that expression is offsets[i], then the
10435 * length of that expression is lengths[i]. 13448 * length of that expression is lengths[i].
10436 */ 13449 */
10437 List<int> lengths; 13450 void set lengths(List<int> value) {
13451 assert(value != null);
13452 this._lengths = value;
13453 }
10438 13454
10439 ExtractLocalVariableFeedback(this.names, this.offsets, this.lengths); 13455 ExtractLocalVariableFeedback(List<String> names, List<int> offsets, List<int> lengths) {
13456 this.names = names;
13457 this.offsets = offsets;
13458 this.lengths = lengths;
13459 }
10440 13460
10441 factory ExtractLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 13461 factory ExtractLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
10442 if (json == null) { 13462 if (json == null) {
10443 json = {}; 13463 json = {};
10444 } 13464 }
10445 if (json is Map) { 13465 if (json is Map) {
10446 List<String> names; 13466 List<String> names;
10447 if (json.containsKey("names")) { 13467 if (json.containsKey("names")) {
10448 names = jsonDecoder._decodeList(jsonPath + ".names", json["names"], json Decoder._decodeString); 13468 names = jsonDecoder._decodeList(jsonPath + ".names", json["names"], json Decoder._decodeString);
10449 } else { 13469 } else {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
10500 13520
10501 /** 13521 /**
10502 * extractLocalVariable options 13522 * extractLocalVariable options
10503 * 13523 *
10504 * { 13524 * {
10505 * "name": String 13525 * "name": String
10506 * "extractAll": bool 13526 * "extractAll": bool
10507 * } 13527 * }
10508 */ 13528 */
10509 class ExtractLocalVariableOptions extends RefactoringOptions implements HasToJso n { 13529 class ExtractLocalVariableOptions extends RefactoringOptions implements HasToJso n {
13530 String _name;
13531
13532 bool _extractAll;
13533
10510 /** 13534 /**
10511 * The name that the local variable should be given. 13535 * The name that the local variable should be given.
10512 */ 13536 */
10513 String name; 13537 String get name => _name;
13538
13539 /**
13540 * The name that the local variable should be given.
13541 */
13542 void set name(String value) {
13543 assert(value != null);
13544 this._name = value;
13545 }
10514 13546
10515 /** 13547 /**
10516 * True if all occurrences of the expression within the scope in which the 13548 * True if all occurrences of the expression within the scope in which the
13549 * variable will be defined should be replaced by a reference to the local
13550 * variable. The expression used to initiate the refactoring will always be
13551 * replaced.
13552 */
13553 bool get extractAll => _extractAll;
13554
13555 /**
13556 * True if all occurrences of the expression within the scope in which the
10517 * variable will be defined should be replaced by a reference to the local 13557 * variable will be defined should be replaced by a reference to the local
10518 * variable. The expression used to initiate the refactoring will always be 13558 * variable. The expression used to initiate the refactoring will always be
10519 * replaced. 13559 * replaced.
10520 */ 13560 */
10521 bool extractAll; 13561 void set extractAll(bool value) {
13562 assert(value != null);
13563 this._extractAll = value;
13564 }
10522 13565
10523 ExtractLocalVariableOptions(this.name, this.extractAll); 13566 ExtractLocalVariableOptions(String name, bool extractAll) {
13567 this.name = name;
13568 this.extractAll = extractAll;
13569 }
10524 13570
10525 factory ExtractLocalVariableOptions.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) { 13571 factory ExtractLocalVariableOptions.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) {
10526 if (json == null) { 13572 if (json == null) {
10527 json = {}; 13573 json = {};
10528 } 13574 }
10529 if (json is Map) { 13575 if (json is Map) {
10530 String name; 13576 String name;
10531 if (json.containsKey("name")) { 13577 if (json.containsKey("name")) {
10532 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); 13578 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]);
10533 } else { 13579 } else {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
10586 * "length": int 13632 * "length": int
10587 * "returnType": String 13633 * "returnType": String
10588 * "names": List<String> 13634 * "names": List<String>
10589 * "canCreateGetter": bool 13635 * "canCreateGetter": bool
10590 * "parameters": List<RefactoringMethodParameter> 13636 * "parameters": List<RefactoringMethodParameter>
10591 * "offsets": List<int> 13637 * "offsets": List<int>
10592 * "lengths": List<int> 13638 * "lengths": List<int>
10593 * } 13639 * }
10594 */ 13640 */
10595 class ExtractMethodFeedback extends RefactoringFeedback implements HasToJson { 13641 class ExtractMethodFeedback extends RefactoringFeedback implements HasToJson {
13642 int _offset;
13643
13644 int _length;
13645
13646 String _returnType;
13647
13648 List<String> _names;
13649
13650 bool _canCreateGetter;
13651
13652 List<RefactoringMethodParameter> _parameters;
13653
13654 List<int> _offsets;
13655
13656 List<int> _lengths;
13657
10596 /** 13658 /**
10597 * The offset to the beginning of the expression or statements that will be 13659 * The offset to the beginning of the expression or statements that will be
10598 * extracted. 13660 * extracted.
10599 */ 13661 */
10600 int offset; 13662 int get offset => _offset;
13663
13664 /**
13665 * The offset to the beginning of the expression or statements that will be
13666 * extracted.
13667 */
13668 void set offset(int value) {
13669 assert(value != null);
13670 this._offset = value;
13671 }
10601 13672
10602 /** 13673 /**
10603 * The length of the expression or statements that will be extracted. 13674 * The length of the expression or statements that will be extracted.
10604 */ 13675 */
10605 int length; 13676 int get length => _length;
13677
13678 /**
13679 * The length of the expression or statements that will be extracted.
13680 */
13681 void set length(int value) {
13682 assert(value != null);
13683 this._length = value;
13684 }
10606 13685
10607 /** 13686 /**
10608 * The proposed return type for the method. If the returned element does not 13687 * The proposed return type for the method. If the returned element does not
10609 * have a declared return type, this field will contain an empty string. 13688 * have a declared return type, this field will contain an empty string.
10610 */ 13689 */
10611 String returnType; 13690 String get returnType => _returnType;
13691
13692 /**
13693 * The proposed return type for the method. If the returned element does not
13694 * have a declared return type, this field will contain an empty string.
13695 */
13696 void set returnType(String value) {
13697 assert(value != null);
13698 this._returnType = value;
13699 }
10612 13700
10613 /** 13701 /**
10614 * The proposed names for the method. 13702 * The proposed names for the method.
10615 */ 13703 */
10616 List<String> names; 13704 List<String> get names => _names;
13705
13706 /**
13707 * The proposed names for the method.
13708 */
13709 void set names(List<String> value) {
13710 assert(value != null);
13711 this._names = value;
13712 }
10617 13713
10618 /** 13714 /**
10619 * True if a getter could be created rather than a method. 13715 * True if a getter could be created rather than a method.
10620 */ 13716 */
10621 bool canCreateGetter; 13717 bool get canCreateGetter => _canCreateGetter;
13718
13719 /**
13720 * True if a getter could be created rather than a method.
13721 */
13722 void set canCreateGetter(bool value) {
13723 assert(value != null);
13724 this._canCreateGetter = value;
13725 }
10622 13726
10623 /** 13727 /**
10624 * The proposed parameters for the method. 13728 * The proposed parameters for the method.
10625 */ 13729 */
10626 List<RefactoringMethodParameter> parameters; 13730 List<RefactoringMethodParameter> get parameters => _parameters;
13731
13732 /**
13733 * The proposed parameters for the method.
13734 */
13735 void set parameters(List<RefactoringMethodParameter> value) {
13736 assert(value != null);
13737 this._parameters = value;
13738 }
10627 13739
10628 /** 13740 /**
10629 * The offsets of the expressions or statements that would be replaced by an 13741 * The offsets of the expressions or statements that would be replaced by an
10630 * invocation of the method. 13742 * invocation of the method.
10631 */ 13743 */
10632 List<int> offsets; 13744 List<int> get offsets => _offsets;
13745
13746 /**
13747 * The offsets of the expressions or statements that would be replaced by an
13748 * invocation of the method.
13749 */
13750 void set offsets(List<int> value) {
13751 assert(value != null);
13752 this._offsets = value;
13753 }
10633 13754
10634 /** 13755 /**
10635 * The lengths of the expressions or statements that would be replaced by an 13756 * The lengths of the expressions or statements that would be replaced by an
13757 * invocation of the method. The lengths correspond to the offsets. In other
13758 * words, for a given expression (or block of statements), if the offset of
13759 * that expression is offsets[i], then the length of that expression is
13760 * lengths[i].
13761 */
13762 List<int> get lengths => _lengths;
13763
13764 /**
13765 * The lengths of the expressions or statements that would be replaced by an
10636 * invocation of the method. The lengths correspond to the offsets. In other 13766 * invocation of the method. The lengths correspond to the offsets. In other
10637 * words, for a given expression (or block of statements), if the offset of 13767 * words, for a given expression (or block of statements), if the offset of
10638 * that expression is offsets[i], then the length of that expression is 13768 * that expression is offsets[i], then the length of that expression is
10639 * lengths[i]. 13769 * lengths[i].
10640 */ 13770 */
10641 List<int> lengths; 13771 void set lengths(List<int> value) {
13772 assert(value != null);
13773 this._lengths = value;
13774 }
10642 13775
10643 ExtractMethodFeedback(this.offset, this.length, this.returnType, this.names, t his.canCreateGetter, this.parameters, this.offsets, this.lengths); 13776 ExtractMethodFeedback(int offset, int length, String returnType, List<String> names, bool canCreateGetter, List<RefactoringMethodParameter> parameters, List<i nt> offsets, List<int> lengths) {
13777 this.offset = offset;
13778 this.length = length;
13779 this.returnType = returnType;
13780 this.names = names;
13781 this.canCreateGetter = canCreateGetter;
13782 this.parameters = parameters;
13783 this.offsets = offsets;
13784 this.lengths = lengths;
13785 }
10644 13786
10645 factory ExtractMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) { 13787 factory ExtractMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
10646 if (json == null) { 13788 if (json == null) {
10647 json = {}; 13789 json = {};
10648 } 13790 }
10649 if (json is Map) { 13791 if (json is Map) {
10650 int offset; 13792 int offset;
10651 if (json.containsKey("offset")) { 13793 if (json.containsKey("offset")) {
10652 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); 13794 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]);
10653 } else { 13795 } else {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
10752 * 13894 *
10753 * { 13895 * {
10754 * "returnType": String 13896 * "returnType": String
10755 * "createGetter": bool 13897 * "createGetter": bool
10756 * "name": String 13898 * "name": String
10757 * "parameters": List<RefactoringMethodParameter> 13899 * "parameters": List<RefactoringMethodParameter>
10758 * "extractAll": bool 13900 * "extractAll": bool
10759 * } 13901 * }
10760 */ 13902 */
10761 class ExtractMethodOptions extends RefactoringOptions implements HasToJson { 13903 class ExtractMethodOptions extends RefactoringOptions implements HasToJson {
13904 String _returnType;
13905
13906 bool _createGetter;
13907
13908 String _name;
13909
13910 List<RefactoringMethodParameter> _parameters;
13911
13912 bool _extractAll;
13913
10762 /** 13914 /**
10763 * The return type that should be defined for the method. 13915 * The return type that should be defined for the method.
10764 */ 13916 */
10765 String returnType; 13917 String get returnType => _returnType;
13918
13919 /**
13920 * The return type that should be defined for the method.
13921 */
13922 void set returnType(String value) {
13923 assert(value != null);
13924 this._returnType = value;
13925 }
10766 13926
10767 /** 13927 /**
10768 * True if a getter should be created rather than a method. It is an error if 13928 * True if a getter should be created rather than a method. It is an error if
10769 * this field is true and the list of parameters is non-empty. 13929 * this field is true and the list of parameters is non-empty.
10770 */ 13930 */
10771 bool createGetter; 13931 bool get createGetter => _createGetter;
13932
13933 /**
13934 * True if a getter should be created rather than a method. It is an error if
13935 * this field is true and the list of parameters is non-empty.
13936 */
13937 void set createGetter(bool value) {
13938 assert(value != null);
13939 this._createGetter = value;
13940 }
10772 13941
10773 /** 13942 /**
10774 * The name that the method should be given. 13943 * The name that the method should be given.
10775 */ 13944 */
10776 String name; 13945 String get name => _name;
13946
13947 /**
13948 * The name that the method should be given.
13949 */
13950 void set name(String value) {
13951 assert(value != null);
13952 this._name = value;
13953 }
10777 13954
10778 /** 13955 /**
10779 * The parameters that should be defined for the method. 13956 * The parameters that should be defined for the method.
13957 *
13958 * It is an error if a REQUIRED or NAMED parameter follows a POSITIONAL
13959 * parameter. It is an error if a REQUIRED or POSITIONAL parameter follows a
13960 * NAMED parameter.
13961 *
13962 * - To change the order and/or update proposed parameters, add parameters
13963 * with the same identifiers as proposed.
13964 * - To add new parameters, omit their identifier.
13965 * - To remove some parameters, omit them in this list.
13966 */
13967 List<RefactoringMethodParameter> get parameters => _parameters;
13968
13969 /**
13970 * The parameters that should be defined for the method.
10780 * 13971 *
10781 * It is an error if a REQUIRED or NAMED parameter follows a POSITIONAL 13972 * It is an error if a REQUIRED or NAMED parameter follows a POSITIONAL
10782 * parameter. It is an error if a REQUIRED or POSITIONAL parameter follows a 13973 * parameter. It is an error if a REQUIRED or POSITIONAL parameter follows a
10783 * NAMED parameter. 13974 * NAMED parameter.
10784 * 13975 *
10785 * - To change the order and/or update proposed parameters, add parameters 13976 * - To change the order and/or update proposed parameters, add parameters
10786 * with the same identifiers as proposed. 13977 * with the same identifiers as proposed.
10787 * - To add new parameters, omit their identifier. 13978 * - To add new parameters, omit their identifier.
10788 * - To remove some parameters, omit them in this list. 13979 * - To remove some parameters, omit them in this list.
10789 */ 13980 */
10790 List<RefactoringMethodParameter> parameters; 13981 void set parameters(List<RefactoringMethodParameter> value) {
13982 assert(value != null);
13983 this._parameters = value;
13984 }
10791 13985
10792 /** 13986 /**
10793 * True if all occurrences of the expression or statements should be replaced 13987 * True if all occurrences of the expression or statements should be replaced
10794 * by an invocation of the method. The expression or statements used to 13988 * by an invocation of the method. The expression or statements used to
10795 * initiate the refactoring will always be replaced. 13989 * initiate the refactoring will always be replaced.
10796 */ 13990 */
10797 bool extractAll; 13991 bool get extractAll => _extractAll;
10798 13992
10799 ExtractMethodOptions(this.returnType, this.createGetter, this.name, this.param eters, this.extractAll); 13993 /**
13994 * True if all occurrences of the expression or statements should be replaced
13995 * by an invocation of the method. The expression or statements used to
13996 * initiate the refactoring will always be replaced.
13997 */
13998 void set extractAll(bool value) {
13999 assert(value != null);
14000 this._extractAll = value;
14001 }
14002
14003 ExtractMethodOptions(String returnType, bool createGetter, String name, List<R efactoringMethodParameter> parameters, bool extractAll) {
14004 this.returnType = returnType;
14005 this.createGetter = createGetter;
14006 this.name = name;
14007 this.parameters = parameters;
14008 this.extractAll = extractAll;
14009 }
10800 14010
10801 factory ExtractMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) { 14011 factory ExtractMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) {
10802 if (json == null) { 14012 if (json == null) {
10803 json = {}; 14013 json = {};
10804 } 14014 }
10805 if (json is Map) { 14015 if (json is Map) {
10806 String returnType; 14016 String returnType;
10807 if (json.containsKey("returnType")) { 14017 if (json.containsKey("returnType")) {
10808 returnType = jsonDecoder._decodeString(jsonPath + ".returnType", json["r eturnType"]); 14018 returnType = jsonDecoder._decodeString(jsonPath + ".returnType", json["r eturnType"]);
10809 } else { 14019 } else {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
10883 14093
10884 /** 14094 /**
10885 * inlineLocalVariable feedback 14095 * inlineLocalVariable feedback
10886 * 14096 *
10887 * { 14097 * {
10888 * "name": String 14098 * "name": String
10889 * "occurrences": int 14099 * "occurrences": int
10890 * } 14100 * }
10891 */ 14101 */
10892 class InlineLocalVariableFeedback extends RefactoringFeedback implements HasToJs on { 14102 class InlineLocalVariableFeedback extends RefactoringFeedback implements HasToJs on {
14103 String _name;
14104
14105 int _occurrences;
14106
10893 /** 14107 /**
10894 * The name of the variable being inlined. 14108 * The name of the variable being inlined.
10895 */ 14109 */
10896 String name; 14110 String get name => _name;
14111
14112 /**
14113 * The name of the variable being inlined.
14114 */
14115 void set name(String value) {
14116 assert(value != null);
14117 this._name = value;
14118 }
10897 14119
10898 /** 14120 /**
10899 * The number of times the variable occurs. 14121 * The number of times the variable occurs.
10900 */ 14122 */
10901 int occurrences; 14123 int get occurrences => _occurrences;
10902 14124
10903 InlineLocalVariableFeedback(this.name, this.occurrences); 14125 /**
14126 * The number of times the variable occurs.
14127 */
14128 void set occurrences(int value) {
14129 assert(value != null);
14130 this._occurrences = value;
14131 }
14132
14133 InlineLocalVariableFeedback(String name, int occurrences) {
14134 this.name = name;
14135 this.occurrences = occurrences;
14136 }
10904 14137
10905 factory InlineLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) { 14138 factory InlineLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String j sonPath, Object json) {
10906 if (json == null) { 14139 if (json == null) {
10907 json = {}; 14140 json = {};
10908 } 14141 }
10909 if (json is Map) { 14142 if (json is Map) {
10910 String name; 14143 String name;
10911 if (json.containsKey("name")) { 14144 if (json.containsKey("name")) {
10912 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); 14145 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]);
10913 } else { 14146 } else {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
10973 /** 14206 /**
10974 * inlineMethod feedback 14207 * inlineMethod feedback
10975 * 14208 *
10976 * { 14209 * {
10977 * "className": optional String 14210 * "className": optional String
10978 * "methodName": String 14211 * "methodName": String
10979 * "isDeclaration": bool 14212 * "isDeclaration": bool
10980 * } 14213 * }
10981 */ 14214 */
10982 class InlineMethodFeedback extends RefactoringFeedback implements HasToJson { 14215 class InlineMethodFeedback extends RefactoringFeedback implements HasToJson {
14216 String _className;
14217
14218 String _methodName;
14219
14220 bool _isDeclaration;
14221
10983 /** 14222 /**
10984 * The name of the class enclosing the method being inlined. If not a class 14223 * The name of the class enclosing the method being inlined. If not a class
10985 * member is being inlined, this field will be absent. 14224 * member is being inlined, this field will be absent.
10986 */ 14225 */
10987 String className; 14226 String get className => _className;
14227
14228 /**
14229 * The name of the class enclosing the method being inlined. If not a class
14230 * member is being inlined, this field will be absent.
14231 */
14232 void set className(String value) {
14233 this._className = value;
14234 }
10988 14235
10989 /** 14236 /**
10990 * The name of the method (or function) being inlined. 14237 * The name of the method (or function) being inlined.
10991 */ 14238 */
10992 String methodName; 14239 String get methodName => _methodName;
14240
14241 /**
14242 * The name of the method (or function) being inlined.
14243 */
14244 void set methodName(String value) {
14245 assert(value != null);
14246 this._methodName = value;
14247 }
10993 14248
10994 /** 14249 /**
10995 * True if the declaration of the method is selected. So all references 14250 * True if the declaration of the method is selected. So all references
10996 * should be inlined. 14251 * should be inlined.
10997 */ 14252 */
10998 bool isDeclaration; 14253 bool get isDeclaration => _isDeclaration;
10999 14254
11000 InlineMethodFeedback(this.methodName, this.isDeclaration, {this.className}); 14255 /**
14256 * True if the declaration of the method is selected. So all references
14257 * should be inlined.
14258 */
14259 void set isDeclaration(bool value) {
14260 assert(value != null);
14261 this._isDeclaration = value;
14262 }
14263
14264 InlineMethodFeedback(String methodName, bool isDeclaration, {String className} ) {
14265 this.className = className;
14266 this.methodName = methodName;
14267 this.isDeclaration = isDeclaration;
14268 }
11001 14269
11002 factory InlineMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) { 14270 factory InlineMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath , Object json) {
11003 if (json == null) { 14271 if (json == null) {
11004 json = {}; 14272 json = {};
11005 } 14273 }
11006 if (json is Map) { 14274 if (json is Map) {
11007 String className; 14275 String className;
11008 if (json.containsKey("className")) { 14276 if (json.containsKey("className")) {
11009 className = jsonDecoder._decodeString(jsonPath + ".className", json["cla ssName"]); 14277 className = jsonDecoder._decodeString(jsonPath + ".className", json["cla ssName"]);
11010 } 14278 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
11061 14329
11062 /** 14330 /**
11063 * inlineMethod options 14331 * inlineMethod options
11064 * 14332 *
11065 * { 14333 * {
11066 * "deleteSource": bool 14334 * "deleteSource": bool
11067 * "inlineAll": bool 14335 * "inlineAll": bool
11068 * } 14336 * }
11069 */ 14337 */
11070 class InlineMethodOptions extends RefactoringOptions implements HasToJson { 14338 class InlineMethodOptions extends RefactoringOptions implements HasToJson {
14339 bool _deleteSource;
14340
14341 bool _inlineAll;
14342
11071 /** 14343 /**
11072 * True if the method being inlined should be removed. It is an error if this 14344 * True if the method being inlined should be removed. It is an error if this
11073 * field is true and inlineAll is false. 14345 * field is true and inlineAll is false.
11074 */ 14346 */
11075 bool deleteSource; 14347 bool get deleteSource => _deleteSource;
14348
14349 /**
14350 * True if the method being inlined should be removed. It is an error if this
14351 * field is true and inlineAll is false.
14352 */
14353 void set deleteSource(bool value) {
14354 assert(value != null);
14355 this._deleteSource = value;
14356 }
11076 14357
11077 /** 14358 /**
11078 * True if all invocations of the method should be inlined, or false if only 14359 * True if all invocations of the method should be inlined, or false if only
11079 * the invocation site used to create this refactoring should be inlined. 14360 * the invocation site used to create this refactoring should be inlined.
11080 */ 14361 */
11081 bool inlineAll; 14362 bool get inlineAll => _inlineAll;
11082 14363
11083 InlineMethodOptions(this.deleteSource, this.inlineAll); 14364 /**
14365 * True if all invocations of the method should be inlined, or false if only
14366 * the invocation site used to create this refactoring should be inlined.
14367 */
14368 void set inlineAll(bool value) {
14369 assert(value != null);
14370 this._inlineAll = value;
14371 }
14372
14373 InlineMethodOptions(bool deleteSource, bool inlineAll) {
14374 this.deleteSource = deleteSource;
14375 this.inlineAll = inlineAll;
14376 }
11084 14377
11085 factory InlineMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 14378 factory InlineMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
11086 if (json == null) { 14379 if (json == null) {
11087 json = {}; 14380 json = {};
11088 } 14381 }
11089 if (json is Map) { 14382 if (json is Map) {
11090 bool deleteSource; 14383 bool deleteSource;
11091 if (json.containsKey("deleteSource")) { 14384 if (json.containsKey("deleteSource")) {
11092 deleteSource = jsonDecoder._decodeBool(jsonPath + ".deleteSource", json[ "deleteSource"]); 14385 deleteSource = jsonDecoder._decodeBool(jsonPath + ".deleteSource", json[ "deleteSource"]);
11093 } else { 14386 } else {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
11156 } 14449 }
11157 14450
11158 /** 14451 /**
11159 * moveFile options 14452 * moveFile options
11160 * 14453 *
11161 * { 14454 * {
11162 * "newFile": FilePath 14455 * "newFile": FilePath
11163 * } 14456 * }
11164 */ 14457 */
11165 class MoveFileOptions extends RefactoringOptions implements HasToJson { 14458 class MoveFileOptions extends RefactoringOptions implements HasToJson {
14459 String _newFile;
14460
11166 /** 14461 /**
11167 * The new file path to which the given file is being moved. 14462 * The new file path to which the given file is being moved.
11168 */ 14463 */
11169 String newFile; 14464 String get newFile => _newFile;
11170 14465
11171 MoveFileOptions(this.newFile); 14466 /**
14467 * The new file path to which the given file is being moved.
14468 */
14469 void set newFile(String value) {
14470 assert(value != null);
14471 this._newFile = value;
14472 }
14473
14474 MoveFileOptions(String newFile) {
14475 this.newFile = newFile;
14476 }
11172 14477
11173 factory MoveFileOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) { 14478 factory MoveFileOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) {
11174 if (json == null) { 14479 if (json == null) {
11175 json = {}; 14480 json = {};
11176 } 14481 }
11177 if (json is Map) { 14482 if (json is Map) {
11178 String newFile; 14483 String newFile;
11179 if (json.containsKey("newFile")) { 14484 if (json.containsKey("newFile")) {
11180 newFile = jsonDecoder._decodeString(jsonPath + ".newFile", json["newFile "]); 14485 newFile = jsonDecoder._decodeString(jsonPath + ".newFile", json["newFile "]);
11181 } else { 14486 } else {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
11221 * rename feedback 14526 * rename feedback
11222 * 14527 *
11223 * { 14528 * {
11224 * "offset": int 14529 * "offset": int
11225 * "length": int 14530 * "length": int
11226 * "elementKindName": String 14531 * "elementKindName": String
11227 * "oldName": String 14532 * "oldName": String
11228 * } 14533 * }
11229 */ 14534 */
11230 class RenameFeedback extends RefactoringFeedback implements HasToJson { 14535 class RenameFeedback extends RefactoringFeedback implements HasToJson {
14536 int _offset;
14537
14538 int _length;
14539
14540 String _elementKindName;
14541
14542 String _oldName;
14543
11231 /** 14544 /**
11232 * The offset to the beginning of the name selected to be renamed. 14545 * The offset to the beginning of the name selected to be renamed.
11233 */ 14546 */
11234 int offset; 14547 int get offset => _offset;
14548
14549 /**
14550 * The offset to the beginning of the name selected to be renamed.
14551 */
14552 void set offset(int value) {
14553 assert(value != null);
14554 this._offset = value;
14555 }
11235 14556
11236 /** 14557 /**
11237 * The length of the name selected to be renamed. 14558 * The length of the name selected to be renamed.
11238 */ 14559 */
11239 int length; 14560 int get length => _length;
14561
14562 /**
14563 * The length of the name selected to be renamed.
14564 */
14565 void set length(int value) {
14566 assert(value != null);
14567 this._length = value;
14568 }
11240 14569
11241 /** 14570 /**
11242 * The human-readable description of the kind of element being renamed (such 14571 * The human-readable description of the kind of element being renamed (such
11243 * as “class” or “function type alias”). 14572 * as “class” or “function type alias”).
11244 */ 14573 */
11245 String elementKindName; 14574 String get elementKindName => _elementKindName;
14575
14576 /**
14577 * The human-readable description of the kind of element being renamed (such
14578 * as “class” or “function type alias”).
14579 */
14580 void set elementKindName(String value) {
14581 assert(value != null);
14582 this._elementKindName = value;
14583 }
11246 14584
11247 /** 14585 /**
11248 * The old name of the element before the refactoring. 14586 * The old name of the element before the refactoring.
11249 */ 14587 */
11250 String oldName; 14588 String get oldName => _oldName;
11251 14589
11252 RenameFeedback(this.offset, this.length, this.elementKindName, this.oldName); 14590 /**
14591 * The old name of the element before the refactoring.
14592 */
14593 void set oldName(String value) {
14594 assert(value != null);
14595 this._oldName = value;
14596 }
14597
14598 RenameFeedback(int offset, int length, String elementKindName, String oldName) {
14599 this.offset = offset;
14600 this.length = length;
14601 this.elementKindName = elementKindName;
14602 this.oldName = oldName;
14603 }
11253 14604
11254 factory RenameFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) { 14605 factory RenameFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) {
11255 if (json == null) { 14606 if (json == null) {
11256 json = {}; 14607 json = {};
11257 } 14608 }
11258 if (json is Map) { 14609 if (json is Map) {
11259 int offset; 14610 int offset;
11260 if (json.containsKey("offset")) { 14611 if (json.containsKey("offset")) {
11261 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); 14612 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]);
11262 } else { 14613 } else {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
11321 } 14672 }
11322 14673
11323 /** 14674 /**
11324 * rename options 14675 * rename options
11325 * 14676 *
11326 * { 14677 * {
11327 * "newName": String 14678 * "newName": String
11328 * } 14679 * }
11329 */ 14680 */
11330 class RenameOptions extends RefactoringOptions implements HasToJson { 14681 class RenameOptions extends RefactoringOptions implements HasToJson {
14682 String _newName;
14683
11331 /** 14684 /**
11332 * The name that the element should have after the refactoring. 14685 * The name that the element should have after the refactoring.
11333 */ 14686 */
11334 String newName; 14687 String get newName => _newName;
11335 14688
11336 RenameOptions(this.newName); 14689 /**
14690 * The name that the element should have after the refactoring.
14691 */
14692 void set newName(String value) {
14693 assert(value != null);
14694 this._newName = value;
14695 }
14696
14697 RenameOptions(String newName) {
14698 this.newName = newName;
14699 }
11337 14700
11338 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec t json) { 14701 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec t json) {
11339 if (json == null) { 14702 if (json == null) {
11340 json = {}; 14703 json = {};
11341 } 14704 }
11342 if (json is Map) { 14705 if (json is Map) {
11343 String newName; 14706 String newName;
11344 if (json.containsKey("newName")) { 14707 if (json.containsKey("newName")) {
11345 newName = jsonDecoder._decodeString(jsonPath + ".newName", json["newName "]); 14708 newName = jsonDecoder._decodeString(jsonPath + ".newName", json["newName "]);
11346 } else { 14709 } else {
(...skipping 27 matching lines...) Expand all
11374 return false; 14737 return false;
11375 } 14738 }
11376 14739
11377 @override 14740 @override
11378 int get hashCode { 14741 int get hashCode {
11379 int hash = 0; 14742 int hash = 0;
11380 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 14743 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
11381 return _JenkinsSmiHash.finish(hash); 14744 return _JenkinsSmiHash.finish(hash);
11382 } 14745 }
11383 } 14746 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698