| 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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 * | 831 * |
| 832 * enum { | 832 * enum { |
| 833 * FOLDING | 833 * FOLDING |
| 834 * HIGHLIGHTS | 834 * HIGHLIGHTS |
| 835 * NAVIGATION | 835 * NAVIGATION |
| 836 * OCCURRENCES | 836 * OCCURRENCES |
| 837 * OUTLINE | 837 * OUTLINE |
| 838 * OVERRIDES | 838 * OVERRIDES |
| 839 * } | 839 * } |
| 840 */ | 840 */ |
| 841 final Matcher isAnalysisService = isIn([ | 841 final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [ |
| 842 "FOLDING", | 842 "FOLDING", |
| 843 "HIGHLIGHTS", | 843 "HIGHLIGHTS", |
| 844 "NAVIGATION", | 844 "NAVIGATION", |
| 845 "OCCURRENCES", | 845 "OCCURRENCES", |
| 846 "OUTLINE", | 846 "OUTLINE", |
| 847 "OVERRIDES" | 847 "OVERRIDES" |
| 848 ]); | 848 ]); |
| 849 | 849 |
| 850 /** | 850 /** |
| 851 * AnalysisStatus | 851 * AnalysisStatus |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 | 889 |
| 890 /** | 890 /** |
| 891 * CompletionRelevance | 891 * CompletionRelevance |
| 892 * | 892 * |
| 893 * enum { | 893 * enum { |
| 894 * LOW | 894 * LOW |
| 895 * DEFAULT | 895 * DEFAULT |
| 896 * HIGH | 896 * HIGH |
| 897 * } | 897 * } |
| 898 */ | 898 */ |
| 899 final Matcher isCompletionRelevance = isIn([ | 899 final Matcher isCompletionRelevance = new MatchesEnum("CompletionRelevance", [ |
| 900 "LOW", | 900 "LOW", |
| 901 "DEFAULT", | 901 "DEFAULT", |
| 902 "HIGH" | 902 "HIGH" |
| 903 ]); | 903 ]); |
| 904 | 904 |
| 905 /** | 905 /** |
| 906 * CompletionSuggestion | 906 * CompletionSuggestion |
| 907 * | 907 * |
| 908 * { | 908 * { |
| 909 * "kind": CompletionSuggestionKind | 909 * "kind": CompletionSuggestionKind |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 * METHOD | 965 * METHOD |
| 966 * METHOD_NAME | 966 * METHOD_NAME |
| 967 * NAMED_ARGUMENT | 967 * NAMED_ARGUMENT |
| 968 * OPTIONAL_ARGUMENT | 968 * OPTIONAL_ARGUMENT |
| 969 * PARAMETER | 969 * PARAMETER |
| 970 * SETTER | 970 * SETTER |
| 971 * TOP_LEVEL_VARIABLE | 971 * TOP_LEVEL_VARIABLE |
| 972 * TYPE_PARAMETER | 972 * TYPE_PARAMETER |
| 973 * } | 973 * } |
| 974 */ | 974 */ |
| 975 final Matcher isCompletionSuggestionKind = isIn([ | 975 final Matcher isCompletionSuggestionKind = new MatchesEnum("CompletionSuggestion
Kind", [ |
| 976 "ARGUMENT_LIST", | 976 "ARGUMENT_LIST", |
| 977 "CLASS", | 977 "CLASS", |
| 978 "CLASS_ALIAS", | 978 "CLASS_ALIAS", |
| 979 "CONSTRUCTOR", | 979 "CONSTRUCTOR", |
| 980 "FIELD", | 980 "FIELD", |
| 981 "FUNCTION", | 981 "FUNCTION", |
| 982 "FUNCTION_TYPE_ALIAS", | 982 "FUNCTION_TYPE_ALIAS", |
| 983 "GETTER", | 983 "GETTER", |
| 984 "IMPORT", | 984 "IMPORT", |
| 985 "LIBRARY_PREFIX", | 985 "LIBRARY_PREFIX", |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1001 */ | 1001 */ |
| 1002 final Matcher isDebugContextId = isString; | 1002 final Matcher isDebugContextId = isString; |
| 1003 | 1003 |
| 1004 /** | 1004 /** |
| 1005 * DebugService | 1005 * DebugService |
| 1006 * | 1006 * |
| 1007 * enum { | 1007 * enum { |
| 1008 * LAUNCH_DATA | 1008 * LAUNCH_DATA |
| 1009 * } | 1009 * } |
| 1010 */ | 1010 */ |
| 1011 final Matcher isDebugService = isIn([ | 1011 final Matcher isDebugService = new MatchesEnum("DebugService", [ |
| 1012 "LAUNCH_DATA" | 1012 "LAUNCH_DATA" |
| 1013 ]); | 1013 ]); |
| 1014 | 1014 |
| 1015 /** | 1015 /** |
| 1016 * Element | 1016 * Element |
| 1017 * | 1017 * |
| 1018 * { | 1018 * { |
| 1019 * "kind": ElementKind | 1019 * "kind": ElementKind |
| 1020 * "name": String | 1020 * "name": String |
| 1021 * "location": optional Location | 1021 * "location": optional Location |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1051 * LOCAL_VARIABLE | 1051 * LOCAL_VARIABLE |
| 1052 * METHOD | 1052 * METHOD |
| 1053 * SETTER | 1053 * SETTER |
| 1054 * TOP_LEVEL_VARIABLE | 1054 * TOP_LEVEL_VARIABLE |
| 1055 * TYPE_PARAMETER | 1055 * TYPE_PARAMETER |
| 1056 * UNKNOWN | 1056 * UNKNOWN |
| 1057 * UNIT_TEST_GROUP | 1057 * UNIT_TEST_GROUP |
| 1058 * UNIT_TEST_TEST | 1058 * UNIT_TEST_TEST |
| 1059 * } | 1059 * } |
| 1060 */ | 1060 */ |
| 1061 final Matcher isElementKind = isIn([ | 1061 final Matcher isElementKind = new MatchesEnum("ElementKind", [ |
| 1062 "CLASS", | 1062 "CLASS", |
| 1063 "CLASS_TYPE_ALIAS", | 1063 "CLASS_TYPE_ALIAS", |
| 1064 "COMPILATION_UNIT", | 1064 "COMPILATION_UNIT", |
| 1065 "CONSTRUCTOR", | 1065 "CONSTRUCTOR", |
| 1066 "GETTER", | 1066 "GETTER", |
| 1067 "FIELD", | 1067 "FIELD", |
| 1068 "FUNCTION", | 1068 "FUNCTION", |
| 1069 "FUNCTION_TYPE_ALIAS", | 1069 "FUNCTION_TYPE_ALIAS", |
| 1070 "LIBRARY", | 1070 "LIBRARY", |
| 1071 "LOCAL_VARIABLE", | 1071 "LOCAL_VARIABLE", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 | 1111 |
| 1112 /** | 1112 /** |
| 1113 * ErrorSeverity | 1113 * ErrorSeverity |
| 1114 * | 1114 * |
| 1115 * enum { | 1115 * enum { |
| 1116 * INFO | 1116 * INFO |
| 1117 * WARNING | 1117 * WARNING |
| 1118 * ERROR | 1118 * ERROR |
| 1119 * } | 1119 * } |
| 1120 */ | 1120 */ |
| 1121 final Matcher isErrorSeverity = isIn([ | 1121 final Matcher isErrorSeverity = new MatchesEnum("ErrorSeverity", [ |
| 1122 "INFO", | 1122 "INFO", |
| 1123 "WARNING", | 1123 "WARNING", |
| 1124 "ERROR" | 1124 "ERROR" |
| 1125 ]); | 1125 ]); |
| 1126 | 1126 |
| 1127 /** | 1127 /** |
| 1128 * ErrorType | 1128 * ErrorType |
| 1129 * | 1129 * |
| 1130 * enum { | 1130 * enum { |
| 1131 * COMPILE_TIME_ERROR | 1131 * COMPILE_TIME_ERROR |
| 1132 * HINT | 1132 * HINT |
| 1133 * STATIC_TYPE_WARNING | 1133 * STATIC_TYPE_WARNING |
| 1134 * STATIC_WARNING | 1134 * STATIC_WARNING |
| 1135 * SYNTACTIC_ERROR | 1135 * SYNTACTIC_ERROR |
| 1136 * TODO | 1136 * TODO |
| 1137 * } | 1137 * } |
| 1138 */ | 1138 */ |
| 1139 final Matcher isErrorType = isIn([ | 1139 final Matcher isErrorType = new MatchesEnum("ErrorType", [ |
| 1140 "COMPILE_TIME_ERROR", | 1140 "COMPILE_TIME_ERROR", |
| 1141 "HINT", | 1141 "HINT", |
| 1142 "STATIC_TYPE_WARNING", | 1142 "STATIC_TYPE_WARNING", |
| 1143 "STATIC_WARNING", | 1143 "STATIC_WARNING", |
| 1144 "SYNTACTIC_ERROR", | 1144 "SYNTACTIC_ERROR", |
| 1145 "TODO" | 1145 "TODO" |
| 1146 ]); | 1146 ]); |
| 1147 | 1147 |
| 1148 /** | 1148 /** |
| 1149 * ExecutableFile | 1149 * ExecutableFile |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1161 | 1161 |
| 1162 /** | 1162 /** |
| 1163 * ExecutableKind | 1163 * ExecutableKind |
| 1164 * | 1164 * |
| 1165 * enum { | 1165 * enum { |
| 1166 * CLIENT | 1166 * CLIENT |
| 1167 * EITHER | 1167 * EITHER |
| 1168 * SERVER | 1168 * SERVER |
| 1169 * } | 1169 * } |
| 1170 */ | 1170 */ |
| 1171 final Matcher isExecutableKind = isIn([ | 1171 final Matcher isExecutableKind = new MatchesEnum("ExecutableKind", [ |
| 1172 "CLIENT", | 1172 "CLIENT", |
| 1173 "EITHER", | 1173 "EITHER", |
| 1174 "SERVER" | 1174 "SERVER" |
| 1175 ]); | 1175 ]); |
| 1176 | 1176 |
| 1177 /** | 1177 /** |
| 1178 * FilePath | 1178 * FilePath |
| 1179 * | 1179 * |
| 1180 * String | 1180 * String |
| 1181 */ | 1181 */ |
| 1182 final Matcher isFilePath = isString; | 1182 final Matcher isFilePath = isString; |
| 1183 | 1183 |
| 1184 /** | 1184 /** |
| 1185 * FoldingKind | 1185 * FoldingKind |
| 1186 * | 1186 * |
| 1187 * enum { | 1187 * enum { |
| 1188 * COMMENT | 1188 * COMMENT |
| 1189 * CLASS_MEMBER | 1189 * CLASS_MEMBER |
| 1190 * DIRECTIVES | 1190 * DIRECTIVES |
| 1191 * DOCUMENTATION_COMMENT | 1191 * DOCUMENTATION_COMMENT |
| 1192 * TOP_LEVEL_DECLARATION | 1192 * TOP_LEVEL_DECLARATION |
| 1193 * } | 1193 * } |
| 1194 */ | 1194 */ |
| 1195 final Matcher isFoldingKind = isIn([ | 1195 final Matcher isFoldingKind = new MatchesEnum("FoldingKind", [ |
| 1196 "COMMENT", | 1196 "COMMENT", |
| 1197 "CLASS_MEMBER", | 1197 "CLASS_MEMBER", |
| 1198 "DIRECTIVES", | 1198 "DIRECTIVES", |
| 1199 "DOCUMENTATION_COMMENT", | 1199 "DOCUMENTATION_COMMENT", |
| 1200 "TOP_LEVEL_DECLARATION" | 1200 "TOP_LEVEL_DECLARATION" |
| 1201 ]); | 1201 ]); |
| 1202 | 1202 |
| 1203 /** | 1203 /** |
| 1204 * FoldingRegion | 1204 * FoldingRegion |
| 1205 * | 1205 * |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 * METHOD_DECLARATION_STATIC | 1266 * METHOD_DECLARATION_STATIC |
| 1267 * METHOD | 1267 * METHOD |
| 1268 * METHOD_STATIC | 1268 * METHOD_STATIC |
| 1269 * PARAMETER | 1269 * PARAMETER |
| 1270 * SETTER_DECLARATION | 1270 * SETTER_DECLARATION |
| 1271 * TOP_LEVEL_VARIABLE | 1271 * TOP_LEVEL_VARIABLE |
| 1272 * TYPE_NAME_DYNAMIC | 1272 * TYPE_NAME_DYNAMIC |
| 1273 * TYPE_PARAMETER | 1273 * TYPE_PARAMETER |
| 1274 * } | 1274 * } |
| 1275 */ | 1275 */ |
| 1276 final Matcher isHighlightRegionType = isIn([ | 1276 final Matcher isHighlightRegionType = new MatchesEnum("HighlightRegionType", [ |
| 1277 "ANNOTATION", | 1277 "ANNOTATION", |
| 1278 "BUILT_IN", | 1278 "BUILT_IN", |
| 1279 "CLASS", | 1279 "CLASS", |
| 1280 "COMMENT_BLOCK", | 1280 "COMMENT_BLOCK", |
| 1281 "COMMENT_DOCUMENTATION", | 1281 "COMMENT_DOCUMENTATION", |
| 1282 "COMMENT_END_OF_LINE", | 1282 "COMMENT_END_OF_LINE", |
| 1283 "CONSTRUCTOR", | 1283 "CONSTRUCTOR", |
| 1284 "DIRECTIVE", | 1284 "DIRECTIVE", |
| 1285 "DYNAMIC_TYPE", | 1285 "DYNAMIC_TYPE", |
| 1286 "FIELD", | 1286 "FIELD", |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1375 /** | 1375 /** |
| 1376 * LinkedEditSuggestionKind | 1376 * LinkedEditSuggestionKind |
| 1377 * | 1377 * |
| 1378 * enum { | 1378 * enum { |
| 1379 * METHOD | 1379 * METHOD |
| 1380 * PARAMETER | 1380 * PARAMETER |
| 1381 * TYPE | 1381 * TYPE |
| 1382 * VARIABLE | 1382 * VARIABLE |
| 1383 * } | 1383 * } |
| 1384 */ | 1384 */ |
| 1385 final Matcher isLinkedEditSuggestionKind = isIn([ | 1385 final Matcher isLinkedEditSuggestionKind = new MatchesEnum("LinkedEditSuggestion
Kind", [ |
| 1386 "METHOD", | 1386 "METHOD", |
| 1387 "PARAMETER", | 1387 "PARAMETER", |
| 1388 "TYPE", | 1388 "TYPE", |
| 1389 "VARIABLE" | 1389 "VARIABLE" |
| 1390 ]); | 1390 ]); |
| 1391 | 1391 |
| 1392 /** | 1392 /** |
| 1393 * Location | 1393 * Location |
| 1394 * | 1394 * |
| 1395 * { | 1395 * { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 * enum { | 1527 * enum { |
| 1528 * CONVERT_GETTER_TO_METHOD | 1528 * CONVERT_GETTER_TO_METHOD |
| 1529 * CONVERT_METHOD_TO_GETTER | 1529 * CONVERT_METHOD_TO_GETTER |
| 1530 * EXTRACT_LOCAL_VARIABLE | 1530 * EXTRACT_LOCAL_VARIABLE |
| 1531 * EXTRACT_METHOD | 1531 * EXTRACT_METHOD |
| 1532 * INLINE_LOCAL_VARIABLE | 1532 * INLINE_LOCAL_VARIABLE |
| 1533 * INLINE_METHOD | 1533 * INLINE_METHOD |
| 1534 * RENAME | 1534 * RENAME |
| 1535 * } | 1535 * } |
| 1536 */ | 1536 */ |
| 1537 final Matcher isRefactoringKind = isIn([ | 1537 final Matcher isRefactoringKind = new MatchesEnum("RefactoringKind", [ |
| 1538 "CONVERT_GETTER_TO_METHOD", | 1538 "CONVERT_GETTER_TO_METHOD", |
| 1539 "CONVERT_METHOD_TO_GETTER", | 1539 "CONVERT_METHOD_TO_GETTER", |
| 1540 "EXTRACT_LOCAL_VARIABLE", | 1540 "EXTRACT_LOCAL_VARIABLE", |
| 1541 "EXTRACT_METHOD", | 1541 "EXTRACT_METHOD", |
| 1542 "INLINE_LOCAL_VARIABLE", | 1542 "INLINE_LOCAL_VARIABLE", |
| 1543 "INLINE_METHOD", | 1543 "INLINE_METHOD", |
| 1544 "RENAME" | 1544 "RENAME" |
| 1545 ]); | 1545 ]); |
| 1546 | 1546 |
| 1547 /** | 1547 /** |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1563 /** | 1563 /** |
| 1564 * RefactoringProblemSeverity | 1564 * RefactoringProblemSeverity |
| 1565 * | 1565 * |
| 1566 * enum { | 1566 * enum { |
| 1567 * INFO | 1567 * INFO |
| 1568 * WARNING | 1568 * WARNING |
| 1569 * ERROR | 1569 * ERROR |
| 1570 * FATAL | 1570 * FATAL |
| 1571 * } | 1571 * } |
| 1572 */ | 1572 */ |
| 1573 final Matcher isRefactoringProblemSeverity = isIn([ | 1573 final Matcher isRefactoringProblemSeverity = new MatchesEnum("RefactoringProblem
Severity", [ |
| 1574 "INFO", | 1574 "INFO", |
| 1575 "WARNING", | 1575 "WARNING", |
| 1576 "ERROR", | 1576 "ERROR", |
| 1577 "FATAL" | 1577 "FATAL" |
| 1578 ]); | 1578 ]); |
| 1579 | 1579 |
| 1580 /** | 1580 /** |
| 1581 * RemoveContentOverlay | 1581 * RemoveContentOverlay |
| 1582 * | 1582 * |
| 1583 * { | 1583 * { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1619 * | 1619 * |
| 1620 * enum { | 1620 * enum { |
| 1621 * DECLARATION | 1621 * DECLARATION |
| 1622 * INVOCATION | 1622 * INVOCATION |
| 1623 * READ | 1623 * READ |
| 1624 * READ_WRITE | 1624 * READ_WRITE |
| 1625 * REFERENCE | 1625 * REFERENCE |
| 1626 * WRITE | 1626 * WRITE |
| 1627 * } | 1627 * } |
| 1628 */ | 1628 */ |
| 1629 final Matcher isSearchResultKind = isIn([ | 1629 final Matcher isSearchResultKind = new MatchesEnum("SearchResultKind", [ |
| 1630 "DECLARATION", | 1630 "DECLARATION", |
| 1631 "INVOCATION", | 1631 "INVOCATION", |
| 1632 "READ", | 1632 "READ", |
| 1633 "READ_WRITE", | 1633 "READ_WRITE", |
| 1634 "REFERENCE", | 1634 "REFERENCE", |
| 1635 "WRITE" | 1635 "WRITE" |
| 1636 ]); | 1636 ]); |
| 1637 | 1637 |
| 1638 /** | 1638 /** |
| 1639 * ServerService | 1639 * ServerService |
| 1640 * | 1640 * |
| 1641 * enum { | 1641 * enum { |
| 1642 * STATUS | 1642 * STATUS |
| 1643 * } | 1643 * } |
| 1644 */ | 1644 */ |
| 1645 final Matcher isServerService = isIn([ | 1645 final Matcher isServerService = new MatchesEnum("ServerService", [ |
| 1646 "STATUS" | 1646 "STATUS" |
| 1647 ]); | 1647 ]); |
| 1648 | 1648 |
| 1649 /** | 1649 /** |
| 1650 * SourceChange | 1650 * SourceChange |
| 1651 * | 1651 * |
| 1652 * { | 1652 * { |
| 1653 * "message": String | 1653 * "message": String |
| 1654 * "edits": List<SourceFileEdit> | 1654 * "edits": List<SourceFileEdit> |
| 1655 * "linkedEditGroups": List<LinkedEditGroup> | 1655 * "linkedEditGroups": List<LinkedEditGroup> |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1866 * | 1866 * |
| 1867 * { | 1867 * { |
| 1868 * "newName": String | 1868 * "newName": String |
| 1869 * } | 1869 * } |
| 1870 */ | 1870 */ |
| 1871 final Matcher isRenameOptions = new MatchesJsonObject( | 1871 final Matcher isRenameOptions = new MatchesJsonObject( |
| 1872 "rename options", { | 1872 "rename options", { |
| 1873 "newName": isString | 1873 "newName": isString |
| 1874 }); | 1874 }); |
| 1875 | 1875 |
| OLD | NEW |