| 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 /** | 9 /** |
| 10 * Matchers for data types defined in the analysis server API | 10 * Matchers for data types defined in the analysis server API |
| (...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1071 "PARAMETER", | 1071 "PARAMETER", |
| 1072 "SETTER", | 1072 "SETTER", |
| 1073 "TOP_LEVEL_VARIABLE", | 1073 "TOP_LEVEL_VARIABLE", |
| 1074 "TYPE_PARAMETER", | 1074 "TYPE_PARAMETER", |
| 1075 "UNIT_TEST_GROUP", | 1075 "UNIT_TEST_GROUP", |
| 1076 "UNIT_TEST_TEST", | 1076 "UNIT_TEST_TEST", |
| 1077 "UNKNOWN" | 1077 "UNKNOWN" |
| 1078 ]); | 1078 ]); |
| 1079 | 1079 |
| 1080 /** | 1080 /** |
| 1081 * Error | |
| 1082 * | |
| 1083 * { | |
| 1084 * "code": RequestErrorCode | |
| 1085 * "message": String | |
| 1086 * "data": optional object | |
| 1087 * } | |
| 1088 */ | |
| 1089 final Matcher isError = new LazyMatcher(() => new MatchesJsonObject( | |
| 1090 "Error", { | |
| 1091 "code": isRequestErrorCode, | |
| 1092 "message": isString | |
| 1093 }, optionalFields: { | |
| 1094 "data": isObject | |
| 1095 })); | |
| 1096 | |
| 1097 /** | |
| 1098 * ErrorFixes | 1081 * ErrorFixes |
| 1099 * | 1082 * |
| 1100 * { | 1083 * { |
| 1101 * "error": AnalysisError | 1084 * "error": AnalysisError |
| 1102 * "fixes": List<SourceChange> | 1085 * "fixes": List<SourceChange> |
| 1103 * } | 1086 * } |
| 1104 */ | 1087 */ |
| 1105 final Matcher isErrorFixes = new LazyMatcher(() => new MatchesJsonObject( | 1088 final Matcher isErrorFixes = new LazyMatcher(() => new MatchesJsonObject( |
| 1106 "ErrorFixes", { | 1089 "ErrorFixes", { |
| 1107 "error": isAnalysisError, | 1090 "error": isAnalysisError, |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1605 * { | 1588 * { |
| 1606 * "type": "remove" | 1589 * "type": "remove" |
| 1607 * } | 1590 * } |
| 1608 */ | 1591 */ |
| 1609 final Matcher isRemoveContentOverlay = new LazyMatcher(() => new MatchesJsonObje
ct( | 1592 final Matcher isRemoveContentOverlay = new LazyMatcher(() => new MatchesJsonObje
ct( |
| 1610 "RemoveContentOverlay", { | 1593 "RemoveContentOverlay", { |
| 1611 "type": equals("remove") | 1594 "type": equals("remove") |
| 1612 })); | 1595 })); |
| 1613 | 1596 |
| 1614 /** | 1597 /** |
| 1598 * RequestError |
| 1599 * |
| 1600 * { |
| 1601 * "code": RequestErrorCode |
| 1602 * "message": String |
| 1603 * "data": optional object |
| 1604 * } |
| 1605 */ |
| 1606 final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject( |
| 1607 "RequestError", { |
| 1608 "code": isRequestErrorCode, |
| 1609 "message": isString |
| 1610 }, optionalFields: { |
| 1611 "data": isObject |
| 1612 })); |
| 1613 |
| 1614 /** |
| 1615 * RequestErrorCode | 1615 * RequestErrorCode |
| 1616 * | 1616 * |
| 1617 * enum { | 1617 * enum { |
| 1618 * GET_ERRORS_ERROR | 1618 * GET_ERRORS_ERROR |
| 1619 * INVALID_PARAMETER | 1619 * INVALID_PARAMETER |
| 1620 * INVALID_REQUEST | 1620 * INVALID_REQUEST |
| 1621 * SERVER_ALREADY_STARTED | 1621 * SERVER_ALREADY_STARTED |
| 1622 * UNANALYZED_PRIORITY_FILES | 1622 * UNANALYZED_PRIORITY_FILES |
| 1623 * UNKNOWN_REQUEST | 1623 * UNKNOWN_REQUEST |
| 1624 * UNSUPPORTED_FEATURE | 1624 * UNSUPPORTED_FEATURE |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 * | 1914 * |
| 1915 * { | 1915 * { |
| 1916 * "newName": String | 1916 * "newName": String |
| 1917 * } | 1917 * } |
| 1918 */ | 1918 */ |
| 1919 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( | 1919 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( |
| 1920 "rename options", { | 1920 "rename options", { |
| 1921 "newName": isString | 1921 "newName": isString |
| 1922 })); | 1922 })); |
| 1923 | 1923 |
| OLD | NEW |