| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
| 6 // To regenerate the file, use the script | 6 // To regenerate the file, use the script |
| 7 // "pkg/analysis_server/tool/spec/generate_files". | 7 // "pkg/analysis_server/tool/spec/generate_files". |
| 8 | 8 |
| 9 import 'dart:convert' hide JsonDecoder; | 9 import 'dart:convert' hide JsonDecoder; |
| 10 | 10 |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 /** | 446 /** |
| 447 * analysis.handleWatchEvents result | 447 * analysis.handleWatchEvents result |
| 448 * | 448 * |
| 449 * Clients may not extend, implement or mix-in this class. | 449 * Clients may not extend, implement or mix-in this class. |
| 450 */ | 450 */ |
| 451 class AnalysisHandleWatchEventsResult implements ResponseResult { | 451 class AnalysisHandleWatchEventsResult implements ResponseResult { |
| 452 @override | 452 @override |
| 453 Map<String, dynamic> toJson() => <String, dynamic>{}; | 453 Map<String, dynamic> toJson() => <String, dynamic>{}; |
| 454 | 454 |
| 455 @override | 455 @override |
| 456 Response toResponse(String id) { | 456 Response toResponse(String id, int requestTime) { |
| 457 return new Response(id, result: null); | 457 return new Response(id, requestTime, result: null); |
| 458 } | 458 } |
| 459 | 459 |
| 460 @override | 460 @override |
| 461 bool operator ==(other) { | 461 bool operator ==(other) { |
| 462 if (other is AnalysisHandleWatchEventsResult) { | 462 if (other is AnalysisHandleWatchEventsResult) { |
| 463 return true; | 463 return true; |
| 464 } | 464 } |
| 465 return false; | 465 return false; |
| 466 } | 466 } |
| 467 | 467 |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 /** | 1082 /** |
| 1083 * analysis.reanalyze result | 1083 * analysis.reanalyze result |
| 1084 * | 1084 * |
| 1085 * Clients may not extend, implement or mix-in this class. | 1085 * Clients may not extend, implement or mix-in this class. |
| 1086 */ | 1086 */ |
| 1087 class AnalysisReanalyzeResult implements ResponseResult { | 1087 class AnalysisReanalyzeResult implements ResponseResult { |
| 1088 @override | 1088 @override |
| 1089 Map<String, dynamic> toJson() => <String, dynamic>{}; | 1089 Map<String, dynamic> toJson() => <String, dynamic>{}; |
| 1090 | 1090 |
| 1091 @override | 1091 @override |
| 1092 Response toResponse(String id) { | 1092 Response toResponse(String id, int requestTime) { |
| 1093 return new Response(id, result: null); | 1093 return new Response(id, requestTime, result: null); |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 @override | 1096 @override |
| 1097 bool operator ==(other) { | 1097 bool operator ==(other) { |
| 1098 if (other is AnalysisReanalyzeResult) { | 1098 if (other is AnalysisReanalyzeResult) { |
| 1099 return true; | 1099 return true; |
| 1100 } | 1100 } |
| 1101 return false; | 1101 return false; |
| 1102 } | 1102 } |
| 1103 | 1103 |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 /** | 1272 /** |
| 1273 * analysis.setContextBuilderOptions result | 1273 * analysis.setContextBuilderOptions result |
| 1274 * | 1274 * |
| 1275 * Clients may not extend, implement or mix-in this class. | 1275 * Clients may not extend, implement or mix-in this class. |
| 1276 */ | 1276 */ |
| 1277 class AnalysisSetContextBuilderOptionsResult implements ResponseResult { | 1277 class AnalysisSetContextBuilderOptionsResult implements ResponseResult { |
| 1278 @override | 1278 @override |
| 1279 Map<String, dynamic> toJson() => <String, dynamic>{}; | 1279 Map<String, dynamic> toJson() => <String, dynamic>{}; |
| 1280 | 1280 |
| 1281 @override | 1281 @override |
| 1282 Response toResponse(String id) { | 1282 Response toResponse(String id, int requestTime) { |
| 1283 return new Response(id, result: null); | 1283 return new Response(id, requestTime, result: null); |
| 1284 } | 1284 } |
| 1285 | 1285 |
| 1286 @override | 1286 @override |
| 1287 bool operator ==(other) { | 1287 bool operator ==(other) { |
| 1288 if (other is AnalysisSetContextBuilderOptionsResult) { | 1288 if (other is AnalysisSetContextBuilderOptionsResult) { |
| 1289 return true; | 1289 return true; |
| 1290 } | 1290 } |
| 1291 return false; | 1291 return false; |
| 1292 } | 1292 } |
| 1293 | 1293 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 /** | 1389 /** |
| 1390 * analysis.setContextRoots result | 1390 * analysis.setContextRoots result |
| 1391 * | 1391 * |
| 1392 * Clients may not extend, implement or mix-in this class. | 1392 * Clients may not extend, implement or mix-in this class. |
| 1393 */ | 1393 */ |
| 1394 class AnalysisSetContextRootsResult implements ResponseResult { | 1394 class AnalysisSetContextRootsResult implements ResponseResult { |
| 1395 @override | 1395 @override |
| 1396 Map<String, dynamic> toJson() => <String, dynamic>{}; | 1396 Map<String, dynamic> toJson() => <String, dynamic>{}; |
| 1397 | 1397 |
| 1398 @override | 1398 @override |
| 1399 Response toResponse(String id) { | 1399 Response toResponse(String id, int requestTime) { |
| 1400 return new Response(id, result: null); | 1400 return new Response(id, requestTime, result: null); |
| 1401 } | 1401 } |
| 1402 | 1402 |
| 1403 @override | 1403 @override |
| 1404 bool operator ==(other) { | 1404 bool operator ==(other) { |
| 1405 if (other is AnalysisSetContextRootsResult) { | 1405 if (other is AnalysisSetContextRootsResult) { |
| 1406 return true; | 1406 return true; |
| 1407 } | 1407 } |
| 1408 return false; | 1408 return false; |
| 1409 } | 1409 } |
| 1410 | 1410 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 /** | 1502 /** |
| 1503 * analysis.setPriorityFiles result | 1503 * analysis.setPriorityFiles result |
| 1504 * | 1504 * |
| 1505 * Clients may not extend, implement or mix-in this class. | 1505 * Clients may not extend, implement or mix-in this class. |
| 1506 */ | 1506 */ |
| 1507 class AnalysisSetPriorityFilesResult implements ResponseResult { | 1507 class AnalysisSetPriorityFilesResult implements ResponseResult { |
| 1508 @override | 1508 @override |
| 1509 Map<String, dynamic> toJson() => <String, dynamic>{}; | 1509 Map<String, dynamic> toJson() => <String, dynamic>{}; |
| 1510 | 1510 |
| 1511 @override | 1511 @override |
| 1512 Response toResponse(String id) { | 1512 Response toResponse(String id, int requestTime) { |
| 1513 return new Response(id, result: null); | 1513 return new Response(id, requestTime, result: null); |
| 1514 } | 1514 } |
| 1515 | 1515 |
| 1516 @override | 1516 @override |
| 1517 bool operator ==(other) { | 1517 bool operator ==(other) { |
| 1518 if (other is AnalysisSetPriorityFilesResult) { | 1518 if (other is AnalysisSetPriorityFilesResult) { |
| 1519 return true; | 1519 return true; |
| 1520 } | 1520 } |
| 1521 return false; | 1521 return false; |
| 1522 } | 1522 } |
| 1523 | 1523 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1627 /** | 1627 /** |
| 1628 * analysis.setSubscriptions result | 1628 * analysis.setSubscriptions result |
| 1629 * | 1629 * |
| 1630 * Clients may not extend, implement or mix-in this class. | 1630 * Clients may not extend, implement or mix-in this class. |
| 1631 */ | 1631 */ |
| 1632 class AnalysisSetSubscriptionsResult implements ResponseResult { | 1632 class AnalysisSetSubscriptionsResult implements ResponseResult { |
| 1633 @override | 1633 @override |
| 1634 Map<String, dynamic> toJson() => <String, dynamic>{}; | 1634 Map<String, dynamic> toJson() => <String, dynamic>{}; |
| 1635 | 1635 |
| 1636 @override | 1636 @override |
| 1637 Response toResponse(String id) { | 1637 Response toResponse(String id, int requestTime) { |
| 1638 return new Response(id, result: null); | 1638 return new Response(id, requestTime, result: null); |
| 1639 } | 1639 } |
| 1640 | 1640 |
| 1641 @override | 1641 @override |
| 1642 bool operator ==(other) { | 1642 bool operator ==(other) { |
| 1643 if (other is AnalysisSetSubscriptionsResult) { | 1643 if (other is AnalysisSetSubscriptionsResult) { |
| 1644 return true; | 1644 return true; |
| 1645 } | 1645 } |
| 1646 return false; | 1646 return false; |
| 1647 } | 1647 } |
| 1648 | 1648 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1754 /** | 1754 /** |
| 1755 * analysis.updateContent result | 1755 * analysis.updateContent result |
| 1756 * | 1756 * |
| 1757 * Clients may not extend, implement or mix-in this class. | 1757 * Clients may not extend, implement or mix-in this class. |
| 1758 */ | 1758 */ |
| 1759 class AnalysisUpdateContentResult implements ResponseResult { | 1759 class AnalysisUpdateContentResult implements ResponseResult { |
| 1760 @override | 1760 @override |
| 1761 Map<String, dynamic> toJson() => <String, dynamic>{}; | 1761 Map<String, dynamic> toJson() => <String, dynamic>{}; |
| 1762 | 1762 |
| 1763 @override | 1763 @override |
| 1764 Response toResponse(String id) { | 1764 Response toResponse(String id, int requestTime) { |
| 1765 return new Response(id, result: null); | 1765 return new Response(id, requestTime, result: null); |
| 1766 } | 1766 } |
| 1767 | 1767 |
| 1768 @override | 1768 @override |
| 1769 bool operator ==(other) { | 1769 bool operator ==(other) { |
| 1770 if (other is AnalysisUpdateContentResult) { | 1770 if (other is AnalysisUpdateContentResult) { |
| 1771 return true; | 1771 return true; |
| 1772 } | 1772 } |
| 1773 return false; | 1773 return false; |
| 1774 } | 1774 } |
| 1775 | 1775 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2019 Map<String, dynamic> toJson() { | 2019 Map<String, dynamic> toJson() { |
| 2020 Map<String, dynamic> result = {}; | 2020 Map<String, dynamic> result = {}; |
| 2021 result["replacementOffset"] = replacementOffset; | 2021 result["replacementOffset"] = replacementOffset; |
| 2022 result["replacementLength"] = replacementLength; | 2022 result["replacementLength"] = replacementLength; |
| 2023 result["results"] = | 2023 result["results"] = |
| 2024 results.map((CompletionSuggestion value) => value.toJson()).toList(); | 2024 results.map((CompletionSuggestion value) => value.toJson()).toList(); |
| 2025 return result; | 2025 return result; |
| 2026 } | 2026 } |
| 2027 | 2027 |
| 2028 @override | 2028 @override |
| 2029 Response toResponse(String id) { | 2029 Response toResponse(String id, int requestTime) { |
| 2030 return new Response(id, result: toJson()); | 2030 return new Response(id, requestTime, result: toJson()); |
| 2031 } | 2031 } |
| 2032 | 2032 |
| 2033 @override | 2033 @override |
| 2034 String toString() => JSON.encode(toJson()); | 2034 String toString() => JSON.encode(toJson()); |
| 2035 | 2035 |
| 2036 @override | 2036 @override |
| 2037 bool operator ==(other) { | 2037 bool operator ==(other) { |
| 2038 if (other is CompletionGetSuggestionsResult) { | 2038 if (other is CompletionGetSuggestionsResult) { |
| 2039 return replacementOffset == other.replacementOffset && | 2039 return replacementOffset == other.replacementOffset && |
| 2040 replacementLength == other.replacementLength && | 2040 replacementLength == other.replacementLength && |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2663 | 2663 |
| 2664 @override | 2664 @override |
| 2665 Map<String, dynamic> toJson() { | 2665 Map<String, dynamic> toJson() { |
| 2666 Map<String, dynamic> result = {}; | 2666 Map<String, dynamic> result = {}; |
| 2667 result["assists"] = | 2667 result["assists"] = |
| 2668 assists.map((PrioritizedSourceChange value) => value.toJson()).toList(); | 2668 assists.map((PrioritizedSourceChange value) => value.toJson()).toList(); |
| 2669 return result; | 2669 return result; |
| 2670 } | 2670 } |
| 2671 | 2671 |
| 2672 @override | 2672 @override |
| 2673 Response toResponse(String id) { | 2673 Response toResponse(String id, int requestTime) { |
| 2674 return new Response(id, result: toJson()); | 2674 return new Response(id, requestTime, result: toJson()); |
| 2675 } | 2675 } |
| 2676 | 2676 |
| 2677 @override | 2677 @override |
| 2678 String toString() => JSON.encode(toJson()); | 2678 String toString() => JSON.encode(toJson()); |
| 2679 | 2679 |
| 2680 @override | 2680 @override |
| 2681 bool operator ==(other) { | 2681 bool operator ==(other) { |
| 2682 if (other is EditGetAssistsResult) { | 2682 if (other is EditGetAssistsResult) { |
| 2683 return listEqual(assists, other.assists, | 2683 return listEqual(assists, other.assists, |
| 2684 (PrioritizedSourceChange a, PrioritizedSourceChange b) => a == b); | 2684 (PrioritizedSourceChange a, PrioritizedSourceChange b) => a == b); |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2901 | 2901 |
| 2902 @override | 2902 @override |
| 2903 Map<String, dynamic> toJson() { | 2903 Map<String, dynamic> toJson() { |
| 2904 Map<String, dynamic> result = {}; | 2904 Map<String, dynamic> result = {}; |
| 2905 result["kinds"] = | 2905 result["kinds"] = |
| 2906 kinds.map((RefactoringKind value) => value.toJson()).toList(); | 2906 kinds.map((RefactoringKind value) => value.toJson()).toList(); |
| 2907 return result; | 2907 return result; |
| 2908 } | 2908 } |
| 2909 | 2909 |
| 2910 @override | 2910 @override |
| 2911 Response toResponse(String id) { | 2911 Response toResponse(String id, int requestTime) { |
| 2912 return new Response(id, result: toJson()); | 2912 return new Response(id, requestTime, result: toJson()); |
| 2913 } | 2913 } |
| 2914 | 2914 |
| 2915 @override | 2915 @override |
| 2916 String toString() => JSON.encode(toJson()); | 2916 String toString() => JSON.encode(toJson()); |
| 2917 | 2917 |
| 2918 @override | 2918 @override |
| 2919 bool operator ==(other) { | 2919 bool operator ==(other) { |
| 2920 if (other is EditGetAvailableRefactoringsResult) { | 2920 if (other is EditGetAvailableRefactoringsResult) { |
| 2921 return listEqual( | 2921 return listEqual( |
| 2922 kinds, other.kinds, (RefactoringKind a, RefactoringKind b) => a == b); | 2922 kinds, other.kinds, (RefactoringKind a, RefactoringKind b) => a == b); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3100 | 3100 |
| 3101 @override | 3101 @override |
| 3102 Map<String, dynamic> toJson() { | 3102 Map<String, dynamic> toJson() { |
| 3103 Map<String, dynamic> result = {}; | 3103 Map<String, dynamic> result = {}; |
| 3104 result["fixes"] = | 3104 result["fixes"] = |
| 3105 fixes.map((AnalysisErrorFixes value) => value.toJson()).toList(); | 3105 fixes.map((AnalysisErrorFixes value) => value.toJson()).toList(); |
| 3106 return result; | 3106 return result; |
| 3107 } | 3107 } |
| 3108 | 3108 |
| 3109 @override | 3109 @override |
| 3110 Response toResponse(String id) { | 3110 Response toResponse(String id, int requestTime) { |
| 3111 return new Response(id, result: toJson()); | 3111 return new Response(id, requestTime, result: toJson()); |
| 3112 } | 3112 } |
| 3113 | 3113 |
| 3114 @override | 3114 @override |
| 3115 String toString() => JSON.encode(toJson()); | 3115 String toString() => JSON.encode(toJson()); |
| 3116 | 3116 |
| 3117 @override | 3117 @override |
| 3118 bool operator ==(other) { | 3118 bool operator ==(other) { |
| 3119 if (other is EditGetFixesResult) { | 3119 if (other is EditGetFixesResult) { |
| 3120 return listEqual(fixes, other.fixes, | 3120 return listEqual(fixes, other.fixes, |
| 3121 (AnalysisErrorFixes a, AnalysisErrorFixes b) => a == b); | 3121 (AnalysisErrorFixes a, AnalysisErrorFixes b) => a == b); |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3597 if (change != null) { | 3597 if (change != null) { |
| 3598 result["change"] = change.toJson(); | 3598 result["change"] = change.toJson(); |
| 3599 } | 3599 } |
| 3600 if (potentialEdits != null) { | 3600 if (potentialEdits != null) { |
| 3601 result["potentialEdits"] = potentialEdits; | 3601 result["potentialEdits"] = potentialEdits; |
| 3602 } | 3602 } |
| 3603 return result; | 3603 return result; |
| 3604 } | 3604 } |
| 3605 | 3605 |
| 3606 @override | 3606 @override |
| 3607 Response toResponse(String id) { | 3607 Response toResponse(String id, int requestTime) { |
| 3608 return new Response(id, result: toJson()); | 3608 return new Response(id, requestTime, result: toJson()); |
| 3609 } | 3609 } |
| 3610 | 3610 |
| 3611 @override | 3611 @override |
| 3612 String toString() => JSON.encode(toJson()); | 3612 String toString() => JSON.encode(toJson()); |
| 3613 | 3613 |
| 3614 @override | 3614 @override |
| 3615 bool operator ==(other) { | 3615 bool operator ==(other) { |
| 3616 if (other is EditGetRefactoringResult) { | 3616 if (other is EditGetRefactoringResult) { |
| 3617 return listEqual(initialProblems, other.initialProblems, | 3617 return listEqual(initialProblems, other.initialProblems, |
| 3618 (RefactoringProblem a, RefactoringProblem b) => a == b) && | 3618 (RefactoringProblem a, RefactoringProblem b) => a == b) && |
| (...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5114 /** | 5114 /** |
| 5115 * plugin.shutdown result | 5115 * plugin.shutdown result |
| 5116 * | 5116 * |
| 5117 * Clients may not extend, implement or mix-in this class. | 5117 * Clients may not extend, implement or mix-in this class. |
| 5118 */ | 5118 */ |
| 5119 class PluginShutdownResult implements ResponseResult { | 5119 class PluginShutdownResult implements ResponseResult { |
| 5120 @override | 5120 @override |
| 5121 Map<String, dynamic> toJson() => <String, dynamic>{}; | 5121 Map<String, dynamic> toJson() => <String, dynamic>{}; |
| 5122 | 5122 |
| 5123 @override | 5123 @override |
| 5124 Response toResponse(String id) { | 5124 Response toResponse(String id, int requestTime) { |
| 5125 return new Response(id, result: null); | 5125 return new Response(id, requestTime, result: null); |
| 5126 } | 5126 } |
| 5127 | 5127 |
| 5128 @override | 5128 @override |
| 5129 bool operator ==(other) { | 5129 bool operator ==(other) { |
| 5130 if (other is PluginShutdownResult) { | 5130 if (other is PluginShutdownResult) { |
| 5131 return true; | 5131 return true; |
| 5132 } | 5132 } |
| 5133 return false; | 5133 return false; |
| 5134 } | 5134 } |
| 5135 | 5135 |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5460 result["name"] = name; | 5460 result["name"] = name; |
| 5461 result["version"] = version; | 5461 result["version"] = version; |
| 5462 if (contactInfo != null) { | 5462 if (contactInfo != null) { |
| 5463 result["contactInfo"] = contactInfo; | 5463 result["contactInfo"] = contactInfo; |
| 5464 } | 5464 } |
| 5465 result["interestingFiles"] = interestingFiles; | 5465 result["interestingFiles"] = interestingFiles; |
| 5466 return result; | 5466 return result; |
| 5467 } | 5467 } |
| 5468 | 5468 |
| 5469 @override | 5469 @override |
| 5470 Response toResponse(String id) { | 5470 Response toResponse(String id, int requestTime) { |
| 5471 return new Response(id, result: toJson()); | 5471 return new Response(id, requestTime, result: toJson()); |
| 5472 } | 5472 } |
| 5473 | 5473 |
| 5474 @override | 5474 @override |
| 5475 String toString() => JSON.encode(toJson()); | 5475 String toString() => JSON.encode(toJson()); |
| 5476 | 5476 |
| 5477 @override | 5477 @override |
| 5478 bool operator ==(other) { | 5478 bool operator ==(other) { |
| 5479 if (other is PluginVersionCheckResult) { | 5479 if (other is PluginVersionCheckResult) { |
| 5480 return isCompatible == other.isCompatible && | 5480 return isCompatible == other.isCompatible && |
| 5481 name == other.name && | 5481 name == other.name && |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6302 } | 6302 } |
| 6303 } | 6303 } |
| 6304 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); | 6304 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); |
| 6305 } | 6305 } |
| 6306 | 6306 |
| 6307 @override | 6307 @override |
| 6308 String toString() => "WatchEventType.$name"; | 6308 String toString() => "WatchEventType.$name"; |
| 6309 | 6309 |
| 6310 String toJson() => name; | 6310 String toJson() => name; |
| 6311 } | 6311 } |
| OLD | NEW |