| 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 protocol; | 9 part of protocol; |
| 10 /** | 10 /** |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * server.getVersion result | 33 * server.getVersion result |
| 34 * | 34 * |
| 35 * { | 35 * { |
| 36 * "version": String | 36 * "version": String |
| 37 * } | 37 * } |
| 38 */ | 38 */ |
| 39 class ServerGetVersionResult { | 39 class ServerGetVersionResult implements HasToJson { |
| 40 /** | 40 /** |
| 41 * The version number of the analysis server. | 41 * The version number of the analysis server. |
| 42 */ | 42 */ |
| 43 String version; | 43 String version; |
| 44 | 44 |
| 45 ServerGetVersionResult(this.version); | 45 ServerGetVersionResult(this.version); |
| 46 | 46 |
| 47 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 47 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { |
| 48 if (json == null) { | 48 if (json == null) { |
| 49 json = {}; | 49 json = {}; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 | 139 |
| 140 /** | 140 /** |
| 141 * server.setSubscriptions params | 141 * server.setSubscriptions params |
| 142 * | 142 * |
| 143 * { | 143 * { |
| 144 * "subscriptions": List<ServerService> | 144 * "subscriptions": List<ServerService> |
| 145 * } | 145 * } |
| 146 */ | 146 */ |
| 147 class ServerSetSubscriptionsParams { | 147 class ServerSetSubscriptionsParams implements HasToJson { |
| 148 /** | 148 /** |
| 149 * A list of the services being subscribed to. | 149 * A list of the services being subscribed to. |
| 150 */ | 150 */ |
| 151 List<ServerService> subscriptions; | 151 List<ServerService> subscriptions; |
| 152 | 152 |
| 153 ServerSetSubscriptionsParams(this.subscriptions); | 153 ServerSetSubscriptionsParams(this.subscriptions); |
| 154 | 154 |
| 155 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 155 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
| 156 if (json == null) { | 156 if (json == null) { |
| 157 json = {}; | 157 json = {}; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 247 |
| 248 /** | 248 /** |
| 249 * server.error params | 249 * server.error params |
| 250 * | 250 * |
| 251 * { | 251 * { |
| 252 * "isFatal": bool | 252 * "isFatal": bool |
| 253 * "message": String | 253 * "message": String |
| 254 * "stackTrace": String | 254 * "stackTrace": String |
| 255 * } | 255 * } |
| 256 */ | 256 */ |
| 257 class ServerErrorParams { | 257 class ServerErrorParams implements HasToJson { |
| 258 /** | 258 /** |
| 259 * True if the error is a fatal error, meaning that the server will shutdown | 259 * True if the error is a fatal error, meaning that the server will shutdown |
| 260 * automatically after sending this notification. | 260 * automatically after sending this notification. |
| 261 */ | 261 */ |
| 262 bool isFatal; | 262 bool isFatal; |
| 263 | 263 |
| 264 /** | 264 /** |
| 265 * The error message indicating what kind of error was encountered. | 265 * The error message indicating what kind of error was encountered. |
| 266 */ | 266 */ |
| 267 String message; | 267 String message; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 } | 343 } |
| 344 } | 344 } |
| 345 | 345 |
| 346 /** | 346 /** |
| 347 * server.status params | 347 * server.status params |
| 348 * | 348 * |
| 349 * { | 349 * { |
| 350 * "analysis": optional AnalysisStatus | 350 * "analysis": optional AnalysisStatus |
| 351 * } | 351 * } |
| 352 */ | 352 */ |
| 353 class ServerStatusParams { | 353 class ServerStatusParams implements HasToJson { |
| 354 /** | 354 /** |
| 355 * The current status of analysis, including whether analysis is being | 355 * The current status of analysis, including whether analysis is being |
| 356 * performed and if so what is being analyzed. | 356 * performed and if so what is being analyzed. |
| 357 */ | 357 */ |
| 358 AnalysisStatus analysis; | 358 AnalysisStatus analysis; |
| 359 | 359 |
| 360 ServerStatusParams({this.analysis}); | 360 ServerStatusParams({this.analysis}); |
| 361 | 361 |
| 362 factory ServerStatusParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 362 factory ServerStatusParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
| 363 if (json == null) { | 363 if (json == null) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 } | 410 } |
| 411 } | 411 } |
| 412 | 412 |
| 413 /** | 413 /** |
| 414 * analysis.getErrors params | 414 * analysis.getErrors params |
| 415 * | 415 * |
| 416 * { | 416 * { |
| 417 * "file": FilePath | 417 * "file": FilePath |
| 418 * } | 418 * } |
| 419 */ | 419 */ |
| 420 class AnalysisGetErrorsParams { | 420 class AnalysisGetErrorsParams implements HasToJson { |
| 421 /** | 421 /** |
| 422 * The file for which errors are being requested. | 422 * The file for which errors are being requested. |
| 423 */ | 423 */ |
| 424 String file; | 424 String file; |
| 425 | 425 |
| 426 AnalysisGetErrorsParams(this.file); | 426 AnalysisGetErrorsParams(this.file); |
| 427 | 427 |
| 428 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 428 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
| 429 if (json == null) { | 429 if (json == null) { |
| 430 json = {}; | 430 json = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 } | 476 } |
| 477 } | 477 } |
| 478 | 478 |
| 479 /** | 479 /** |
| 480 * analysis.getErrors result | 480 * analysis.getErrors result |
| 481 * | 481 * |
| 482 * { | 482 * { |
| 483 * "errors": List<AnalysisError> | 483 * "errors": List<AnalysisError> |
| 484 * } | 484 * } |
| 485 */ | 485 */ |
| 486 class AnalysisGetErrorsResult { | 486 class AnalysisGetErrorsResult implements HasToJson { |
| 487 /** | 487 /** |
| 488 * The errors associated with the file. | 488 * The errors associated with the file. |
| 489 */ | 489 */ |
| 490 List<AnalysisError> errors; | 490 List<AnalysisError> errors; |
| 491 | 491 |
| 492 AnalysisGetErrorsResult(this.errors); | 492 AnalysisGetErrorsResult(this.errors); |
| 493 | 493 |
| 494 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 494 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
| 495 if (json == null) { | 495 if (json == null) { |
| 496 json = {}; | 496 json = {}; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 } | 543 } |
| 544 | 544 |
| 545 /** | 545 /** |
| 546 * analysis.getHover params | 546 * analysis.getHover params |
| 547 * | 547 * |
| 548 * { | 548 * { |
| 549 * "file": FilePath | 549 * "file": FilePath |
| 550 * "offset": int | 550 * "offset": int |
| 551 * } | 551 * } |
| 552 */ | 552 */ |
| 553 class AnalysisGetHoverParams { | 553 class AnalysisGetHoverParams implements HasToJson { |
| 554 /** | 554 /** |
| 555 * The file in which hover information is being requested. | 555 * The file in which hover information is being requested. |
| 556 */ | 556 */ |
| 557 String file; | 557 String file; |
| 558 | 558 |
| 559 /** | 559 /** |
| 560 * The offset for which hover information is being requested. | 560 * The offset for which hover information is being requested. |
| 561 */ | 561 */ |
| 562 int offset; | 562 int offset; |
| 563 | 563 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 } | 623 } |
| 624 } | 624 } |
| 625 | 625 |
| 626 /** | 626 /** |
| 627 * analysis.getHover result | 627 * analysis.getHover result |
| 628 * | 628 * |
| 629 * { | 629 * { |
| 630 * "hovers": List<HoverInformation> | 630 * "hovers": List<HoverInformation> |
| 631 * } | 631 * } |
| 632 */ | 632 */ |
| 633 class AnalysisGetHoverResult { | 633 class AnalysisGetHoverResult implements HasToJson { |
| 634 /** | 634 /** |
| 635 * The hover information associated with the location. The list will be empty | 635 * The hover information associated with the location. The list will be empty |
| 636 * if no information could be determined for the location. The list can | 636 * if no information could be determined for the location. The list can |
| 637 * contain multiple items if the file is being analyzed in multiple contexts | 637 * contain multiple items if the file is being analyzed in multiple contexts |
| 638 * in conflicting ways (such as a part that is included in multiple | 638 * in conflicting ways (such as a part that is included in multiple |
| 639 * libraries). | 639 * libraries). |
| 640 */ | 640 */ |
| 641 List<HoverInformation> hovers; | 641 List<HoverInformation> hovers; |
| 642 | 642 |
| 643 AnalysisGetHoverResult(this.hovers); | 643 AnalysisGetHoverResult(this.hovers); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 } | 736 } |
| 737 | 737 |
| 738 /** | 738 /** |
| 739 * analysis.setAnalysisRoots params | 739 * analysis.setAnalysisRoots params |
| 740 * | 740 * |
| 741 * { | 741 * { |
| 742 * "included": List<FilePath> | 742 * "included": List<FilePath> |
| 743 * "excluded": List<FilePath> | 743 * "excluded": List<FilePath> |
| 744 * } | 744 * } |
| 745 */ | 745 */ |
| 746 class AnalysisSetAnalysisRootsParams { | 746 class AnalysisSetAnalysisRootsParams implements HasToJson { |
| 747 /** | 747 /** |
| 748 * A list of the files and directories that should be analyzed. | 748 * A list of the files and directories that should be analyzed. |
| 749 */ | 749 */ |
| 750 List<String> included; | 750 List<String> included; |
| 751 | 751 |
| 752 /** | 752 /** |
| 753 * A list of the files and directories within the included directories that | 753 * A list of the files and directories within the included directories that |
| 754 * should not be analyzed. | 754 * should not be analyzed. |
| 755 */ | 755 */ |
| 756 List<String> excluded; | 756 List<String> excluded; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 } | 838 } |
| 839 } | 839 } |
| 840 | 840 |
| 841 /** | 841 /** |
| 842 * analysis.setPriorityFiles params | 842 * analysis.setPriorityFiles params |
| 843 * | 843 * |
| 844 * { | 844 * { |
| 845 * "files": List<FilePath> | 845 * "files": List<FilePath> |
| 846 * } | 846 * } |
| 847 */ | 847 */ |
| 848 class AnalysisSetPriorityFilesParams { | 848 class AnalysisSetPriorityFilesParams implements HasToJson { |
| 849 /** | 849 /** |
| 850 * The files that are to be a priority for analysis. | 850 * The files that are to be a priority for analysis. |
| 851 */ | 851 */ |
| 852 List<String> files; | 852 List<String> files; |
| 853 | 853 |
| 854 AnalysisSetPriorityFilesParams(this.files); | 854 AnalysisSetPriorityFilesParams(this.files); |
| 855 | 855 |
| 856 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 856 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 857 if (json == null) { | 857 if (json == null) { |
| 858 json = {}; | 858 json = {}; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 } | 925 } |
| 926 } | 926 } |
| 927 | 927 |
| 928 /** | 928 /** |
| 929 * analysis.setSubscriptions params | 929 * analysis.setSubscriptions params |
| 930 * | 930 * |
| 931 * { | 931 * { |
| 932 * "subscriptions": Map<AnalysisService, List<FilePath>> | 932 * "subscriptions": Map<AnalysisService, List<FilePath>> |
| 933 * } | 933 * } |
| 934 */ | 934 */ |
| 935 class AnalysisSetSubscriptionsParams { | 935 class AnalysisSetSubscriptionsParams implements HasToJson { |
| 936 /** | 936 /** |
| 937 * A table mapping services to a list of the files being subscribed to the | 937 * A table mapping services to a list of the files being subscribed to the |
| 938 * service. | 938 * service. |
| 939 */ | 939 */ |
| 940 Map<AnalysisService, List<String>> subscriptions; | 940 Map<AnalysisService, List<String>> subscriptions; |
| 941 | 941 |
| 942 AnalysisSetSubscriptionsParams(this.subscriptions); | 942 AnalysisSetSubscriptionsParams(this.subscriptions); |
| 943 | 943 |
| 944 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 944 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 945 if (json == null) { | 945 if (json == null) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 } | 1013 } |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 /** | 1016 /** |
| 1017 * analysis.updateContent params | 1017 * analysis.updateContent params |
| 1018 * | 1018 * |
| 1019 * { | 1019 * { |
| 1020 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> | 1020 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> |
| 1021 * } | 1021 * } |
| 1022 */ | 1022 */ |
| 1023 class AnalysisUpdateContentParams { | 1023 class AnalysisUpdateContentParams implements HasToJson { |
| 1024 /** | 1024 /** |
| 1025 * A table mapping the files whose content has changed to a description of | 1025 * A table mapping the files whose content has changed to a description of |
| 1026 * the content change. | 1026 * the content change. |
| 1027 */ | 1027 */ |
| 1028 Map<String, dynamic> files; | 1028 Map<String, dynamic> files; |
| 1029 | 1029 |
| 1030 AnalysisUpdateContentParams(this.files); | 1030 AnalysisUpdateContentParams(this.files); |
| 1031 | 1031 |
| 1032 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1032 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 1033 if (json == null) { | 1033 if (json == null) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 } | 1101 } |
| 1102 } | 1102 } |
| 1103 | 1103 |
| 1104 /** | 1104 /** |
| 1105 * analysis.updateOptions params | 1105 * analysis.updateOptions params |
| 1106 * | 1106 * |
| 1107 * { | 1107 * { |
| 1108 * "options": AnalysisOptions | 1108 * "options": AnalysisOptions |
| 1109 * } | 1109 * } |
| 1110 */ | 1110 */ |
| 1111 class AnalysisUpdateOptionsParams { | 1111 class AnalysisUpdateOptionsParams implements HasToJson { |
| 1112 /** | 1112 /** |
| 1113 * The options that are to be used to control analysis. | 1113 * The options that are to be used to control analysis. |
| 1114 */ | 1114 */ |
| 1115 AnalysisOptions options; | 1115 AnalysisOptions options; |
| 1116 | 1116 |
| 1117 AnalysisUpdateOptionsParams(this.options); | 1117 AnalysisUpdateOptionsParams(this.options); |
| 1118 | 1118 |
| 1119 factory AnalysisUpdateOptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1119 factory AnalysisUpdateOptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 1120 if (json == null) { | 1120 if (json == null) { |
| 1121 json = {}; | 1121 json = {}; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1189 } | 1189 } |
| 1190 | 1190 |
| 1191 /** | 1191 /** |
| 1192 * analysis.errors params | 1192 * analysis.errors params |
| 1193 * | 1193 * |
| 1194 * { | 1194 * { |
| 1195 * "file": FilePath | 1195 * "file": FilePath |
| 1196 * "errors": List<AnalysisError> | 1196 * "errors": List<AnalysisError> |
| 1197 * } | 1197 * } |
| 1198 */ | 1198 */ |
| 1199 class AnalysisErrorsParams { | 1199 class AnalysisErrorsParams implements HasToJson { |
| 1200 /** | 1200 /** |
| 1201 * The file containing the errors. | 1201 * The file containing the errors. |
| 1202 */ | 1202 */ |
| 1203 String file; | 1203 String file; |
| 1204 | 1204 |
| 1205 /** | 1205 /** |
| 1206 * The errors contained in the file. | 1206 * The errors contained in the file. |
| 1207 */ | 1207 */ |
| 1208 List<AnalysisError> errors; | 1208 List<AnalysisError> errors; |
| 1209 | 1209 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 } | 1269 } |
| 1270 } | 1270 } |
| 1271 | 1271 |
| 1272 /** | 1272 /** |
| 1273 * analysis.flushResults params | 1273 * analysis.flushResults params |
| 1274 * | 1274 * |
| 1275 * { | 1275 * { |
| 1276 * "files": List<FilePath> | 1276 * "files": List<FilePath> |
| 1277 * } | 1277 * } |
| 1278 */ | 1278 */ |
| 1279 class AnalysisFlushResultsParams { | 1279 class AnalysisFlushResultsParams implements HasToJson { |
| 1280 /** | 1280 /** |
| 1281 * The files that are no longer being analyzed. | 1281 * The files that are no longer being analyzed. |
| 1282 */ | 1282 */ |
| 1283 List<String> files; | 1283 List<String> files; |
| 1284 | 1284 |
| 1285 AnalysisFlushResultsParams(this.files); | 1285 AnalysisFlushResultsParams(this.files); |
| 1286 | 1286 |
| 1287 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 1287 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { |
| 1288 if (json == null) { | 1288 if (json == null) { |
| 1289 json = {}; | 1289 json = {}; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 } | 1336 } |
| 1337 | 1337 |
| 1338 /** | 1338 /** |
| 1339 * analysis.folding params | 1339 * analysis.folding params |
| 1340 * | 1340 * |
| 1341 * { | 1341 * { |
| 1342 * "file": FilePath | 1342 * "file": FilePath |
| 1343 * "regions": List<FoldingRegion> | 1343 * "regions": List<FoldingRegion> |
| 1344 * } | 1344 * } |
| 1345 */ | 1345 */ |
| 1346 class AnalysisFoldingParams { | 1346 class AnalysisFoldingParams implements HasToJson { |
| 1347 /** | 1347 /** |
| 1348 * The file containing the folding regions. | 1348 * The file containing the folding regions. |
| 1349 */ | 1349 */ |
| 1350 String file; | 1350 String file; |
| 1351 | 1351 |
| 1352 /** | 1352 /** |
| 1353 * The folding regions contained in the file. | 1353 * The folding regions contained in the file. |
| 1354 */ | 1354 */ |
| 1355 List<FoldingRegion> regions; | 1355 List<FoldingRegion> regions; |
| 1356 | 1356 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 } | 1417 } |
| 1418 | 1418 |
| 1419 /** | 1419 /** |
| 1420 * analysis.highlights params | 1420 * analysis.highlights params |
| 1421 * | 1421 * |
| 1422 * { | 1422 * { |
| 1423 * "file": FilePath | 1423 * "file": FilePath |
| 1424 * "regions": List<HighlightRegion> | 1424 * "regions": List<HighlightRegion> |
| 1425 * } | 1425 * } |
| 1426 */ | 1426 */ |
| 1427 class AnalysisHighlightsParams { | 1427 class AnalysisHighlightsParams implements HasToJson { |
| 1428 /** | 1428 /** |
| 1429 * The file containing the highlight regions. | 1429 * The file containing the highlight regions. |
| 1430 */ | 1430 */ |
| 1431 String file; | 1431 String file; |
| 1432 | 1432 |
| 1433 /** | 1433 /** |
| 1434 * The highlight regions contained in the file. Each highlight region | 1434 * The highlight regions contained in the file. Each highlight region |
| 1435 * represents a particular syntactic or semantic meaning associated with some | 1435 * represents a particular syntactic or semantic meaning associated with some |
| 1436 * range. Note that the highlight regions that are returned can overlap other | 1436 * range. Note that the highlight regions that are returned can overlap other |
| 1437 * highlight regions if there is more than one meaning associated with a | 1437 * highlight regions if there is more than one meaning associated with a |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 } | 1502 } |
| 1503 | 1503 |
| 1504 /** | 1504 /** |
| 1505 * analysis.navigation params | 1505 * analysis.navigation params |
| 1506 * | 1506 * |
| 1507 * { | 1507 * { |
| 1508 * "file": FilePath | 1508 * "file": FilePath |
| 1509 * "regions": List<NavigationRegion> | 1509 * "regions": List<NavigationRegion> |
| 1510 * } | 1510 * } |
| 1511 */ | 1511 */ |
| 1512 class AnalysisNavigationParams { | 1512 class AnalysisNavigationParams implements HasToJson { |
| 1513 /** | 1513 /** |
| 1514 * The file containing the navigation regions. | 1514 * The file containing the navigation regions. |
| 1515 */ | 1515 */ |
| 1516 String file; | 1516 String file; |
| 1517 | 1517 |
| 1518 /** | 1518 /** |
| 1519 * The navigation regions contained in the file. Each navigation region | 1519 * The navigation regions contained in the file. Each navigation region |
| 1520 * represents a list of targets associated with some range. The lists will | 1520 * represents a list of targets associated with some range. The lists will |
| 1521 * usually contain a single target, but can contain more in the case of a | 1521 * usually contain a single target, but can contain more in the case of a |
| 1522 * part that is included in multiple libraries or in Dart code that is | 1522 * part that is included in multiple libraries or in Dart code that is |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1588 } | 1588 } |
| 1589 | 1589 |
| 1590 /** | 1590 /** |
| 1591 * analysis.occurrences params | 1591 * analysis.occurrences params |
| 1592 * | 1592 * |
| 1593 * { | 1593 * { |
| 1594 * "file": FilePath | 1594 * "file": FilePath |
| 1595 * "occurrences": List<Occurrences> | 1595 * "occurrences": List<Occurrences> |
| 1596 * } | 1596 * } |
| 1597 */ | 1597 */ |
| 1598 class AnalysisOccurrencesParams { | 1598 class AnalysisOccurrencesParams implements HasToJson { |
| 1599 /** | 1599 /** |
| 1600 * The file in which the references occur. | 1600 * The file in which the references occur. |
| 1601 */ | 1601 */ |
| 1602 String file; | 1602 String file; |
| 1603 | 1603 |
| 1604 /** | 1604 /** |
| 1605 * The occurrences of references to elements within the file. | 1605 * The occurrences of references to elements within the file. |
| 1606 */ | 1606 */ |
| 1607 List<Occurrences> occurrences; | 1607 List<Occurrences> occurrences; |
| 1608 | 1608 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1669 } | 1669 } |
| 1670 | 1670 |
| 1671 /** | 1671 /** |
| 1672 * analysis.outline params | 1672 * analysis.outline params |
| 1673 * | 1673 * |
| 1674 * { | 1674 * { |
| 1675 * "file": FilePath | 1675 * "file": FilePath |
| 1676 * "outline": Outline | 1676 * "outline": Outline |
| 1677 * } | 1677 * } |
| 1678 */ | 1678 */ |
| 1679 class AnalysisOutlineParams { | 1679 class AnalysisOutlineParams implements HasToJson { |
| 1680 /** | 1680 /** |
| 1681 * The file with which the outline is associated. | 1681 * The file with which the outline is associated. |
| 1682 */ | 1682 */ |
| 1683 String file; | 1683 String file; |
| 1684 | 1684 |
| 1685 /** | 1685 /** |
| 1686 * The outline associated with the file. | 1686 * The outline associated with the file. |
| 1687 */ | 1687 */ |
| 1688 Outline outline; | 1688 Outline outline; |
| 1689 | 1689 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1750 } | 1750 } |
| 1751 | 1751 |
| 1752 /** | 1752 /** |
| 1753 * analysis.overrides params | 1753 * analysis.overrides params |
| 1754 * | 1754 * |
| 1755 * { | 1755 * { |
| 1756 * "file": FilePath | 1756 * "file": FilePath |
| 1757 * "overrides": List<Override> | 1757 * "overrides": List<Override> |
| 1758 * } | 1758 * } |
| 1759 */ | 1759 */ |
| 1760 class AnalysisOverridesParams { | 1760 class AnalysisOverridesParams implements HasToJson { |
| 1761 /** | 1761 /** |
| 1762 * The file with which the overrides are associated. | 1762 * The file with which the overrides are associated. |
| 1763 */ | 1763 */ |
| 1764 String file; | 1764 String file; |
| 1765 | 1765 |
| 1766 /** | 1766 /** |
| 1767 * The overrides associated with the file. | 1767 * The overrides associated with the file. |
| 1768 */ | 1768 */ |
| 1769 List<Override> overrides; | 1769 List<Override> overrides; |
| 1770 | 1770 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1831 } | 1831 } |
| 1832 | 1832 |
| 1833 /** | 1833 /** |
| 1834 * completion.getSuggestions params | 1834 * completion.getSuggestions params |
| 1835 * | 1835 * |
| 1836 * { | 1836 * { |
| 1837 * "file": FilePath | 1837 * "file": FilePath |
| 1838 * "offset": int | 1838 * "offset": int |
| 1839 * } | 1839 * } |
| 1840 */ | 1840 */ |
| 1841 class CompletionGetSuggestionsParams { | 1841 class CompletionGetSuggestionsParams implements HasToJson { |
| 1842 /** | 1842 /** |
| 1843 * The file containing the point at which suggestions are to be made. | 1843 * The file containing the point at which suggestions are to be made. |
| 1844 */ | 1844 */ |
| 1845 String file; | 1845 String file; |
| 1846 | 1846 |
| 1847 /** | 1847 /** |
| 1848 * The offset within the file at which suggestions are to be made. | 1848 * The offset within the file at which suggestions are to be made. |
| 1849 */ | 1849 */ |
| 1850 int offset; | 1850 int offset; |
| 1851 | 1851 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1911 } | 1911 } |
| 1912 } | 1912 } |
| 1913 | 1913 |
| 1914 /** | 1914 /** |
| 1915 * completion.getSuggestions result | 1915 * completion.getSuggestions result |
| 1916 * | 1916 * |
| 1917 * { | 1917 * { |
| 1918 * "id": CompletionId | 1918 * "id": CompletionId |
| 1919 * } | 1919 * } |
| 1920 */ | 1920 */ |
| 1921 class CompletionGetSuggestionsResult { | 1921 class CompletionGetSuggestionsResult implements HasToJson { |
| 1922 /** | 1922 /** |
| 1923 * The identifier used to associate results with this completion request. | 1923 * The identifier used to associate results with this completion request. |
| 1924 */ | 1924 */ |
| 1925 String id; | 1925 String id; |
| 1926 | 1926 |
| 1927 CompletionGetSuggestionsResult(this.id); | 1927 CompletionGetSuggestionsResult(this.id); |
| 1928 | 1928 |
| 1929 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 1929 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 1930 if (json == null) { | 1930 if (json == null) { |
| 1931 json = {}; | 1931 json = {}; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1981 * completion.results params | 1981 * completion.results params |
| 1982 * | 1982 * |
| 1983 * { | 1983 * { |
| 1984 * "id": CompletionId | 1984 * "id": CompletionId |
| 1985 * "replacementOffset": int | 1985 * "replacementOffset": int |
| 1986 * "replacementLength": int | 1986 * "replacementLength": int |
| 1987 * "results": List<CompletionSuggestion> | 1987 * "results": List<CompletionSuggestion> |
| 1988 * "isLast": bool | 1988 * "isLast": bool |
| 1989 * } | 1989 * } |
| 1990 */ | 1990 */ |
| 1991 class CompletionResultsParams { | 1991 class CompletionResultsParams implements HasToJson { |
| 1992 /** | 1992 /** |
| 1993 * The id associated with the completion. | 1993 * The id associated with the completion. |
| 1994 */ | 1994 */ |
| 1995 String id; | 1995 String id; |
| 1996 | 1996 |
| 1997 /** | 1997 /** |
| 1998 * The offset of the start of the text to be replaced. This will be different | 1998 * The offset of the start of the text to be replaced. This will be different |
| 1999 * than the offset used to request the completion suggestions if there was a | 1999 * than the offset used to request the completion suggestions if there was a |
| 2000 * portion of an identifier before the original offset. In particular, the | 2000 * portion of an identifier before the original offset. In particular, the |
| 2001 * replacementOffset will be the offset of the beginning of said identifier. | 2001 * replacementOffset will be the offset of the beginning of said identifier. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2115 | 2115 |
| 2116 /** | 2116 /** |
| 2117 * search.findElementReferences params | 2117 * search.findElementReferences params |
| 2118 * | 2118 * |
| 2119 * { | 2119 * { |
| 2120 * "file": FilePath | 2120 * "file": FilePath |
| 2121 * "offset": int | 2121 * "offset": int |
| 2122 * "includePotential": bool | 2122 * "includePotential": bool |
| 2123 * } | 2123 * } |
| 2124 */ | 2124 */ |
| 2125 class SearchFindElementReferencesParams { | 2125 class SearchFindElementReferencesParams implements HasToJson { |
| 2126 /** | 2126 /** |
| 2127 * The file containing the declaration of or reference to the element used to | 2127 * The file containing the declaration of or reference to the element used to |
| 2128 * define the search. | 2128 * define the search. |
| 2129 */ | 2129 */ |
| 2130 String file; | 2130 String file; |
| 2131 | 2131 |
| 2132 /** | 2132 /** |
| 2133 * The offset within the file of the declaration of or reference to the | 2133 * The offset within the file of the declaration of or reference to the |
| 2134 * element. | 2134 * element. |
| 2135 */ | 2135 */ |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2212 } | 2212 } |
| 2213 | 2213 |
| 2214 /** | 2214 /** |
| 2215 * search.findElementReferences result | 2215 * search.findElementReferences result |
| 2216 * | 2216 * |
| 2217 * { | 2217 * { |
| 2218 * "id": SearchId | 2218 * "id": SearchId |
| 2219 * "element": optional Element | 2219 * "element": optional Element |
| 2220 * } | 2220 * } |
| 2221 */ | 2221 */ |
| 2222 class SearchFindElementReferencesResult { | 2222 class SearchFindElementReferencesResult implements HasToJson { |
| 2223 /** | 2223 /** |
| 2224 * The identifier used to associate results with this search request. | 2224 * The identifier used to associate results with this search request. |
| 2225 */ | 2225 */ |
| 2226 String id; | 2226 String id; |
| 2227 | 2227 |
| 2228 /** | 2228 /** |
| 2229 * The element referenced or defined at the given offset and whose references | 2229 * The element referenced or defined at the given offset and whose references |
| 2230 * will be returned in the search results. | 2230 * will be returned in the search results. |
| 2231 * | 2231 * |
| 2232 * If no element was found at the given location, this field will be absent. | 2232 * If no element was found at the given location, this field will be absent. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2295 } | 2295 } |
| 2296 } | 2296 } |
| 2297 | 2297 |
| 2298 /** | 2298 /** |
| 2299 * search.findMemberDeclarations params | 2299 * search.findMemberDeclarations params |
| 2300 * | 2300 * |
| 2301 * { | 2301 * { |
| 2302 * "name": String | 2302 * "name": String |
| 2303 * } | 2303 * } |
| 2304 */ | 2304 */ |
| 2305 class SearchFindMemberDeclarationsParams { | 2305 class SearchFindMemberDeclarationsParams implements HasToJson { |
| 2306 /** | 2306 /** |
| 2307 * The name of the declarations to be found. | 2307 * The name of the declarations to be found. |
| 2308 */ | 2308 */ |
| 2309 String name; | 2309 String name; |
| 2310 | 2310 |
| 2311 SearchFindMemberDeclarationsParams(this.name); | 2311 SearchFindMemberDeclarationsParams(this.name); |
| 2312 | 2312 |
| 2313 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 2313 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 2314 if (json == null) { | 2314 if (json == null) { |
| 2315 json = {}; | 2315 json = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2361 } | 2361 } |
| 2362 } | 2362 } |
| 2363 | 2363 |
| 2364 /** | 2364 /** |
| 2365 * search.findMemberDeclarations result | 2365 * search.findMemberDeclarations result |
| 2366 * | 2366 * |
| 2367 * { | 2367 * { |
| 2368 * "id": SearchId | 2368 * "id": SearchId |
| 2369 * } | 2369 * } |
| 2370 */ | 2370 */ |
| 2371 class SearchFindMemberDeclarationsResult { | 2371 class SearchFindMemberDeclarationsResult implements HasToJson { |
| 2372 /** | 2372 /** |
| 2373 * The identifier used to associate results with this search request. | 2373 * The identifier used to associate results with this search request. |
| 2374 */ | 2374 */ |
| 2375 String id; | 2375 String id; |
| 2376 | 2376 |
| 2377 SearchFindMemberDeclarationsResult(this.id); | 2377 SearchFindMemberDeclarationsResult(this.id); |
| 2378 | 2378 |
| 2379 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 2379 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 2380 if (json == null) { | 2380 if (json == null) { |
| 2381 json = {}; | 2381 json = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2427 } | 2427 } |
| 2428 } | 2428 } |
| 2429 | 2429 |
| 2430 /** | 2430 /** |
| 2431 * search.findMemberReferences params | 2431 * search.findMemberReferences params |
| 2432 * | 2432 * |
| 2433 * { | 2433 * { |
| 2434 * "name": String | 2434 * "name": String |
| 2435 * } | 2435 * } |
| 2436 */ | 2436 */ |
| 2437 class SearchFindMemberReferencesParams { | 2437 class SearchFindMemberReferencesParams implements HasToJson { |
| 2438 /** | 2438 /** |
| 2439 * The name of the references to be found. | 2439 * The name of the references to be found. |
| 2440 */ | 2440 */ |
| 2441 String name; | 2441 String name; |
| 2442 | 2442 |
| 2443 SearchFindMemberReferencesParams(this.name); | 2443 SearchFindMemberReferencesParams(this.name); |
| 2444 | 2444 |
| 2445 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 2445 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { |
| 2446 if (json == null) { | 2446 if (json == null) { |
| 2447 json = {}; | 2447 json = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2493 } | 2493 } |
| 2494 } | 2494 } |
| 2495 | 2495 |
| 2496 /** | 2496 /** |
| 2497 * search.findMemberReferences result | 2497 * search.findMemberReferences result |
| 2498 * | 2498 * |
| 2499 * { | 2499 * { |
| 2500 * "id": SearchId | 2500 * "id": SearchId |
| 2501 * } | 2501 * } |
| 2502 */ | 2502 */ |
| 2503 class SearchFindMemberReferencesResult { | 2503 class SearchFindMemberReferencesResult implements HasToJson { |
| 2504 /** | 2504 /** |
| 2505 * The identifier used to associate results with this search request. | 2505 * The identifier used to associate results with this search request. |
| 2506 */ | 2506 */ |
| 2507 String id; | 2507 String id; |
| 2508 | 2508 |
| 2509 SearchFindMemberReferencesResult(this.id); | 2509 SearchFindMemberReferencesResult(this.id); |
| 2510 | 2510 |
| 2511 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 2511 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { |
| 2512 if (json == null) { | 2512 if (json == null) { |
| 2513 json = {}; | 2513 json = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2559 } | 2559 } |
| 2560 } | 2560 } |
| 2561 | 2561 |
| 2562 /** | 2562 /** |
| 2563 * search.findTopLevelDeclarations params | 2563 * search.findTopLevelDeclarations params |
| 2564 * | 2564 * |
| 2565 * { | 2565 * { |
| 2566 * "pattern": String | 2566 * "pattern": String |
| 2567 * } | 2567 * } |
| 2568 */ | 2568 */ |
| 2569 class SearchFindTopLevelDeclarationsParams { | 2569 class SearchFindTopLevelDeclarationsParams implements HasToJson { |
| 2570 /** | 2570 /** |
| 2571 * The regular expression used to match the names of the declarations to be | 2571 * The regular expression used to match the names of the declarations to be |
| 2572 * found. | 2572 * found. |
| 2573 */ | 2573 */ |
| 2574 String pattern; | 2574 String pattern; |
| 2575 | 2575 |
| 2576 SearchFindTopLevelDeclarationsParams(this.pattern); | 2576 SearchFindTopLevelDeclarationsParams(this.pattern); |
| 2577 | 2577 |
| 2578 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 2578 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { |
| 2579 if (json == null) { | 2579 if (json == null) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2626 } | 2626 } |
| 2627 } | 2627 } |
| 2628 | 2628 |
| 2629 /** | 2629 /** |
| 2630 * search.findTopLevelDeclarations result | 2630 * search.findTopLevelDeclarations result |
| 2631 * | 2631 * |
| 2632 * { | 2632 * { |
| 2633 * "id": SearchId | 2633 * "id": SearchId |
| 2634 * } | 2634 * } |
| 2635 */ | 2635 */ |
| 2636 class SearchFindTopLevelDeclarationsResult { | 2636 class SearchFindTopLevelDeclarationsResult implements HasToJson { |
| 2637 /** | 2637 /** |
| 2638 * The identifier used to associate results with this search request. | 2638 * The identifier used to associate results with this search request. |
| 2639 */ | 2639 */ |
| 2640 String id; | 2640 String id; |
| 2641 | 2641 |
| 2642 SearchFindTopLevelDeclarationsResult(this.id); | 2642 SearchFindTopLevelDeclarationsResult(this.id); |
| 2643 | 2643 |
| 2644 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 2644 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { |
| 2645 if (json == null) { | 2645 if (json == null) { |
| 2646 json = {}; | 2646 json = {}; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2693 } | 2693 } |
| 2694 | 2694 |
| 2695 /** | 2695 /** |
| 2696 * search.getTypeHierarchy params | 2696 * search.getTypeHierarchy params |
| 2697 * | 2697 * |
| 2698 * { | 2698 * { |
| 2699 * "file": FilePath | 2699 * "file": FilePath |
| 2700 * "offset": int | 2700 * "offset": int |
| 2701 * } | 2701 * } |
| 2702 */ | 2702 */ |
| 2703 class SearchGetTypeHierarchyParams { | 2703 class SearchGetTypeHierarchyParams implements HasToJson { |
| 2704 /** | 2704 /** |
| 2705 * The file containing the declaration or reference to the type for which a | 2705 * The file containing the declaration or reference to the type for which a |
| 2706 * hierarchy is being requested. | 2706 * hierarchy is being requested. |
| 2707 */ | 2707 */ |
| 2708 String file; | 2708 String file; |
| 2709 | 2709 |
| 2710 /** | 2710 /** |
| 2711 * The offset of the name of the type within the file. | 2711 * The offset of the name of the type within the file. |
| 2712 */ | 2712 */ |
| 2713 int offset; | 2713 int offset; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2774 } | 2774 } |
| 2775 } | 2775 } |
| 2776 | 2776 |
| 2777 /** | 2777 /** |
| 2778 * search.getTypeHierarchy result | 2778 * search.getTypeHierarchy result |
| 2779 * | 2779 * |
| 2780 * { | 2780 * { |
| 2781 * "hierarchyItems": optional List<TypeHierarchyItem> | 2781 * "hierarchyItems": optional List<TypeHierarchyItem> |
| 2782 * } | 2782 * } |
| 2783 */ | 2783 */ |
| 2784 class SearchGetTypeHierarchyResult { | 2784 class SearchGetTypeHierarchyResult implements HasToJson { |
| 2785 /** | 2785 /** |
| 2786 * A list of the types in the requested hierarchy. The first element of the | 2786 * A list of the types in the requested hierarchy. The first element of the |
| 2787 * list is the item representing the type for which the hierarchy was | 2787 * list is the item representing the type for which the hierarchy was |
| 2788 * requested. The index of other elements of the list is unspecified, but | 2788 * requested. The index of other elements of the list is unspecified, but |
| 2789 * correspond to the integers used to reference supertype and subtype items | 2789 * correspond to the integers used to reference supertype and subtype items |
| 2790 * within the items. | 2790 * within the items. |
| 2791 * | 2791 * |
| 2792 * This field will be absent if the code at the given file and offset does | 2792 * This field will be absent if the code at the given file and offset does |
| 2793 * not represent a type, or if the file has not been sufficiently analyzed to | 2793 * not represent a type, or if the file has not been sufficiently analyzed to |
| 2794 * allow a type hierarchy to be produced. | 2794 * allow a type hierarchy to be produced. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2856 | 2856 |
| 2857 /** | 2857 /** |
| 2858 * search.results params | 2858 * search.results params |
| 2859 * | 2859 * |
| 2860 * { | 2860 * { |
| 2861 * "id": SearchId | 2861 * "id": SearchId |
| 2862 * "results": List<SearchResult> | 2862 * "results": List<SearchResult> |
| 2863 * "isLast": bool | 2863 * "isLast": bool |
| 2864 * } | 2864 * } |
| 2865 */ | 2865 */ |
| 2866 class SearchResultsParams { | 2866 class SearchResultsParams implements HasToJson { |
| 2867 /** | 2867 /** |
| 2868 * The id associated with the search. | 2868 * The id associated with the search. |
| 2869 */ | 2869 */ |
| 2870 String id; | 2870 String id; |
| 2871 | 2871 |
| 2872 /** | 2872 /** |
| 2873 * The search results being reported. | 2873 * The search results being reported. |
| 2874 */ | 2874 */ |
| 2875 List<SearchResult> results; | 2875 List<SearchResult> results; |
| 2876 | 2876 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2953 | 2953 |
| 2954 /** | 2954 /** |
| 2955 * edit.getAssists params | 2955 * edit.getAssists params |
| 2956 * | 2956 * |
| 2957 * { | 2957 * { |
| 2958 * "file": FilePath | 2958 * "file": FilePath |
| 2959 * "offset": int | 2959 * "offset": int |
| 2960 * "length": int | 2960 * "length": int |
| 2961 * } | 2961 * } |
| 2962 */ | 2962 */ |
| 2963 class EditGetAssistsParams { | 2963 class EditGetAssistsParams implements HasToJson { |
| 2964 /** | 2964 /** |
| 2965 * The file containing the code for which assists are being requested. | 2965 * The file containing the code for which assists are being requested. |
| 2966 */ | 2966 */ |
| 2967 String file; | 2967 String file; |
| 2968 | 2968 |
| 2969 /** | 2969 /** |
| 2970 * The offset of the code for which assists are being requested. | 2970 * The offset of the code for which assists are being requested. |
| 2971 */ | 2971 */ |
| 2972 int offset; | 2972 int offset; |
| 2973 | 2973 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3047 } | 3047 } |
| 3048 } | 3048 } |
| 3049 | 3049 |
| 3050 /** | 3050 /** |
| 3051 * edit.getAssists result | 3051 * edit.getAssists result |
| 3052 * | 3052 * |
| 3053 * { | 3053 * { |
| 3054 * "assists": List<SourceChange> | 3054 * "assists": List<SourceChange> |
| 3055 * } | 3055 * } |
| 3056 */ | 3056 */ |
| 3057 class EditGetAssistsResult { | 3057 class EditGetAssistsResult implements HasToJson { |
| 3058 /** | 3058 /** |
| 3059 * The assists that are available at the given location. | 3059 * The assists that are available at the given location. |
| 3060 */ | 3060 */ |
| 3061 List<SourceChange> assists; | 3061 List<SourceChange> assists; |
| 3062 | 3062 |
| 3063 EditGetAssistsResult(this.assists); | 3063 EditGetAssistsResult(this.assists); |
| 3064 | 3064 |
| 3065 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 3065 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 3066 if (json == null) { | 3066 if (json == null) { |
| 3067 json = {}; | 3067 json = {}; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3115 | 3115 |
| 3116 /** | 3116 /** |
| 3117 * edit.getAvailableRefactorings params | 3117 * edit.getAvailableRefactorings params |
| 3118 * | 3118 * |
| 3119 * { | 3119 * { |
| 3120 * "file": FilePath | 3120 * "file": FilePath |
| 3121 * "offset": int | 3121 * "offset": int |
| 3122 * "length": int | 3122 * "length": int |
| 3123 * } | 3123 * } |
| 3124 */ | 3124 */ |
| 3125 class EditGetAvailableRefactoringsParams { | 3125 class EditGetAvailableRefactoringsParams implements HasToJson { |
| 3126 /** | 3126 /** |
| 3127 * The file containing the code on which the refactoring would be based. | 3127 * The file containing the code on which the refactoring would be based. |
| 3128 */ | 3128 */ |
| 3129 String file; | 3129 String file; |
| 3130 | 3130 |
| 3131 /** | 3131 /** |
| 3132 * The offset of the code on which the refactoring would be based. | 3132 * The offset of the code on which the refactoring would be based. |
| 3133 */ | 3133 */ |
| 3134 int offset; | 3134 int offset; |
| 3135 | 3135 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3209 } | 3209 } |
| 3210 } | 3210 } |
| 3211 | 3211 |
| 3212 /** | 3212 /** |
| 3213 * edit.getAvailableRefactorings result | 3213 * edit.getAvailableRefactorings result |
| 3214 * | 3214 * |
| 3215 * { | 3215 * { |
| 3216 * "kinds": List<RefactoringKind> | 3216 * "kinds": List<RefactoringKind> |
| 3217 * } | 3217 * } |
| 3218 */ | 3218 */ |
| 3219 class EditGetAvailableRefactoringsResult { | 3219 class EditGetAvailableRefactoringsResult implements HasToJson { |
| 3220 /** | 3220 /** |
| 3221 * The kinds of refactorings that are valid for the given selection. | 3221 * The kinds of refactorings that are valid for the given selection. |
| 3222 */ | 3222 */ |
| 3223 List<RefactoringKind> kinds; | 3223 List<RefactoringKind> kinds; |
| 3224 | 3224 |
| 3225 EditGetAvailableRefactoringsResult(this.kinds); | 3225 EditGetAvailableRefactoringsResult(this.kinds); |
| 3226 | 3226 |
| 3227 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 3227 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 3228 if (json == null) { | 3228 if (json == null) { |
| 3229 json = {}; | 3229 json = {}; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3276 } | 3276 } |
| 3277 | 3277 |
| 3278 /** | 3278 /** |
| 3279 * edit.getFixes params | 3279 * edit.getFixes params |
| 3280 * | 3280 * |
| 3281 * { | 3281 * { |
| 3282 * "file": FilePath | 3282 * "file": FilePath |
| 3283 * "offset": int | 3283 * "offset": int |
| 3284 * } | 3284 * } |
| 3285 */ | 3285 */ |
| 3286 class EditGetFixesParams { | 3286 class EditGetFixesParams implements HasToJson { |
| 3287 /** | 3287 /** |
| 3288 * The file containing the errors for which fixes are being requested. | 3288 * The file containing the errors for which fixes are being requested. |
| 3289 */ | 3289 */ |
| 3290 String file; | 3290 String file; |
| 3291 | 3291 |
| 3292 /** | 3292 /** |
| 3293 * The offset used to select the errors for which fixes will be returned. | 3293 * The offset used to select the errors for which fixes will be returned. |
| 3294 */ | 3294 */ |
| 3295 int offset; | 3295 int offset; |
| 3296 | 3296 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3356 } | 3356 } |
| 3357 } | 3357 } |
| 3358 | 3358 |
| 3359 /** | 3359 /** |
| 3360 * edit.getFixes result | 3360 * edit.getFixes result |
| 3361 * | 3361 * |
| 3362 * { | 3362 * { |
| 3363 * "fixes": List<ErrorFixes> | 3363 * "fixes": List<ErrorFixes> |
| 3364 * } | 3364 * } |
| 3365 */ | 3365 */ |
| 3366 class EditGetFixesResult { | 3366 class EditGetFixesResult implements HasToJson { |
| 3367 /** | 3367 /** |
| 3368 * The fixes that are available for each of the analysis errors. There is a | 3368 * The fixes that are available for each of the analysis errors. There is a |
| 3369 * one-to-one correspondence between the analysis errors in the request and | 3369 * one-to-one correspondence between the analysis errors in the request and |
| 3370 * the lists of changes in the response. In particular, it is always the case | 3370 * the lists of changes in the response. In particular, it is always the case |
| 3371 * that errors.length == fixes.length and that fixes[i] is the list of fixes | 3371 * that errors.length == fixes.length and that fixes[i] is the list of fixes |
| 3372 * for the error in errors[i]. The list of changes corresponding to an error | 3372 * for the error in errors[i]. The list of changes corresponding to an error |
| 3373 * can be empty if there are no fixes available for that error. | 3373 * can be empty if there are no fixes available for that error. |
| 3374 */ | 3374 */ |
| 3375 List<ErrorFixes> fixes; | 3375 List<ErrorFixes> fixes; |
| 3376 | 3376 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3432 * | 3432 * |
| 3433 * { | 3433 * { |
| 3434 * "kind": RefactoringKind | 3434 * "kind": RefactoringKind |
| 3435 * "file": FilePath | 3435 * "file": FilePath |
| 3436 * "offset": int | 3436 * "offset": int |
| 3437 * "length": int | 3437 * "length": int |
| 3438 * "validateOnly": bool | 3438 * "validateOnly": bool |
| 3439 * "options": optional object | 3439 * "options": optional object |
| 3440 * } | 3440 * } |
| 3441 */ | 3441 */ |
| 3442 class EditGetRefactoringParams { | 3442 class EditGetRefactoringParams implements HasToJson { |
| 3443 /** | 3443 /** |
| 3444 * The kind of refactoring to be performed. | 3444 * The kind of refactoring to be performed. |
| 3445 */ | 3445 */ |
| 3446 RefactoringKind kind; | 3446 RefactoringKind kind; |
| 3447 | 3447 |
| 3448 /** | 3448 /** |
| 3449 * The file containing the code involved in the refactoring. | 3449 * The file containing the code involved in the refactoring. |
| 3450 */ | 3450 */ |
| 3451 String file; | 3451 String file; |
| 3452 | 3452 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3466 */ | 3466 */ |
| 3467 bool validateOnly; | 3467 bool validateOnly; |
| 3468 | 3468 |
| 3469 /** | 3469 /** |
| 3470 * Data used to provide values provided by the user. The structure of the | 3470 * Data used to provide values provided by the user. The structure of the |
| 3471 * data is dependent on the kind of refactoring being performed. The data | 3471 * data is dependent on the kind of refactoring being performed. The data |
| 3472 * that is expected is documented in the section titled Refactorings, labeled | 3472 * that is expected is documented in the section titled Refactorings, labeled |
| 3473 * as “Options”. This field can be omitted if the refactoring does not | 3473 * as “Options”. This field can be omitted if the refactoring does not |
| 3474 * require any options or if the values of those options are not known. | 3474 * require any options or if the values of those options are not known. |
| 3475 */ | 3475 */ |
| 3476 Object options; | 3476 Map options; |
| 3477 | 3477 |
| 3478 EditGetRefactoringParams(this.kind, this.file, this.offset, this.length, this.
validateOnly, {this.options}); | 3478 EditGetRefactoringParams(this.kind, this.file, this.offset, this.length, this.
validateOnly, {this.options}); |
| 3479 | 3479 |
| 3480 factory EditGetRefactoringParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3480 factory EditGetRefactoringParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3481 if (json == null) { | 3481 if (json == null) { |
| 3482 json = {}; | 3482 json = {}; |
| 3483 } | 3483 } |
| 3484 if (json is Map) { | 3484 if (json is Map) { |
| 3485 RefactoringKind kind; | 3485 RefactoringKind kind; |
| 3486 if (json.containsKey("kind")) { | 3486 if (json.containsKey("kind")) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 3505 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 3505 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
| 3506 } else { | 3506 } else { |
| 3507 throw jsonDecoder.missingKey(jsonPath, "length"); | 3507 throw jsonDecoder.missingKey(jsonPath, "length"); |
| 3508 } | 3508 } |
| 3509 bool validateOnly; | 3509 bool validateOnly; |
| 3510 if (json.containsKey("validateOnly")) { | 3510 if (json.containsKey("validateOnly")) { |
| 3511 validateOnly = jsonDecoder._decodeBool(jsonPath + ".validateOnly", json[
"validateOnly"]); | 3511 validateOnly = jsonDecoder._decodeBool(jsonPath + ".validateOnly", json[
"validateOnly"]); |
| 3512 } else { | 3512 } else { |
| 3513 throw jsonDecoder.missingKey(jsonPath, "validateOnly"); | 3513 throw jsonDecoder.missingKey(jsonPath, "validateOnly"); |
| 3514 } | 3514 } |
| 3515 Object options; | 3515 Map options; |
| 3516 if (json.containsKey("options")) { | 3516 if (json.containsKey("options")) { |
| 3517 options = json["options"]; | 3517 options = json["options"]; |
| 3518 } | 3518 } |
| 3519 return new EditGetRefactoringParams(kind, file, offset, length, validateOn
ly, options: options); | 3519 return new EditGetRefactoringParams(kind, file, offset, length, validateOn
ly, options: options); |
| 3520 } else { | 3520 } else { |
| 3521 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params"); | 3521 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params"); |
| 3522 } | 3522 } |
| 3523 } | 3523 } |
| 3524 | 3524 |
| 3525 factory EditGetRefactoringParams.fromRequest(Request request) { | 3525 factory EditGetRefactoringParams.fromRequest(Request request) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3576 /** | 3576 /** |
| 3577 * edit.getRefactoring result | 3577 * edit.getRefactoring result |
| 3578 * | 3578 * |
| 3579 * { | 3579 * { |
| 3580 * "problems": List<RefactoringProblem> | 3580 * "problems": List<RefactoringProblem> |
| 3581 * "feedback": optional object | 3581 * "feedback": optional object |
| 3582 * "change": optional SourceChange | 3582 * "change": optional SourceChange |
| 3583 * "potentialEdits": optional List<String> | 3583 * "potentialEdits": optional List<String> |
| 3584 * } | 3584 * } |
| 3585 */ | 3585 */ |
| 3586 class EditGetRefactoringResult { | 3586 class EditGetRefactoringResult implements HasToJson { |
| 3587 /** | 3587 /** |
| 3588 * The status of the refactoring. The array will be empty if there are no | 3588 * The status of the refactoring. The array will be empty if there are no |
| 3589 * known problems. | 3589 * known problems. |
| 3590 */ | 3590 */ |
| 3591 List<RefactoringProblem> problems; | 3591 List<RefactoringProblem> problems; |
| 3592 | 3592 |
| 3593 /** | 3593 /** |
| 3594 * Data used to provide feedback to the user. The structure of the data is | 3594 * Data used to provide feedback to the user. The structure of the data is |
| 3595 * dependent on the kind of refactoring being created. The data that is | 3595 * dependent on the kind of refactoring being created. The data that is |
| 3596 * returned is documented in the section titled Refactorings, labeled as | 3596 * returned is documented in the section titled Refactorings, labeled as |
| 3597 * “Feedback”. | 3597 * “Feedback”. |
| 3598 */ | 3598 */ |
| 3599 Object feedback; | 3599 Map feedback; |
| 3600 | 3600 |
| 3601 /** | 3601 /** |
| 3602 * The changes that are to be applied to affect the refactoring. This field | 3602 * The changes that are to be applied to affect the refactoring. This field |
| 3603 * will be omitted if there are problems that prevent a set of changes from | 3603 * will be omitted if there are problems that prevent a set of changes from |
| 3604 * being computed, such as having no options specified for a refactoring that | 3604 * being computed, such as having no options specified for a refactoring that |
| 3605 * requires them, or if only validation was requested. | 3605 * requires them, or if only validation was requested. |
| 3606 */ | 3606 */ |
| 3607 SourceChange change; | 3607 SourceChange change; |
| 3608 | 3608 |
| 3609 /** | 3609 /** |
| (...skipping 16 matching lines...) Expand all Loading... |
| 3626 if (json == null) { | 3626 if (json == null) { |
| 3627 json = {}; | 3627 json = {}; |
| 3628 } | 3628 } |
| 3629 if (json is Map) { | 3629 if (json is Map) { |
| 3630 List<RefactoringProblem> problems; | 3630 List<RefactoringProblem> problems; |
| 3631 if (json.containsKey("problems")) { | 3631 if (json.containsKey("problems")) { |
| 3632 problems = jsonDecoder._decodeList(jsonPath + ".problems", json["problem
s"], (String jsonPath, Object json) => new RefactoringProblem.fromJson(jsonDecod
er, jsonPath, json)); | 3632 problems = jsonDecoder._decodeList(jsonPath + ".problems", json["problem
s"], (String jsonPath, Object json) => new RefactoringProblem.fromJson(jsonDecod
er, jsonPath, json)); |
| 3633 } else { | 3633 } else { |
| 3634 throw jsonDecoder.missingKey(jsonPath, "problems"); | 3634 throw jsonDecoder.missingKey(jsonPath, "problems"); |
| 3635 } | 3635 } |
| 3636 Object feedback; | 3636 Map feedback; |
| 3637 if (json.containsKey("feedback")) { | 3637 if (json.containsKey("feedback")) { |
| 3638 feedback = json["feedback"]; | 3638 feedback = json["feedback"]; |
| 3639 } | 3639 } |
| 3640 SourceChange change; | 3640 SourceChange change; |
| 3641 if (json.containsKey("change")) { | 3641 if (json.containsKey("change")) { |
| 3642 change = new SourceChange.fromJson(jsonDecoder, jsonPath + ".change", js
on["change"]); | 3642 change = new SourceChange.fromJson(jsonDecoder, jsonPath + ".change", js
on["change"]); |
| 3643 } | 3643 } |
| 3644 List<String> potentialEdits; | 3644 List<String> potentialEdits; |
| 3645 if (json.containsKey("potentialEdits")) { | 3645 if (json.containsKey("potentialEdits")) { |
| 3646 potentialEdits = jsonDecoder._decodeList(jsonPath + ".potentialEdits", j
son["potentialEdits"], jsonDecoder._decodeString); | 3646 potentialEdits = jsonDecoder._decodeList(jsonPath + ".potentialEdits", j
son["potentialEdits"], jsonDecoder._decodeString); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3702 } | 3702 } |
| 3703 } | 3703 } |
| 3704 | 3704 |
| 3705 /** | 3705 /** |
| 3706 * debug.createContext params | 3706 * debug.createContext params |
| 3707 * | 3707 * |
| 3708 * { | 3708 * { |
| 3709 * "contextRoot": FilePath | 3709 * "contextRoot": FilePath |
| 3710 * } | 3710 * } |
| 3711 */ | 3711 */ |
| 3712 class DebugCreateContextParams { | 3712 class DebugCreateContextParams implements HasToJson { |
| 3713 /** | 3713 /** |
| 3714 * The path of the Dart or HTML file that will be launched. | 3714 * The path of the Dart or HTML file that will be launched. |
| 3715 */ | 3715 */ |
| 3716 String contextRoot; | 3716 String contextRoot; |
| 3717 | 3717 |
| 3718 DebugCreateContextParams(this.contextRoot); | 3718 DebugCreateContextParams(this.contextRoot); |
| 3719 | 3719 |
| 3720 factory DebugCreateContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3720 factory DebugCreateContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3721 if (json == null) { | 3721 if (json == null) { |
| 3722 json = {}; | 3722 json = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3768 } | 3768 } |
| 3769 } | 3769 } |
| 3770 | 3770 |
| 3771 /** | 3771 /** |
| 3772 * debug.createContext result | 3772 * debug.createContext result |
| 3773 * | 3773 * |
| 3774 * { | 3774 * { |
| 3775 * "id": DebugContextId | 3775 * "id": DebugContextId |
| 3776 * } | 3776 * } |
| 3777 */ | 3777 */ |
| 3778 class DebugCreateContextResult { | 3778 class DebugCreateContextResult implements HasToJson { |
| 3779 /** | 3779 /** |
| 3780 * The identifier used to refer to the debugging context that was created. | 3780 * The identifier used to refer to the debugging context that was created. |
| 3781 */ | 3781 */ |
| 3782 String id; | 3782 String id; |
| 3783 | 3783 |
| 3784 DebugCreateContextResult(this.id); | 3784 DebugCreateContextResult(this.id); |
| 3785 | 3785 |
| 3786 factory DebugCreateContextResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3786 factory DebugCreateContextResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3787 if (json == null) { | 3787 if (json == null) { |
| 3788 json = {}; | 3788 json = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3834 } | 3834 } |
| 3835 } | 3835 } |
| 3836 | 3836 |
| 3837 /** | 3837 /** |
| 3838 * debug.deleteContext params | 3838 * debug.deleteContext params |
| 3839 * | 3839 * |
| 3840 * { | 3840 * { |
| 3841 * "id": DebugContextId | 3841 * "id": DebugContextId |
| 3842 * } | 3842 * } |
| 3843 */ | 3843 */ |
| 3844 class DebugDeleteContextParams { | 3844 class DebugDeleteContextParams implements HasToJson { |
| 3845 /** | 3845 /** |
| 3846 * The identifier of the debugging context that is to be deleted. | 3846 * The identifier of the debugging context that is to be deleted. |
| 3847 */ | 3847 */ |
| 3848 String id; | 3848 String id; |
| 3849 | 3849 |
| 3850 DebugDeleteContextParams(this.id); | 3850 DebugDeleteContextParams(this.id); |
| 3851 | 3851 |
| 3852 factory DebugDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3852 factory DebugDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3853 if (json == null) { | 3853 if (json == null) { |
| 3854 json = {}; | 3854 json = {}; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3923 | 3923 |
| 3924 /** | 3924 /** |
| 3925 * debug.mapUri params | 3925 * debug.mapUri params |
| 3926 * | 3926 * |
| 3927 * { | 3927 * { |
| 3928 * "id": DebugContextId | 3928 * "id": DebugContextId |
| 3929 * "file": optional FilePath | 3929 * "file": optional FilePath |
| 3930 * "uri": optional String | 3930 * "uri": optional String |
| 3931 * } | 3931 * } |
| 3932 */ | 3932 */ |
| 3933 class DebugMapUriParams { | 3933 class DebugMapUriParams implements HasToJson { |
| 3934 /** | 3934 /** |
| 3935 * The identifier of the debugging context in which the URI is to be mapped. | 3935 * The identifier of the debugging context in which the URI is to be mapped. |
| 3936 */ | 3936 */ |
| 3937 String id; | 3937 String id; |
| 3938 | 3938 |
| 3939 /** | 3939 /** |
| 3940 * The path of the file to be mapped into a URI. | 3940 * The path of the file to be mapped into a URI. |
| 3941 */ | 3941 */ |
| 3942 String file; | 3942 String file; |
| 3943 | 3943 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4018 } | 4018 } |
| 4019 | 4019 |
| 4020 /** | 4020 /** |
| 4021 * debug.mapUri result | 4021 * debug.mapUri result |
| 4022 * | 4022 * |
| 4023 * { | 4023 * { |
| 4024 * "file": optional FilePath | 4024 * "file": optional FilePath |
| 4025 * "uri": optional String | 4025 * "uri": optional String |
| 4026 * } | 4026 * } |
| 4027 */ | 4027 */ |
| 4028 class DebugMapUriResult { | 4028 class DebugMapUriResult implements HasToJson { |
| 4029 /** | 4029 /** |
| 4030 * The file to which the URI was mapped. This field is omitted if the uri | 4030 * The file to which the URI was mapped. This field is omitted if the uri |
| 4031 * field was not given in the request. | 4031 * field was not given in the request. |
| 4032 */ | 4032 */ |
| 4033 String file; | 4033 String file; |
| 4034 | 4034 |
| 4035 /** | 4035 /** |
| 4036 * The URI to which the file path was mapped. This field is omitted if the | 4036 * The URI to which the file path was mapped. This field is omitted if the |
| 4037 * file field was not given in the request. | 4037 * file field was not given in the request. |
| 4038 */ | 4038 */ |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4100 } | 4100 } |
| 4101 } | 4101 } |
| 4102 | 4102 |
| 4103 /** | 4103 /** |
| 4104 * debug.setSubscriptions params | 4104 * debug.setSubscriptions params |
| 4105 * | 4105 * |
| 4106 * { | 4106 * { |
| 4107 * "subscriptions": List<DebugService> | 4107 * "subscriptions": List<DebugService> |
| 4108 * } | 4108 * } |
| 4109 */ | 4109 */ |
| 4110 class DebugSetSubscriptionsParams { | 4110 class DebugSetSubscriptionsParams implements HasToJson { |
| 4111 /** | 4111 /** |
| 4112 * A list of the services being subscribed to. | 4112 * A list of the services being subscribed to. |
| 4113 */ | 4113 */ |
| 4114 List<DebugService> subscriptions; | 4114 List<DebugService> subscriptions; |
| 4115 | 4115 |
| 4116 DebugSetSubscriptionsParams(this.subscriptions); | 4116 DebugSetSubscriptionsParams(this.subscriptions); |
| 4117 | 4117 |
| 4118 factory DebugSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 4118 factory DebugSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 4119 if (json == null) { | 4119 if (json == null) { |
| 4120 json = {}; | 4120 json = {}; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4189 | 4189 |
| 4190 /** | 4190 /** |
| 4191 * debug.launchData params | 4191 * debug.launchData params |
| 4192 * | 4192 * |
| 4193 * { | 4193 * { |
| 4194 * "executables": List<ExecutableFile> | 4194 * "executables": List<ExecutableFile> |
| 4195 * "dartToHtml": Map<FilePath, List<FilePath>> | 4195 * "dartToHtml": Map<FilePath, List<FilePath>> |
| 4196 * "htmlToDart": Map<FilePath, List<FilePath>> | 4196 * "htmlToDart": Map<FilePath, List<FilePath>> |
| 4197 * } | 4197 * } |
| 4198 */ | 4198 */ |
| 4199 class DebugLaunchDataParams { | 4199 class DebugLaunchDataParams implements HasToJson { |
| 4200 /** | 4200 /** |
| 4201 * A list of the files that are executable in the given context. This list | 4201 * A list of the files that are executable in the given context. This list |
| 4202 * replaces any previous list provided for the given context. | 4202 * replaces any previous list provided for the given context. |
| 4203 */ | 4203 */ |
| 4204 List<ExecutableFile> executables; | 4204 List<ExecutableFile> executables; |
| 4205 | 4205 |
| 4206 /** | 4206 /** |
| 4207 * A mapping from the paths of Dart files that are referenced by HTML files | 4207 * A mapping from the paths of Dart files that are referenced by HTML files |
| 4208 * to a list of the HTML files that reference the Dart files. | 4208 * to a list of the HTML files that reference the Dart files. |
| 4209 */ | 4209 */ |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4287 } | 4287 } |
| 4288 | 4288 |
| 4289 /** | 4289 /** |
| 4290 * AddContentOverlay | 4290 * AddContentOverlay |
| 4291 * | 4291 * |
| 4292 * { | 4292 * { |
| 4293 * "type": "add" | 4293 * "type": "add" |
| 4294 * "content": String | 4294 * "content": String |
| 4295 * } | 4295 * } |
| 4296 */ | 4296 */ |
| 4297 class AddContentOverlay { | 4297 class AddContentOverlay implements HasToJson { |
| 4298 /** | 4298 /** |
| 4299 * The new content of the file. | 4299 * The new content of the file. |
| 4300 */ | 4300 */ |
| 4301 String content; | 4301 String content; |
| 4302 | 4302 |
| 4303 AddContentOverlay(this.content); | 4303 AddContentOverlay(this.content); |
| 4304 | 4304 |
| 4305 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 4305 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
| 4306 if (json == null) { | 4306 if (json == null) { |
| 4307 json = {}; | 4307 json = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4353 * AnalysisError | 4353 * AnalysisError |
| 4354 * | 4354 * |
| 4355 * { | 4355 * { |
| 4356 * "severity": ErrorSeverity | 4356 * "severity": ErrorSeverity |
| 4357 * "type": ErrorType | 4357 * "type": ErrorType |
| 4358 * "location": Location | 4358 * "location": Location |
| 4359 * "message": String | 4359 * "message": String |
| 4360 * "correction": optional String | 4360 * "correction": optional String |
| 4361 * } | 4361 * } |
| 4362 */ | 4362 */ |
| 4363 class AnalysisError { | 4363 class AnalysisError implements HasToJson { |
| 4364 /** | 4364 /** |
| 4365 * Returns a list of AnalysisErrors correponding to the given list of Engine | 4365 * Returns a list of AnalysisErrors correponding to the given list of Engine |
| 4366 * errors. | 4366 * errors. |
| 4367 */ | 4367 */ |
| 4368 static List<AnalysisError> listFromEngine(engine.LineInfo lineInfo, List<engin
e.AnalysisError> errors) => | 4368 static List<AnalysisError> listFromEngine(engine.LineInfo lineInfo, List<engin
e.AnalysisError> errors) => |
| 4369 _analysisErrorListFromEngine(lineInfo, errors); | 4369 _analysisErrorListFromEngine(lineInfo, errors); |
| 4370 | 4370 |
| 4371 /** | 4371 /** |
| 4372 * The severity of the error. | 4372 * The severity of the error. |
| 4373 */ | 4373 */ |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4486 * AnalysisOptions | 4486 * AnalysisOptions |
| 4487 * | 4487 * |
| 4488 * { | 4488 * { |
| 4489 * "enableAsync": optional bool | 4489 * "enableAsync": optional bool |
| 4490 * "enableDeferredLoading": optional bool | 4490 * "enableDeferredLoading": optional bool |
| 4491 * "enableEnums": optional bool | 4491 * "enableEnums": optional bool |
| 4492 * "generateDart2jsHints": optional bool | 4492 * "generateDart2jsHints": optional bool |
| 4493 * "generateHints": optional bool | 4493 * "generateHints": optional bool |
| 4494 * } | 4494 * } |
| 4495 */ | 4495 */ |
| 4496 class AnalysisOptions { | 4496 class AnalysisOptions implements HasToJson { |
| 4497 /** | 4497 /** |
| 4498 * True if the client wants to enable support for the proposed async feature. | 4498 * True if the client wants to enable support for the proposed async feature. |
| 4499 */ | 4499 */ |
| 4500 bool enableAsync; | 4500 bool enableAsync; |
| 4501 | 4501 |
| 4502 /** | 4502 /** |
| 4503 * True if the client wants to enable support for the proposed deferred | 4503 * True if the client wants to enable support for the proposed deferred |
| 4504 * loading feature. | 4504 * loading feature. |
| 4505 */ | 4505 */ |
| 4506 bool enableDeferredLoading; | 4506 bool enableDeferredLoading; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4667 } | 4667 } |
| 4668 | 4668 |
| 4669 /** | 4669 /** |
| 4670 * AnalysisStatus | 4670 * AnalysisStatus |
| 4671 * | 4671 * |
| 4672 * { | 4672 * { |
| 4673 * "isAnalyzing": bool | 4673 * "isAnalyzing": bool |
| 4674 * "analysisTarget": optional String | 4674 * "analysisTarget": optional String |
| 4675 * } | 4675 * } |
| 4676 */ | 4676 */ |
| 4677 class AnalysisStatus { | 4677 class AnalysisStatus implements HasToJson { |
| 4678 /** | 4678 /** |
| 4679 * True if analysis is currently being performed. | 4679 * True if analysis is currently being performed. |
| 4680 */ | 4680 */ |
| 4681 bool isAnalyzing; | 4681 bool isAnalyzing; |
| 4682 | 4682 |
| 4683 /** | 4683 /** |
| 4684 * The name of the current target of analysis. This field is omitted if | 4684 * The name of the current target of analysis. This field is omitted if |
| 4685 * analyzing is false. | 4685 * analyzing is false. |
| 4686 */ | 4686 */ |
| 4687 String analysisTarget; | 4687 String analysisTarget; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4740 } | 4740 } |
| 4741 | 4741 |
| 4742 /** | 4742 /** |
| 4743 * ChangeContentOverlay | 4743 * ChangeContentOverlay |
| 4744 * | 4744 * |
| 4745 * { | 4745 * { |
| 4746 * "type": "change" | 4746 * "type": "change" |
| 4747 * "edits": List<SourceEdit> | 4747 * "edits": List<SourceEdit> |
| 4748 * } | 4748 * } |
| 4749 */ | 4749 */ |
| 4750 class ChangeContentOverlay { | 4750 class ChangeContentOverlay implements HasToJson { |
| 4751 /** | 4751 /** |
| 4752 * The edits to be applied to the file. | 4752 * The edits to be applied to the file. |
| 4753 */ | 4753 */ |
| 4754 List<SourceEdit> edits; | 4754 List<SourceEdit> edits; |
| 4755 | 4755 |
| 4756 ChangeContentOverlay(this.edits); | 4756 ChangeContentOverlay(this.edits); |
| 4757 | 4757 |
| 4758 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 4758 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 4759 if (json == null) { | 4759 if (json == null) { |
| 4760 json = {}; | 4760 json = {}; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4867 * "declaringType": optional String | 4867 * "declaringType": optional String |
| 4868 * "returnType": optional String | 4868 * "returnType": optional String |
| 4869 * "parameterNames": optional List<String> | 4869 * "parameterNames": optional List<String> |
| 4870 * "parameterTypes": optional List<String> | 4870 * "parameterTypes": optional List<String> |
| 4871 * "requiredParameterCount": optional int | 4871 * "requiredParameterCount": optional int |
| 4872 * "positionalParameterCount": optional int | 4872 * "positionalParameterCount": optional int |
| 4873 * "parameterName": optional String | 4873 * "parameterName": optional String |
| 4874 * "parameterType": optional String | 4874 * "parameterType": optional String |
| 4875 * } | 4875 * } |
| 4876 */ | 4876 */ |
| 4877 class CompletionSuggestion { | 4877 class CompletionSuggestion implements HasToJson { |
| 4878 /** | 4878 /** |
| 4879 * The kind of element being suggested. | 4879 * The kind of element being suggested. |
| 4880 */ | 4880 */ |
| 4881 CompletionSuggestionKind kind; | 4881 CompletionSuggestionKind kind; |
| 4882 | 4882 |
| 4883 /** | 4883 /** |
| 4884 * The relevance of this completion suggestion. | 4884 * The relevance of this completion suggestion. |
| 4885 */ | 4885 */ |
| 4886 CompletionRelevance relevance; | 4886 CompletionRelevance relevance; |
| 4887 | 4887 |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5362 * | 5362 * |
| 5363 * { | 5363 * { |
| 5364 * "kind": ElementKind | 5364 * "kind": ElementKind |
| 5365 * "name": String | 5365 * "name": String |
| 5366 * "location": optional Location | 5366 * "location": optional Location |
| 5367 * "flags": int | 5367 * "flags": int |
| 5368 * "parameters": optional String | 5368 * "parameters": optional String |
| 5369 * "returnType": optional String | 5369 * "returnType": optional String |
| 5370 * } | 5370 * } |
| 5371 */ | 5371 */ |
| 5372 class Element { | 5372 class Element implements HasToJson { |
| 5373 static const int FLAG_ABSTRACT = 0x01; | 5373 static const int FLAG_ABSTRACT = 0x01; |
| 5374 static const int FLAG_CONST = 0x02; | 5374 static const int FLAG_CONST = 0x02; |
| 5375 static const int FLAG_FINAL = 0x04; | 5375 static const int FLAG_FINAL = 0x04; |
| 5376 static const int FLAG_STATIC = 0x08; | 5376 static const int FLAG_STATIC = 0x08; |
| 5377 static const int FLAG_PRIVATE = 0x10; | 5377 static const int FLAG_PRIVATE = 0x10; |
| 5378 static const int FLAG_DEPRECATED = 0x20; | 5378 static const int FLAG_DEPRECATED = 0x20; |
| 5379 | 5379 |
| 5380 static int makeFlags({isAbstract: false, isConst: false, isFinal: false, isSta
tic: false, isPrivate: false, isDeprecated: false}) { | 5380 static int makeFlags({isAbstract: false, isConst: false, isFinal: false, isSta
tic: false, isPrivate: false, isDeprecated: false}) { |
| 5381 int flags = 0; | 5381 int flags = 0; |
| 5382 if (isAbstract) flags |= FLAG_ABSTRACT; | 5382 if (isAbstract) flags |= FLAG_ABSTRACT; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5665 | 5665 |
| 5666 /** | 5666 /** |
| 5667 * Error | 5667 * Error |
| 5668 * | 5668 * |
| 5669 * { | 5669 * { |
| 5670 * "code": RequestErrorCode | 5670 * "code": RequestErrorCode |
| 5671 * "message": String | 5671 * "message": String |
| 5672 * "data": optional object | 5672 * "data": optional object |
| 5673 * } | 5673 * } |
| 5674 */ | 5674 */ |
| 5675 class Error { | 5675 class Error implements HasToJson { |
| 5676 /** | 5676 /** |
| 5677 * A code that uniquely identifies the error that occurred. | 5677 * A code that uniquely identifies the error that occurred. |
| 5678 */ | 5678 */ |
| 5679 RequestErrorCode code; | 5679 RequestErrorCode code; |
| 5680 | 5680 |
| 5681 /** | 5681 /** |
| 5682 * A short description of the error. | 5682 * A short description of the error. |
| 5683 */ | 5683 */ |
| 5684 String message; | 5684 String message; |
| 5685 | 5685 |
| 5686 /** | 5686 /** |
| 5687 * Additional data related to the error. This field is omitted if there is no | 5687 * Additional data related to the error. This field is omitted if there is no |
| 5688 * additional data available. | 5688 * additional data available. |
| 5689 */ | 5689 */ |
| 5690 Object data; | 5690 Map data; |
| 5691 | 5691 |
| 5692 Error(this.code, this.message, {this.data}); | 5692 Error(this.code, this.message, {this.data}); |
| 5693 | 5693 |
| 5694 factory Error.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json)
{ | 5694 factory Error.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json)
{ |
| 5695 if (json == null) { | 5695 if (json == null) { |
| 5696 json = {}; | 5696 json = {}; |
| 5697 } | 5697 } |
| 5698 if (json is Map) { | 5698 if (json is Map) { |
| 5699 RequestErrorCode code; | 5699 RequestErrorCode code; |
| 5700 if (json.containsKey("code")) { | 5700 if (json.containsKey("code")) { |
| 5701 code = new RequestErrorCode.fromJson(jsonDecoder, jsonPath + ".code", js
on["code"]); | 5701 code = new RequestErrorCode.fromJson(jsonDecoder, jsonPath + ".code", js
on["code"]); |
| 5702 } else { | 5702 } else { |
| 5703 throw jsonDecoder.missingKey(jsonPath, "code"); | 5703 throw jsonDecoder.missingKey(jsonPath, "code"); |
| 5704 } | 5704 } |
| 5705 String message; | 5705 String message; |
| 5706 if (json.containsKey("message")) { | 5706 if (json.containsKey("message")) { |
| 5707 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); | 5707 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); |
| 5708 } else { | 5708 } else { |
| 5709 throw jsonDecoder.missingKey(jsonPath, "message"); | 5709 throw jsonDecoder.missingKey(jsonPath, "message"); |
| 5710 } | 5710 } |
| 5711 Object data; | 5711 Map data; |
| 5712 if (json.containsKey("data")) { | 5712 if (json.containsKey("data")) { |
| 5713 data = json["data"]; | 5713 data = json["data"]; |
| 5714 } | 5714 } |
| 5715 return new Error(code, message, data: data); | 5715 return new Error(code, message, data: data); |
| 5716 } else { | 5716 } else { |
| 5717 throw jsonDecoder.mismatch(jsonPath, "Error"); | 5717 throw jsonDecoder.mismatch(jsonPath, "Error"); |
| 5718 } | 5718 } |
| 5719 } | 5719 } |
| 5720 | 5720 |
| 5721 Map<String, dynamic> toJson() { | 5721 Map<String, dynamic> toJson() { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 5752 } | 5752 } |
| 5753 | 5753 |
| 5754 /** | 5754 /** |
| 5755 * ErrorFixes | 5755 * ErrorFixes |
| 5756 * | 5756 * |
| 5757 * { | 5757 * { |
| 5758 * "error": AnalysisError | 5758 * "error": AnalysisError |
| 5759 * "fixes": List<SourceChange> | 5759 * "fixes": List<SourceChange> |
| 5760 * } | 5760 * } |
| 5761 */ | 5761 */ |
| 5762 class ErrorFixes { | 5762 class ErrorFixes implements HasToJson { |
| 5763 /** | 5763 /** |
| 5764 * The error with which the fixes are associated. | 5764 * The error with which the fixes are associated. |
| 5765 */ | 5765 */ |
| 5766 AnalysisError error; | 5766 AnalysisError error; |
| 5767 | 5767 |
| 5768 /** | 5768 /** |
| 5769 * The fixes associated with the error. | 5769 * The fixes associated with the error. |
| 5770 */ | 5770 */ |
| 5771 List<SourceChange> fixes; | 5771 List<SourceChange> fixes; |
| 5772 | 5772 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5948 } | 5948 } |
| 5949 | 5949 |
| 5950 /** | 5950 /** |
| 5951 * ExecutableFile | 5951 * ExecutableFile |
| 5952 * | 5952 * |
| 5953 * { | 5953 * { |
| 5954 * "file": FilePath | 5954 * "file": FilePath |
| 5955 * "offset": ExecutableKind | 5955 * "offset": ExecutableKind |
| 5956 * } | 5956 * } |
| 5957 */ | 5957 */ |
| 5958 class ExecutableFile { | 5958 class ExecutableFile implements HasToJson { |
| 5959 /** | 5959 /** |
| 5960 * The path of the executable file. | 5960 * The path of the executable file. |
| 5961 */ | 5961 */ |
| 5962 String file; | 5962 String file; |
| 5963 | 5963 |
| 5964 /** | 5964 /** |
| 5965 * The offset of the region to be highlighted. | 5965 * The offset of the region to be highlighted. |
| 5966 */ | 5966 */ |
| 5967 ExecutableKind offset; | 5967 ExecutableKind offset; |
| 5968 | 5968 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6129 | 6129 |
| 6130 /** | 6130 /** |
| 6131 * FoldingRegion | 6131 * FoldingRegion |
| 6132 * | 6132 * |
| 6133 * { | 6133 * { |
| 6134 * "kind": FoldingKind | 6134 * "kind": FoldingKind |
| 6135 * "offset": int | 6135 * "offset": int |
| 6136 * "length": int | 6136 * "length": int |
| 6137 * } | 6137 * } |
| 6138 */ | 6138 */ |
| 6139 class FoldingRegion { | 6139 class FoldingRegion implements HasToJson { |
| 6140 /** | 6140 /** |
| 6141 * The kind of the region. | 6141 * The kind of the region. |
| 6142 */ | 6142 */ |
| 6143 FoldingKind kind; | 6143 FoldingKind kind; |
| 6144 | 6144 |
| 6145 /** | 6145 /** |
| 6146 * The offset of the region to be folded. | 6146 * The offset of the region to be folded. |
| 6147 */ | 6147 */ |
| 6148 int offset; | 6148 int offset; |
| 6149 | 6149 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6216 | 6216 |
| 6217 /** | 6217 /** |
| 6218 * HighlightRegion | 6218 * HighlightRegion |
| 6219 * | 6219 * |
| 6220 * { | 6220 * { |
| 6221 * "type": HighlightRegionType | 6221 * "type": HighlightRegionType |
| 6222 * "offset": int | 6222 * "offset": int |
| 6223 * "length": int | 6223 * "length": int |
| 6224 * } | 6224 * } |
| 6225 */ | 6225 */ |
| 6226 class HighlightRegion { | 6226 class HighlightRegion implements HasToJson { |
| 6227 /** | 6227 /** |
| 6228 * The type of highlight associated with the region. | 6228 * The type of highlight associated with the region. |
| 6229 */ | 6229 */ |
| 6230 HighlightRegionType type; | 6230 HighlightRegionType type; |
| 6231 | 6231 |
| 6232 /** | 6232 /** |
| 6233 * The offset of the region to be highlighted. | 6233 * The offset of the region to be highlighted. |
| 6234 */ | 6234 */ |
| 6235 int offset; | 6235 int offset; |
| 6236 | 6236 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6519 * "containingLibraryPath": optional String | 6519 * "containingLibraryPath": optional String |
| 6520 * "containingLibraryName": optional String | 6520 * "containingLibraryName": optional String |
| 6521 * "dartdoc": optional String | 6521 * "dartdoc": optional String |
| 6522 * "elementDescription": optional String | 6522 * "elementDescription": optional String |
| 6523 * "elementKind": optional String | 6523 * "elementKind": optional String |
| 6524 * "parameter": optional String | 6524 * "parameter": optional String |
| 6525 * "propagatedType": optional String | 6525 * "propagatedType": optional String |
| 6526 * "staticType": optional String | 6526 * "staticType": optional String |
| 6527 * } | 6527 * } |
| 6528 */ | 6528 */ |
| 6529 class HoverInformation { | 6529 class HoverInformation implements HasToJson { |
| 6530 /** | 6530 /** |
| 6531 * The offset of the range of characters that encompases the cursor position | 6531 * The offset of the range of characters that encompases the cursor position |
| 6532 * and has the same hover information as the cursor position. | 6532 * and has the same hover information as the cursor position. |
| 6533 */ | 6533 */ |
| 6534 int offset; | 6534 int offset; |
| 6535 | 6535 |
| 6536 /** | 6536 /** |
| 6537 * The length of the range of characters that encompases the cursor position | 6537 * The length of the range of characters that encompases the cursor position |
| 6538 * and has the same hover information as the cursor position. | 6538 * and has the same hover information as the cursor position. |
| 6539 */ | 6539 */ |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6720 | 6720 |
| 6721 /** | 6721 /** |
| 6722 * LinkedEditGroup | 6722 * LinkedEditGroup |
| 6723 * | 6723 * |
| 6724 * { | 6724 * { |
| 6725 * "positions": List<Position> | 6725 * "positions": List<Position> |
| 6726 * "length": int | 6726 * "length": int |
| 6727 * "suggestions": List<LinkedEditSuggestion> | 6727 * "suggestions": List<LinkedEditSuggestion> |
| 6728 * } | 6728 * } |
| 6729 */ | 6729 */ |
| 6730 class LinkedEditGroup { | 6730 class LinkedEditGroup implements HasToJson { |
| 6731 /** | 6731 /** |
| 6732 * The positions of the regions that should be edited simultaneously. | 6732 * The positions of the regions that should be edited simultaneously. |
| 6733 */ | 6733 */ |
| 6734 List<Position> positions; | 6734 List<Position> positions; |
| 6735 | 6735 |
| 6736 /** | 6736 /** |
| 6737 * The length of the regions that should be edited simultaneously. | 6737 * The length of the regions that should be edited simultaneously. |
| 6738 */ | 6738 */ |
| 6739 int length; | 6739 int length; |
| 6740 | 6740 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6827 } | 6827 } |
| 6828 | 6828 |
| 6829 /** | 6829 /** |
| 6830 * LinkedEditSuggestion | 6830 * LinkedEditSuggestion |
| 6831 * | 6831 * |
| 6832 * { | 6832 * { |
| 6833 * "value": String | 6833 * "value": String |
| 6834 * "kind": LinkedEditSuggestionKind | 6834 * "kind": LinkedEditSuggestionKind |
| 6835 * } | 6835 * } |
| 6836 */ | 6836 */ |
| 6837 class LinkedEditSuggestion { | 6837 class LinkedEditSuggestion implements HasToJson { |
| 6838 /** | 6838 /** |
| 6839 * The value that could be used to replace all of the linked edit regions. | 6839 * The value that could be used to replace all of the linked edit regions. |
| 6840 */ | 6840 */ |
| 6841 String value; | 6841 String value; |
| 6842 | 6842 |
| 6843 /** | 6843 /** |
| 6844 * The kind of value being proposed. | 6844 * The kind of value being proposed. |
| 6845 */ | 6845 */ |
| 6846 LinkedEditSuggestionKind kind; | 6846 LinkedEditSuggestionKind kind; |
| 6847 | 6847 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6956 * Location | 6956 * Location |
| 6957 * | 6957 * |
| 6958 * { | 6958 * { |
| 6959 * "file": FilePath | 6959 * "file": FilePath |
| 6960 * "offset": int | 6960 * "offset": int |
| 6961 * "length": int | 6961 * "length": int |
| 6962 * "startLine": int | 6962 * "startLine": int |
| 6963 * "startColumn": int | 6963 * "startColumn": int |
| 6964 * } | 6964 * } |
| 6965 */ | 6965 */ |
| 6966 class Location { | 6966 class Location implements HasToJson { |
| 6967 /** | 6967 /** |
| 6968 * The file containing the range. | 6968 * The file containing the range. |
| 6969 */ | 6969 */ |
| 6970 String file; | 6970 String file; |
| 6971 | 6971 |
| 6972 /** | 6972 /** |
| 6973 * The offset of the range. | 6973 * The offset of the range. |
| 6974 */ | 6974 */ |
| 6975 int offset; | 6975 int offset; |
| 6976 | 6976 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7097 | 7097 |
| 7098 /** | 7098 /** |
| 7099 * NavigationRegion | 7099 * NavigationRegion |
| 7100 * | 7100 * |
| 7101 * { | 7101 * { |
| 7102 * "offset": int | 7102 * "offset": int |
| 7103 * "length": int | 7103 * "length": int |
| 7104 * "targets": List<Element> | 7104 * "targets": List<Element> |
| 7105 * } | 7105 * } |
| 7106 */ | 7106 */ |
| 7107 class NavigationRegion { | 7107 class NavigationRegion implements HasToJson { |
| 7108 /** | 7108 /** |
| 7109 * The offset of the region from which the user can navigate. | 7109 * The offset of the region from which the user can navigate. |
| 7110 */ | 7110 */ |
| 7111 int offset; | 7111 int offset; |
| 7112 | 7112 |
| 7113 /** | 7113 /** |
| 7114 * The length of the region from which the user can navigate. | 7114 * The length of the region from which the user can navigate. |
| 7115 */ | 7115 */ |
| 7116 int length; | 7116 int length; |
| 7117 | 7117 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7185 | 7185 |
| 7186 /** | 7186 /** |
| 7187 * Occurrences | 7187 * Occurrences |
| 7188 * | 7188 * |
| 7189 * { | 7189 * { |
| 7190 * "element": Element | 7190 * "element": Element |
| 7191 * "offsets": List<int> | 7191 * "offsets": List<int> |
| 7192 * "length": int | 7192 * "length": int |
| 7193 * } | 7193 * } |
| 7194 */ | 7194 */ |
| 7195 class Occurrences { | 7195 class Occurrences implements HasToJson { |
| 7196 /** | 7196 /** |
| 7197 * The element that was referenced. | 7197 * The element that was referenced. |
| 7198 */ | 7198 */ |
| 7199 Element element; | 7199 Element element; |
| 7200 | 7200 |
| 7201 /** | 7201 /** |
| 7202 * The offsets of the name of the referenced element within the file. | 7202 * The offsets of the name of the referenced element within the file. |
| 7203 */ | 7203 */ |
| 7204 List<int> offsets; | 7204 List<int> offsets; |
| 7205 | 7205 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7273 /** | 7273 /** |
| 7274 * Outline | 7274 * Outline |
| 7275 * | 7275 * |
| 7276 * { | 7276 * { |
| 7277 * "element": Element | 7277 * "element": Element |
| 7278 * "offset": int | 7278 * "offset": int |
| 7279 * "length": int | 7279 * "length": int |
| 7280 * "children": optional List<Outline> | 7280 * "children": optional List<Outline> |
| 7281 * } | 7281 * } |
| 7282 */ | 7282 */ |
| 7283 class Outline { | 7283 class Outline implements HasToJson { |
| 7284 /** | 7284 /** |
| 7285 * A description of the element represented by this node. | 7285 * A description of the element represented by this node. |
| 7286 */ | 7286 */ |
| 7287 Element element; | 7287 Element element; |
| 7288 | 7288 |
| 7289 /** | 7289 /** |
| 7290 * The offset of the first character of the element. This is different than | 7290 * The offset of the first character of the element. This is different than |
| 7291 * the offset in the Element, which if the offset of the name of the element. | 7291 * the offset in the Element, which if the offset of the name of the element. |
| 7292 * It can be used, for example, to map locations in the file back to an | 7292 * It can be used, for example, to map locations in the file back to an |
| 7293 * outline. | 7293 * outline. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7385 /** | 7385 /** |
| 7386 * Override | 7386 * Override |
| 7387 * | 7387 * |
| 7388 * { | 7388 * { |
| 7389 * "offset": int | 7389 * "offset": int |
| 7390 * "length": int | 7390 * "length": int |
| 7391 * "superclassMember": optional OverriddenMember | 7391 * "superclassMember": optional OverriddenMember |
| 7392 * "interfaceMembers": optional List<OverriddenMember> | 7392 * "interfaceMembers": optional List<OverriddenMember> |
| 7393 * } | 7393 * } |
| 7394 */ | 7394 */ |
| 7395 class Override { | 7395 class Override implements HasToJson { |
| 7396 /** | 7396 /** |
| 7397 * The offset of the name of the overriding member. | 7397 * The offset of the name of the overriding member. |
| 7398 */ | 7398 */ |
| 7399 int offset; | 7399 int offset; |
| 7400 | 7400 |
| 7401 /** | 7401 /** |
| 7402 * The length of the name of the overriding member. | 7402 * The length of the name of the overriding member. |
| 7403 */ | 7403 */ |
| 7404 int length; | 7404 int length; |
| 7405 | 7405 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7495 } | 7495 } |
| 7496 | 7496 |
| 7497 /** | 7497 /** |
| 7498 * OverriddenMember | 7498 * OverriddenMember |
| 7499 * | 7499 * |
| 7500 * { | 7500 * { |
| 7501 * "element": Element | 7501 * "element": Element |
| 7502 * "className": String | 7502 * "className": String |
| 7503 * } | 7503 * } |
| 7504 */ | 7504 */ |
| 7505 class OverriddenMember { | 7505 class OverriddenMember implements HasToJson { |
| 7506 /** | 7506 /** |
| 7507 * The element that is being overridden. | 7507 * The element that is being overridden. |
| 7508 */ | 7508 */ |
| 7509 Element element; | 7509 Element element; |
| 7510 | 7510 |
| 7511 /** | 7511 /** |
| 7512 * The name of the class in which the member is defined. | 7512 * The name of the class in which the member is defined. |
| 7513 */ | 7513 */ |
| 7514 String className; | 7514 String className; |
| 7515 | 7515 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7573 } | 7573 } |
| 7574 | 7574 |
| 7575 /** | 7575 /** |
| 7576 * Position | 7576 * Position |
| 7577 * | 7577 * |
| 7578 * { | 7578 * { |
| 7579 * "file": FilePath | 7579 * "file": FilePath |
| 7580 * "offset": int | 7580 * "offset": int |
| 7581 * } | 7581 * } |
| 7582 */ | 7582 */ |
| 7583 class Position { | 7583 class Position implements HasToJson { |
| 7584 /** | 7584 /** |
| 7585 * The file containing the position. | 7585 * The file containing the position. |
| 7586 */ | 7586 */ |
| 7587 String file; | 7587 String file; |
| 7588 | 7588 |
| 7589 /** | 7589 /** |
| 7590 * The offset of the position. | 7590 * The offset of the position. |
| 7591 */ | 7591 */ |
| 7592 int offset; | 7592 int offset; |
| 7593 | 7593 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7717 * RefactoringMethodParameter | 7717 * RefactoringMethodParameter |
| 7718 * | 7718 * |
| 7719 * { | 7719 * { |
| 7720 * "id": optional String | 7720 * "id": optional String |
| 7721 * "kind": RefactoringMethodParameterKind | 7721 * "kind": RefactoringMethodParameterKind |
| 7722 * "type": String | 7722 * "type": String |
| 7723 * "name": String | 7723 * "name": String |
| 7724 * "parameters": optional String | 7724 * "parameters": optional String |
| 7725 * } | 7725 * } |
| 7726 */ | 7726 */ |
| 7727 class RefactoringMethodParameter { | 7727 class RefactoringMethodParameter implements HasToJson { |
| 7728 /** | 7728 /** |
| 7729 * The unique identifier of the parameter. Clients may omit this field for | 7729 * The unique identifier of the parameter. Clients may omit this field for |
| 7730 * the parameters they want to add. | 7730 * the parameters they want to add. |
| 7731 */ | 7731 */ |
| 7732 String id; | 7732 String id; |
| 7733 | 7733 |
| 7734 /** | 7734 /** |
| 7735 * The kind of the parameter. | 7735 * The kind of the parameter. |
| 7736 */ | 7736 */ |
| 7737 RefactoringMethodParameterKind kind; | 7737 RefactoringMethodParameterKind kind; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7885 | 7885 |
| 7886 /** | 7886 /** |
| 7887 * RefactoringProblem | 7887 * RefactoringProblem |
| 7888 * | 7888 * |
| 7889 * { | 7889 * { |
| 7890 * "severity": RefactoringProblemSeverity | 7890 * "severity": RefactoringProblemSeverity |
| 7891 * "message": String | 7891 * "message": String |
| 7892 * "location": optional Location | 7892 * "location": optional Location |
| 7893 * } | 7893 * } |
| 7894 */ | 7894 */ |
| 7895 class RefactoringProblem { | 7895 class RefactoringProblem implements HasToJson { |
| 7896 /** | 7896 /** |
| 7897 * The severity of the problem being represented. | 7897 * The severity of the problem being represented. |
| 7898 */ | 7898 */ |
| 7899 RefactoringProblemSeverity severity; | 7899 RefactoringProblemSeverity severity; |
| 7900 | 7900 |
| 7901 /** | 7901 /** |
| 7902 * A human-readable description of the problem being represented. | 7902 * A human-readable description of the problem being represented. |
| 7903 */ | 7903 */ |
| 7904 String message; | 7904 String message; |
| 7905 | 7905 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8032 String toJson() => name; | 8032 String toJson() => name; |
| 8033 } | 8033 } |
| 8034 | 8034 |
| 8035 /** | 8035 /** |
| 8036 * RemoveContentOverlay | 8036 * RemoveContentOverlay |
| 8037 * | 8037 * |
| 8038 * { | 8038 * { |
| 8039 * "type": "remove" | 8039 * "type": "remove" |
| 8040 * } | 8040 * } |
| 8041 */ | 8041 */ |
| 8042 class RemoveContentOverlay { | 8042 class RemoveContentOverlay implements HasToJson { |
| 8043 RemoveContentOverlay(); | 8043 RemoveContentOverlay(); |
| 8044 | 8044 |
| 8045 factory RemoveContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 8045 factory RemoveContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 8046 if (json == null) { | 8046 if (json == null) { |
| 8047 json = {}; | 8047 json = {}; |
| 8048 } | 8048 } |
| 8049 if (json is Map) { | 8049 if (json is Map) { |
| 8050 if (json["type"] != "remove") { | 8050 if (json["type"] != "remove") { |
| 8051 throw jsonDecoder.mismatch(jsonPath, "equal " + "remove"); | 8051 throw jsonDecoder.mismatch(jsonPath, "equal " + "remove"); |
| 8052 } | 8052 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8179 /** | 8179 /** |
| 8180 * SearchResult | 8180 * SearchResult |
| 8181 * | 8181 * |
| 8182 * { | 8182 * { |
| 8183 * "location": Location | 8183 * "location": Location |
| 8184 * "kind": SearchResultKind | 8184 * "kind": SearchResultKind |
| 8185 * "isPotential": bool | 8185 * "isPotential": bool |
| 8186 * "path": List<Element> | 8186 * "path": List<Element> |
| 8187 * } | 8187 * } |
| 8188 */ | 8188 */ |
| 8189 class SearchResult { | 8189 class SearchResult implements HasToJson { |
| 8190 /** | 8190 /** |
| 8191 * The location of the code that matched the search criteria. | 8191 * The location of the code that matched the search criteria. |
| 8192 */ | 8192 */ |
| 8193 Location location; | 8193 Location location; |
| 8194 | 8194 |
| 8195 /** | 8195 /** |
| 8196 * The kind of element that was found or the kind of reference that was | 8196 * The kind of element that was found or the kind of reference that was |
| 8197 * found. | 8197 * found. |
| 8198 */ | 8198 */ |
| 8199 SearchResultKind kind; | 8199 SearchResultKind kind; |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8428 /** | 8428 /** |
| 8429 * SourceChange | 8429 * SourceChange |
| 8430 * | 8430 * |
| 8431 * { | 8431 * { |
| 8432 * "message": String | 8432 * "message": String |
| 8433 * "edits": List<SourceFileEdit> | 8433 * "edits": List<SourceFileEdit> |
| 8434 * "linkedEditGroups": List<LinkedEditGroup> | 8434 * "linkedEditGroups": List<LinkedEditGroup> |
| 8435 * "selection": optional Position | 8435 * "selection": optional Position |
| 8436 * } | 8436 * } |
| 8437 */ | 8437 */ |
| 8438 class SourceChange { | 8438 class SourceChange implements HasToJson { |
| 8439 /** | 8439 /** |
| 8440 * A human-readable description of the change to be applied. | 8440 * A human-readable description of the change to be applied. |
| 8441 */ | 8441 */ |
| 8442 String message; | 8442 String message; |
| 8443 | 8443 |
| 8444 /** | 8444 /** |
| 8445 * A list of the edits used to effect the change, grouped by file. | 8445 * A list of the edits used to effect the change, grouped by file. |
| 8446 */ | 8446 */ |
| 8447 List<SourceFileEdit> edits; | 8447 List<SourceFileEdit> edits; |
| 8448 | 8448 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8564 /** | 8564 /** |
| 8565 * SourceEdit | 8565 * SourceEdit |
| 8566 * | 8566 * |
| 8567 * { | 8567 * { |
| 8568 * "offset": int | 8568 * "offset": int |
| 8569 * "length": int | 8569 * "length": int |
| 8570 * "replacement": String | 8570 * "replacement": String |
| 8571 * "id": optional String | 8571 * "id": optional String |
| 8572 * } | 8572 * } |
| 8573 */ | 8573 */ |
| 8574 class SourceEdit { | 8574 class SourceEdit implements HasToJson { |
| 8575 /** | 8575 /** |
| 8576 * Get the result of applying a set of [edits] to the given [code]. Edits are | 8576 * Get the result of applying a set of [edits] to the given [code]. Edits are |
| 8577 * applied in the order they appear in [edits]. | 8577 * applied in the order they appear in [edits]. |
| 8578 */ | 8578 */ |
| 8579 static String applySequence(String code, Iterable<SourceEdit> edits) => | 8579 static String applySequence(String code, Iterable<SourceEdit> edits) => |
| 8580 _applySequence(code, edits); | 8580 _applySequence(code, edits); |
| 8581 | 8581 |
| 8582 /** | 8582 /** |
| 8583 * The offset of the region to be modified. | 8583 * The offset of the region to be modified. |
| 8584 */ | 8584 */ |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8694 } | 8694 } |
| 8695 | 8695 |
| 8696 /** | 8696 /** |
| 8697 * SourceFileEdit | 8697 * SourceFileEdit |
| 8698 * | 8698 * |
| 8699 * { | 8699 * { |
| 8700 * "file": FilePath | 8700 * "file": FilePath |
| 8701 * "edits": List<SourceEdit> | 8701 * "edits": List<SourceEdit> |
| 8702 * } | 8702 * } |
| 8703 */ | 8703 */ |
| 8704 class SourceFileEdit { | 8704 class SourceFileEdit implements HasToJson { |
| 8705 /** | 8705 /** |
| 8706 * The file containing the code to be modified. | 8706 * The file containing the code to be modified. |
| 8707 */ | 8707 */ |
| 8708 String file; | 8708 String file; |
| 8709 | 8709 |
| 8710 /** | 8710 /** |
| 8711 * A list of the edits used to effect the change. | 8711 * A list of the edits used to effect the change. |
| 8712 */ | 8712 */ |
| 8713 List<SourceEdit> edits; | 8713 List<SourceEdit> edits; |
| 8714 | 8714 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8786 * { | 8786 * { |
| 8787 * "classElement": Element | 8787 * "classElement": Element |
| 8788 * "displayName": optional String | 8788 * "displayName": optional String |
| 8789 * "memberElement": optional Element | 8789 * "memberElement": optional Element |
| 8790 * "superclass": optional int | 8790 * "superclass": optional int |
| 8791 * "interfaces": List<int> | 8791 * "interfaces": List<int> |
| 8792 * "mixins": List<int> | 8792 * "mixins": List<int> |
| 8793 * "subclasses": List<int> | 8793 * "subclasses": List<int> |
| 8794 * } | 8794 * } |
| 8795 */ | 8795 */ |
| 8796 class TypeHierarchyItem { | 8796 class TypeHierarchyItem implements HasToJson { |
| 8797 /** | 8797 /** |
| 8798 * The class element represented by this item. | 8798 * The class element represented by this item. |
| 8799 */ | 8799 */ |
| 8800 Element classElement; | 8800 Element classElement; |
| 8801 | 8801 |
| 8802 /** | 8802 /** |
| 8803 * The name to be displayed for the class. This field will be omitted if the | 8803 * The name to be displayed for the class. This field will be omitted if the |
| 8804 * display name is the same as the name of the element. The display name is | 8804 * display name is the same as the name of the element. The display name is |
| 8805 * different if there is additional type information to be displayed, such as | 8805 * different if there is additional type information to be displayed, such as |
| 8806 * type arguments. | 8806 * type arguments. |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9018 | 9018 |
| 9019 /** | 9019 /** |
| 9020 * extractLocalVariable feedback | 9020 * extractLocalVariable feedback |
| 9021 * | 9021 * |
| 9022 * { | 9022 * { |
| 9023 * "names": List<String> | 9023 * "names": List<String> |
| 9024 * "offsets": List<int> | 9024 * "offsets": List<int> |
| 9025 * "lengths": List<int> | 9025 * "lengths": List<int> |
| 9026 * } | 9026 * } |
| 9027 */ | 9027 */ |
| 9028 class ExtractLocalVariableFeedback { | 9028 class ExtractLocalVariableFeedback implements HasToJson { |
| 9029 /** | 9029 /** |
| 9030 * The proposed names for the local variable. | 9030 * The proposed names for the local variable. |
| 9031 */ | 9031 */ |
| 9032 List<String> names; | 9032 List<String> names; |
| 9033 | 9033 |
| 9034 /** | 9034 /** |
| 9035 * The offsets of the expressions that would be replaced by a reference to | 9035 * The offsets of the expressions that would be replaced by a reference to |
| 9036 * the variable. | 9036 * the variable. |
| 9037 */ | 9037 */ |
| 9038 List<int> offsets; | 9038 List<int> offsets; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9113 } | 9113 } |
| 9114 | 9114 |
| 9115 /** | 9115 /** |
| 9116 * extractLocalVariable options | 9116 * extractLocalVariable options |
| 9117 * | 9117 * |
| 9118 * { | 9118 * { |
| 9119 * "name": String | 9119 * "name": String |
| 9120 * "extractAll": bool | 9120 * "extractAll": bool |
| 9121 * } | 9121 * } |
| 9122 */ | 9122 */ |
| 9123 class ExtractLocalVariableOptions { | 9123 class ExtractLocalVariableOptions implements HasToJson { |
| 9124 /** | 9124 /** |
| 9125 * The name that the local variable should be given. | 9125 * The name that the local variable should be given. |
| 9126 */ | 9126 */ |
| 9127 String name; | 9127 String name; |
| 9128 | 9128 |
| 9129 /** | 9129 /** |
| 9130 * True if all occurrences of the expression within the scope in which the | 9130 * True if all occurrences of the expression within the scope in which the |
| 9131 * variable will be defined should be replaced by a reference to the local | 9131 * variable will be defined should be replaced by a reference to the local |
| 9132 * variable. The expression used to initiate the refactoring will always be | 9132 * variable. The expression used to initiate the refactoring will always be |
| 9133 * replaced. | 9133 * replaced. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9200 * "length": int | 9200 * "length": int |
| 9201 * "returnType": String | 9201 * "returnType": String |
| 9202 * "names": List<String> | 9202 * "names": List<String> |
| 9203 * "canCreateGetter": bool | 9203 * "canCreateGetter": bool |
| 9204 * "parameters": List<RefactoringMethodParameter> | 9204 * "parameters": List<RefactoringMethodParameter> |
| 9205 * "occurrences": int | 9205 * "occurrences": int |
| 9206 * "offsets": List<int> | 9206 * "offsets": List<int> |
| 9207 * "lengths": List<int> | 9207 * "lengths": List<int> |
| 9208 * } | 9208 * } |
| 9209 */ | 9209 */ |
| 9210 class ExtractMethodFeedback { | 9210 class ExtractMethodFeedback implements HasToJson { |
| 9211 /** | 9211 /** |
| 9212 * The offset to the beginning of the expression or statements that will be | 9212 * The offset to the beginning of the expression or statements that will be |
| 9213 * extracted. | 9213 * extracted. |
| 9214 */ | 9214 */ |
| 9215 int offset; | 9215 int offset; |
| 9216 | 9216 |
| 9217 /** | 9217 /** |
| 9218 * The length of the expression or statements that will be extracted. | 9218 * The length of the expression or statements that will be extracted. |
| 9219 */ | 9219 */ |
| 9220 int length; | 9220 int length; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9384 * extractMethod options | 9384 * extractMethod options |
| 9385 * | 9385 * |
| 9386 * { | 9386 * { |
| 9387 * "returnType": String | 9387 * "returnType": String |
| 9388 * "createGetter": bool | 9388 * "createGetter": bool |
| 9389 * "name": String | 9389 * "name": String |
| 9390 * "parameters": List<RefactoringMethodParameter> | 9390 * "parameters": List<RefactoringMethodParameter> |
| 9391 * "extractAll": bool | 9391 * "extractAll": bool |
| 9392 * } | 9392 * } |
| 9393 */ | 9393 */ |
| 9394 class ExtractMethodOptions { | 9394 class ExtractMethodOptions implements HasToJson { |
| 9395 /** | 9395 /** |
| 9396 * The return type that should be defined for the method. | 9396 * The return type that should be defined for the method. |
| 9397 */ | 9397 */ |
| 9398 String returnType; | 9398 String returnType; |
| 9399 | 9399 |
| 9400 /** | 9400 /** |
| 9401 * True if a getter should be created rather than a method. It is an error if | 9401 * True if a getter should be created rather than a method. It is an error if |
| 9402 * this field is true and the list of parameters is non-empty. | 9402 * this field is true and the list of parameters is non-empty. |
| 9403 */ | 9403 */ |
| 9404 bool createGetter; | 9404 bool createGetter; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9566 } | 9566 } |
| 9567 | 9567 |
| 9568 /** | 9568 /** |
| 9569 * inlineMethod options | 9569 * inlineMethod options |
| 9570 * | 9570 * |
| 9571 * { | 9571 * { |
| 9572 * "deleteSource": bool | 9572 * "deleteSource": bool |
| 9573 * "inlineAll": bool | 9573 * "inlineAll": bool |
| 9574 * } | 9574 * } |
| 9575 */ | 9575 */ |
| 9576 class InlineMethodOptions { | 9576 class InlineMethodOptions implements HasToJson { |
| 9577 /** | 9577 /** |
| 9578 * True if the method being inlined should be removed. It is an error if this | 9578 * True if the method being inlined should be removed. It is an error if this |
| 9579 * field is true and inlineAll is false. | 9579 * field is true and inlineAll is false. |
| 9580 */ | 9580 */ |
| 9581 bool deleteSource; | 9581 bool deleteSource; |
| 9582 | 9582 |
| 9583 /** | 9583 /** |
| 9584 * True if all invocations of the method should be inlined, or false if only | 9584 * True if all invocations of the method should be inlined, or false if only |
| 9585 * the invocation site used to create this refactoring should be inlined. | 9585 * the invocation site used to create this refactoring should be inlined. |
| 9586 */ | 9586 */ |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9645 } | 9645 } |
| 9646 | 9646 |
| 9647 /** | 9647 /** |
| 9648 * rename feedback | 9648 * rename feedback |
| 9649 * | 9649 * |
| 9650 * { | 9650 * { |
| 9651 * "offset": int | 9651 * "offset": int |
| 9652 * "length": int | 9652 * "length": int |
| 9653 * } | 9653 * } |
| 9654 */ | 9654 */ |
| 9655 class RenameFeedback { | 9655 class RenameFeedback implements HasToJson { |
| 9656 /** | 9656 /** |
| 9657 * The offset to the beginning of the name selected to be renamed. | 9657 * The offset to the beginning of the name selected to be renamed. |
| 9658 */ | 9658 */ |
| 9659 int offset; | 9659 int offset; |
| 9660 | 9660 |
| 9661 /** | 9661 /** |
| 9662 * The length of the name selected to be renamed. | 9662 * The length of the name selected to be renamed. |
| 9663 */ | 9663 */ |
| 9664 int length; | 9664 int length; |
| 9665 | 9665 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9721 } | 9721 } |
| 9722 } | 9722 } |
| 9723 | 9723 |
| 9724 /** | 9724 /** |
| 9725 * rename options | 9725 * rename options |
| 9726 * | 9726 * |
| 9727 * { | 9727 * { |
| 9728 * "newName": String | 9728 * "newName": String |
| 9729 * } | 9729 * } |
| 9730 */ | 9730 */ |
| 9731 class RenameOptions { | 9731 class RenameOptions implements HasToJson { |
| 9732 /** | 9732 /** |
| 9733 * The name that the element should have after the refactoring. | 9733 * The name that the element should have after the refactoring. |
| 9734 */ | 9734 */ |
| 9735 String newName; | 9735 String newName; |
| 9736 | 9736 |
| 9737 RenameOptions(this.newName); | 9737 RenameOptions(this.newName); |
| 9738 | 9738 |
| 9739 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 9739 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { |
| 9740 if (json == null) { | 9740 if (json == null) { |
| 9741 json = {}; | 9741 json = {}; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9775 return false; | 9775 return false; |
| 9776 } | 9776 } |
| 9777 | 9777 |
| 9778 @override | 9778 @override |
| 9779 int get hashCode { | 9779 int get hashCode { |
| 9780 int hash = 0; | 9780 int hash = 0; |
| 9781 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 9781 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 9782 return _JenkinsSmiHash.finish(hash); | 9782 return _JenkinsSmiHash.finish(hash); |
| 9783 } | 9783 } |
| 9784 } | 9784 } |
| OLD | NEW |