| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
| 6 // To regenerate the file, use the script | 6 // To regenerate the file, use the script |
| 7 // "pkg/analysis_server/spec/generate_files". | 7 // "pkg/analysis_server/spec/generate_files". |
| 8 | 8 |
| 9 part of protocol2; | 9 part of protocol2; |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * server.getVersion result | 12 * server.getVersion result |
| 13 * | 13 * |
| 14 * { | 14 * { |
| 15 * "version": String | 15 * "version": String |
| 16 * } | 16 * } |
| 17 */ | 17 */ |
| 18 class ServerGetVersionResult implements HasToJson { | 18 class ServerGetVersionResult implements HasToJson { |
| 19 /** | 19 /** |
| 20 * The version number of the analysis server. | 20 * The version number of the analysis server. |
| 21 */ | 21 */ |
| 22 final String version; | 22 String version; |
| 23 | 23 |
| 24 ServerGetVersionResult(this.version); | 24 ServerGetVersionResult(this.version); |
| 25 | 25 |
| 26 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 26 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { |
| 27 if (json == null) { | 27 if (json == null) { |
| 28 json = {}; | 28 json = {}; |
| 29 } | 29 } |
| 30 if (json is Map) { | 30 if (json is Map) { |
| 31 String version; | 31 String version; |
| 32 if (json.containsKey("version")) { | 32 if (json.containsKey("version")) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 * server.setSubscriptions params | 74 * server.setSubscriptions params |
| 75 * | 75 * |
| 76 * { | 76 * { |
| 77 * "subscriptions": List<ServerService> | 77 * "subscriptions": List<ServerService> |
| 78 * } | 78 * } |
| 79 */ | 79 */ |
| 80 class ServerSetSubscriptionsParams implements HasToJson { | 80 class ServerSetSubscriptionsParams implements HasToJson { |
| 81 /** | 81 /** |
| 82 * A list of the services being subscribed to. | 82 * A list of the services being subscribed to. |
| 83 */ | 83 */ |
| 84 final List<ServerService> subscriptions; | 84 List<ServerService> subscriptions; |
| 85 | 85 |
| 86 ServerSetSubscriptionsParams(this.subscriptions); | 86 ServerSetSubscriptionsParams(this.subscriptions); |
| 87 | 87 |
| 88 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 88 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
| 89 if (json == null) { | 89 if (json == null) { |
| 90 json = {}; | 90 json = {}; |
| 91 } | 91 } |
| 92 if (json is Map) { | 92 if (json is Map) { |
| 93 List<ServerService> subscriptions; | 93 List<ServerService> subscriptions; |
| 94 if (json.containsKey("subscriptions")) { | 94 if (json.containsKey("subscriptions")) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 * "fatal": bool | 143 * "fatal": bool |
| 144 * "message": String | 144 * "message": String |
| 145 * "stackTrace": String | 145 * "stackTrace": String |
| 146 * } | 146 * } |
| 147 */ | 147 */ |
| 148 class ServerErrorParams implements HasToJson { | 148 class ServerErrorParams implements HasToJson { |
| 149 /** | 149 /** |
| 150 * True if the error is a fatal error, meaning that the server will shutdown | 150 * True if the error is a fatal error, meaning that the server will shutdown |
| 151 * automatically after sending this notification. | 151 * automatically after sending this notification. |
| 152 */ | 152 */ |
| 153 final bool fatal; | 153 bool fatal; |
| 154 | 154 |
| 155 /** | 155 /** |
| 156 * The error message indicating what kind of error was encountered. | 156 * The error message indicating what kind of error was encountered. |
| 157 */ | 157 */ |
| 158 final String message; | 158 String message; |
| 159 | 159 |
| 160 /** | 160 /** |
| 161 * The stack trace associated with the generation of the error, used for | 161 * The stack trace associated with the generation of the error, used for |
| 162 * debugging the server. | 162 * debugging the server. |
| 163 */ | 163 */ |
| 164 final String stackTrace; | 164 String stackTrace; |
| 165 | 165 |
| 166 ServerErrorParams(this.fatal, this.message, this.stackTrace); | 166 ServerErrorParams(this.fatal, this.message, this.stackTrace); |
| 167 | 167 |
| 168 factory ServerErrorParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 168 factory ServerErrorParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
| 169 if (json == null) { | 169 if (json == null) { |
| 170 json = {}; | 170 json = {}; |
| 171 } | 171 } |
| 172 if (json is Map) { | 172 if (json is Map) { |
| 173 bool fatal; | 173 bool fatal; |
| 174 if (json.containsKey("fatal")) { | 174 if (json.containsKey("fatal")) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 * | 235 * |
| 236 * { | 236 * { |
| 237 * "analysis": optional AnalysisStatus | 237 * "analysis": optional AnalysisStatus |
| 238 * } | 238 * } |
| 239 */ | 239 */ |
| 240 class ServerStatusParams implements HasToJson { | 240 class ServerStatusParams implements HasToJson { |
| 241 /** | 241 /** |
| 242 * The current status of analysis, including whether analysis is being | 242 * The current status of analysis, including whether analysis is being |
| 243 * performed and if so what is being analyzed. | 243 * performed and if so what is being analyzed. |
| 244 */ | 244 */ |
| 245 final AnalysisStatus analysis; | 245 AnalysisStatus analysis; |
| 246 | 246 |
| 247 ServerStatusParams({this.analysis}); | 247 ServerStatusParams({this.analysis}); |
| 248 | 248 |
| 249 factory ServerStatusParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 249 factory ServerStatusParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
| 250 if (json == null) { | 250 if (json == null) { |
| 251 json = {}; | 251 json = {}; |
| 252 } | 252 } |
| 253 if (json is Map) { | 253 if (json is Map) { |
| 254 AnalysisStatus analysis; | 254 AnalysisStatus analysis; |
| 255 if (json.containsKey("analysis")) { | 255 if (json.containsKey("analysis")) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 * analysis.getErrors params | 297 * analysis.getErrors params |
| 298 * | 298 * |
| 299 * { | 299 * { |
| 300 * "file": FilePath | 300 * "file": FilePath |
| 301 * } | 301 * } |
| 302 */ | 302 */ |
| 303 class AnalysisGetErrorsParams implements HasToJson { | 303 class AnalysisGetErrorsParams implements HasToJson { |
| 304 /** | 304 /** |
| 305 * The file for which errors are being requested. | 305 * The file for which errors are being requested. |
| 306 */ | 306 */ |
| 307 final String file; | 307 String file; |
| 308 | 308 |
| 309 AnalysisGetErrorsParams(this.file); | 309 AnalysisGetErrorsParams(this.file); |
| 310 | 310 |
| 311 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 311 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
| 312 if (json == null) { | 312 if (json == null) { |
| 313 json = {}; | 313 json = {}; |
| 314 } | 314 } |
| 315 if (json is Map) { | 315 if (json is Map) { |
| 316 String file; | 316 String file; |
| 317 if (json.containsKey("file")) { | 317 if (json.containsKey("file")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 * analysis.getErrors result | 363 * analysis.getErrors result |
| 364 * | 364 * |
| 365 * { | 365 * { |
| 366 * "errors": List<AnalysisError> | 366 * "errors": List<AnalysisError> |
| 367 * } | 367 * } |
| 368 */ | 368 */ |
| 369 class AnalysisGetErrorsResult implements HasToJson { | 369 class AnalysisGetErrorsResult implements HasToJson { |
| 370 /** | 370 /** |
| 371 * The errors associated with the file. | 371 * The errors associated with the file. |
| 372 */ | 372 */ |
| 373 final List<AnalysisError> errors; | 373 List<AnalysisError> errors; |
| 374 | 374 |
| 375 AnalysisGetErrorsResult(this.errors); | 375 AnalysisGetErrorsResult(this.errors); |
| 376 | 376 |
| 377 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 377 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
| 378 if (json == null) { | 378 if (json == null) { |
| 379 json = {}; | 379 json = {}; |
| 380 } | 380 } |
| 381 if (json is Map) { | 381 if (json is Map) { |
| 382 List<AnalysisError> errors; | 382 List<AnalysisError> errors; |
| 383 if (json.containsKey("errors")) { | 383 if (json.containsKey("errors")) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 * | 426 * |
| 427 * { | 427 * { |
| 428 * "file": FilePath | 428 * "file": FilePath |
| 429 * "offset": int | 429 * "offset": int |
| 430 * } | 430 * } |
| 431 */ | 431 */ |
| 432 class AnalysisGetHoverParams implements HasToJson { | 432 class AnalysisGetHoverParams implements HasToJson { |
| 433 /** | 433 /** |
| 434 * The file in which hover information is being requested. | 434 * The file in which hover information is being requested. |
| 435 */ | 435 */ |
| 436 final String file; | 436 String file; |
| 437 | 437 |
| 438 /** | 438 /** |
| 439 * The offset for which hover information is being requested. | 439 * The offset for which hover information is being requested. |
| 440 */ | 440 */ |
| 441 final int offset; | 441 int offset; |
| 442 | 442 |
| 443 AnalysisGetHoverParams(this.file, this.offset); | 443 AnalysisGetHoverParams(this.file, this.offset); |
| 444 | 444 |
| 445 factory AnalysisGetHoverParams.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 445 factory AnalysisGetHoverParams.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { |
| 446 if (json == null) { | 446 if (json == null) { |
| 447 json = {}; | 447 json = {}; |
| 448 } | 448 } |
| 449 if (json is Map) { | 449 if (json is Map) { |
| 450 String file; | 450 String file; |
| 451 if (json.containsKey("file")) { | 451 if (json.containsKey("file")) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 * } | 510 * } |
| 511 */ | 511 */ |
| 512 class AnalysisGetHoverResult implements HasToJson { | 512 class AnalysisGetHoverResult implements HasToJson { |
| 513 /** | 513 /** |
| 514 * The hover information associated with the location. The list will be empty | 514 * The hover information associated with the location. The list will be empty |
| 515 * if no information could be determined for the location. The list can | 515 * if no information could be determined for the location. The list can |
| 516 * contain multiple items if the file is being analyzed in multiple contexts | 516 * contain multiple items if the file is being analyzed in multiple contexts |
| 517 * in conflicting ways (such as a part that is included in multiple | 517 * in conflicting ways (such as a part that is included in multiple |
| 518 * libraries). | 518 * libraries). |
| 519 */ | 519 */ |
| 520 final List<HoverInformation> hovers; | 520 List<HoverInformation> hovers; |
| 521 | 521 |
| 522 AnalysisGetHoverResult(this.hovers); | 522 AnalysisGetHoverResult(this.hovers); |
| 523 | 523 |
| 524 factory AnalysisGetHoverResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 524 factory AnalysisGetHoverResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { |
| 525 if (json == null) { | 525 if (json == null) { |
| 526 json = {}; | 526 json = {}; |
| 527 } | 527 } |
| 528 if (json is Map) { | 528 if (json is Map) { |
| 529 List<HoverInformation> hovers; | 529 List<HoverInformation> hovers; |
| 530 if (json.containsKey("hovers")) { | 530 if (json.containsKey("hovers")) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 * | 573 * |
| 574 * { | 574 * { |
| 575 * "included": List<FilePath> | 575 * "included": List<FilePath> |
| 576 * "excluded": List<FilePath> | 576 * "excluded": List<FilePath> |
| 577 * } | 577 * } |
| 578 */ | 578 */ |
| 579 class AnalysisSetAnalysisRootsParams implements HasToJson { | 579 class AnalysisSetAnalysisRootsParams implements HasToJson { |
| 580 /** | 580 /** |
| 581 * A list of the files and directories that should be analyzed. | 581 * A list of the files and directories that should be analyzed. |
| 582 */ | 582 */ |
| 583 final List<String> included; | 583 List<String> included; |
| 584 | 584 |
| 585 /** | 585 /** |
| 586 * A list of the files and directories within the included directories that | 586 * A list of the files and directories within the included directories that |
| 587 * should not be analyzed. | 587 * should not be analyzed. |
| 588 */ | 588 */ |
| 589 final List<String> excluded; | 589 List<String> excluded; |
| 590 | 590 |
| 591 AnalysisSetAnalysisRootsParams(this.included, this.excluded); | 591 AnalysisSetAnalysisRootsParams(this.included, this.excluded); |
| 592 | 592 |
| 593 factory AnalysisSetAnalysisRootsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 593 factory AnalysisSetAnalysisRootsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 594 if (json == null) { | 594 if (json == null) { |
| 595 json = {}; | 595 json = {}; |
| 596 } | 596 } |
| 597 if (json is Map) { | 597 if (json is Map) { |
| 598 List<String> included; | 598 List<String> included; |
| 599 if (json.containsKey("included")) { | 599 if (json.containsKey("included")) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 * analysis.setPriorityFiles params | 654 * analysis.setPriorityFiles params |
| 655 * | 655 * |
| 656 * { | 656 * { |
| 657 * "files": List<FilePath> | 657 * "files": List<FilePath> |
| 658 * } | 658 * } |
| 659 */ | 659 */ |
| 660 class AnalysisSetPriorityFilesParams implements HasToJson { | 660 class AnalysisSetPriorityFilesParams implements HasToJson { |
| 661 /** | 661 /** |
| 662 * The files that are to be a priority for analysis. | 662 * The files that are to be a priority for analysis. |
| 663 */ | 663 */ |
| 664 final List<String> files; | 664 List<String> files; |
| 665 | 665 |
| 666 AnalysisSetPriorityFilesParams(this.files); | 666 AnalysisSetPriorityFilesParams(this.files); |
| 667 | 667 |
| 668 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 668 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 669 if (json == null) { | 669 if (json == null) { |
| 670 json = {}; | 670 json = {}; |
| 671 } | 671 } |
| 672 if (json is Map) { | 672 if (json is Map) { |
| 673 List<String> files; | 673 List<String> files; |
| 674 if (json.containsKey("files")) { | 674 if (json.containsKey("files")) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 * | 721 * |
| 722 * { | 722 * { |
| 723 * "subscriptions": Map<AnalysisService, List<FilePath>> | 723 * "subscriptions": Map<AnalysisService, List<FilePath>> |
| 724 * } | 724 * } |
| 725 */ | 725 */ |
| 726 class AnalysisSetSubscriptionsParams implements HasToJson { | 726 class AnalysisSetSubscriptionsParams implements HasToJson { |
| 727 /** | 727 /** |
| 728 * A table mapping services to a list of the files being subscribed to the | 728 * A table mapping services to a list of the files being subscribed to the |
| 729 * service. | 729 * service. |
| 730 */ | 730 */ |
| 731 final Map<AnalysisService, List<String>> subscriptions; | 731 Map<AnalysisService, List<String>> subscriptions; |
| 732 | 732 |
| 733 AnalysisSetSubscriptionsParams(this.subscriptions); | 733 AnalysisSetSubscriptionsParams(this.subscriptions); |
| 734 | 734 |
| 735 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 735 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 736 if (json == null) { | 736 if (json == null) { |
| 737 json = {}; | 737 json = {}; |
| 738 } | 738 } |
| 739 if (json is Map) { | 739 if (json is Map) { |
| 740 Map<AnalysisService, List<String>> subscriptions; | 740 Map<AnalysisService, List<String>> subscriptions; |
| 741 if (json.containsKey("subscriptions")) { | 741 if (json.containsKey("subscriptions")) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 * | 788 * |
| 789 * { | 789 * { |
| 790 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> | 790 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> |
| 791 * } | 791 * } |
| 792 */ | 792 */ |
| 793 class AnalysisUpdateContentParams implements HasToJson { | 793 class AnalysisUpdateContentParams implements HasToJson { |
| 794 /** | 794 /** |
| 795 * A table mapping the files whose content has changed to a description of | 795 * A table mapping the files whose content has changed to a description of |
| 796 * the content change. | 796 * the content change. |
| 797 */ | 797 */ |
| 798 final Map<String, dynamic> files; | 798 Map<String, dynamic> files; |
| 799 | 799 |
| 800 AnalysisUpdateContentParams(this.files); | 800 AnalysisUpdateContentParams(this.files); |
| 801 | 801 |
| 802 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 802 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 803 if (json == null) { | 803 if (json == null) { |
| 804 json = {}; | 804 json = {}; |
| 805 } | 805 } |
| 806 if (json is Map) { | 806 if (json is Map) { |
| 807 Map<String, dynamic> files; | 807 Map<String, dynamic> files; |
| 808 if (json.containsKey("files")) { | 808 if (json.containsKey("files")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 * analysis.updateOptions params | 854 * analysis.updateOptions params |
| 855 * | 855 * |
| 856 * { | 856 * { |
| 857 * "options": AnalysisOptions | 857 * "options": AnalysisOptions |
| 858 * } | 858 * } |
| 859 */ | 859 */ |
| 860 class AnalysisUpdateOptionsParams implements HasToJson { | 860 class AnalysisUpdateOptionsParams implements HasToJson { |
| 861 /** | 861 /** |
| 862 * The options that are to be used to control analysis. | 862 * The options that are to be used to control analysis. |
| 863 */ | 863 */ |
| 864 final AnalysisOptions options; | 864 AnalysisOptions options; |
| 865 | 865 |
| 866 AnalysisUpdateOptionsParams(this.options); | 866 AnalysisUpdateOptionsParams(this.options); |
| 867 | 867 |
| 868 factory AnalysisUpdateOptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 868 factory AnalysisUpdateOptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 869 if (json == null) { | 869 if (json == null) { |
| 870 json = {}; | 870 json = {}; |
| 871 } | 871 } |
| 872 if (json is Map) { | 872 if (json is Map) { |
| 873 AnalysisOptions options; | 873 AnalysisOptions options; |
| 874 if (json.containsKey("options")) { | 874 if (json.containsKey("options")) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 * | 921 * |
| 922 * { | 922 * { |
| 923 * "file": FilePath | 923 * "file": FilePath |
| 924 * "errors": List<AnalysisError> | 924 * "errors": List<AnalysisError> |
| 925 * } | 925 * } |
| 926 */ | 926 */ |
| 927 class AnalysisErrorsParams implements HasToJson { | 927 class AnalysisErrorsParams implements HasToJson { |
| 928 /** | 928 /** |
| 929 * The file containing the errors. | 929 * The file containing the errors. |
| 930 */ | 930 */ |
| 931 final String file; | 931 String file; |
| 932 | 932 |
| 933 /** | 933 /** |
| 934 * The errors contained in the file. | 934 * The errors contained in the file. |
| 935 */ | 935 */ |
| 936 final List<AnalysisError> errors; | 936 List<AnalysisError> errors; |
| 937 | 937 |
| 938 AnalysisErrorsParams(this.file, this.errors); | 938 AnalysisErrorsParams(this.file, this.errors); |
| 939 | 939 |
| 940 factory AnalysisErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 940 factory AnalysisErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 941 if (json == null) { | 941 if (json == null) { |
| 942 json = {}; | 942 json = {}; |
| 943 } | 943 } |
| 944 if (json is Map) { | 944 if (json is Map) { |
| 945 String file; | 945 String file; |
| 946 if (json.containsKey("file")) { | 946 if (json.containsKey("file")) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 * analysis.flushResults params | 997 * analysis.flushResults params |
| 998 * | 998 * |
| 999 * { | 999 * { |
| 1000 * "files": List<FilePath> | 1000 * "files": List<FilePath> |
| 1001 * } | 1001 * } |
| 1002 */ | 1002 */ |
| 1003 class AnalysisFlushResultsParams implements HasToJson { | 1003 class AnalysisFlushResultsParams implements HasToJson { |
| 1004 /** | 1004 /** |
| 1005 * The files that are no longer being analyzed. | 1005 * The files that are no longer being analyzed. |
| 1006 */ | 1006 */ |
| 1007 final List<String> files; | 1007 List<String> files; |
| 1008 | 1008 |
| 1009 AnalysisFlushResultsParams(this.files); | 1009 AnalysisFlushResultsParams(this.files); |
| 1010 | 1010 |
| 1011 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 1011 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { |
| 1012 if (json == null) { | 1012 if (json == null) { |
| 1013 json = {}; | 1013 json = {}; |
| 1014 } | 1014 } |
| 1015 if (json is Map) { | 1015 if (json is Map) { |
| 1016 List<String> files; | 1016 List<String> files; |
| 1017 if (json.containsKey("files")) { | 1017 if (json.containsKey("files")) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 * | 1060 * |
| 1061 * { | 1061 * { |
| 1062 * "file": FilePath | 1062 * "file": FilePath |
| 1063 * "regions": List<FoldingRegion> | 1063 * "regions": List<FoldingRegion> |
| 1064 * } | 1064 * } |
| 1065 */ | 1065 */ |
| 1066 class AnalysisFoldingParams implements HasToJson { | 1066 class AnalysisFoldingParams implements HasToJson { |
| 1067 /** | 1067 /** |
| 1068 * The file containing the folding regions. | 1068 * The file containing the folding regions. |
| 1069 */ | 1069 */ |
| 1070 final String file; | 1070 String file; |
| 1071 | 1071 |
| 1072 /** | 1072 /** |
| 1073 * The folding regions contained in the file. | 1073 * The folding regions contained in the file. |
| 1074 */ | 1074 */ |
| 1075 final List<FoldingRegion> regions; | 1075 List<FoldingRegion> regions; |
| 1076 | 1076 |
| 1077 AnalysisFoldingParams(this.file, this.regions); | 1077 AnalysisFoldingParams(this.file, this.regions); |
| 1078 | 1078 |
| 1079 factory AnalysisFoldingParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 1079 factory AnalysisFoldingParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
| 1080 if (json == null) { | 1080 if (json == null) { |
| 1081 json = {}; | 1081 json = {}; |
| 1082 } | 1082 } |
| 1083 if (json is Map) { | 1083 if (json is Map) { |
| 1084 String file; | 1084 String file; |
| 1085 if (json.containsKey("file")) { | 1085 if (json.containsKey("file")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 * | 1137 * |
| 1138 * { | 1138 * { |
| 1139 * "file": FilePath | 1139 * "file": FilePath |
| 1140 * "regions": List<HighlightRegion> | 1140 * "regions": List<HighlightRegion> |
| 1141 * } | 1141 * } |
| 1142 */ | 1142 */ |
| 1143 class AnalysisHighlightsParams implements HasToJson { | 1143 class AnalysisHighlightsParams implements HasToJson { |
| 1144 /** | 1144 /** |
| 1145 * The file containing the highlight regions. | 1145 * The file containing the highlight regions. |
| 1146 */ | 1146 */ |
| 1147 final String file; | 1147 String file; |
| 1148 | 1148 |
| 1149 /** | 1149 /** |
| 1150 * The highlight regions contained in the file. Each highlight region | 1150 * The highlight regions contained in the file. Each highlight region |
| 1151 * represents a particular syntactic or semantic meaning associated with some | 1151 * represents a particular syntactic or semantic meaning associated with some |
| 1152 * range. Note that the highlight regions that are returned can overlap other | 1152 * range. Note that the highlight regions that are returned can overlap other |
| 1153 * highlight regions if there is more than one meaning associated with a | 1153 * highlight regions if there is more than one meaning associated with a |
| 1154 * particular region. | 1154 * particular region. |
| 1155 */ | 1155 */ |
| 1156 final List<HighlightRegion> regions; | 1156 List<HighlightRegion> regions; |
| 1157 | 1157 |
| 1158 AnalysisHighlightsParams(this.file, this.regions); | 1158 AnalysisHighlightsParams(this.file, this.regions); |
| 1159 | 1159 |
| 1160 factory AnalysisHighlightsParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 1160 factory AnalysisHighlightsParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 1161 if (json == null) { | 1161 if (json == null) { |
| 1162 json = {}; | 1162 json = {}; |
| 1163 } | 1163 } |
| 1164 if (json is Map) { | 1164 if (json is Map) { |
| 1165 String file; | 1165 String file; |
| 1166 if (json.containsKey("file")) { | 1166 if (json.containsKey("file")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 * | 1218 * |
| 1219 * { | 1219 * { |
| 1220 * "file": FilePath | 1220 * "file": FilePath |
| 1221 * "regions": List<NavigationRegion> | 1221 * "regions": List<NavigationRegion> |
| 1222 * } | 1222 * } |
| 1223 */ | 1223 */ |
| 1224 class AnalysisNavigationParams implements HasToJson { | 1224 class AnalysisNavigationParams implements HasToJson { |
| 1225 /** | 1225 /** |
| 1226 * The file containing the navigation regions. | 1226 * The file containing the navigation regions. |
| 1227 */ | 1227 */ |
| 1228 final String file; | 1228 String file; |
| 1229 | 1229 |
| 1230 /** | 1230 /** |
| 1231 * The navigation regions contained in the file. Each navigation region | 1231 * The navigation regions contained in the file. Each navigation region |
| 1232 * represents a list of targets associated with some range. The lists will | 1232 * represents a list of targets associated with some range. The lists will |
| 1233 * usually contain a single target, but can contain more in the case of a | 1233 * usually contain a single target, but can contain more in the case of a |
| 1234 * part that is included in multiple libraries or in Dart code that is | 1234 * part that is included in multiple libraries or in Dart code that is |
| 1235 * compiled against multiple versions of a package. Note that the navigation | 1235 * compiled against multiple versions of a package. Note that the navigation |
| 1236 * regions that are returned do not overlap other navigation regions. | 1236 * regions that are returned do not overlap other navigation regions. |
| 1237 */ | 1237 */ |
| 1238 final List<NavigationRegion> regions; | 1238 List<NavigationRegion> regions; |
| 1239 | 1239 |
| 1240 AnalysisNavigationParams(this.file, this.regions); | 1240 AnalysisNavigationParams(this.file, this.regions); |
| 1241 | 1241 |
| 1242 factory AnalysisNavigationParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 1242 factory AnalysisNavigationParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 1243 if (json == null) { | 1243 if (json == null) { |
| 1244 json = {}; | 1244 json = {}; |
| 1245 } | 1245 } |
| 1246 if (json is Map) { | 1246 if (json is Map) { |
| 1247 String file; | 1247 String file; |
| 1248 if (json.containsKey("file")) { | 1248 if (json.containsKey("file")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 * | 1300 * |
| 1301 * { | 1301 * { |
| 1302 * "file": FilePath | 1302 * "file": FilePath |
| 1303 * "occurrences": List<Occurrences> | 1303 * "occurrences": List<Occurrences> |
| 1304 * } | 1304 * } |
| 1305 */ | 1305 */ |
| 1306 class AnalysisOccurrencesParams implements HasToJson { | 1306 class AnalysisOccurrencesParams implements HasToJson { |
| 1307 /** | 1307 /** |
| 1308 * The file in which the references occur. | 1308 * The file in which the references occur. |
| 1309 */ | 1309 */ |
| 1310 final String file; | 1310 String file; |
| 1311 | 1311 |
| 1312 /** | 1312 /** |
| 1313 * The occurrences of references to elements within the file. | 1313 * The occurrences of references to elements within the file. |
| 1314 */ | 1314 */ |
| 1315 final List<Occurrences> occurrences; | 1315 List<Occurrences> occurrences; |
| 1316 | 1316 |
| 1317 AnalysisOccurrencesParams(this.file, this.occurrences); | 1317 AnalysisOccurrencesParams(this.file, this.occurrences); |
| 1318 | 1318 |
| 1319 factory AnalysisOccurrencesParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { | 1319 factory AnalysisOccurrencesParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { |
| 1320 if (json == null) { | 1320 if (json == null) { |
| 1321 json = {}; | 1321 json = {}; |
| 1322 } | 1322 } |
| 1323 if (json is Map) { | 1323 if (json is Map) { |
| 1324 String file; | 1324 String file; |
| 1325 if (json.containsKey("file")) { | 1325 if (json.containsKey("file")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 * | 1377 * |
| 1378 * { | 1378 * { |
| 1379 * "file": FilePath | 1379 * "file": FilePath |
| 1380 * "outline": Outline | 1380 * "outline": Outline |
| 1381 * } | 1381 * } |
| 1382 */ | 1382 */ |
| 1383 class AnalysisOutlineParams implements HasToJson { | 1383 class AnalysisOutlineParams implements HasToJson { |
| 1384 /** | 1384 /** |
| 1385 * The file with which the outline is associated. | 1385 * The file with which the outline is associated. |
| 1386 */ | 1386 */ |
| 1387 final String file; | 1387 String file; |
| 1388 | 1388 |
| 1389 /** | 1389 /** |
| 1390 * The outline associated with the file. | 1390 * The outline associated with the file. |
| 1391 */ | 1391 */ |
| 1392 final Outline outline; | 1392 Outline outline; |
| 1393 | 1393 |
| 1394 AnalysisOutlineParams(this.file, this.outline); | 1394 AnalysisOutlineParams(this.file, this.outline); |
| 1395 | 1395 |
| 1396 factory AnalysisOutlineParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 1396 factory AnalysisOutlineParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
| 1397 if (json == null) { | 1397 if (json == null) { |
| 1398 json = {}; | 1398 json = {}; |
| 1399 } | 1399 } |
| 1400 if (json is Map) { | 1400 if (json is Map) { |
| 1401 String file; | 1401 String file; |
| 1402 if (json.containsKey("file")) { | 1402 if (json.containsKey("file")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1454 * | 1454 * |
| 1455 * { | 1455 * { |
| 1456 * "file": FilePath | 1456 * "file": FilePath |
| 1457 * "overrides": List<Override> | 1457 * "overrides": List<Override> |
| 1458 * } | 1458 * } |
| 1459 */ | 1459 */ |
| 1460 class AnalysisOverridesParams implements HasToJson { | 1460 class AnalysisOverridesParams implements HasToJson { |
| 1461 /** | 1461 /** |
| 1462 * The file with which the overrides are associated. | 1462 * The file with which the overrides are associated. |
| 1463 */ | 1463 */ |
| 1464 final String file; | 1464 String file; |
| 1465 | 1465 |
| 1466 /** | 1466 /** |
| 1467 * The overrides associated with the file. | 1467 * The overrides associated with the file. |
| 1468 */ | 1468 */ |
| 1469 final List<Override> overrides; | 1469 List<Override> overrides; |
| 1470 | 1470 |
| 1471 AnalysisOverridesParams(this.file, this.overrides); | 1471 AnalysisOverridesParams(this.file, this.overrides); |
| 1472 | 1472 |
| 1473 factory AnalysisOverridesParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 1473 factory AnalysisOverridesParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
| 1474 if (json == null) { | 1474 if (json == null) { |
| 1475 json = {}; | 1475 json = {}; |
| 1476 } | 1476 } |
| 1477 if (json is Map) { | 1477 if (json is Map) { |
| 1478 String file; | 1478 String file; |
| 1479 if (json.containsKey("file")) { | 1479 if (json.containsKey("file")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 * | 1531 * |
| 1532 * { | 1532 * { |
| 1533 * "file": FilePath | 1533 * "file": FilePath |
| 1534 * "offset": int | 1534 * "offset": int |
| 1535 * } | 1535 * } |
| 1536 */ | 1536 */ |
| 1537 class CompletionGetSuggestionsParams implements HasToJson { | 1537 class CompletionGetSuggestionsParams implements HasToJson { |
| 1538 /** | 1538 /** |
| 1539 * The file containing the point at which suggestions are to be made. | 1539 * The file containing the point at which suggestions are to be made. |
| 1540 */ | 1540 */ |
| 1541 final String file; | 1541 String file; |
| 1542 | 1542 |
| 1543 /** | 1543 /** |
| 1544 * The offset within the file at which suggestions are to be made. | 1544 * The offset within the file at which suggestions are to be made. |
| 1545 */ | 1545 */ |
| 1546 final int offset; | 1546 int offset; |
| 1547 | 1547 |
| 1548 CompletionGetSuggestionsParams(this.file, this.offset); | 1548 CompletionGetSuggestionsParams(this.file, this.offset); |
| 1549 | 1549 |
| 1550 factory CompletionGetSuggestionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 1550 factory CompletionGetSuggestionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 1551 if (json == null) { | 1551 if (json == null) { |
| 1552 json = {}; | 1552 json = {}; |
| 1553 } | 1553 } |
| 1554 if (json is Map) { | 1554 if (json is Map) { |
| 1555 String file; | 1555 String file; |
| 1556 if (json.containsKey("file")) { | 1556 if (json.containsKey("file")) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 * completion.getSuggestions result | 1611 * completion.getSuggestions result |
| 1612 * | 1612 * |
| 1613 * { | 1613 * { |
| 1614 * "id": CompletionId | 1614 * "id": CompletionId |
| 1615 * } | 1615 * } |
| 1616 */ | 1616 */ |
| 1617 class CompletionGetSuggestionsResult implements HasToJson { | 1617 class CompletionGetSuggestionsResult implements HasToJson { |
| 1618 /** | 1618 /** |
| 1619 * The identifier used to associate results with this completion request. | 1619 * The identifier used to associate results with this completion request. |
| 1620 */ | 1620 */ |
| 1621 final String id; | 1621 String id; |
| 1622 | 1622 |
| 1623 CompletionGetSuggestionsResult(this.id); | 1623 CompletionGetSuggestionsResult(this.id); |
| 1624 | 1624 |
| 1625 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 1625 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 1626 if (json == null) { | 1626 if (json == null) { |
| 1627 json = {}; | 1627 json = {}; |
| 1628 } | 1628 } |
| 1629 if (json is Map) { | 1629 if (json is Map) { |
| 1630 String id; | 1630 String id; |
| 1631 if (json.containsKey("id")) { | 1631 if (json.containsKey("id")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1677 * "replacementOffset": int | 1677 * "replacementOffset": int |
| 1678 * "replacementLength": int | 1678 * "replacementLength": int |
| 1679 * "results": List<CompletionSuggestion> | 1679 * "results": List<CompletionSuggestion> |
| 1680 * "last": bool | 1680 * "last": bool |
| 1681 * } | 1681 * } |
| 1682 */ | 1682 */ |
| 1683 class CompletionResultsParams implements HasToJson { | 1683 class CompletionResultsParams implements HasToJson { |
| 1684 /** | 1684 /** |
| 1685 * The id associated with the completion. | 1685 * The id associated with the completion. |
| 1686 */ | 1686 */ |
| 1687 final String id; | 1687 String id; |
| 1688 | 1688 |
| 1689 /** | 1689 /** |
| 1690 * The offset of the start of the text to be replaced. This will be different | 1690 * The offset of the start of the text to be replaced. This will be different |
| 1691 * than the offset used to request the completion suggestions if there was a | 1691 * than the offset used to request the completion suggestions if there was a |
| 1692 * portion of an identifier before the original offset. In particular, the | 1692 * portion of an identifier before the original offset. In particular, the |
| 1693 * replacementOffset will be the offset of the beginning of said identifier. | 1693 * replacementOffset will be the offset of the beginning of said identifier. |
| 1694 */ | 1694 */ |
| 1695 final int replacementOffset; | 1695 int replacementOffset; |
| 1696 | 1696 |
| 1697 /** | 1697 /** |
| 1698 * The length of the text to be replaced if the remainder of the identifier | 1698 * The length of the text to be replaced if the remainder of the identifier |
| 1699 * containing the cursor is to be replaced when the suggestion is applied | 1699 * containing the cursor is to be replaced when the suggestion is applied |
| 1700 * (that is, the number of characters in the existing identifier). | 1700 * (that is, the number of characters in the existing identifier). |
| 1701 */ | 1701 */ |
| 1702 final int replacementLength; | 1702 int replacementLength; |
| 1703 | 1703 |
| 1704 /** | 1704 /** |
| 1705 * The completion suggestions being reported. The notification contains all | 1705 * The completion suggestions being reported. The notification contains all |
| 1706 * possible completions at the requested cursor position, even those that do | 1706 * possible completions at the requested cursor position, even those that do |
| 1707 * not match the characters the user has already typed. This allows the | 1707 * not match the characters the user has already typed. This allows the |
| 1708 * client to respond to further keystrokes from the user without having to | 1708 * client to respond to further keystrokes from the user without having to |
| 1709 * make additional requests. | 1709 * make additional requests. |
| 1710 */ | 1710 */ |
| 1711 final List<CompletionSuggestion> results; | 1711 List<CompletionSuggestion> results; |
| 1712 | 1712 |
| 1713 /** | 1713 /** |
| 1714 * True if this is that last set of results that will be returned for the | 1714 * True if this is that last set of results that will be returned for the |
| 1715 * indicated completion. | 1715 * indicated completion. |
| 1716 */ | 1716 */ |
| 1717 final bool last; | 1717 bool last; |
| 1718 | 1718 |
| 1719 CompletionResultsParams(this.id, this.replacementOffset, this.replacementLengt
h, this.results, this.last); | 1719 CompletionResultsParams(this.id, this.replacementOffset, this.replacementLengt
h, this.results, this.last); |
| 1720 | 1720 |
| 1721 factory CompletionResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 1721 factory CompletionResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
| 1722 if (json == null) { | 1722 if (json == null) { |
| 1723 json = {}; | 1723 json = {}; |
| 1724 } | 1724 } |
| 1725 if (json is Map) { | 1725 if (json is Map) { |
| 1726 String id; | 1726 String id; |
| 1727 if (json.containsKey("id")) { | 1727 if (json.containsKey("id")) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1808 * "file": FilePath | 1808 * "file": FilePath |
| 1809 * "offset": int | 1809 * "offset": int |
| 1810 * "includePotential": bool | 1810 * "includePotential": bool |
| 1811 * } | 1811 * } |
| 1812 */ | 1812 */ |
| 1813 class SearchFindElementReferencesParams implements HasToJson { | 1813 class SearchFindElementReferencesParams implements HasToJson { |
| 1814 /** | 1814 /** |
| 1815 * The file containing the declaration of or reference to the element used to | 1815 * The file containing the declaration of or reference to the element used to |
| 1816 * define the search. | 1816 * define the search. |
| 1817 */ | 1817 */ |
| 1818 final String file; | 1818 String file; |
| 1819 | 1819 |
| 1820 /** | 1820 /** |
| 1821 * The offset within the file of the declaration of or reference to the | 1821 * The offset within the file of the declaration of or reference to the |
| 1822 * element. | 1822 * element. |
| 1823 */ | 1823 */ |
| 1824 final int offset; | 1824 int offset; |
| 1825 | 1825 |
| 1826 /** | 1826 /** |
| 1827 * True if potential matches are to be included in the results. | 1827 * True if potential matches are to be included in the results. |
| 1828 */ | 1828 */ |
| 1829 final bool includePotential; | 1829 bool includePotential; |
| 1830 | 1830 |
| 1831 SearchFindElementReferencesParams(this.file, this.offset, this.includePotentia
l); | 1831 SearchFindElementReferencesParams(this.file, this.offset, this.includePotentia
l); |
| 1832 | 1832 |
| 1833 factory SearchFindElementReferencesParams.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { | 1833 factory SearchFindElementReferencesParams.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { |
| 1834 if (json == null) { | 1834 if (json == null) { |
| 1835 json = {}; | 1835 json = {}; |
| 1836 } | 1836 } |
| 1837 if (json is Map) { | 1837 if (json is Map) { |
| 1838 String file; | 1838 String file; |
| 1839 if (json.containsKey("file")) { | 1839 if (json.containsKey("file")) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1904 * | 1904 * |
| 1905 * { | 1905 * { |
| 1906 * "id": SearchId | 1906 * "id": SearchId |
| 1907 * "element": optional Element | 1907 * "element": optional Element |
| 1908 * } | 1908 * } |
| 1909 */ | 1909 */ |
| 1910 class SearchFindElementReferencesResult implements HasToJson { | 1910 class SearchFindElementReferencesResult implements HasToJson { |
| 1911 /** | 1911 /** |
| 1912 * The identifier used to associate results with this search request. | 1912 * The identifier used to associate results with this search request. |
| 1913 */ | 1913 */ |
| 1914 final String id; | 1914 String id; |
| 1915 | 1915 |
| 1916 /** | 1916 /** |
| 1917 * The element referenced or defined at the given offset and whose references | 1917 * The element referenced or defined at the given offset and whose references |
| 1918 * will be returned in the search results. | 1918 * will be returned in the search results. |
| 1919 * | 1919 * |
| 1920 * If no element was found at the given location, this field will be absent. | 1920 * If no element was found at the given location, this field will be absent. |
| 1921 */ | 1921 */ |
| 1922 final Element element; | 1922 Element element; |
| 1923 | 1923 |
| 1924 SearchFindElementReferencesResult(this.id, {this.element}); | 1924 SearchFindElementReferencesResult(this.id, {this.element}); |
| 1925 | 1925 |
| 1926 factory SearchFindElementReferencesResult.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { | 1926 factory SearchFindElementReferencesResult.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { |
| 1927 if (json == null) { | 1927 if (json == null) { |
| 1928 json = {}; | 1928 json = {}; |
| 1929 } | 1929 } |
| 1930 if (json is Map) { | 1930 if (json is Map) { |
| 1931 String id; | 1931 String id; |
| 1932 if (json.containsKey("id")) { | 1932 if (json.containsKey("id")) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1983 * search.findMemberDeclarations params | 1983 * search.findMemberDeclarations params |
| 1984 * | 1984 * |
| 1985 * { | 1985 * { |
| 1986 * "name": String | 1986 * "name": String |
| 1987 * } | 1987 * } |
| 1988 */ | 1988 */ |
| 1989 class SearchFindMemberDeclarationsParams implements HasToJson { | 1989 class SearchFindMemberDeclarationsParams implements HasToJson { |
| 1990 /** | 1990 /** |
| 1991 * The name of the declarations to be found. | 1991 * The name of the declarations to be found. |
| 1992 */ | 1992 */ |
| 1993 final String name; | 1993 String name; |
| 1994 | 1994 |
| 1995 SearchFindMemberDeclarationsParams(this.name); | 1995 SearchFindMemberDeclarationsParams(this.name); |
| 1996 | 1996 |
| 1997 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 1997 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 1998 if (json == null) { | 1998 if (json == null) { |
| 1999 json = {}; | 1999 json = {}; |
| 2000 } | 2000 } |
| 2001 if (json is Map) { | 2001 if (json is Map) { |
| 2002 String name; | 2002 String name; |
| 2003 if (json.containsKey("name")) { | 2003 if (json.containsKey("name")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2049 * search.findMemberDeclarations result | 2049 * search.findMemberDeclarations result |
| 2050 * | 2050 * |
| 2051 * { | 2051 * { |
| 2052 * "id": SearchId | 2052 * "id": SearchId |
| 2053 * } | 2053 * } |
| 2054 */ | 2054 */ |
| 2055 class SearchFindMemberDeclarationsResult implements HasToJson { | 2055 class SearchFindMemberDeclarationsResult implements HasToJson { |
| 2056 /** | 2056 /** |
| 2057 * The identifier used to associate results with this search request. | 2057 * The identifier used to associate results with this search request. |
| 2058 */ | 2058 */ |
| 2059 final String id; | 2059 String id; |
| 2060 | 2060 |
| 2061 SearchFindMemberDeclarationsResult(this.id); | 2061 SearchFindMemberDeclarationsResult(this.id); |
| 2062 | 2062 |
| 2063 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 2063 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 2064 if (json == null) { | 2064 if (json == null) { |
| 2065 json = {}; | 2065 json = {}; |
| 2066 } | 2066 } |
| 2067 if (json is Map) { | 2067 if (json is Map) { |
| 2068 String id; | 2068 String id; |
| 2069 if (json.containsKey("id")) { | 2069 if (json.containsKey("id")) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2111 * search.findMemberReferences params | 2111 * search.findMemberReferences params |
| 2112 * | 2112 * |
| 2113 * { | 2113 * { |
| 2114 * "name": String | 2114 * "name": String |
| 2115 * } | 2115 * } |
| 2116 */ | 2116 */ |
| 2117 class SearchFindMemberReferencesParams implements HasToJson { | 2117 class SearchFindMemberReferencesParams implements HasToJson { |
| 2118 /** | 2118 /** |
| 2119 * The name of the references to be found. | 2119 * The name of the references to be found. |
| 2120 */ | 2120 */ |
| 2121 final String name; | 2121 String name; |
| 2122 | 2122 |
| 2123 SearchFindMemberReferencesParams(this.name); | 2123 SearchFindMemberReferencesParams(this.name); |
| 2124 | 2124 |
| 2125 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 2125 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { |
| 2126 if (json == null) { | 2126 if (json == null) { |
| 2127 json = {}; | 2127 json = {}; |
| 2128 } | 2128 } |
| 2129 if (json is Map) { | 2129 if (json is Map) { |
| 2130 String name; | 2130 String name; |
| 2131 if (json.containsKey("name")) { | 2131 if (json.containsKey("name")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2177 * search.findMemberReferences result | 2177 * search.findMemberReferences result |
| 2178 * | 2178 * |
| 2179 * { | 2179 * { |
| 2180 * "id": SearchId | 2180 * "id": SearchId |
| 2181 * } | 2181 * } |
| 2182 */ | 2182 */ |
| 2183 class SearchFindMemberReferencesResult implements HasToJson { | 2183 class SearchFindMemberReferencesResult implements HasToJson { |
| 2184 /** | 2184 /** |
| 2185 * The identifier used to associate results with this search request. | 2185 * The identifier used to associate results with this search request. |
| 2186 */ | 2186 */ |
| 2187 final String id; | 2187 String id; |
| 2188 | 2188 |
| 2189 SearchFindMemberReferencesResult(this.id); | 2189 SearchFindMemberReferencesResult(this.id); |
| 2190 | 2190 |
| 2191 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 2191 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { |
| 2192 if (json == null) { | 2192 if (json == null) { |
| 2193 json = {}; | 2193 json = {}; |
| 2194 } | 2194 } |
| 2195 if (json is Map) { | 2195 if (json is Map) { |
| 2196 String id; | 2196 String id; |
| 2197 if (json.containsKey("id")) { | 2197 if (json.containsKey("id")) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 * | 2240 * |
| 2241 * { | 2241 * { |
| 2242 * "pattern": String | 2242 * "pattern": String |
| 2243 * } | 2243 * } |
| 2244 */ | 2244 */ |
| 2245 class SearchFindTopLevelDeclarationsParams implements HasToJson { | 2245 class SearchFindTopLevelDeclarationsParams implements HasToJson { |
| 2246 /** | 2246 /** |
| 2247 * The regular expression used to match the names of the declarations to be | 2247 * The regular expression used to match the names of the declarations to be |
| 2248 * found. | 2248 * found. |
| 2249 */ | 2249 */ |
| 2250 final String pattern; | 2250 String pattern; |
| 2251 | 2251 |
| 2252 SearchFindTopLevelDeclarationsParams(this.pattern); | 2252 SearchFindTopLevelDeclarationsParams(this.pattern); |
| 2253 | 2253 |
| 2254 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 2254 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { |
| 2255 if (json == null) { | 2255 if (json == null) { |
| 2256 json = {}; | 2256 json = {}; |
| 2257 } | 2257 } |
| 2258 if (json is Map) { | 2258 if (json is Map) { |
| 2259 String pattern; | 2259 String pattern; |
| 2260 if (json.containsKey("pattern")) { | 2260 if (json.containsKey("pattern")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2306 * search.findTopLevelDeclarations result | 2306 * search.findTopLevelDeclarations result |
| 2307 * | 2307 * |
| 2308 * { | 2308 * { |
| 2309 * "id": SearchId | 2309 * "id": SearchId |
| 2310 * } | 2310 * } |
| 2311 */ | 2311 */ |
| 2312 class SearchFindTopLevelDeclarationsResult implements HasToJson { | 2312 class SearchFindTopLevelDeclarationsResult implements HasToJson { |
| 2313 /** | 2313 /** |
| 2314 * The identifier used to associate results with this search request. | 2314 * The identifier used to associate results with this search request. |
| 2315 */ | 2315 */ |
| 2316 final String id; | 2316 String id; |
| 2317 | 2317 |
| 2318 SearchFindTopLevelDeclarationsResult(this.id); | 2318 SearchFindTopLevelDeclarationsResult(this.id); |
| 2319 | 2319 |
| 2320 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 2320 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { |
| 2321 if (json == null) { | 2321 if (json == null) { |
| 2322 json = {}; | 2322 json = {}; |
| 2323 } | 2323 } |
| 2324 if (json is Map) { | 2324 if (json is Map) { |
| 2325 String id; | 2325 String id; |
| 2326 if (json.containsKey("id")) { | 2326 if (json.containsKey("id")) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2370 * { | 2370 * { |
| 2371 * "file": FilePath | 2371 * "file": FilePath |
| 2372 * "offset": int | 2372 * "offset": int |
| 2373 * } | 2373 * } |
| 2374 */ | 2374 */ |
| 2375 class SearchGetTypeHierarchyParams implements HasToJson { | 2375 class SearchGetTypeHierarchyParams implements HasToJson { |
| 2376 /** | 2376 /** |
| 2377 * The file containing the declaration or reference to the type for which a | 2377 * The file containing the declaration or reference to the type for which a |
| 2378 * hierarchy is being requested. | 2378 * hierarchy is being requested. |
| 2379 */ | 2379 */ |
| 2380 final String file; | 2380 String file; |
| 2381 | 2381 |
| 2382 /** | 2382 /** |
| 2383 * The offset of the name of the type within the file. | 2383 * The offset of the name of the type within the file. |
| 2384 */ | 2384 */ |
| 2385 final int offset; | 2385 int offset; |
| 2386 | 2386 |
| 2387 SearchGetTypeHierarchyParams(this.file, this.offset); | 2387 SearchGetTypeHierarchyParams(this.file, this.offset); |
| 2388 | 2388 |
| 2389 factory SearchGetTypeHierarchyParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 2389 factory SearchGetTypeHierarchyParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
| 2390 if (json == null) { | 2390 if (json == null) { |
| 2391 json = {}; | 2391 json = {}; |
| 2392 } | 2392 } |
| 2393 if (json is Map) { | 2393 if (json is Map) { |
| 2394 String file; | 2394 String file; |
| 2395 if (json.containsKey("file")) { | 2395 if (json.containsKey("file")) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2458 * A list of the types in the requested hierarchy. The first element of the | 2458 * A list of the types in the requested hierarchy. The first element of the |
| 2459 * list is the item representing the type for which the hierarchy was | 2459 * list is the item representing the type for which the hierarchy was |
| 2460 * requested. The index of other elements of the list is unspecified, but | 2460 * requested. The index of other elements of the list is unspecified, but |
| 2461 * correspond to the integers used to reference supertype and subtype items | 2461 * correspond to the integers used to reference supertype and subtype items |
| 2462 * within the items. | 2462 * within the items. |
| 2463 * | 2463 * |
| 2464 * This field will be absent if the code at the given file and offset does | 2464 * This field will be absent if the code at the given file and offset does |
| 2465 * not represent a type, or if the file has not been sufficiently analyzed to | 2465 * not represent a type, or if the file has not been sufficiently analyzed to |
| 2466 * allow a type hierarchy to be produced. | 2466 * allow a type hierarchy to be produced. |
| 2467 */ | 2467 */ |
| 2468 final List<TypeHierarchyItem> hierarchyItems; | 2468 List<TypeHierarchyItem> hierarchyItems; |
| 2469 | 2469 |
| 2470 SearchGetTypeHierarchyResult({this.hierarchyItems}); | 2470 SearchGetTypeHierarchyResult({this.hierarchyItems}); |
| 2471 | 2471 |
| 2472 factory SearchGetTypeHierarchyResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 2472 factory SearchGetTypeHierarchyResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
| 2473 if (json == null) { | 2473 if (json == null) { |
| 2474 json = {}; | 2474 json = {}; |
| 2475 } | 2475 } |
| 2476 if (json is Map) { | 2476 if (json is Map) { |
| 2477 List<TypeHierarchyItem> hierarchyItems; | 2477 List<TypeHierarchyItem> hierarchyItems; |
| 2478 if (json.containsKey("hierarchyItems")) { | 2478 if (json.containsKey("hierarchyItems")) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2522 * { | 2522 * { |
| 2523 * "id": SearchId | 2523 * "id": SearchId |
| 2524 * "results": List<SearchResult> | 2524 * "results": List<SearchResult> |
| 2525 * "last": bool | 2525 * "last": bool |
| 2526 * } | 2526 * } |
| 2527 */ | 2527 */ |
| 2528 class SearchResultsParams implements HasToJson { | 2528 class SearchResultsParams implements HasToJson { |
| 2529 /** | 2529 /** |
| 2530 * The id associated with the search. | 2530 * The id associated with the search. |
| 2531 */ | 2531 */ |
| 2532 final String id; | 2532 String id; |
| 2533 | 2533 |
| 2534 /** | 2534 /** |
| 2535 * The search results being reported. | 2535 * The search results being reported. |
| 2536 */ | 2536 */ |
| 2537 final List<SearchResult> results; | 2537 List<SearchResult> results; |
| 2538 | 2538 |
| 2539 /** | 2539 /** |
| 2540 * True if this is that last set of results that will be returned for the | 2540 * True if this is that last set of results that will be returned for the |
| 2541 * indicated search. | 2541 * indicated search. |
| 2542 */ | 2542 */ |
| 2543 final bool last; | 2543 bool last; |
| 2544 | 2544 |
| 2545 SearchResultsParams(this.id, this.results, this.last); | 2545 SearchResultsParams(this.id, this.results, this.last); |
| 2546 | 2546 |
| 2547 factory SearchResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 2547 factory SearchResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
| 2548 if (json == null) { | 2548 if (json == null) { |
| 2549 json = {}; | 2549 json = {}; |
| 2550 } | 2550 } |
| 2551 if (json is Map) { | 2551 if (json is Map) { |
| 2552 String id; | 2552 String id; |
| 2553 if (json.containsKey("id")) { | 2553 if (json.containsKey("id")) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2615 * { | 2615 * { |
| 2616 * "file": FilePath | 2616 * "file": FilePath |
| 2617 * "offset": int | 2617 * "offset": int |
| 2618 * "length": int | 2618 * "length": int |
| 2619 * } | 2619 * } |
| 2620 */ | 2620 */ |
| 2621 class EditGetAssistsParams implements HasToJson { | 2621 class EditGetAssistsParams implements HasToJson { |
| 2622 /** | 2622 /** |
| 2623 * The file containing the code for which assists are being requested. | 2623 * The file containing the code for which assists are being requested. |
| 2624 */ | 2624 */ |
| 2625 final String file; | 2625 String file; |
| 2626 | 2626 |
| 2627 /** | 2627 /** |
| 2628 * The offset of the code for which assists are being requested. | 2628 * The offset of the code for which assists are being requested. |
| 2629 */ | 2629 */ |
| 2630 final int offset; | 2630 int offset; |
| 2631 | 2631 |
| 2632 /** | 2632 /** |
| 2633 * The length of the code for which assists are being requested. | 2633 * The length of the code for which assists are being requested. |
| 2634 */ | 2634 */ |
| 2635 final int length; | 2635 int length; |
| 2636 | 2636 |
| 2637 EditGetAssistsParams(this.file, this.offset, this.length); | 2637 EditGetAssistsParams(this.file, this.offset, this.length); |
| 2638 | 2638 |
| 2639 factory EditGetAssistsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 2639 factory EditGetAssistsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 2640 if (json == null) { | 2640 if (json == null) { |
| 2641 json = {}; | 2641 json = {}; |
| 2642 } | 2642 } |
| 2643 if (json is Map) { | 2643 if (json is Map) { |
| 2644 String file; | 2644 String file; |
| 2645 if (json.containsKey("file")) { | 2645 if (json.containsKey("file")) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2709 * edit.getAssists result | 2709 * edit.getAssists result |
| 2710 * | 2710 * |
| 2711 * { | 2711 * { |
| 2712 * "assists": List<SourceChange> | 2712 * "assists": List<SourceChange> |
| 2713 * } | 2713 * } |
| 2714 */ | 2714 */ |
| 2715 class EditGetAssistsResult implements HasToJson { | 2715 class EditGetAssistsResult implements HasToJson { |
| 2716 /** | 2716 /** |
| 2717 * The assists that are available at the given location. | 2717 * The assists that are available at the given location. |
| 2718 */ | 2718 */ |
| 2719 final List<SourceChange> assists; | 2719 List<SourceChange> assists; |
| 2720 | 2720 |
| 2721 EditGetAssistsResult(this.assists); | 2721 EditGetAssistsResult(this.assists); |
| 2722 | 2722 |
| 2723 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 2723 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 2724 if (json == null) { | 2724 if (json == null) { |
| 2725 json = {}; | 2725 json = {}; |
| 2726 } | 2726 } |
| 2727 if (json is Map) { | 2727 if (json is Map) { |
| 2728 List<SourceChange> assists; | 2728 List<SourceChange> assists; |
| 2729 if (json.containsKey("assists")) { | 2729 if (json.containsKey("assists")) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2773 * { | 2773 * { |
| 2774 * "file": FilePath | 2774 * "file": FilePath |
| 2775 * "offset": int | 2775 * "offset": int |
| 2776 * "length": int | 2776 * "length": int |
| 2777 * } | 2777 * } |
| 2778 */ | 2778 */ |
| 2779 class EditGetAvailableRefactoringsParams implements HasToJson { | 2779 class EditGetAvailableRefactoringsParams implements HasToJson { |
| 2780 /** | 2780 /** |
| 2781 * The file containing the code on which the refactoring would be based. | 2781 * The file containing the code on which the refactoring would be based. |
| 2782 */ | 2782 */ |
| 2783 final String file; | 2783 String file; |
| 2784 | 2784 |
| 2785 /** | 2785 /** |
| 2786 * The offset of the code on which the refactoring would be based. | 2786 * The offset of the code on which the refactoring would be based. |
| 2787 */ | 2787 */ |
| 2788 final int offset; | 2788 int offset; |
| 2789 | 2789 |
| 2790 /** | 2790 /** |
| 2791 * The length of the code on which the refactoring would be based. | 2791 * The length of the code on which the refactoring would be based. |
| 2792 */ | 2792 */ |
| 2793 final int length; | 2793 int length; |
| 2794 | 2794 |
| 2795 EditGetAvailableRefactoringsParams(this.file, this.offset, this.length); | 2795 EditGetAvailableRefactoringsParams(this.file, this.offset, this.length); |
| 2796 | 2796 |
| 2797 factory EditGetAvailableRefactoringsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 2797 factory EditGetAvailableRefactoringsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 2798 if (json == null) { | 2798 if (json == null) { |
| 2799 json = {}; | 2799 json = {}; |
| 2800 } | 2800 } |
| 2801 if (json is Map) { | 2801 if (json is Map) { |
| 2802 String file; | 2802 String file; |
| 2803 if (json.containsKey("file")) { | 2803 if (json.containsKey("file")) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2867 * edit.getAvailableRefactorings result | 2867 * edit.getAvailableRefactorings result |
| 2868 * | 2868 * |
| 2869 * { | 2869 * { |
| 2870 * "kinds": List<RefactoringKind> | 2870 * "kinds": List<RefactoringKind> |
| 2871 * } | 2871 * } |
| 2872 */ | 2872 */ |
| 2873 class EditGetAvailableRefactoringsResult implements HasToJson { | 2873 class EditGetAvailableRefactoringsResult implements HasToJson { |
| 2874 /** | 2874 /** |
| 2875 * The kinds of refactorings that are valid for the given selection. | 2875 * The kinds of refactorings that are valid for the given selection. |
| 2876 */ | 2876 */ |
| 2877 final List<RefactoringKind> kinds; | 2877 List<RefactoringKind> kinds; |
| 2878 | 2878 |
| 2879 EditGetAvailableRefactoringsResult(this.kinds); | 2879 EditGetAvailableRefactoringsResult(this.kinds); |
| 2880 | 2880 |
| 2881 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 2881 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 2882 if (json == null) { | 2882 if (json == null) { |
| 2883 json = {}; | 2883 json = {}; |
| 2884 } | 2884 } |
| 2885 if (json is Map) { | 2885 if (json is Map) { |
| 2886 List<RefactoringKind> kinds; | 2886 List<RefactoringKind> kinds; |
| 2887 if (json.containsKey("kinds")) { | 2887 if (json.containsKey("kinds")) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2930 * | 2930 * |
| 2931 * { | 2931 * { |
| 2932 * "file": FilePath | 2932 * "file": FilePath |
| 2933 * "offset": int | 2933 * "offset": int |
| 2934 * } | 2934 * } |
| 2935 */ | 2935 */ |
| 2936 class EditGetFixesParams implements HasToJson { | 2936 class EditGetFixesParams implements HasToJson { |
| 2937 /** | 2937 /** |
| 2938 * The file containing the errors for which fixes are being requested. | 2938 * The file containing the errors for which fixes are being requested. |
| 2939 */ | 2939 */ |
| 2940 final String file; | 2940 String file; |
| 2941 | 2941 |
| 2942 /** | 2942 /** |
| 2943 * The offset used to select the errors for which fixes will be returned. | 2943 * The offset used to select the errors for which fixes will be returned. |
| 2944 */ | 2944 */ |
| 2945 final int offset; | 2945 int offset; |
| 2946 | 2946 |
| 2947 EditGetFixesParams(this.file, this.offset); | 2947 EditGetFixesParams(this.file, this.offset); |
| 2948 | 2948 |
| 2949 factory EditGetFixesParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 2949 factory EditGetFixesParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
| 2950 if (json == null) { | 2950 if (json == null) { |
| 2951 json = {}; | 2951 json = {}; |
| 2952 } | 2952 } |
| 2953 if (json is Map) { | 2953 if (json is Map) { |
| 2954 String file; | 2954 String file; |
| 2955 if (json.containsKey("file")) { | 2955 if (json.containsKey("file")) { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3015 */ | 3015 */ |
| 3016 class EditGetFixesResult implements HasToJson { | 3016 class EditGetFixesResult implements HasToJson { |
| 3017 /** | 3017 /** |
| 3018 * The fixes that are available for each of the analysis errors. There is a | 3018 * The fixes that are available for each of the analysis errors. There is a |
| 3019 * one-to-one correspondence between the analysis errors in the request and | 3019 * one-to-one correspondence between the analysis errors in the request and |
| 3020 * the lists of changes in the response. In particular, it is always the case | 3020 * the lists of changes in the response. In particular, it is always the case |
| 3021 * that errors.length == fixes.length and that fixes[i] is the list of fixes | 3021 * that errors.length == fixes.length and that fixes[i] is the list of fixes |
| 3022 * for the error in errors[i]. The list of changes corresponding to an error | 3022 * for the error in errors[i]. The list of changes corresponding to an error |
| 3023 * can be empty if there are no fixes available for that error. | 3023 * can be empty if there are no fixes available for that error. |
| 3024 */ | 3024 */ |
| 3025 final List<ErrorFixes> fixes; | 3025 List<ErrorFixes> fixes; |
| 3026 | 3026 |
| 3027 EditGetFixesResult(this.fixes); | 3027 EditGetFixesResult(this.fixes); |
| 3028 | 3028 |
| 3029 factory EditGetFixesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 3029 factory EditGetFixesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
| 3030 if (json == null) { | 3030 if (json == null) { |
| 3031 json = {}; | 3031 json = {}; |
| 3032 } | 3032 } |
| 3033 if (json is Map) { | 3033 if (json is Map) { |
| 3034 List<ErrorFixes> fixes; | 3034 List<ErrorFixes> fixes; |
| 3035 if (json.containsKey("fixes")) { | 3035 if (json.containsKey("fixes")) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3082 * "offset": int | 3082 * "offset": int |
| 3083 * "length": int | 3083 * "length": int |
| 3084 * "validateOnly": bool | 3084 * "validateOnly": bool |
| 3085 * "options": optional object | 3085 * "options": optional object |
| 3086 * } | 3086 * } |
| 3087 */ | 3087 */ |
| 3088 class EditGetRefactoringParams implements HasToJson { | 3088 class EditGetRefactoringParams implements HasToJson { |
| 3089 /** | 3089 /** |
| 3090 * The identifier of the kind of refactoring to be performed. | 3090 * The identifier of the kind of refactoring to be performed. |
| 3091 */ | 3091 */ |
| 3092 final RefactoringKind kindId; | 3092 RefactoringKind kindId; |
| 3093 | 3093 |
| 3094 /** | 3094 /** |
| 3095 * The file containing the code involved in the refactoring. | 3095 * The file containing the code involved in the refactoring. |
| 3096 */ | 3096 */ |
| 3097 final String file; | 3097 String file; |
| 3098 | 3098 |
| 3099 /** | 3099 /** |
| 3100 * The offset of the region involved in the refactoring. | 3100 * The offset of the region involved in the refactoring. |
| 3101 */ | 3101 */ |
| 3102 final int offset; | 3102 int offset; |
| 3103 | 3103 |
| 3104 /** | 3104 /** |
| 3105 * The length of the region involved in the refactoring. | 3105 * The length of the region involved in the refactoring. |
| 3106 */ | 3106 */ |
| 3107 final int length; | 3107 int length; |
| 3108 | 3108 |
| 3109 /** | 3109 /** |
| 3110 * True if the client is only requesting that the values of the options be | 3110 * True if the client is only requesting that the values of the options be |
| 3111 * validated and no change be generated. | 3111 * validated and no change be generated. |
| 3112 */ | 3112 */ |
| 3113 final bool validateOnly; | 3113 bool validateOnly; |
| 3114 | 3114 |
| 3115 /** | 3115 /** |
| 3116 * Data used to provide values provided by the user. The structure of the | 3116 * Data used to provide values provided by the user. The structure of the |
| 3117 * data is dependent on the kind of refactoring being performed. The data | 3117 * data is dependent on the kind of refactoring being performed. The data |
| 3118 * that is expected is documented in the section titled Refactorings, labeled | 3118 * that is expected is documented in the section titled Refactorings, labeled |
| 3119 * as “Options”. This field can be omitted if the refactoring does not | 3119 * as “Options”. This field can be omitted if the refactoring does not |
| 3120 * require any options or if the values of those options are not known. | 3120 * require any options or if the values of those options are not known. |
| 3121 */ | 3121 */ |
| 3122 final Object options; | 3122 Object options; |
| 3123 | 3123 |
| 3124 EditGetRefactoringParams(this.kindId, this.file, this.offset, this.length, thi
s.validateOnly, {this.options}); | 3124 EditGetRefactoringParams(this.kindId, this.file, this.offset, this.length, thi
s.validateOnly, {this.options}); |
| 3125 | 3125 |
| 3126 factory EditGetRefactoringParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3126 factory EditGetRefactoringParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3127 if (json == null) { | 3127 if (json == null) { |
| 3128 json = {}; | 3128 json = {}; |
| 3129 } | 3129 } |
| 3130 if (json is Map) { | 3130 if (json is Map) { |
| 3131 RefactoringKind kindId; | 3131 RefactoringKind kindId; |
| 3132 if (json.containsKey("kindId")) { | 3132 if (json.containsKey("kindId")) { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3227 * "feedback": optional object | 3227 * "feedback": optional object |
| 3228 * "change": optional SourceChange | 3228 * "change": optional SourceChange |
| 3229 * "potentialEdits": optional List<String> | 3229 * "potentialEdits": optional List<String> |
| 3230 * } | 3230 * } |
| 3231 */ | 3231 */ |
| 3232 class EditGetRefactoringResult implements HasToJson { | 3232 class EditGetRefactoringResult implements HasToJson { |
| 3233 /** | 3233 /** |
| 3234 * The status of the refactoring. The array will be empty if there are no | 3234 * The status of the refactoring. The array will be empty if there are no |
| 3235 * known problems. | 3235 * known problems. |
| 3236 */ | 3236 */ |
| 3237 final List<RefactoringProblem> status; | 3237 List<RefactoringProblem> status; |
| 3238 | 3238 |
| 3239 /** | 3239 /** |
| 3240 * Data used to provide feedback to the user. The structure of the data is | 3240 * Data used to provide feedback to the user. The structure of the data is |
| 3241 * dependent on the kind of refactoring being created. The data that is | 3241 * dependent on the kind of refactoring being created. The data that is |
| 3242 * returned is documented in the section titled Refactorings, labeled as | 3242 * returned is documented in the section titled Refactorings, labeled as |
| 3243 * “Feedback”. | 3243 * “Feedback”. |
| 3244 */ | 3244 */ |
| 3245 final Object feedback; | 3245 Object feedback; |
| 3246 | 3246 |
| 3247 /** | 3247 /** |
| 3248 * The changes that are to be applied to affect the refactoring. This field | 3248 * The changes that are to be applied to affect the refactoring. This field |
| 3249 * will be omitted if there are problems that prevent a set of changes from | 3249 * will be omitted if there are problems that prevent a set of changes from |
| 3250 * being computed, such as having no options specified for a refactoring that | 3250 * being computed, such as having no options specified for a refactoring that |
| 3251 * requires them, or if only validation was requested. | 3251 * requires them, or if only validation was requested. |
| 3252 */ | 3252 */ |
| 3253 final SourceChange change; | 3253 SourceChange change; |
| 3254 | 3254 |
| 3255 /** | 3255 /** |
| 3256 * The ids of source edits that are not known to be valid. An edit is not | 3256 * The ids of source edits that are not known to be valid. An edit is not |
| 3257 * known to be valid if there was insufficient type information for the | 3257 * known to be valid if there was insufficient type information for the |
| 3258 * server to be able to determine whether or not the code needs to be | 3258 * server to be able to determine whether or not the code needs to be |
| 3259 * modified, such as when a member is being renamed and there is a reference | 3259 * modified, such as when a member is being renamed and there is a reference |
| 3260 * to a member from an unknown type. This field will be omitted if the change | 3260 * to a member from an unknown type. This field will be omitted if the change |
| 3261 * field is omitted or if there are no potential edits for the refactoring. | 3261 * field is omitted or if there are no potential edits for the refactoring. |
| 3262 */ | 3262 */ |
| 3263 final List<String> potentialEdits; | 3263 List<String> potentialEdits; |
| 3264 | 3264 |
| 3265 EditGetRefactoringResult(this.status, {this.feedback, this.change, this.potent
ialEdits}); | 3265 EditGetRefactoringResult(this.status, {this.feedback, this.change, this.potent
ialEdits}); |
| 3266 | 3266 |
| 3267 factory EditGetRefactoringResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3267 factory EditGetRefactoringResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3268 if (json == null) { | 3268 if (json == null) { |
| 3269 json = {}; | 3269 json = {}; |
| 3270 } | 3270 } |
| 3271 if (json is Map) { | 3271 if (json is Map) { |
| 3272 List<RefactoringProblem> status; | 3272 List<RefactoringProblem> status; |
| 3273 if (json.containsKey("status")) { | 3273 if (json.containsKey("status")) { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3342 * debug.createContext params | 3342 * debug.createContext params |
| 3343 * | 3343 * |
| 3344 * { | 3344 * { |
| 3345 * "contextRoot": FilePath | 3345 * "contextRoot": FilePath |
| 3346 * } | 3346 * } |
| 3347 */ | 3347 */ |
| 3348 class DebugCreateContextParams implements HasToJson { | 3348 class DebugCreateContextParams implements HasToJson { |
| 3349 /** | 3349 /** |
| 3350 * The path of the Dart or HTML file that will be launched. | 3350 * The path of the Dart or HTML file that will be launched. |
| 3351 */ | 3351 */ |
| 3352 final String contextRoot; | 3352 String contextRoot; |
| 3353 | 3353 |
| 3354 DebugCreateContextParams(this.contextRoot); | 3354 DebugCreateContextParams(this.contextRoot); |
| 3355 | 3355 |
| 3356 factory DebugCreateContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3356 factory DebugCreateContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3357 if (json == null) { | 3357 if (json == null) { |
| 3358 json = {}; | 3358 json = {}; |
| 3359 } | 3359 } |
| 3360 if (json is Map) { | 3360 if (json is Map) { |
| 3361 String contextRoot; | 3361 String contextRoot; |
| 3362 if (json.containsKey("contextRoot")) { | 3362 if (json.containsKey("contextRoot")) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3408 * debug.createContext result | 3408 * debug.createContext result |
| 3409 * | 3409 * |
| 3410 * { | 3410 * { |
| 3411 * "id": DebugContextId | 3411 * "id": DebugContextId |
| 3412 * } | 3412 * } |
| 3413 */ | 3413 */ |
| 3414 class DebugCreateContextResult implements HasToJson { | 3414 class DebugCreateContextResult implements HasToJson { |
| 3415 /** | 3415 /** |
| 3416 * The identifier used to refer to the debugging context that was created. | 3416 * The identifier used to refer to the debugging context that was created. |
| 3417 */ | 3417 */ |
| 3418 final String id; | 3418 String id; |
| 3419 | 3419 |
| 3420 DebugCreateContextResult(this.id); | 3420 DebugCreateContextResult(this.id); |
| 3421 | 3421 |
| 3422 factory DebugCreateContextResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3422 factory DebugCreateContextResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3423 if (json == null) { | 3423 if (json == null) { |
| 3424 json = {}; | 3424 json = {}; |
| 3425 } | 3425 } |
| 3426 if (json is Map) { | 3426 if (json is Map) { |
| 3427 String id; | 3427 String id; |
| 3428 if (json.containsKey("id")) { | 3428 if (json.containsKey("id")) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3470 * debug.deleteContext params | 3470 * debug.deleteContext params |
| 3471 * | 3471 * |
| 3472 * { | 3472 * { |
| 3473 * "id": DebugContextId | 3473 * "id": DebugContextId |
| 3474 * } | 3474 * } |
| 3475 */ | 3475 */ |
| 3476 class DebugDeleteContextParams implements HasToJson { | 3476 class DebugDeleteContextParams implements HasToJson { |
| 3477 /** | 3477 /** |
| 3478 * The identifier of the debugging context that is to be deleted. | 3478 * The identifier of the debugging context that is to be deleted. |
| 3479 */ | 3479 */ |
| 3480 final String id; | 3480 String id; |
| 3481 | 3481 |
| 3482 DebugDeleteContextParams(this.id); | 3482 DebugDeleteContextParams(this.id); |
| 3483 | 3483 |
| 3484 factory DebugDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3484 factory DebugDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3485 if (json == null) { | 3485 if (json == null) { |
| 3486 json = {}; | 3486 json = {}; |
| 3487 } | 3487 } |
| 3488 if (json is Map) { | 3488 if (json is Map) { |
| 3489 String id; | 3489 String id; |
| 3490 if (json.containsKey("id")) { | 3490 if (json.containsKey("id")) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3538 * { | 3538 * { |
| 3539 * "id": DebugContextId | 3539 * "id": DebugContextId |
| 3540 * "file": optional FilePath | 3540 * "file": optional FilePath |
| 3541 * "uri": optional String | 3541 * "uri": optional String |
| 3542 * } | 3542 * } |
| 3543 */ | 3543 */ |
| 3544 class DebugMapUriParams implements HasToJson { | 3544 class DebugMapUriParams implements HasToJson { |
| 3545 /** | 3545 /** |
| 3546 * The identifier of the debugging context in which the URI is to be mapped. | 3546 * The identifier of the debugging context in which the URI is to be mapped. |
| 3547 */ | 3547 */ |
| 3548 final String id; | 3548 String id; |
| 3549 | 3549 |
| 3550 /** | 3550 /** |
| 3551 * The path of the file to be mapped into a URI. | 3551 * The path of the file to be mapped into a URI. |
| 3552 */ | 3552 */ |
| 3553 final String file; | 3553 String file; |
| 3554 | 3554 |
| 3555 /** | 3555 /** |
| 3556 * The URI to be mapped into a file path. | 3556 * The URI to be mapped into a file path. |
| 3557 */ | 3557 */ |
| 3558 final String uri; | 3558 String uri; |
| 3559 | 3559 |
| 3560 DebugMapUriParams(this.id, {this.file, this.uri}); | 3560 DebugMapUriParams(this.id, {this.file, this.uri}); |
| 3561 | 3561 |
| 3562 factory DebugMapUriParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 3562 factory DebugMapUriParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
| 3563 if (json == null) { | 3563 if (json == null) { |
| 3564 json = {}; | 3564 json = {}; |
| 3565 } | 3565 } |
| 3566 if (json is Map) { | 3566 if (json is Map) { |
| 3567 String id; | 3567 String id; |
| 3568 if (json.containsKey("id")) { | 3568 if (json.containsKey("id")) { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3634 * { | 3634 * { |
| 3635 * "file": optional FilePath | 3635 * "file": optional FilePath |
| 3636 * "uri": optional String | 3636 * "uri": optional String |
| 3637 * } | 3637 * } |
| 3638 */ | 3638 */ |
| 3639 class DebugMapUriResult implements HasToJson { | 3639 class DebugMapUriResult implements HasToJson { |
| 3640 /** | 3640 /** |
| 3641 * The file to which the URI was mapped. This field is omitted if the uri | 3641 * The file to which the URI was mapped. This field is omitted if the uri |
| 3642 * field was not given in the request. | 3642 * field was not given in the request. |
| 3643 */ | 3643 */ |
| 3644 final String file; | 3644 String file; |
| 3645 | 3645 |
| 3646 /** | 3646 /** |
| 3647 * The URI to which the file path was mapped. This field is omitted if the | 3647 * The URI to which the file path was mapped. This field is omitted if the |
| 3648 * file field was not given in the request. | 3648 * file field was not given in the request. |
| 3649 */ | 3649 */ |
| 3650 final String uri; | 3650 String uri; |
| 3651 | 3651 |
| 3652 DebugMapUriResult({this.file, this.uri}); | 3652 DebugMapUriResult({this.file, this.uri}); |
| 3653 | 3653 |
| 3654 factory DebugMapUriResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 3654 factory DebugMapUriResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
| 3655 if (json == null) { | 3655 if (json == null) { |
| 3656 json = {}; | 3656 json = {}; |
| 3657 } | 3657 } |
| 3658 if (json is Map) { | 3658 if (json is Map) { |
| 3659 String file; | 3659 String file; |
| 3660 if (json.containsKey("file")) { | 3660 if (json.containsKey("file")) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3711 * debug.setSubscriptions params | 3711 * debug.setSubscriptions params |
| 3712 * | 3712 * |
| 3713 * { | 3713 * { |
| 3714 * "subscriptions": List<DebugService> | 3714 * "subscriptions": List<DebugService> |
| 3715 * } | 3715 * } |
| 3716 */ | 3716 */ |
| 3717 class DebugSetSubscriptionsParams implements HasToJson { | 3717 class DebugSetSubscriptionsParams implements HasToJson { |
| 3718 /** | 3718 /** |
| 3719 * A list of the services being subscribed to. | 3719 * A list of the services being subscribed to. |
| 3720 */ | 3720 */ |
| 3721 final List<DebugService> subscriptions; | 3721 List<DebugService> subscriptions; |
| 3722 | 3722 |
| 3723 DebugSetSubscriptionsParams(this.subscriptions); | 3723 DebugSetSubscriptionsParams(this.subscriptions); |
| 3724 | 3724 |
| 3725 factory DebugSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 3725 factory DebugSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 3726 if (json == null) { | 3726 if (json == null) { |
| 3727 json = {}; | 3727 json = {}; |
| 3728 } | 3728 } |
| 3729 if (json is Map) { | 3729 if (json is Map) { |
| 3730 List<DebugService> subscriptions; | 3730 List<DebugService> subscriptions; |
| 3731 if (json.containsKey("subscriptions")) { | 3731 if (json.containsKey("subscriptions")) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3780 * "executables": List<ExecutableFile> | 3780 * "executables": List<ExecutableFile> |
| 3781 * "dartToHtml": Map<FilePath, List<FilePath>> | 3781 * "dartToHtml": Map<FilePath, List<FilePath>> |
| 3782 * "htmlToDart": Map<FilePath, List<FilePath>> | 3782 * "htmlToDart": Map<FilePath, List<FilePath>> |
| 3783 * } | 3783 * } |
| 3784 */ | 3784 */ |
| 3785 class DebugLaunchDataParams implements HasToJson { | 3785 class DebugLaunchDataParams implements HasToJson { |
| 3786 /** | 3786 /** |
| 3787 * A list of the files that are executable in the given context. This list | 3787 * A list of the files that are executable in the given context. This list |
| 3788 * replaces any previous list provided for the given context. | 3788 * replaces any previous list provided for the given context. |
| 3789 */ | 3789 */ |
| 3790 final List<ExecutableFile> executables; | 3790 List<ExecutableFile> executables; |
| 3791 | 3791 |
| 3792 /** | 3792 /** |
| 3793 * A mapping from the paths of Dart files that are referenced by HTML files | 3793 * A mapping from the paths of Dart files that are referenced by HTML files |
| 3794 * to a list of the HTML files that reference the Dart files. | 3794 * to a list of the HTML files that reference the Dart files. |
| 3795 */ | 3795 */ |
| 3796 final Map<String, List<String>> dartToHtml; | 3796 Map<String, List<String>> dartToHtml; |
| 3797 | 3797 |
| 3798 /** | 3798 /** |
| 3799 * A mapping from the paths of HTML files that reference Dart files to a list | 3799 * A mapping from the paths of HTML files that reference Dart files to a list |
| 3800 * of the Dart files they reference. | 3800 * of the Dart files they reference. |
| 3801 */ | 3801 */ |
| 3802 final Map<String, List<String>> htmlToDart; | 3802 Map<String, List<String>> htmlToDart; |
| 3803 | 3803 |
| 3804 DebugLaunchDataParams(this.executables, this.dartToHtml, this.htmlToDart); | 3804 DebugLaunchDataParams(this.executables, this.dartToHtml, this.htmlToDart); |
| 3805 | 3805 |
| 3806 factory DebugLaunchDataParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 3806 factory DebugLaunchDataParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
| 3807 if (json == null) { | 3807 if (json == null) { |
| 3808 json = {}; | 3808 json = {}; |
| 3809 } | 3809 } |
| 3810 if (json is Map) { | 3810 if (json is Map) { |
| 3811 List<ExecutableFile> executables; | 3811 List<ExecutableFile> executables; |
| 3812 if (json.containsKey("executables")) { | 3812 if (json.containsKey("executables")) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3873 * | 3873 * |
| 3874 * { | 3874 * { |
| 3875 * "type": "add" | 3875 * "type": "add" |
| 3876 * "content": String | 3876 * "content": String |
| 3877 * } | 3877 * } |
| 3878 */ | 3878 */ |
| 3879 class AddContentOverlay implements HasToJson { | 3879 class AddContentOverlay implements HasToJson { |
| 3880 /** | 3880 /** |
| 3881 * The new content of the file. | 3881 * The new content of the file. |
| 3882 */ | 3882 */ |
| 3883 final String content; | 3883 String content; |
| 3884 | 3884 |
| 3885 AddContentOverlay(this.content); | 3885 AddContentOverlay(this.content); |
| 3886 | 3886 |
| 3887 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 3887 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
| 3888 if (json == null) { | 3888 if (json == null) { |
| 3889 json = {}; | 3889 json = {}; |
| 3890 } | 3890 } |
| 3891 if (json is Map) { | 3891 if (json is Map) { |
| 3892 if (json["type"] != "add") { | 3892 if (json["type"] != "add") { |
| 3893 throw jsonDecoder.mismatch(jsonPath, "equal " + "add"); | 3893 throw jsonDecoder.mismatch(jsonPath, "equal " + "add"); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3939 * "type": ErrorType | 3939 * "type": ErrorType |
| 3940 * "location": Location | 3940 * "location": Location |
| 3941 * "message": String | 3941 * "message": String |
| 3942 * "correction": optional String | 3942 * "correction": optional String |
| 3943 * } | 3943 * } |
| 3944 */ | 3944 */ |
| 3945 class AnalysisError implements HasToJson { | 3945 class AnalysisError implements HasToJson { |
| 3946 /** | 3946 /** |
| 3947 * The severity of the error. | 3947 * The severity of the error. |
| 3948 */ | 3948 */ |
| 3949 final ErrorSeverity severity; | 3949 ErrorSeverity severity; |
| 3950 | 3950 |
| 3951 /** | 3951 /** |
| 3952 * The type of the error. | 3952 * The type of the error. |
| 3953 */ | 3953 */ |
| 3954 final ErrorType type; | 3954 ErrorType type; |
| 3955 | 3955 |
| 3956 /** | 3956 /** |
| 3957 * The location associated with the error. | 3957 * The location associated with the error. |
| 3958 */ | 3958 */ |
| 3959 final Location location; | 3959 Location location; |
| 3960 | 3960 |
| 3961 /** | 3961 /** |
| 3962 * The message to be displayed for this error. The message should indicate | 3962 * The message to be displayed for this error. The message should indicate |
| 3963 * what is wrong with the code and why it is wrong. | 3963 * what is wrong with the code and why it is wrong. |
| 3964 */ | 3964 */ |
| 3965 final String message; | 3965 String message; |
| 3966 | 3966 |
| 3967 /** | 3967 /** |
| 3968 * The correction message to be displayed for this error. The correction | 3968 * The correction message to be displayed for this error. The correction |
| 3969 * message should indicate how the user can fix the error. The field is | 3969 * message should indicate how the user can fix the error. The field is |
| 3970 * omitted if there is no correction message associated with the error code. | 3970 * omitted if there is no correction message associated with the error code. |
| 3971 */ | 3971 */ |
| 3972 final String correction; | 3972 String correction; |
| 3973 | 3973 |
| 3974 AnalysisError(this.severity, this.type, this.location, this.message, {this.cor
rection}); | 3974 AnalysisError(this.severity, this.type, this.location, this.message, {this.cor
rection}); |
| 3975 | 3975 |
| 3976 factory AnalysisError.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 3976 factory AnalysisError.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { |
| 3977 if (json == null) { | 3977 if (json == null) { |
| 3978 json = {}; | 3978 json = {}; |
| 3979 } | 3979 } |
| 3980 if (json is Map) { | 3980 if (json is Map) { |
| 3981 ErrorSeverity severity; | 3981 ErrorSeverity severity; |
| 3982 if (json.containsKey("severity")) { | 3982 if (json.containsKey("severity")) { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4059 * "enableDeferredLoading": optional bool | 4059 * "enableDeferredLoading": optional bool |
| 4060 * "enableEnums": optional bool | 4060 * "enableEnums": optional bool |
| 4061 * "generateDart2jsHints": optional bool | 4061 * "generateDart2jsHints": optional bool |
| 4062 * "generateHints": optional bool | 4062 * "generateHints": optional bool |
| 4063 * } | 4063 * } |
| 4064 */ | 4064 */ |
| 4065 class AnalysisOptions implements HasToJson { | 4065 class AnalysisOptions implements HasToJson { |
| 4066 /** | 4066 /** |
| 4067 * True if the client wants to enable support for the proposed async feature. | 4067 * True if the client wants to enable support for the proposed async feature. |
| 4068 */ | 4068 */ |
| 4069 final bool enableAsync; | 4069 bool enableAsync; |
| 4070 | 4070 |
| 4071 /** | 4071 /** |
| 4072 * True if the client wants to enable support for the proposed deferred | 4072 * True if the client wants to enable support for the proposed deferred |
| 4073 * loading feature. | 4073 * loading feature. |
| 4074 */ | 4074 */ |
| 4075 final bool enableDeferredLoading; | 4075 bool enableDeferredLoading; |
| 4076 | 4076 |
| 4077 /** | 4077 /** |
| 4078 * True if the client wants to enable support for the proposed enum feature. | 4078 * True if the client wants to enable support for the proposed enum feature. |
| 4079 */ | 4079 */ |
| 4080 final bool enableEnums; | 4080 bool enableEnums; |
| 4081 | 4081 |
| 4082 /** | 4082 /** |
| 4083 * True if hints that are specific to dart2js should be generated. This | 4083 * True if hints that are specific to dart2js should be generated. This |
| 4084 * option is ignored if generateHints is false. | 4084 * option is ignored if generateHints is false. |
| 4085 */ | 4085 */ |
| 4086 final bool generateDart2jsHints; | 4086 bool generateDart2jsHints; |
| 4087 | 4087 |
| 4088 /** | 4088 /** |
| 4089 * True is hints should be generated as part of generating errors and | 4089 * True is hints should be generated as part of generating errors and |
| 4090 * warnings. | 4090 * warnings. |
| 4091 */ | 4091 */ |
| 4092 final bool generateHints; | 4092 bool generateHints; |
| 4093 | 4093 |
| 4094 AnalysisOptions({this.enableAsync, this.enableDeferredLoading, this.enableEnum
s, this.generateDart2jsHints, this.generateHints}); | 4094 AnalysisOptions({this.enableAsync, this.enableDeferredLoading, this.enableEnum
s, this.generateDart2jsHints, this.generateHints}); |
| 4095 | 4095 |
| 4096 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 4096 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
| 4097 if (json == null) { | 4097 if (json == null) { |
| 4098 json = {}; | 4098 json = {}; |
| 4099 } | 4099 } |
| 4100 if (json is Map) { | 4100 if (json is Map) { |
| 4101 bool enableAsync; | 4101 bool enableAsync; |
| 4102 if (json.containsKey("enableAsync")) { | 4102 if (json.containsKey("enableAsync")) { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4240 * | 4240 * |
| 4241 * { | 4241 * { |
| 4242 * "analyzing": bool | 4242 * "analyzing": bool |
| 4243 * "analysisTarget": optional String | 4243 * "analysisTarget": optional String |
| 4244 * } | 4244 * } |
| 4245 */ | 4245 */ |
| 4246 class AnalysisStatus implements HasToJson { | 4246 class AnalysisStatus implements HasToJson { |
| 4247 /** | 4247 /** |
| 4248 * True if analysis is currently being performed. | 4248 * True if analysis is currently being performed. |
| 4249 */ | 4249 */ |
| 4250 final bool analyzing; | 4250 bool analyzing; |
| 4251 | 4251 |
| 4252 /** | 4252 /** |
| 4253 * The name of the current target of analysis. This field is omitted if | 4253 * The name of the current target of analysis. This field is omitted if |
| 4254 * analyzing is false. | 4254 * analyzing is false. |
| 4255 */ | 4255 */ |
| 4256 final String analysisTarget; | 4256 String analysisTarget; |
| 4257 | 4257 |
| 4258 AnalysisStatus(this.analyzing, {this.analysisTarget}); | 4258 AnalysisStatus(this.analyzing, {this.analysisTarget}); |
| 4259 | 4259 |
| 4260 factory AnalysisStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 4260 factory AnalysisStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { |
| 4261 if (json == null) { | 4261 if (json == null) { |
| 4262 json = {}; | 4262 json = {}; |
| 4263 } | 4263 } |
| 4264 if (json is Map) { | 4264 if (json is Map) { |
| 4265 bool analyzing; | 4265 bool analyzing; |
| 4266 if (json.containsKey("analyzing")) { | 4266 if (json.containsKey("analyzing")) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4313 * | 4313 * |
| 4314 * { | 4314 * { |
| 4315 * "type": "change" | 4315 * "type": "change" |
| 4316 * "edits": List<SourceEdit> | 4316 * "edits": List<SourceEdit> |
| 4317 * } | 4317 * } |
| 4318 */ | 4318 */ |
| 4319 class ChangeContentOverlay implements HasToJson { | 4319 class ChangeContentOverlay implements HasToJson { |
| 4320 /** | 4320 /** |
| 4321 * The edits to be applied to the file. | 4321 * The edits to be applied to the file. |
| 4322 */ | 4322 */ |
| 4323 final List<SourceEdit> edits; | 4323 List<SourceEdit> edits; |
| 4324 | 4324 |
| 4325 ChangeContentOverlay(this.edits); | 4325 ChangeContentOverlay(this.edits); |
| 4326 | 4326 |
| 4327 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 4327 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 4328 if (json == null) { | 4328 if (json == null) { |
| 4329 json = {}; | 4329 json = {}; |
| 4330 } | 4330 } |
| 4331 if (json is Map) { | 4331 if (json is Map) { |
| 4332 if (json["type"] != "change") { | 4332 if (json["type"] != "change") { |
| 4333 throw jsonDecoder.mismatch(jsonPath, "equal " + "change"); | 4333 throw jsonDecoder.mismatch(jsonPath, "equal " + "change"); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4440 * "requiredParameterCount": optional int | 4440 * "requiredParameterCount": optional int |
| 4441 * "positionalParameterCount": optional int | 4441 * "positionalParameterCount": optional int |
| 4442 * "parameterName": optional String | 4442 * "parameterName": optional String |
| 4443 * "parameterType": optional String | 4443 * "parameterType": optional String |
| 4444 * } | 4444 * } |
| 4445 */ | 4445 */ |
| 4446 class CompletionSuggestion implements HasToJson { | 4446 class CompletionSuggestion implements HasToJson { |
| 4447 /** | 4447 /** |
| 4448 * The kind of element being suggested. | 4448 * The kind of element being suggested. |
| 4449 */ | 4449 */ |
| 4450 final CompletionSuggestionKind kind; | 4450 CompletionSuggestionKind kind; |
| 4451 | 4451 |
| 4452 /** | 4452 /** |
| 4453 * The relevance of this completion suggestion. | 4453 * The relevance of this completion suggestion. |
| 4454 */ | 4454 */ |
| 4455 final CompletionRelevance relevance; | 4455 CompletionRelevance relevance; |
| 4456 | 4456 |
| 4457 /** | 4457 /** |
| 4458 * The identifier to be inserted if the suggestion is selected. If the | 4458 * The identifier to be inserted if the suggestion is selected. If the |
| 4459 * suggestion is for a method or function, the client might want to | 4459 * suggestion is for a method or function, the client might want to |
| 4460 * additionally insert a template for the parameters. The information | 4460 * additionally insert a template for the parameters. The information |
| 4461 * required in order to do so is contained in other fields. | 4461 * required in order to do so is contained in other fields. |
| 4462 */ | 4462 */ |
| 4463 final String completion; | 4463 String completion; |
| 4464 | 4464 |
| 4465 /** | 4465 /** |
| 4466 * The offset, relative to the beginning of the completion, of where the | 4466 * The offset, relative to the beginning of the completion, of where the |
| 4467 * selection should be placed after insertion. | 4467 * selection should be placed after insertion. |
| 4468 */ | 4468 */ |
| 4469 final int selectionOffset; | 4469 int selectionOffset; |
| 4470 | 4470 |
| 4471 /** | 4471 /** |
| 4472 * The number of characters that should be selected after insertion. | 4472 * The number of characters that should be selected after insertion. |
| 4473 */ | 4473 */ |
| 4474 final int selectionLength; | 4474 int selectionLength; |
| 4475 | 4475 |
| 4476 /** | 4476 /** |
| 4477 * True if the suggested element is deprecated. | 4477 * True if the suggested element is deprecated. |
| 4478 */ | 4478 */ |
| 4479 final bool isDeprecated; | 4479 bool isDeprecated; |
| 4480 | 4480 |
| 4481 /** | 4481 /** |
| 4482 * True if the element is not known to be valid for the target. This happens | 4482 * True if the element is not known to be valid for the target. This happens |
| 4483 * if the type of the target is dynamic. | 4483 * if the type of the target is dynamic. |
| 4484 */ | 4484 */ |
| 4485 final bool isPotential; | 4485 bool isPotential; |
| 4486 | 4486 |
| 4487 /** | 4487 /** |
| 4488 * An abbreviated version of the Dartdoc associated with the element being | 4488 * An abbreviated version of the Dartdoc associated with the element being |
| 4489 * suggested, This field is omitted if there is no Dartdoc associated with | 4489 * suggested, This field is omitted if there is no Dartdoc associated with |
| 4490 * the element. | 4490 * the element. |
| 4491 */ | 4491 */ |
| 4492 final String docSummary; | 4492 String docSummary; |
| 4493 | 4493 |
| 4494 /** | 4494 /** |
| 4495 * The Dartdoc associated with the element being suggested, This field is | 4495 * The Dartdoc associated with the element being suggested, This field is |
| 4496 * omitted if there is no Dartdoc associated with the element. | 4496 * omitted if there is no Dartdoc associated with the element. |
| 4497 */ | 4497 */ |
| 4498 final String docComplete; | 4498 String docComplete; |
| 4499 | 4499 |
| 4500 /** | 4500 /** |
| 4501 * The class that declares the element being suggested. This field is omitted | 4501 * The class that declares the element being suggested. This field is omitted |
| 4502 * if the suggested element is not a member of a class. | 4502 * if the suggested element is not a member of a class. |
| 4503 */ | 4503 */ |
| 4504 final String declaringType; | 4504 String declaringType; |
| 4505 | 4505 |
| 4506 /** | 4506 /** |
| 4507 * The return type of the getter, function or method being suggested. This | 4507 * The return type of the getter, function or method being suggested. This |
| 4508 * field is omitted if the suggested element is not a getter, function or | 4508 * field is omitted if the suggested element is not a getter, function or |
| 4509 * method. | 4509 * method. |
| 4510 */ | 4510 */ |
| 4511 final String returnType; | 4511 String returnType; |
| 4512 | 4512 |
| 4513 /** | 4513 /** |
| 4514 * The names of the parameters of the function or method being suggested. | 4514 * The names of the parameters of the function or method being suggested. |
| 4515 * This field is omitted if the suggested element is not a setter, function | 4515 * This field is omitted if the suggested element is not a setter, function |
| 4516 * or method. | 4516 * or method. |
| 4517 */ | 4517 */ |
| 4518 final List<String> parameterNames; | 4518 List<String> parameterNames; |
| 4519 | 4519 |
| 4520 /** | 4520 /** |
| 4521 * The types of the parameters of the function or method being suggested. | 4521 * The types of the parameters of the function or method being suggested. |
| 4522 * This field is omitted if the parameterNames field is omitted. | 4522 * This field is omitted if the parameterNames field is omitted. |
| 4523 */ | 4523 */ |
| 4524 final List<String> parameterTypes; | 4524 List<String> parameterTypes; |
| 4525 | 4525 |
| 4526 /** | 4526 /** |
| 4527 * The number of required parameters for the function or method being | 4527 * The number of required parameters for the function or method being |
| 4528 * suggested. This field is omitted if the parameterNames field is omitted. | 4528 * suggested. This field is omitted if the parameterNames field is omitted. |
| 4529 */ | 4529 */ |
| 4530 final int requiredParameterCount; | 4530 int requiredParameterCount; |
| 4531 | 4531 |
| 4532 /** | 4532 /** |
| 4533 * The number of positional parameters for the function or method being | 4533 * The number of positional parameters for the function or method being |
| 4534 * suggested. This field is omitted if the parameterNames field is omitted. | 4534 * suggested. This field is omitted if the parameterNames field is omitted. |
| 4535 */ | 4535 */ |
| 4536 final int positionalParameterCount; | 4536 int positionalParameterCount; |
| 4537 | 4537 |
| 4538 /** | 4538 /** |
| 4539 * The name of the optional parameter being suggested. This field is omitted | 4539 * The name of the optional parameter being suggested. This field is omitted |
| 4540 * if the suggestion is not the addition of an optional argument within an | 4540 * if the suggestion is not the addition of an optional argument within an |
| 4541 * argument list. | 4541 * argument list. |
| 4542 */ | 4542 */ |
| 4543 final String parameterName; | 4543 String parameterName; |
| 4544 | 4544 |
| 4545 /** | 4545 /** |
| 4546 * The type of the options parameter being suggested. This field is omitted | 4546 * The type of the options parameter being suggested. This field is omitted |
| 4547 * if the parameterName field is omitted. | 4547 * if the parameterName field is omitted. |
| 4548 */ | 4548 */ |
| 4549 final String parameterType; | 4549 String parameterType; |
| 4550 | 4550 |
| 4551 CompletionSuggestion(this.kind, this.relevance, this.completion, this.selectio
nOffset, this.selectionLength, this.isDeprecated, this.isPotential, {this.docSum
mary, this.docComplete, this.declaringType, this.returnType, this.parameterNames
, this.parameterTypes, this.requiredParameterCount, this.positionalParameterCoun
t, this.parameterName, this.parameterType}); | 4551 CompletionSuggestion(this.kind, this.relevance, this.completion, this.selectio
nOffset, this.selectionLength, this.isDeprecated, this.isPotential, {this.docSum
mary, this.docComplete, this.declaringType, this.returnType, this.parameterNames
, this.parameterTypes, this.requiredParameterCount, this.positionalParameterCoun
t, this.parameterName, this.parameterType}); |
| 4552 | 4552 |
| 4553 factory CompletionSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 4553 factory CompletionSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 4554 if (json == null) { | 4554 if (json == null) { |
| 4555 json = {}; | 4555 json = {}; |
| 4556 } | 4556 } |
| 4557 if (json is Map) { | 4557 if (json is Map) { |
| 4558 CompletionSuggestionKind kind; | 4558 CompletionSuggestionKind kind; |
| 4559 if (json.containsKey("kind")) { | 4559 if (json.containsKey("kind")) { |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4918 * "location": optional Location | 4918 * "location": optional Location |
| 4919 * "flags": int | 4919 * "flags": int |
| 4920 * "parameters": optional String | 4920 * "parameters": optional String |
| 4921 * "returnType": optional String | 4921 * "returnType": optional String |
| 4922 * } | 4922 * } |
| 4923 */ | 4923 */ |
| 4924 class Element implements HasToJson { | 4924 class Element implements HasToJson { |
| 4925 /** | 4925 /** |
| 4926 * The kind of the element. | 4926 * The kind of the element. |
| 4927 */ | 4927 */ |
| 4928 final ElementKind kind; | 4928 ElementKind kind; |
| 4929 | 4929 |
| 4930 /** | 4930 /** |
| 4931 * The name of the element. This is typically used as the label in the | 4931 * The name of the element. This is typically used as the label in the |
| 4932 * outline. | 4932 * outline. |
| 4933 */ | 4933 */ |
| 4934 final String name; | 4934 String name; |
| 4935 | 4935 |
| 4936 /** | 4936 /** |
| 4937 * The location of the name in the declaration of the element. | 4937 * The location of the name in the declaration of the element. |
| 4938 */ | 4938 */ |
| 4939 final Location location; | 4939 Location location; |
| 4940 | 4940 |
| 4941 /** | 4941 /** |
| 4942 * A bit-map containing the following flags: | 4942 * A bit-map containing the following flags: |
| 4943 * | 4943 * |
| 4944 * - 0x01 - set if the element is explicitly or implicitly abstract | 4944 * - 0x01 - set if the element is explicitly or implicitly abstract |
| 4945 * - 0x02 - set if the element was declared to be ‘const’ | 4945 * - 0x02 - set if the element was declared to be ‘const’ |
| 4946 * - 0x04 - set if the element was declared to be ‘final’ | 4946 * - 0x04 - set if the element was declared to be ‘final’ |
| 4947 * - 0x08 - set if the element is a static member of a class or is a | 4947 * - 0x08 - set if the element is a static member of a class or is a |
| 4948 * top-level function or field | 4948 * top-level function or field |
| 4949 * - 0x10 - set if the element is private | 4949 * - 0x10 - set if the element is private |
| 4950 * - 0x20 - set if the element is deprecated | 4950 * - 0x20 - set if the element is deprecated |
| 4951 */ | 4951 */ |
| 4952 final int flags; | 4952 int flags; |
| 4953 | 4953 |
| 4954 /** | 4954 /** |
| 4955 * The parameter list for the element. If the element is not a method or | 4955 * The parameter list for the element. If the element is not a method or |
| 4956 * function this field will not be defined. If the element has zero | 4956 * function this field will not be defined. If the element has zero |
| 4957 * parameters, this field will have a value of "()". | 4957 * parameters, this field will have a value of "()". |
| 4958 */ | 4958 */ |
| 4959 final String parameters; | 4959 String parameters; |
| 4960 | 4960 |
| 4961 /** | 4961 /** |
| 4962 * The return type of the element. If the element is not a method or function | 4962 * The return type of the element. If the element is not a method or function |
| 4963 * this field will not be defined. If the element does not have a declared | 4963 * this field will not be defined. If the element does not have a declared |
| 4964 * return type, this field will contain an empty string. | 4964 * return type, this field will contain an empty string. |
| 4965 */ | 4965 */ |
| 4966 final String returnType; | 4966 String returnType; |
| 4967 | 4967 |
| 4968 Element(this.kind, this.name, this.flags, {this.location, this.parameters, thi
s.returnType}); | 4968 Element(this.kind, this.name, this.flags, {this.location, this.parameters, thi
s.returnType}); |
| 4969 | 4969 |
| 4970 factory Element.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json
) { | 4970 factory Element.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json
) { |
| 4971 if (json == null) { | 4971 if (json == null) { |
| 4972 json = {}; | 4972 json = {}; |
| 4973 } | 4973 } |
| 4974 if (json is Map) { | 4974 if (json is Map) { |
| 4975 ElementKind kind; | 4975 ElementKind kind; |
| 4976 if (json.containsKey("kind")) { | 4976 if (json.containsKey("kind")) { |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5184 * { | 5184 * { |
| 5185 * "code": String | 5185 * "code": String |
| 5186 * "message": String | 5186 * "message": String |
| 5187 * "data": optional object | 5187 * "data": optional object |
| 5188 * } | 5188 * } |
| 5189 */ | 5189 */ |
| 5190 class Error implements HasToJson { | 5190 class Error implements HasToJson { |
| 5191 /** | 5191 /** |
| 5192 * A code that uniquely identifies the error that occurred. | 5192 * A code that uniquely identifies the error that occurred. |
| 5193 */ | 5193 */ |
| 5194 final String code; | 5194 String code; |
| 5195 | 5195 |
| 5196 /** | 5196 /** |
| 5197 * A short description of the error. | 5197 * A short description of the error. |
| 5198 */ | 5198 */ |
| 5199 final String message; | 5199 String message; |
| 5200 | 5200 |
| 5201 /** | 5201 /** |
| 5202 * Additional data related to the error. This field is omitted if there is no | 5202 * Additional data related to the error. This field is omitted if there is no |
| 5203 * additional data available. | 5203 * additional data available. |
| 5204 */ | 5204 */ |
| 5205 final Object data; | 5205 Object data; |
| 5206 | 5206 |
| 5207 Error(this.code, this.message, {this.data}); | 5207 Error(this.code, this.message, {this.data}); |
| 5208 | 5208 |
| 5209 factory Error.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json)
{ | 5209 factory Error.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json)
{ |
| 5210 if (json == null) { | 5210 if (json == null) { |
| 5211 json = {}; | 5211 json = {}; |
| 5212 } | 5212 } |
| 5213 if (json is Map) { | 5213 if (json is Map) { |
| 5214 String code; | 5214 String code; |
| 5215 if (json.containsKey("code")) { | 5215 if (json.containsKey("code")) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5271 * | 5271 * |
| 5272 * { | 5272 * { |
| 5273 * "error": AnalysisError | 5273 * "error": AnalysisError |
| 5274 * "fixes": List<SourceChange> | 5274 * "fixes": List<SourceChange> |
| 5275 * } | 5275 * } |
| 5276 */ | 5276 */ |
| 5277 class ErrorFixes implements HasToJson { | 5277 class ErrorFixes implements HasToJson { |
| 5278 /** | 5278 /** |
| 5279 * The error with which the fixes are associated. | 5279 * The error with which the fixes are associated. |
| 5280 */ | 5280 */ |
| 5281 final AnalysisError error; | 5281 AnalysisError error; |
| 5282 | 5282 |
| 5283 /** | 5283 /** |
| 5284 * The fixes associated with the error. | 5284 * The fixes associated with the error. |
| 5285 */ | 5285 */ |
| 5286 final List<SourceChange> fixes; | 5286 List<SourceChange> fixes; |
| 5287 | 5287 |
| 5288 ErrorFixes(this.error, this.fixes); | 5288 ErrorFixes(this.error, this.fixes); |
| 5289 | 5289 |
| 5290 factory ErrorFixes.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object j
son) { | 5290 factory ErrorFixes.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object j
son) { |
| 5291 if (json == null) { | 5291 if (json == null) { |
| 5292 json = {}; | 5292 json = {}; |
| 5293 } | 5293 } |
| 5294 if (json is Map) { | 5294 if (json is Map) { |
| 5295 AnalysisError error; | 5295 AnalysisError error; |
| 5296 if (json.containsKey("error")) { | 5296 if (json.containsKey("error")) { |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5456 * | 5456 * |
| 5457 * { | 5457 * { |
| 5458 * "file": FilePath | 5458 * "file": FilePath |
| 5459 * "offset": ExecutableKind | 5459 * "offset": ExecutableKind |
| 5460 * } | 5460 * } |
| 5461 */ | 5461 */ |
| 5462 class ExecutableFile implements HasToJson { | 5462 class ExecutableFile implements HasToJson { |
| 5463 /** | 5463 /** |
| 5464 * The path of the executable file. | 5464 * The path of the executable file. |
| 5465 */ | 5465 */ |
| 5466 final String file; | 5466 String file; |
| 5467 | 5467 |
| 5468 /** | 5468 /** |
| 5469 * The offset of the region to be highlighted. | 5469 * The offset of the region to be highlighted. |
| 5470 */ | 5470 */ |
| 5471 final ExecutableKind offset; | 5471 ExecutableKind offset; |
| 5472 | 5472 |
| 5473 ExecutableFile(this.file, this.offset); | 5473 ExecutableFile(this.file, this.offset); |
| 5474 | 5474 |
| 5475 factory ExecutableFile.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 5475 factory ExecutableFile.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { |
| 5476 if (json == null) { | 5476 if (json == null) { |
| 5477 json = {}; | 5477 json = {}; |
| 5478 } | 5478 } |
| 5479 if (json is Map) { | 5479 if (json is Map) { |
| 5480 String file; | 5480 String file; |
| 5481 if (json.containsKey("file")) { | 5481 if (json.containsKey("file")) { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5637 * { | 5637 * { |
| 5638 * "kind": FoldingKind | 5638 * "kind": FoldingKind |
| 5639 * "offset": int | 5639 * "offset": int |
| 5640 * "length": int | 5640 * "length": int |
| 5641 * } | 5641 * } |
| 5642 */ | 5642 */ |
| 5643 class FoldingRegion implements HasToJson { | 5643 class FoldingRegion implements HasToJson { |
| 5644 /** | 5644 /** |
| 5645 * The kind of the region. | 5645 * The kind of the region. |
| 5646 */ | 5646 */ |
| 5647 final FoldingKind kind; | 5647 FoldingKind kind; |
| 5648 | 5648 |
| 5649 /** | 5649 /** |
| 5650 * The offset of the region to be folded. | 5650 * The offset of the region to be folded. |
| 5651 */ | 5651 */ |
| 5652 final int offset; | 5652 int offset; |
| 5653 | 5653 |
| 5654 /** | 5654 /** |
| 5655 * The length of the region to be folded. | 5655 * The length of the region to be folded. |
| 5656 */ | 5656 */ |
| 5657 final int length; | 5657 int length; |
| 5658 | 5658 |
| 5659 FoldingRegion(this.kind, this.offset, this.length); | 5659 FoldingRegion(this.kind, this.offset, this.length); |
| 5660 | 5660 |
| 5661 factory FoldingRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 5661 factory FoldingRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { |
| 5662 if (json == null) { | 5662 if (json == null) { |
| 5663 json = {}; | 5663 json = {}; |
| 5664 } | 5664 } |
| 5665 if (json is Map) { | 5665 if (json is Map) { |
| 5666 FoldingKind kind; | 5666 FoldingKind kind; |
| 5667 if (json.containsKey("kind")) { | 5667 if (json.containsKey("kind")) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5724 * { | 5724 * { |
| 5725 * "type": HighlightRegionType | 5725 * "type": HighlightRegionType |
| 5726 * "offset": int | 5726 * "offset": int |
| 5727 * "length": int | 5727 * "length": int |
| 5728 * } | 5728 * } |
| 5729 */ | 5729 */ |
| 5730 class HighlightRegion implements HasToJson { | 5730 class HighlightRegion implements HasToJson { |
| 5731 /** | 5731 /** |
| 5732 * The type of highlight associated with the region. | 5732 * The type of highlight associated with the region. |
| 5733 */ | 5733 */ |
| 5734 final HighlightRegionType type; | 5734 HighlightRegionType type; |
| 5735 | 5735 |
| 5736 /** | 5736 /** |
| 5737 * The offset of the region to be highlighted. | 5737 * The offset of the region to be highlighted. |
| 5738 */ | 5738 */ |
| 5739 final int offset; | 5739 int offset; |
| 5740 | 5740 |
| 5741 /** | 5741 /** |
| 5742 * The length of the region to be highlighted. | 5742 * The length of the region to be highlighted. |
| 5743 */ | 5743 */ |
| 5744 final int length; | 5744 int length; |
| 5745 | 5745 |
| 5746 HighlightRegion(this.type, this.offset, this.length); | 5746 HighlightRegion(this.type, this.offset, this.length); |
| 5747 | 5747 |
| 5748 factory HighlightRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 5748 factory HighlightRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
| 5749 if (json == null) { | 5749 if (json == null) { |
| 5750 json = {}; | 5750 json = {}; |
| 5751 } | 5751 } |
| 5752 if (json is Map) { | 5752 if (json is Map) { |
| 5753 HighlightRegionType type; | 5753 HighlightRegionType type; |
| 5754 if (json.containsKey("type")) { | 5754 if (json.containsKey("type")) { |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6028 * "parameter": optional String | 6028 * "parameter": optional String |
| 6029 * "propagatedType": optional String | 6029 * "propagatedType": optional String |
| 6030 * "staticType": optional String | 6030 * "staticType": optional String |
| 6031 * } | 6031 * } |
| 6032 */ | 6032 */ |
| 6033 class HoverInformation implements HasToJson { | 6033 class HoverInformation implements HasToJson { |
| 6034 /** | 6034 /** |
| 6035 * The offset of the range of characters that encompases the cursor position | 6035 * The offset of the range of characters that encompases the cursor position |
| 6036 * and has the same hover information as the cursor position. | 6036 * and has the same hover information as the cursor position. |
| 6037 */ | 6037 */ |
| 6038 final int offset; | 6038 int offset; |
| 6039 | 6039 |
| 6040 /** | 6040 /** |
| 6041 * The length of the range of characters that encompases the cursor position | 6041 * The length of the range of characters that encompases the cursor position |
| 6042 * and has the same hover information as the cursor position. | 6042 * and has the same hover information as the cursor position. |
| 6043 */ | 6043 */ |
| 6044 final int length; | 6044 int length; |
| 6045 | 6045 |
| 6046 /** | 6046 /** |
| 6047 * The path to the defining compilation unit of the library in which the | 6047 * The path to the defining compilation unit of the library in which the |
| 6048 * referenced element is declared. This data is omitted if there is no | 6048 * referenced element is declared. This data is omitted if there is no |
| 6049 * referenced element. | 6049 * referenced element. |
| 6050 */ | 6050 */ |
| 6051 final String containingLibraryPath; | 6051 String containingLibraryPath; |
| 6052 | 6052 |
| 6053 /** | 6053 /** |
| 6054 * The name of the library in which the referenced element is declared. This | 6054 * The name of the library in which the referenced element is declared. This |
| 6055 * data is omitted if there is no referenced element. | 6055 * data is omitted if there is no referenced element. |
| 6056 */ | 6056 */ |
| 6057 final String containingLibraryName; | 6057 String containingLibraryName; |
| 6058 | 6058 |
| 6059 /** | 6059 /** |
| 6060 * The dartdoc associated with the referenced element. Other than the removal | 6060 * The dartdoc associated with the referenced element. Other than the removal |
| 6061 * of the comment delimiters, including leading asterisks in the case of a | 6061 * of the comment delimiters, including leading asterisks in the case of a |
| 6062 * block comment, the dartdoc is unprocessed markdown. This data is omitted | 6062 * block comment, the dartdoc is unprocessed markdown. This data is omitted |
| 6063 * if there is no referenced element. | 6063 * if there is no referenced element. |
| 6064 */ | 6064 */ |
| 6065 final String dartdoc; | 6065 String dartdoc; |
| 6066 | 6066 |
| 6067 /** | 6067 /** |
| 6068 * A human-readable description of the element being referenced. This data is | 6068 * A human-readable description of the element being referenced. This data is |
| 6069 * omitted if there is no referenced element. | 6069 * omitted if there is no referenced element. |
| 6070 */ | 6070 */ |
| 6071 final String elementDescription; | 6071 String elementDescription; |
| 6072 | 6072 |
| 6073 /** | 6073 /** |
| 6074 * A human-readable description of the kind of element being referenced (such | 6074 * A human-readable description of the kind of element being referenced (such |
| 6075 * as “class” or “function type alias”). This data is omitted if there is no | 6075 * as “class” or “function type alias”). This data is omitted if there is no |
| 6076 * referenced element. | 6076 * referenced element. |
| 6077 */ | 6077 */ |
| 6078 final String elementKind; | 6078 String elementKind; |
| 6079 | 6079 |
| 6080 /** | 6080 /** |
| 6081 * A human-readable description of the parameter corresponding to the | 6081 * A human-readable description of the parameter corresponding to the |
| 6082 * expression being hovered over. This data is omitted if the location is not | 6082 * expression being hovered over. This data is omitted if the location is not |
| 6083 * in an argument to a function. | 6083 * in an argument to a function. |
| 6084 */ | 6084 */ |
| 6085 final String parameter; | 6085 String parameter; |
| 6086 | 6086 |
| 6087 /** | 6087 /** |
| 6088 * The name of the propagated type of the expression. This data is omitted if | 6088 * The name of the propagated type of the expression. This data is omitted if |
| 6089 * the location does not correspond to an expression or if there is no | 6089 * the location does not correspond to an expression or if there is no |
| 6090 * propagated type information. | 6090 * propagated type information. |
| 6091 */ | 6091 */ |
| 6092 final String propagatedType; | 6092 String propagatedType; |
| 6093 | 6093 |
| 6094 /** | 6094 /** |
| 6095 * The name of the static type of the expression. This data is omitted if the | 6095 * The name of the static type of the expression. This data is omitted if the |
| 6096 * location does not correspond to an expression. | 6096 * location does not correspond to an expression. |
| 6097 */ | 6097 */ |
| 6098 final String staticType; | 6098 String staticType; |
| 6099 | 6099 |
| 6100 HoverInformation(this.offset, this.length, {this.containingLibraryPath, this.c
ontainingLibraryName, this.dartdoc, this.elementDescription, this.elementKind, t
his.parameter, this.propagatedType, this.staticType}); | 6100 HoverInformation(this.offset, this.length, {this.containingLibraryPath, this.c
ontainingLibraryName, this.dartdoc, this.elementDescription, this.elementKind, t
his.parameter, this.propagatedType, this.staticType}); |
| 6101 | 6101 |
| 6102 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 6102 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
| 6103 if (json == null) { | 6103 if (json == null) { |
| 6104 json = {}; | 6104 json = {}; |
| 6105 } | 6105 } |
| 6106 if (json is Map) { | 6106 if (json is Map) { |
| 6107 int offset; | 6107 int offset; |
| 6108 if (json.containsKey("offset")) { | 6108 if (json.containsKey("offset")) { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6228 * { | 6228 * { |
| 6229 * "positions": List<Position> | 6229 * "positions": List<Position> |
| 6230 * "length": int | 6230 * "length": int |
| 6231 * "suggestions": List<LinkedEditSuggestion> | 6231 * "suggestions": List<LinkedEditSuggestion> |
| 6232 * } | 6232 * } |
| 6233 */ | 6233 */ |
| 6234 class LinkedEditGroup implements HasToJson { | 6234 class LinkedEditGroup implements HasToJson { |
| 6235 /** | 6235 /** |
| 6236 * The positions of the regions that should be edited simultaneously. | 6236 * The positions of the regions that should be edited simultaneously. |
| 6237 */ | 6237 */ |
| 6238 final List<Position> positions; | 6238 List<Position> positions; |
| 6239 | 6239 |
| 6240 /** | 6240 /** |
| 6241 * The length of the regions that should be edited simultaneously. | 6241 * The length of the regions that should be edited simultaneously. |
| 6242 */ | 6242 */ |
| 6243 final int length; | 6243 int length; |
| 6244 | 6244 |
| 6245 /** | 6245 /** |
| 6246 * Pre-computed suggestions for what every region might want to be changed | 6246 * Pre-computed suggestions for what every region might want to be changed |
| 6247 * to. | 6247 * to. |
| 6248 */ | 6248 */ |
| 6249 final List<LinkedEditSuggestion> suggestions; | 6249 List<LinkedEditSuggestion> suggestions; |
| 6250 | 6250 |
| 6251 LinkedEditGroup(this.positions, this.length, this.suggestions); | 6251 LinkedEditGroup(this.positions, this.length, this.suggestions); |
| 6252 | 6252 |
| 6253 factory LinkedEditGroup.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 6253 factory LinkedEditGroup.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
| 6254 if (json == null) { | 6254 if (json == null) { |
| 6255 json = {}; | 6255 json = {}; |
| 6256 } | 6256 } |
| 6257 if (json is Map) { | 6257 if (json is Map) { |
| 6258 List<Position> positions; | 6258 List<Position> positions; |
| 6259 if (json.containsKey("positions")) { | 6259 if (json.containsKey("positions")) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6315 * | 6315 * |
| 6316 * { | 6316 * { |
| 6317 * "value": String | 6317 * "value": String |
| 6318 * "kind": LinkedEditSuggestionKind | 6318 * "kind": LinkedEditSuggestionKind |
| 6319 * } | 6319 * } |
| 6320 */ | 6320 */ |
| 6321 class LinkedEditSuggestion implements HasToJson { | 6321 class LinkedEditSuggestion implements HasToJson { |
| 6322 /** | 6322 /** |
| 6323 * The value that could be used to replace all of the linked edit regions. | 6323 * The value that could be used to replace all of the linked edit regions. |
| 6324 */ | 6324 */ |
| 6325 final String value; | 6325 String value; |
| 6326 | 6326 |
| 6327 /** | 6327 /** |
| 6328 * The kind of value being proposed. | 6328 * The kind of value being proposed. |
| 6329 */ | 6329 */ |
| 6330 final LinkedEditSuggestionKind kind; | 6330 LinkedEditSuggestionKind kind; |
| 6331 | 6331 |
| 6332 LinkedEditSuggestion(this.value, this.kind); | 6332 LinkedEditSuggestion(this.value, this.kind); |
| 6333 | 6333 |
| 6334 factory LinkedEditSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 6334 factory LinkedEditSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 6335 if (json == null) { | 6335 if (json == null) { |
| 6336 json = {}; | 6336 json = {}; |
| 6337 } | 6337 } |
| 6338 if (json is Map) { | 6338 if (json is Map) { |
| 6339 String value; | 6339 String value; |
| 6340 if (json.containsKey("value")) { | 6340 if (json.containsKey("value")) { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6444 * "offset": int | 6444 * "offset": int |
| 6445 * "length": int | 6445 * "length": int |
| 6446 * "startLine": int | 6446 * "startLine": int |
| 6447 * "startColumn": int | 6447 * "startColumn": int |
| 6448 * } | 6448 * } |
| 6449 */ | 6449 */ |
| 6450 class Location implements HasToJson { | 6450 class Location implements HasToJson { |
| 6451 /** | 6451 /** |
| 6452 * The file containing the range. | 6452 * The file containing the range. |
| 6453 */ | 6453 */ |
| 6454 final String file; | 6454 String file; |
| 6455 | 6455 |
| 6456 /** | 6456 /** |
| 6457 * The offset of the range. | 6457 * The offset of the range. |
| 6458 */ | 6458 */ |
| 6459 final int offset; | 6459 int offset; |
| 6460 | 6460 |
| 6461 /** | 6461 /** |
| 6462 * The length of the range. | 6462 * The length of the range. |
| 6463 */ | 6463 */ |
| 6464 final int length; | 6464 int length; |
| 6465 | 6465 |
| 6466 /** | 6466 /** |
| 6467 * The one-based index of the line containing the first character of the | 6467 * The one-based index of the line containing the first character of the |
| 6468 * range. | 6468 * range. |
| 6469 */ | 6469 */ |
| 6470 final int startLine; | 6470 int startLine; |
| 6471 | 6471 |
| 6472 /** | 6472 /** |
| 6473 * The one-based index of the column containing the first character of the | 6473 * The one-based index of the column containing the first character of the |
| 6474 * range. | 6474 * range. |
| 6475 */ | 6475 */ |
| 6476 final int startColumn; | 6476 int startColumn; |
| 6477 | 6477 |
| 6478 Location(this.file, this.offset, this.length, this.startLine, this.startColumn
); | 6478 Location(this.file, this.offset, this.length, this.startLine, this.startColumn
); |
| 6479 | 6479 |
| 6480 factory Location.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 6480 factory Location.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { |
| 6481 if (json == null) { | 6481 if (json == null) { |
| 6482 json = {}; | 6482 json = {}; |
| 6483 } | 6483 } |
| 6484 if (json is Map) { | 6484 if (json is Map) { |
| 6485 String file; | 6485 String file; |
| 6486 if (json.containsKey("file")) { | 6486 if (json.containsKey("file")) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6561 * { | 6561 * { |
| 6562 * "offset": int | 6562 * "offset": int |
| 6563 * "length": int | 6563 * "length": int |
| 6564 * "targets": List<Element> | 6564 * "targets": List<Element> |
| 6565 * } | 6565 * } |
| 6566 */ | 6566 */ |
| 6567 class NavigationRegion implements HasToJson { | 6567 class NavigationRegion implements HasToJson { |
| 6568 /** | 6568 /** |
| 6569 * The offset of the region from which the user can navigate. | 6569 * The offset of the region from which the user can navigate. |
| 6570 */ | 6570 */ |
| 6571 final int offset; | 6571 int offset; |
| 6572 | 6572 |
| 6573 /** | 6573 /** |
| 6574 * The length of the region from which the user can navigate. | 6574 * The length of the region from which the user can navigate. |
| 6575 */ | 6575 */ |
| 6576 final int length; | 6576 int length; |
| 6577 | 6577 |
| 6578 /** | 6578 /** |
| 6579 * The elements to which the given region is bound. By opening the | 6579 * The elements to which the given region is bound. By opening the |
| 6580 * declaration of the elements, clients can implement one form of navigation. | 6580 * declaration of the elements, clients can implement one form of navigation. |
| 6581 */ | 6581 */ |
| 6582 final List<Element> targets; | 6582 List<Element> targets; |
| 6583 | 6583 |
| 6584 NavigationRegion(this.offset, this.length, this.targets); | 6584 NavigationRegion(this.offset, this.length, this.targets); |
| 6585 | 6585 |
| 6586 factory NavigationRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 6586 factory NavigationRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
| 6587 if (json == null) { | 6587 if (json == null) { |
| 6588 json = {}; | 6588 json = {}; |
| 6589 } | 6589 } |
| 6590 if (json is Map) { | 6590 if (json is Map) { |
| 6591 int offset; | 6591 int offset; |
| 6592 if (json.containsKey("offset")) { | 6592 if (json.containsKey("offset")) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6649 * { | 6649 * { |
| 6650 * "element": Element | 6650 * "element": Element |
| 6651 * "offsets": List<int> | 6651 * "offsets": List<int> |
| 6652 * "length": int | 6652 * "length": int |
| 6653 * } | 6653 * } |
| 6654 */ | 6654 */ |
| 6655 class Occurrences implements HasToJson { | 6655 class Occurrences implements HasToJson { |
| 6656 /** | 6656 /** |
| 6657 * The element that was referenced. | 6657 * The element that was referenced. |
| 6658 */ | 6658 */ |
| 6659 final Element element; | 6659 Element element; |
| 6660 | 6660 |
| 6661 /** | 6661 /** |
| 6662 * The offsets of the name of the referenced element within the file. | 6662 * The offsets of the name of the referenced element within the file. |
| 6663 */ | 6663 */ |
| 6664 final List<int> offsets; | 6664 List<int> offsets; |
| 6665 | 6665 |
| 6666 /** | 6666 /** |
| 6667 * The length of the name of the referenced element. | 6667 * The length of the name of the referenced element. |
| 6668 */ | 6668 */ |
| 6669 final int length; | 6669 int length; |
| 6670 | 6670 |
| 6671 Occurrences(this.element, this.offsets, this.length); | 6671 Occurrences(this.element, this.offsets, this.length); |
| 6672 | 6672 |
| 6673 factory Occurrences.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 6673 factory Occurrences.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { |
| 6674 if (json == null) { | 6674 if (json == null) { |
| 6675 json = {}; | 6675 json = {}; |
| 6676 } | 6676 } |
| 6677 if (json is Map) { | 6677 if (json is Map) { |
| 6678 Element element; | 6678 Element element; |
| 6679 if (json.containsKey("element")) { | 6679 if (json.containsKey("element")) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6737 * "element": Element | 6737 * "element": Element |
| 6738 * "offset": int | 6738 * "offset": int |
| 6739 * "length": int | 6739 * "length": int |
| 6740 * "children": optional List<Outline> | 6740 * "children": optional List<Outline> |
| 6741 * } | 6741 * } |
| 6742 */ | 6742 */ |
| 6743 class Outline implements HasToJson { | 6743 class Outline implements HasToJson { |
| 6744 /** | 6744 /** |
| 6745 * A description of the element represented by this node. | 6745 * A description of the element represented by this node. |
| 6746 */ | 6746 */ |
| 6747 final Element element; | 6747 Element element; |
| 6748 | 6748 |
| 6749 /** | 6749 /** |
| 6750 * The offset of the first character of the element. This is different than | 6750 * The offset of the first character of the element. This is different than |
| 6751 * the offset in the Element, which if the offset of the name of the element. | 6751 * the offset in the Element, which if the offset of the name of the element. |
| 6752 * It can be used, for example, to map locations in the file back to an | 6752 * It can be used, for example, to map locations in the file back to an |
| 6753 * outline. | 6753 * outline. |
| 6754 */ | 6754 */ |
| 6755 final int offset; | 6755 int offset; |
| 6756 | 6756 |
| 6757 /** | 6757 /** |
| 6758 * The length of the element. | 6758 * The length of the element. |
| 6759 */ | 6759 */ |
| 6760 final int length; | 6760 int length; |
| 6761 | 6761 |
| 6762 /** | 6762 /** |
| 6763 * The children of the node. The field will be omitted if the node has no | 6763 * The children of the node. The field will be omitted if the node has no |
| 6764 * children. | 6764 * children. |
| 6765 */ | 6765 */ |
| 6766 final List<Outline> children; | 6766 List<Outline> children; |
| 6767 | 6767 |
| 6768 Outline(this.element, this.offset, this.length, {this.children}); | 6768 Outline(this.element, this.offset, this.length, {this.children}); |
| 6769 | 6769 |
| 6770 factory Outline.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json
) { | 6770 factory Outline.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json
) { |
| 6771 if (json == null) { | 6771 if (json == null) { |
| 6772 json = {}; | 6772 json = {}; |
| 6773 } | 6773 } |
| 6774 if (json is Map) { | 6774 if (json is Map) { |
| 6775 Element element; | 6775 Element element; |
| 6776 if (json.containsKey("element")) { | 6776 if (json.containsKey("element")) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6843 * "offset": int | 6843 * "offset": int |
| 6844 * "length": int | 6844 * "length": int |
| 6845 * "superclassMember": optional OverriddenMember | 6845 * "superclassMember": optional OverriddenMember |
| 6846 * "interfaceMembers": optional List<OverriddenMember> | 6846 * "interfaceMembers": optional List<OverriddenMember> |
| 6847 * } | 6847 * } |
| 6848 */ | 6848 */ |
| 6849 class Override implements HasToJson { | 6849 class Override implements HasToJson { |
| 6850 /** | 6850 /** |
| 6851 * The offset of the name of the overriding member. | 6851 * The offset of the name of the overriding member. |
| 6852 */ | 6852 */ |
| 6853 final int offset; | 6853 int offset; |
| 6854 | 6854 |
| 6855 /** | 6855 /** |
| 6856 * The length of the name of the overriding member. | 6856 * The length of the name of the overriding member. |
| 6857 */ | 6857 */ |
| 6858 final int length; | 6858 int length; |
| 6859 | 6859 |
| 6860 /** | 6860 /** |
| 6861 * The member inherited from a superclass that is overridden by the | 6861 * The member inherited from a superclass that is overridden by the |
| 6862 * overriding member. The field is omitted if there is no superclass member, | 6862 * overriding member. The field is omitted if there is no superclass member, |
| 6863 * in which case there must be at least one interface member. | 6863 * in which case there must be at least one interface member. |
| 6864 */ | 6864 */ |
| 6865 final OverriddenMember superclassMember; | 6865 OverriddenMember superclassMember; |
| 6866 | 6866 |
| 6867 /** | 6867 /** |
| 6868 * The members inherited from interfaces that are overridden by the | 6868 * The members inherited from interfaces that are overridden by the |
| 6869 * overriding member. The field is omitted if there are no interface members, | 6869 * overriding member. The field is omitted if there are no interface members, |
| 6870 * in which case there must be a superclass member. | 6870 * in which case there must be a superclass member. |
| 6871 */ | 6871 */ |
| 6872 final List<OverriddenMember> interfaceMembers; | 6872 List<OverriddenMember> interfaceMembers; |
| 6873 | 6873 |
| 6874 Override(this.offset, this.length, {this.superclassMember, this.interfaceMembe
rs}); | 6874 Override(this.offset, this.length, {this.superclassMember, this.interfaceMembe
rs}); |
| 6875 | 6875 |
| 6876 factory Override.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 6876 factory Override.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { |
| 6877 if (json == null) { | 6877 if (json == null) { |
| 6878 json = {}; | 6878 json = {}; |
| 6879 } | 6879 } |
| 6880 if (json is Map) { | 6880 if (json is Map) { |
| 6881 int offset; | 6881 int offset; |
| 6882 if (json.containsKey("offset")) { | 6882 if (json.containsKey("offset")) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6947 * | 6947 * |
| 6948 * { | 6948 * { |
| 6949 * "element": Element | 6949 * "element": Element |
| 6950 * "className": String | 6950 * "className": String |
| 6951 * } | 6951 * } |
| 6952 */ | 6952 */ |
| 6953 class OverriddenMember implements HasToJson { | 6953 class OverriddenMember implements HasToJson { |
| 6954 /** | 6954 /** |
| 6955 * The element that is being overridden. | 6955 * The element that is being overridden. |
| 6956 */ | 6956 */ |
| 6957 final Element element; | 6957 Element element; |
| 6958 | 6958 |
| 6959 /** | 6959 /** |
| 6960 * The name of the class in which the member is defined. | 6960 * The name of the class in which the member is defined. |
| 6961 */ | 6961 */ |
| 6962 final String className; | 6962 String className; |
| 6963 | 6963 |
| 6964 OverriddenMember(this.element, this.className); | 6964 OverriddenMember(this.element, this.className); |
| 6965 | 6965 |
| 6966 factory OverriddenMember.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 6966 factory OverriddenMember.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
| 6967 if (json == null) { | 6967 if (json == null) { |
| 6968 json = {}; | 6968 json = {}; |
| 6969 } | 6969 } |
| 6970 if (json is Map) { | 6970 if (json is Map) { |
| 6971 Element element; | 6971 Element element; |
| 6972 if (json.containsKey("element")) { | 6972 if (json.containsKey("element")) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7019 * | 7019 * |
| 7020 * { | 7020 * { |
| 7021 * "file": FilePath | 7021 * "file": FilePath |
| 7022 * "offset": int | 7022 * "offset": int |
| 7023 * } | 7023 * } |
| 7024 */ | 7024 */ |
| 7025 class Position implements HasToJson { | 7025 class Position implements HasToJson { |
| 7026 /** | 7026 /** |
| 7027 * The file containing the position. | 7027 * The file containing the position. |
| 7028 */ | 7028 */ |
| 7029 final String file; | 7029 String file; |
| 7030 | 7030 |
| 7031 /** | 7031 /** |
| 7032 * The offset of the position. | 7032 * The offset of the position. |
| 7033 */ | 7033 */ |
| 7034 final int offset; | 7034 int offset; |
| 7035 | 7035 |
| 7036 Position(this.file, this.offset); | 7036 Position(this.file, this.offset); |
| 7037 | 7037 |
| 7038 factory Position.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 7038 factory Position.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { |
| 7039 if (json == null) { | 7039 if (json == null) { |
| 7040 json = {}; | 7040 json = {}; |
| 7041 } | 7041 } |
| 7042 if (json is Map) { | 7042 if (json is Map) { |
| 7043 String file; | 7043 String file; |
| 7044 if (json.containsKey("file")) { | 7044 if (json.containsKey("file")) { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7164 * "type": String | 7164 * "type": String |
| 7165 * "name": String | 7165 * "name": String |
| 7166 * "parameters": optional String | 7166 * "parameters": optional String |
| 7167 * } | 7167 * } |
| 7168 */ | 7168 */ |
| 7169 class RefactoringMethodParameter implements HasToJson { | 7169 class RefactoringMethodParameter implements HasToJson { |
| 7170 /** | 7170 /** |
| 7171 * The unique identifier of the parameter. Clients may omit this field for | 7171 * The unique identifier of the parameter. Clients may omit this field for |
| 7172 * the parameters they want to add. | 7172 * the parameters they want to add. |
| 7173 */ | 7173 */ |
| 7174 final String id; | 7174 String id; |
| 7175 | 7175 |
| 7176 /** | 7176 /** |
| 7177 * The kind of the parameter. | 7177 * The kind of the parameter. |
| 7178 */ | 7178 */ |
| 7179 final RefactoringMethodParameterKind kind; | 7179 RefactoringMethodParameterKind kind; |
| 7180 | 7180 |
| 7181 /** | 7181 /** |
| 7182 * The type that should be given to the parameter, or the return type of the | 7182 * The type that should be given to the parameter, or the return type of the |
| 7183 * parameter's function type. | 7183 * parameter's function type. |
| 7184 */ | 7184 */ |
| 7185 final String type; | 7185 String type; |
| 7186 | 7186 |
| 7187 /** | 7187 /** |
| 7188 * The name that should be given to the parameter. | 7188 * The name that should be given to the parameter. |
| 7189 */ | 7189 */ |
| 7190 final String name; | 7190 String name; |
| 7191 | 7191 |
| 7192 /** | 7192 /** |
| 7193 * The parameter list of the parameter's function type. If the parameter is | 7193 * The parameter list of the parameter's function type. If the parameter is |
| 7194 * not of a function type, this field will not be defined. If the function | 7194 * not of a function type, this field will not be defined. If the function |
| 7195 * type has zero parameters, this field will have a value of "()". | 7195 * type has zero parameters, this field will have a value of "()". |
| 7196 */ | 7196 */ |
| 7197 final String parameters; | 7197 String parameters; |
| 7198 | 7198 |
| 7199 RefactoringMethodParameter(this.kind, this.type, this.name, {this.id, this.par
ameters}); | 7199 RefactoringMethodParameter(this.kind, this.type, this.name, {this.id, this.par
ameters}); |
| 7200 | 7200 |
| 7201 factory RefactoringMethodParameter.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 7201 factory RefactoringMethodParameter.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { |
| 7202 if (json == null) { | 7202 if (json == null) { |
| 7203 json = {}; | 7203 json = {}; |
| 7204 } | 7204 } |
| 7205 if (json is Map) { | 7205 if (json is Map) { |
| 7206 String id; | 7206 String id; |
| 7207 if (json.containsKey("id")) { | 7207 if (json.containsKey("id")) { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7331 * { | 7331 * { |
| 7332 * "severity": RefactoringProblemSeverity | 7332 * "severity": RefactoringProblemSeverity |
| 7333 * "message": String | 7333 * "message": String |
| 7334 * "location": Location | 7334 * "location": Location |
| 7335 * } | 7335 * } |
| 7336 */ | 7336 */ |
| 7337 class RefactoringProblem implements HasToJson { | 7337 class RefactoringProblem implements HasToJson { |
| 7338 /** | 7338 /** |
| 7339 * The severity of the problem being represented. | 7339 * The severity of the problem being represented. |
| 7340 */ | 7340 */ |
| 7341 final RefactoringProblemSeverity severity; | 7341 RefactoringProblemSeverity severity; |
| 7342 | 7342 |
| 7343 /** | 7343 /** |
| 7344 * A human-readable description of the problem being represented. | 7344 * A human-readable description of the problem being represented. |
| 7345 */ | 7345 */ |
| 7346 final String message; | 7346 String message; |
| 7347 | 7347 |
| 7348 /** | 7348 /** |
| 7349 * The location of the problem being represented. | 7349 * The location of the problem being represented. |
| 7350 */ | 7350 */ |
| 7351 final Location location; | 7351 Location location; |
| 7352 | 7352 |
| 7353 RefactoringProblem(this.severity, this.message, this.location); | 7353 RefactoringProblem(this.severity, this.message, this.location); |
| 7354 | 7354 |
| 7355 factory RefactoringProblem.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 7355 factory RefactoringProblem.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
| 7356 if (json == null) { | 7356 if (json == null) { |
| 7357 json = {}; | 7357 json = {}; |
| 7358 } | 7358 } |
| 7359 if (json is Map) { | 7359 if (json is Map) { |
| 7360 RefactoringProblemSeverity severity; | 7360 RefactoringProblemSeverity severity; |
| 7361 if (json.containsKey("severity")) { | 7361 if (json.containsKey("severity")) { |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7522 * "location": Location | 7522 * "location": Location |
| 7523 * "kind": SearchResultKind | 7523 * "kind": SearchResultKind |
| 7524 * "isPotential": bool | 7524 * "isPotential": bool |
| 7525 * "path": List<Element> | 7525 * "path": List<Element> |
| 7526 * } | 7526 * } |
| 7527 */ | 7527 */ |
| 7528 class SearchResult implements HasToJson { | 7528 class SearchResult implements HasToJson { |
| 7529 /** | 7529 /** |
| 7530 * The location of the code that matched the search criteria. | 7530 * The location of the code that matched the search criteria. |
| 7531 */ | 7531 */ |
| 7532 final Location location; | 7532 Location location; |
| 7533 | 7533 |
| 7534 /** | 7534 /** |
| 7535 * The kind of element that was found or the kind of reference that was | 7535 * The kind of element that was found or the kind of reference that was |
| 7536 * found. | 7536 * found. |
| 7537 */ | 7537 */ |
| 7538 final SearchResultKind kind; | 7538 SearchResultKind kind; |
| 7539 | 7539 |
| 7540 /** | 7540 /** |
| 7541 * True if the result is a potential match but cannot be confirmed to be a | 7541 * True if the result is a potential match but cannot be confirmed to be a |
| 7542 * match. For example, if all references to a method m defined in some class | 7542 * match. For example, if all references to a method m defined in some class |
| 7543 * were requested, and a reference to a method m from an unknown class were | 7543 * were requested, and a reference to a method m from an unknown class were |
| 7544 * found, it would be marked as being a potential match. | 7544 * found, it would be marked as being a potential match. |
| 7545 */ | 7545 */ |
| 7546 final bool isPotential; | 7546 bool isPotential; |
| 7547 | 7547 |
| 7548 /** | 7548 /** |
| 7549 * The elements that contain the result, starting with the most immediately | 7549 * The elements that contain the result, starting with the most immediately |
| 7550 * enclosing ancestor and ending with the library. | 7550 * enclosing ancestor and ending with the library. |
| 7551 */ | 7551 */ |
| 7552 final List<Element> path; | 7552 List<Element> path; |
| 7553 | 7553 |
| 7554 SearchResult(this.location, this.kind, this.isPotential, this.path); | 7554 SearchResult(this.location, this.kind, this.isPotential, this.path); |
| 7555 | 7555 |
| 7556 factory SearchResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 7556 factory SearchResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { |
| 7557 if (json == null) { | 7557 if (json == null) { |
| 7558 json = {}; | 7558 json = {}; |
| 7559 } | 7559 } |
| 7560 if (json is Map) { | 7560 if (json is Map) { |
| 7561 Location location; | 7561 Location location; |
| 7562 if (json.containsKey("location")) { | 7562 if (json.containsKey("location")) { |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7759 * "message": String | 7759 * "message": String |
| 7760 * "edits": List<SourceFileEdit> | 7760 * "edits": List<SourceFileEdit> |
| 7761 * "linkedEditGroups": List<LinkedEditGroup> | 7761 * "linkedEditGroups": List<LinkedEditGroup> |
| 7762 * "selection": optional Position | 7762 * "selection": optional Position |
| 7763 * } | 7763 * } |
| 7764 */ | 7764 */ |
| 7765 class SourceChange implements HasToJson { | 7765 class SourceChange implements HasToJson { |
| 7766 /** | 7766 /** |
| 7767 * A human-readable description of the change to be applied. | 7767 * A human-readable description of the change to be applied. |
| 7768 */ | 7768 */ |
| 7769 final String message; | 7769 String message; |
| 7770 | 7770 |
| 7771 /** | 7771 /** |
| 7772 * A list of the edits used to effect the change, grouped by file. | 7772 * A list of the edits used to effect the change, grouped by file. |
| 7773 */ | 7773 */ |
| 7774 final List<SourceFileEdit> edits; | 7774 List<SourceFileEdit> edits; |
| 7775 | 7775 |
| 7776 /** | 7776 /** |
| 7777 * A list of the linked editing groups used to customize the changes that | 7777 * A list of the linked editing groups used to customize the changes that |
| 7778 * were made. | 7778 * were made. |
| 7779 */ | 7779 */ |
| 7780 final List<LinkedEditGroup> linkedEditGroups; | 7780 List<LinkedEditGroup> linkedEditGroups; |
| 7781 | 7781 |
| 7782 /** | 7782 /** |
| 7783 * The position that should be selected after the edits have been applied. | 7783 * The position that should be selected after the edits have been applied. |
| 7784 */ | 7784 */ |
| 7785 final Position selection; | 7785 Position selection; |
| 7786 | 7786 |
| 7787 SourceChange(this.message, this.edits, this.linkedEditGroups, {this.selection}
); | 7787 SourceChange(this.message, this.edits, this.linkedEditGroups, {this.selection}
); |
| 7788 | 7788 |
| 7789 factory SourceChange.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 7789 factory SourceChange.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { |
| 7790 if (json == null) { | 7790 if (json == null) { |
| 7791 json = {}; | 7791 json = {}; |
| 7792 } | 7792 } |
| 7793 if (json is Map) { | 7793 if (json is Map) { |
| 7794 String message; | 7794 String message; |
| 7795 if (json.containsKey("message")) { | 7795 if (json.containsKey("message")) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7862 * "offset": int | 7862 * "offset": int |
| 7863 * "length": int | 7863 * "length": int |
| 7864 * "replacement": String | 7864 * "replacement": String |
| 7865 * "id": optional String | 7865 * "id": optional String |
| 7866 * } | 7866 * } |
| 7867 */ | 7867 */ |
| 7868 class SourceEdit implements HasToJson { | 7868 class SourceEdit implements HasToJson { |
| 7869 /** | 7869 /** |
| 7870 * The offset of the region to be modified. | 7870 * The offset of the region to be modified. |
| 7871 */ | 7871 */ |
| 7872 final int offset; | 7872 int offset; |
| 7873 | 7873 |
| 7874 /** | 7874 /** |
| 7875 * The length of the region to be modified. | 7875 * The length of the region to be modified. |
| 7876 */ | 7876 */ |
| 7877 final int length; | 7877 int length; |
| 7878 | 7878 |
| 7879 /** | 7879 /** |
| 7880 * The code that is to replace the specified region in the original code. | 7880 * The code that is to replace the specified region in the original code. |
| 7881 */ | 7881 */ |
| 7882 final String replacement; | 7882 String replacement; |
| 7883 | 7883 |
| 7884 /** | 7884 /** |
| 7885 * An identifier that uniquely identifies this source edit from other edits | 7885 * An identifier that uniquely identifies this source edit from other edits |
| 7886 * in the same response. This field is omitted unless a containing structure | 7886 * in the same response. This field is omitted unless a containing structure |
| 7887 * needs to be able to identify the edit for some reason. | 7887 * needs to be able to identify the edit for some reason. |
| 7888 * | 7888 * |
| 7889 * For example, some refactoring operations can produce edits that might not | 7889 * For example, some refactoring operations can produce edits that might not |
| 7890 * be appropriate (referred to as potential edits). Such edits will have an | 7890 * be appropriate (referred to as potential edits). Such edits will have an |
| 7891 * id so that they can be referenced. Edits in the same response that do not | 7891 * id so that they can be referenced. Edits in the same response that do not |
| 7892 * need to be referenced will not have an id. | 7892 * need to be referenced will not have an id. |
| 7893 */ | 7893 */ |
| 7894 final String id; | 7894 String id; |
| 7895 | 7895 |
| 7896 SourceEdit(this.offset, this.length, this.replacement, {this.id}); | 7896 SourceEdit(this.offset, this.length, this.replacement, {this.id}); |
| 7897 | 7897 |
| 7898 factory SourceEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object j
son) { | 7898 factory SourceEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object j
son) { |
| 7899 if (json == null) { | 7899 if (json == null) { |
| 7900 json = {}; | 7900 json = {}; |
| 7901 } | 7901 } |
| 7902 if (json is Map) { | 7902 if (json is Map) { |
| 7903 int offset; | 7903 int offset; |
| 7904 if (json.containsKey("offset")) { | 7904 if (json.containsKey("offset")) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7969 * | 7969 * |
| 7970 * { | 7970 * { |
| 7971 * "file": FilePath | 7971 * "file": FilePath |
| 7972 * "edits": List<SourceEdit> | 7972 * "edits": List<SourceEdit> |
| 7973 * } | 7973 * } |
| 7974 */ | 7974 */ |
| 7975 class SourceFileEdit implements HasToJson { | 7975 class SourceFileEdit implements HasToJson { |
| 7976 /** | 7976 /** |
| 7977 * The file containing the code to be modified. | 7977 * The file containing the code to be modified. |
| 7978 */ | 7978 */ |
| 7979 final String file; | 7979 String file; |
| 7980 | 7980 |
| 7981 /** | 7981 /** |
| 7982 * A list of the edits used to effect the change. | 7982 * A list of the edits used to effect the change. |
| 7983 */ | 7983 */ |
| 7984 final List<SourceEdit> edits; | 7984 List<SourceEdit> edits; |
| 7985 | 7985 |
| 7986 SourceFileEdit(this.file, this.edits); | 7986 SourceFileEdit(this.file, this.edits); |
| 7987 | 7987 |
| 7988 factory SourceFileEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 7988 factory SourceFileEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { |
| 7989 if (json == null) { | 7989 if (json == null) { |
| 7990 json = {}; | 7990 json = {}; |
| 7991 } | 7991 } |
| 7992 if (json is Map) { | 7992 if (json is Map) { |
| 7993 String file; | 7993 String file; |
| 7994 if (json.containsKey("file")) { | 7994 if (json.containsKey("file")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8046 * "superclass": optional int | 8046 * "superclass": optional int |
| 8047 * "interfaces": List<int> | 8047 * "interfaces": List<int> |
| 8048 * "mixins": List<int> | 8048 * "mixins": List<int> |
| 8049 * "subclasses": List<int> | 8049 * "subclasses": List<int> |
| 8050 * } | 8050 * } |
| 8051 */ | 8051 */ |
| 8052 class TypeHierarchyItem implements HasToJson { | 8052 class TypeHierarchyItem implements HasToJson { |
| 8053 /** | 8053 /** |
| 8054 * The class element represented by this item. | 8054 * The class element represented by this item. |
| 8055 */ | 8055 */ |
| 8056 final Element classElement; | 8056 Element classElement; |
| 8057 | 8057 |
| 8058 /** | 8058 /** |
| 8059 * The name to be displayed for the class. This field will be omitted if the | 8059 * The name to be displayed for the class. This field will be omitted if the |
| 8060 * display name is the same as the name of the element. The display name is | 8060 * display name is the same as the name of the element. The display name is |
| 8061 * different if there is additional type information to be displayed, such as | 8061 * different if there is additional type information to be displayed, such as |
| 8062 * type arguments. | 8062 * type arguments. |
| 8063 */ | 8063 */ |
| 8064 final String displayName; | 8064 String displayName; |
| 8065 | 8065 |
| 8066 /** | 8066 /** |
| 8067 * The member in the class corresponding to the member on which the hierarchy | 8067 * The member in the class corresponding to the member on which the hierarchy |
| 8068 * was requested. This field will be omitted if the hierarchy was not | 8068 * was requested. This field will be omitted if the hierarchy was not |
| 8069 * requested for a member or if the class does not have a corresponding | 8069 * requested for a member or if the class does not have a corresponding |
| 8070 * member. | 8070 * member. |
| 8071 */ | 8071 */ |
| 8072 final Element memberElement; | 8072 Element memberElement; |
| 8073 | 8073 |
| 8074 /** | 8074 /** |
| 8075 * The index of the item representing the superclass of this class. This | 8075 * The index of the item representing the superclass of this class. This |
| 8076 * field will be omitted if this item represents the class Object. | 8076 * field will be omitted if this item represents the class Object. |
| 8077 */ | 8077 */ |
| 8078 final int superclass; | 8078 int superclass; |
| 8079 | 8079 |
| 8080 /** | 8080 /** |
| 8081 * The indexes of the items representing the interfaces implemented by this | 8081 * The indexes of the items representing the interfaces implemented by this |
| 8082 * class. The list will be empty if there are no implemented interfaces. | 8082 * class. The list will be empty if there are no implemented interfaces. |
| 8083 */ | 8083 */ |
| 8084 final List<int> interfaces; | 8084 List<int> interfaces; |
| 8085 | 8085 |
| 8086 /** | 8086 /** |
| 8087 * The indexes of the items representing the mixins referenced by this class. | 8087 * The indexes of the items representing the mixins referenced by this class. |
| 8088 * The list will be empty if there are no classes mixed in to this class. | 8088 * The list will be empty if there are no classes mixed in to this class. |
| 8089 */ | 8089 */ |
| 8090 final List<int> mixins; | 8090 List<int> mixins; |
| 8091 | 8091 |
| 8092 /** | 8092 /** |
| 8093 * The indexes of the items representing the subtypes of this class. The list | 8093 * The indexes of the items representing the subtypes of this class. The list |
| 8094 * will be empty if there are no subtypes or if this item represents a | 8094 * will be empty if there are no subtypes or if this item represents a |
| 8095 * supertype of the pivot type. | 8095 * supertype of the pivot type. |
| 8096 */ | 8096 */ |
| 8097 final List<int> subclasses; | 8097 List<int> subclasses; |
| 8098 | 8098 |
| 8099 TypeHierarchyItem(this.classElement, this.interfaces, this.mixins, this.subcla
sses, {this.displayName, this.memberElement, this.superclass}); | 8099 TypeHierarchyItem(this.classElement, this.interfaces, this.mixins, this.subcla
sses, {this.displayName, this.memberElement, this.superclass}); |
| 8100 | 8100 |
| 8101 factory TypeHierarchyItem.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 8101 factory TypeHierarchyItem.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
| 8102 if (json == null) { | 8102 if (json == null) { |
| 8103 json = {}; | 8103 json = {}; |
| 8104 } | 8104 } |
| 8105 if (json is Map) { | 8105 if (json is Map) { |
| 8106 Element classElement; | 8106 Element classElement; |
| 8107 if (json.containsKey("classElement")) { | 8107 if (json.containsKey("classElement")) { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8200 * { | 8200 * { |
| 8201 * "names": List<String> | 8201 * "names": List<String> |
| 8202 * "offsets": List<int> | 8202 * "offsets": List<int> |
| 8203 * "lengths": List<int> | 8203 * "lengths": List<int> |
| 8204 * } | 8204 * } |
| 8205 */ | 8205 */ |
| 8206 class ExtractLocalVariableFeedback implements HasToJson { | 8206 class ExtractLocalVariableFeedback implements HasToJson { |
| 8207 /** | 8207 /** |
| 8208 * The proposed names for the local variable. | 8208 * The proposed names for the local variable. |
| 8209 */ | 8209 */ |
| 8210 final List<String> names; | 8210 List<String> names; |
| 8211 | 8211 |
| 8212 /** | 8212 /** |
| 8213 * The offsets of the expressions that would be replaced by a reference to | 8213 * The offsets of the expressions that would be replaced by a reference to |
| 8214 * the variable. | 8214 * the variable. |
| 8215 */ | 8215 */ |
| 8216 final List<int> offsets; | 8216 List<int> offsets; |
| 8217 | 8217 |
| 8218 /** | 8218 /** |
| 8219 * The lengths of the expressions that would be replaced by a reference to | 8219 * The lengths of the expressions that would be replaced by a reference to |
| 8220 * the variable. The lengths correspond to the offsets. In other words, for a | 8220 * the variable. The lengths correspond to the offsets. In other words, for a |
| 8221 * given expression, if the offset of that expression is offsets[i], then the | 8221 * given expression, if the offset of that expression is offsets[i], then the |
| 8222 * length of that expression is lengths[i]. | 8222 * length of that expression is lengths[i]. |
| 8223 */ | 8223 */ |
| 8224 final List<int> lengths; | 8224 List<int> lengths; |
| 8225 | 8225 |
| 8226 ExtractLocalVariableFeedback(this.names, this.offsets, this.lengths); | 8226 ExtractLocalVariableFeedback(this.names, this.offsets, this.lengths); |
| 8227 | 8227 |
| 8228 factory ExtractLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 8228 factory ExtractLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
| 8229 if (json == null) { | 8229 if (json == null) { |
| 8230 json = {}; | 8230 json = {}; |
| 8231 } | 8231 } |
| 8232 if (json is Map) { | 8232 if (json is Map) { |
| 8233 List<String> names; | 8233 List<String> names; |
| 8234 if (json.containsKey("names")) { | 8234 if (json.containsKey("names")) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8295 * | 8295 * |
| 8296 * { | 8296 * { |
| 8297 * "name": String | 8297 * "name": String |
| 8298 * "extractAll": bool | 8298 * "extractAll": bool |
| 8299 * } | 8299 * } |
| 8300 */ | 8300 */ |
| 8301 class ExtractLocalVariableOptions implements HasToJson { | 8301 class ExtractLocalVariableOptions implements HasToJson { |
| 8302 /** | 8302 /** |
| 8303 * The name that the local variable should be given. | 8303 * The name that the local variable should be given. |
| 8304 */ | 8304 */ |
| 8305 final String name; | 8305 String name; |
| 8306 | 8306 |
| 8307 /** | 8307 /** |
| 8308 * True if all occurrences of the expression within the scope in which the | 8308 * True if all occurrences of the expression within the scope in which the |
| 8309 * variable will be defined should be replaced by a reference to the local | 8309 * variable will be defined should be replaced by a reference to the local |
| 8310 * variable. The expression used to initiate the refactoring will always be | 8310 * variable. The expression used to initiate the refactoring will always be |
| 8311 * replaced. | 8311 * replaced. |
| 8312 */ | 8312 */ |
| 8313 final bool extractAll; | 8313 bool extractAll; |
| 8314 | 8314 |
| 8315 ExtractLocalVariableOptions(this.name, this.extractAll); | 8315 ExtractLocalVariableOptions(this.name, this.extractAll); |
| 8316 | 8316 |
| 8317 factory ExtractLocalVariableOptions.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 8317 factory ExtractLocalVariableOptions.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 8318 if (json == null) { | 8318 if (json == null) { |
| 8319 json = {}; | 8319 json = {}; |
| 8320 } | 8320 } |
| 8321 if (json is Map) { | 8321 if (json is Map) { |
| 8322 String name; | 8322 String name; |
| 8323 if (json.containsKey("name")) { | 8323 if (json.containsKey("name")) { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8383 * "occurrences": int | 8383 * "occurrences": int |
| 8384 * "offsets": List<int> | 8384 * "offsets": List<int> |
| 8385 * "lengths": List<int> | 8385 * "lengths": List<int> |
| 8386 * } | 8386 * } |
| 8387 */ | 8387 */ |
| 8388 class ExtractMethodFeedback implements HasToJson { | 8388 class ExtractMethodFeedback implements HasToJson { |
| 8389 /** | 8389 /** |
| 8390 * The offset to the beginning of the expression or statements that will be | 8390 * The offset to the beginning of the expression or statements that will be |
| 8391 * extracted. | 8391 * extracted. |
| 8392 */ | 8392 */ |
| 8393 final int offset; | 8393 int offset; |
| 8394 | 8394 |
| 8395 /** | 8395 /** |
| 8396 * The length of the expression or statements that will be extracted. | 8396 * The length of the expression or statements that will be extracted. |
| 8397 */ | 8397 */ |
| 8398 final int length; | 8398 int length; |
| 8399 | 8399 |
| 8400 /** | 8400 /** |
| 8401 * The proposed return type for the method. | 8401 * The proposed return type for the method. |
| 8402 */ | 8402 */ |
| 8403 final String returnType; | 8403 String returnType; |
| 8404 | 8404 |
| 8405 /** | 8405 /** |
| 8406 * The proposed names for the method. | 8406 * The proposed names for the method. |
| 8407 */ | 8407 */ |
| 8408 final List<String> names; | 8408 List<String> names; |
| 8409 | 8409 |
| 8410 /** | 8410 /** |
| 8411 * True if a getter could be created rather than a method. | 8411 * True if a getter could be created rather than a method. |
| 8412 */ | 8412 */ |
| 8413 final bool canCreateGetter; | 8413 bool canCreateGetter; |
| 8414 | 8414 |
| 8415 /** | 8415 /** |
| 8416 * The proposed parameters for the method. | 8416 * The proposed parameters for the method. |
| 8417 */ | 8417 */ |
| 8418 final List<RefactoringMethodParameter> parameters; | 8418 List<RefactoringMethodParameter> parameters; |
| 8419 | 8419 |
| 8420 /** | 8420 /** |
| 8421 * The number of times the expression or statements occurs. | 8421 * The number of times the expression or statements occurs. |
| 8422 */ | 8422 */ |
| 8423 final int occurrences; | 8423 int occurrences; |
| 8424 | 8424 |
| 8425 /** | 8425 /** |
| 8426 * The offsets of the expressions or statements that would be replaced by an | 8426 * The offsets of the expressions or statements that would be replaced by an |
| 8427 * invocation of the method. | 8427 * invocation of the method. |
| 8428 */ | 8428 */ |
| 8429 final List<int> offsets; | 8429 List<int> offsets; |
| 8430 | 8430 |
| 8431 /** | 8431 /** |
| 8432 * The lengths of the expressions or statements that would be replaced by an | 8432 * The lengths of the expressions or statements that would be replaced by an |
| 8433 * invocation of the method. The lengths correspond to the offsets. In other | 8433 * invocation of the method. The lengths correspond to the offsets. In other |
| 8434 * words, for a given expression (or block of statements), if the offset of | 8434 * words, for a given expression (or block of statements), if the offset of |
| 8435 * that expression is offsets[i], then the length of that expression is | 8435 * that expression is offsets[i], then the length of that expression is |
| 8436 * lengths[i]. | 8436 * lengths[i]. |
| 8437 */ | 8437 */ |
| 8438 final List<int> lengths; | 8438 List<int> lengths; |
| 8439 | 8439 |
| 8440 ExtractMethodFeedback(this.offset, this.length, this.returnType, this.names, t
his.canCreateGetter, this.parameters, this.occurrences, this.offsets, this.lengt
hs); | 8440 ExtractMethodFeedback(this.offset, this.length, this.returnType, this.names, t
his.canCreateGetter, this.parameters, this.occurrences, this.offsets, this.lengt
hs); |
| 8441 | 8441 |
| 8442 factory ExtractMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 8442 factory ExtractMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
| 8443 if (json == null) { | 8443 if (json == null) { |
| 8444 json = {}; | 8444 json = {}; |
| 8445 } | 8445 } |
| 8446 if (json is Map) { | 8446 if (json is Map) { |
| 8447 int offset; | 8447 int offset; |
| 8448 if (json.containsKey("offset")) { | 8448 if (json.containsKey("offset")) { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8566 * "createGetter": bool | 8566 * "createGetter": bool |
| 8567 * "name": String | 8567 * "name": String |
| 8568 * "parameters": List<RefactoringMethodParameter> | 8568 * "parameters": List<RefactoringMethodParameter> |
| 8569 * "extractAll": bool | 8569 * "extractAll": bool |
| 8570 * } | 8570 * } |
| 8571 */ | 8571 */ |
| 8572 class ExtractMethodOptions implements HasToJson { | 8572 class ExtractMethodOptions implements HasToJson { |
| 8573 /** | 8573 /** |
| 8574 * The return type that should be defined for the method. | 8574 * The return type that should be defined for the method. |
| 8575 */ | 8575 */ |
| 8576 final String returnType; | 8576 String returnType; |
| 8577 | 8577 |
| 8578 /** | 8578 /** |
| 8579 * True if a getter should be created rather than a method. It is an error if | 8579 * True if a getter should be created rather than a method. It is an error if |
| 8580 * this field is true and the list of parameters is non-empty. | 8580 * this field is true and the list of parameters is non-empty. |
| 8581 */ | 8581 */ |
| 8582 final bool createGetter; | 8582 bool createGetter; |
| 8583 | 8583 |
| 8584 /** | 8584 /** |
| 8585 * The name that the method should be given. | 8585 * The name that the method should be given. |
| 8586 */ | 8586 */ |
| 8587 final String name; | 8587 String name; |
| 8588 | 8588 |
| 8589 /** | 8589 /** |
| 8590 * The parameters that should be defined for the method. | 8590 * The parameters that should be defined for the method. |
| 8591 * | 8591 * |
| 8592 * It is an error if a REQUIRED or NAMED parameter follows a POSITIONAL | 8592 * It is an error if a REQUIRED or NAMED parameter follows a POSITIONAL |
| 8593 * parameter. It is an error if a REQUIRED or POSITIONAL parameter follows a | 8593 * parameter. It is an error if a REQUIRED or POSITIONAL parameter follows a |
| 8594 * NAMED parameter. | 8594 * NAMED parameter. |
| 8595 * | 8595 * |
| 8596 * - To change the order and/or update proposed paramerers, add parameters | 8596 * - To change the order and/or update proposed paramerers, add parameters |
| 8597 * with the same identifiers as proposed. | 8597 * with the same identifiers as proposed. |
| 8598 * - To add new parameters, omit their identifier. | 8598 * - To add new parameters, omit their identifier. |
| 8599 * - To remove some parameters, omit them in this list. | 8599 * - To remove some parameters, omit them in this list. |
| 8600 */ | 8600 */ |
| 8601 final List<RefactoringMethodParameter> parameters; | 8601 List<RefactoringMethodParameter> parameters; |
| 8602 | 8602 |
| 8603 /** | 8603 /** |
| 8604 * True if all occurrences of the expression or statements should be replaced | 8604 * True if all occurrences of the expression or statements should be replaced |
| 8605 * by an invocation of the method. The expression or statements used to | 8605 * by an invocation of the method. The expression or statements used to |
| 8606 * initiate the refactoring will always be replaced. | 8606 * initiate the refactoring will always be replaced. |
| 8607 */ | 8607 */ |
| 8608 final bool extractAll; | 8608 bool extractAll; |
| 8609 | 8609 |
| 8610 ExtractMethodOptions(this.returnType, this.createGetter, this.name, this.param
eters, this.extractAll); | 8610 ExtractMethodOptions(this.returnType, this.createGetter, this.name, this.param
eters, this.extractAll); |
| 8611 | 8611 |
| 8612 factory ExtractMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 8612 factory ExtractMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 8613 if (json == null) { | 8613 if (json == null) { |
| 8614 json = {}; | 8614 json = {}; |
| 8615 } | 8615 } |
| 8616 if (json is Map) { | 8616 if (json is Map) { |
| 8617 String returnType; | 8617 String returnType; |
| 8618 if (json.containsKey("returnType")) { | 8618 if (json.containsKey("returnType")) { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8698 * { | 8698 * { |
| 8699 * "deleteSource": bool | 8699 * "deleteSource": bool |
| 8700 * "inlineAll": bool | 8700 * "inlineAll": bool |
| 8701 * } | 8701 * } |
| 8702 */ | 8702 */ |
| 8703 class InlineMethodOptions implements HasToJson { | 8703 class InlineMethodOptions implements HasToJson { |
| 8704 /** | 8704 /** |
| 8705 * True if the method being inlined should be removed. It is an error if this | 8705 * True if the method being inlined should be removed. It is an error if this |
| 8706 * field is true and inlineAll is false. | 8706 * field is true and inlineAll is false. |
| 8707 */ | 8707 */ |
| 8708 final bool deleteSource; | 8708 bool deleteSource; |
| 8709 | 8709 |
| 8710 /** | 8710 /** |
| 8711 * True if all invocations of the method should be inlined, or false if only | 8711 * True if all invocations of the method should be inlined, or false if only |
| 8712 * the invocation site used to create this refactoring should be inlined. | 8712 * the invocation site used to create this refactoring should be inlined. |
| 8713 */ | 8713 */ |
| 8714 final bool inlineAll; | 8714 bool inlineAll; |
| 8715 | 8715 |
| 8716 InlineMethodOptions(this.deleteSource, this.inlineAll); | 8716 InlineMethodOptions(this.deleteSource, this.inlineAll); |
| 8717 | 8717 |
| 8718 factory InlineMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 8718 factory InlineMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
| 8719 if (json == null) { | 8719 if (json == null) { |
| 8720 json = {}; | 8720 json = {}; |
| 8721 } | 8721 } |
| 8722 if (json is Map) { | 8722 if (json is Map) { |
| 8723 bool deleteSource; | 8723 bool deleteSource; |
| 8724 if (json.containsKey("deleteSource")) { | 8724 if (json.containsKey("deleteSource")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8776 * | 8776 * |
| 8777 * { | 8777 * { |
| 8778 * "offset": int | 8778 * "offset": int |
| 8779 * "length": int | 8779 * "length": int |
| 8780 * } | 8780 * } |
| 8781 */ | 8781 */ |
| 8782 class RenameFeedback implements HasToJson { | 8782 class RenameFeedback implements HasToJson { |
| 8783 /** | 8783 /** |
| 8784 * The offset to the beginning of the name selected to be renamed. | 8784 * The offset to the beginning of the name selected to be renamed. |
| 8785 */ | 8785 */ |
| 8786 final int offset; | 8786 int offset; |
| 8787 | 8787 |
| 8788 /** | 8788 /** |
| 8789 * The length of the name selected to be renamed. | 8789 * The length of the name selected to be renamed. |
| 8790 */ | 8790 */ |
| 8791 final int length; | 8791 int length; |
| 8792 | 8792 |
| 8793 RenameFeedback(this.offset, this.length); | 8793 RenameFeedback(this.offset, this.length); |
| 8794 | 8794 |
| 8795 factory RenameFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 8795 factory RenameFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { |
| 8796 if (json == null) { | 8796 if (json == null) { |
| 8797 json = {}; | 8797 json = {}; |
| 8798 } | 8798 } |
| 8799 if (json is Map) { | 8799 if (json is Map) { |
| 8800 int offset; | 8800 int offset; |
| 8801 if (json.containsKey("offset")) { | 8801 if (json.containsKey("offset")) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8852 * rename options | 8852 * rename options |
| 8853 * | 8853 * |
| 8854 * { | 8854 * { |
| 8855 * "newName": String | 8855 * "newName": String |
| 8856 * } | 8856 * } |
| 8857 */ | 8857 */ |
| 8858 class RenameOptions implements HasToJson { | 8858 class RenameOptions implements HasToJson { |
| 8859 /** | 8859 /** |
| 8860 * The name that the element should have after the refactoring. | 8860 * The name that the element should have after the refactoring. |
| 8861 */ | 8861 */ |
| 8862 final String newName; | 8862 String newName; |
| 8863 | 8863 |
| 8864 RenameOptions(this.newName); | 8864 RenameOptions(this.newName); |
| 8865 | 8865 |
| 8866 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 8866 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { |
| 8867 if (json == null) { | 8867 if (json == null) { |
| 8868 json = {}; | 8868 json = {}; |
| 8869 } | 8869 } |
| 8870 if (json is Map) { | 8870 if (json is Map) { |
| 8871 String newName; | 8871 String newName; |
| 8872 if (json.containsKey("newName")) { | 8872 if (json.containsKey("newName")) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 8902 return false; | 8902 return false; |
| 8903 } | 8903 } |
| 8904 | 8904 |
| 8905 @override | 8905 @override |
| 8906 int get hashCode { | 8906 int get hashCode { |
| 8907 int hash = 0; | 8907 int hash = 0; |
| 8908 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 8908 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 8909 return _JenkinsSmiHash.finish(hash); | 8909 return _JenkinsSmiHash.finish(hash); |
| 8910 } | 8910 } |
| 8911 } | 8911 } |
| OLD | NEW |