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 /** | 9 /** |
10 * Matchers for data types defined in the analysis server API | 10 * Matchers for data types defined in the analysis server API |
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1023 * enum { | 1023 * enum { |
1024 * CONTENT_MODIFIED | 1024 * CONTENT_MODIFIED |
1025 * DEBUG_PORT_COULD_NOT_BE_OPENED | 1025 * DEBUG_PORT_COULD_NOT_BE_OPENED |
1026 * FILE_NOT_ANALYZED | 1026 * FILE_NOT_ANALYZED |
1027 * FORMAT_INVALID_FILE | 1027 * FORMAT_INVALID_FILE |
1028 * FORMAT_WITH_ERRORS | 1028 * FORMAT_WITH_ERRORS |
1029 * GET_ERRORS_INVALID_FILE | 1029 * GET_ERRORS_INVALID_FILE |
1030 * GET_IMPORTED_ELEMENTS_INVALID_FILE | 1030 * GET_IMPORTED_ELEMENTS_INVALID_FILE |
1031 * GET_NAVIGATION_INVALID_FILE | 1031 * GET_NAVIGATION_INVALID_FILE |
1032 * GET_REACHABLE_SOURCES_INVALID_FILE | 1032 * GET_REACHABLE_SOURCES_INVALID_FILE |
| 1033 * IMPORT_ELEMENTS_INVALID_FILE |
1033 * INVALID_ANALYSIS_ROOT | 1034 * INVALID_ANALYSIS_ROOT |
1034 * INVALID_EXECUTION_CONTEXT | 1035 * INVALID_EXECUTION_CONTEXT |
1035 * INVALID_FILE_PATH_FORMAT | 1036 * INVALID_FILE_PATH_FORMAT |
1036 * INVALID_OVERLAY_CHANGE | 1037 * INVALID_OVERLAY_CHANGE |
1037 * INVALID_PARAMETER | 1038 * INVALID_PARAMETER |
1038 * INVALID_REQUEST | 1039 * INVALID_REQUEST |
1039 * ORGANIZE_DIRECTIVES_ERROR | 1040 * ORGANIZE_DIRECTIVES_ERROR |
1040 * REFACTORING_REQUEST_CANCELLED | 1041 * REFACTORING_REQUEST_CANCELLED |
1041 * SERVER_ALREADY_STARTED | 1042 * SERVER_ALREADY_STARTED |
1042 * SERVER_ERROR | 1043 * SERVER_ERROR |
1043 * SORT_MEMBERS_INVALID_FILE | 1044 * SORT_MEMBERS_INVALID_FILE |
1044 * SORT_MEMBERS_PARSE_ERRORS | 1045 * SORT_MEMBERS_PARSE_ERRORS |
1045 * UNANALYZED_PRIORITY_FILES | 1046 * UNANALYZED_PRIORITY_FILES |
1046 * UNKNOWN_REQUEST | 1047 * UNKNOWN_REQUEST |
1047 * UNKNOWN_SOURCE | 1048 * UNKNOWN_SOURCE |
1048 * UNSUPPORTED_FEATURE | 1049 * UNSUPPORTED_FEATURE |
1049 * } | 1050 * } |
1050 */ | 1051 */ |
1051 final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [ | 1052 final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [ |
1052 "CONTENT_MODIFIED", | 1053 "CONTENT_MODIFIED", |
1053 "DEBUG_PORT_COULD_NOT_BE_OPENED", | 1054 "DEBUG_PORT_COULD_NOT_BE_OPENED", |
1054 "FILE_NOT_ANALYZED", | 1055 "FILE_NOT_ANALYZED", |
1055 "FORMAT_INVALID_FILE", | 1056 "FORMAT_INVALID_FILE", |
1056 "FORMAT_WITH_ERRORS", | 1057 "FORMAT_WITH_ERRORS", |
1057 "GET_ERRORS_INVALID_FILE", | 1058 "GET_ERRORS_INVALID_FILE", |
1058 "GET_IMPORTED_ELEMENTS_INVALID_FILE", | 1059 "GET_IMPORTED_ELEMENTS_INVALID_FILE", |
1059 "GET_NAVIGATION_INVALID_FILE", | 1060 "GET_NAVIGATION_INVALID_FILE", |
1060 "GET_REACHABLE_SOURCES_INVALID_FILE", | 1061 "GET_REACHABLE_SOURCES_INVALID_FILE", |
| 1062 "IMPORT_ELEMENTS_INVALID_FILE", |
1061 "INVALID_ANALYSIS_ROOT", | 1063 "INVALID_ANALYSIS_ROOT", |
1062 "INVALID_EXECUTION_CONTEXT", | 1064 "INVALID_EXECUTION_CONTEXT", |
1063 "INVALID_FILE_PATH_FORMAT", | 1065 "INVALID_FILE_PATH_FORMAT", |
1064 "INVALID_OVERLAY_CHANGE", | 1066 "INVALID_OVERLAY_CHANGE", |
1065 "INVALID_PARAMETER", | 1067 "INVALID_PARAMETER", |
1066 "INVALID_REQUEST", | 1068 "INVALID_REQUEST", |
1067 "ORGANIZE_DIRECTIVES_ERROR", | 1069 "ORGANIZE_DIRECTIVES_ERROR", |
1068 "REFACTORING_REQUEST_CANCELLED", | 1070 "REFACTORING_REQUEST_CANCELLED", |
1069 "SERVER_ALREADY_STARTED", | 1071 "SERVER_ALREADY_STARTED", |
1070 "SERVER_ERROR", | 1072 "SERVER_ERROR", |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 */ | 1307 */ |
1306 final Matcher isAnalysisGetImportedElementsParams = new LazyMatcher(() => | 1308 final Matcher isAnalysisGetImportedElementsParams = new LazyMatcher(() => |
1307 new MatchesJsonObject("analysis.getImportedElements params", | 1309 new MatchesJsonObject("analysis.getImportedElements params", |
1308 {"file": isFilePath, "offset": isInt, "length": isInt})); | 1310 {"file": isFilePath, "offset": isInt, "length": isInt})); |
1309 | 1311 |
1310 /** | 1312 /** |
1311 * analysis.getImportedElements result | 1313 * analysis.getImportedElements result |
1312 * | 1314 * |
1313 * { | 1315 * { |
1314 * "elements": List<ImportedElements> | 1316 * "elements": List<ImportedElements> |
1315 * "complete": bool | |
1316 * } | 1317 * } |
1317 */ | 1318 */ |
1318 final Matcher isAnalysisGetImportedElementsResult = new LazyMatcher(() => | 1319 final Matcher isAnalysisGetImportedElementsResult = new LazyMatcher(() => |
1319 new MatchesJsonObject("analysis.getImportedElements result", | 1320 new MatchesJsonObject("analysis.getImportedElements result", |
1320 {"elements": isListOf(isImportedElements), "complete": isBool})); | 1321 {"elements": isListOf(isImportedElements)})); |
1321 | 1322 |
1322 /** | 1323 /** |
1323 * analysis.getLibraryDependencies params | 1324 * analysis.getLibraryDependencies params |
1324 */ | 1325 */ |
1325 final Matcher isAnalysisGetLibraryDependenciesParams = isNull; | 1326 final Matcher isAnalysisGetLibraryDependenciesParams = isNull; |
1326 | 1327 |
1327 /** | 1328 /** |
1328 * analysis.getLibraryDependencies result | 1329 * analysis.getLibraryDependencies result |
1329 * | 1330 * |
1330 * { | 1331 * { |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1981 */ | 1982 */ |
1982 final Matcher isEditImportElementsParams = new LazyMatcher(() => | 1983 final Matcher isEditImportElementsParams = new LazyMatcher(() => |
1983 new MatchesJsonObject("edit.importElements params", | 1984 new MatchesJsonObject("edit.importElements params", |
1984 {"file": isFilePath, "elements": isListOf(isImportedElements)})); | 1985 {"file": isFilePath, "elements": isListOf(isImportedElements)})); |
1985 | 1986 |
1986 /** | 1987 /** |
1987 * edit.importElements result | 1988 * edit.importElements result |
1988 * | 1989 * |
1989 * { | 1990 * { |
1990 * "edits": List<SourceEdit> | 1991 * "edits": List<SourceEdit> |
1991 * "complete": bool | |
1992 * } | 1992 * } |
1993 */ | 1993 */ |
1994 final Matcher isEditImportElementsResult = new LazyMatcher(() => | 1994 final Matcher isEditImportElementsResult = new LazyMatcher(() => |
1995 new MatchesJsonObject("edit.importElements result", | 1995 new MatchesJsonObject( |
1996 {"edits": isListOf(isSourceEdit), "complete": isBool})); | 1996 "edit.importElements result", {"edits": isListOf(isSourceEdit)})); |
1997 | 1997 |
1998 /** | 1998 /** |
1999 * edit.isPostfixCompletionApplicable params | 1999 * edit.isPostfixCompletionApplicable params |
2000 * | 2000 * |
2001 * { | 2001 * { |
2002 * "file": FilePath | 2002 * "file": FilePath |
2003 * "key": String | 2003 * "key": String |
2004 * "offset": int | 2004 * "offset": int |
2005 * } | 2005 * } |
2006 */ | 2006 */ |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2544 * server.status params | 2544 * server.status params |
2545 * | 2545 * |
2546 * { | 2546 * { |
2547 * "analysis": optional AnalysisStatus | 2547 * "analysis": optional AnalysisStatus |
2548 * "pub": optional PubStatus | 2548 * "pub": optional PubStatus |
2549 * } | 2549 * } |
2550 */ | 2550 */ |
2551 final Matcher isServerStatusParams = new LazyMatcher(() => | 2551 final Matcher isServerStatusParams = new LazyMatcher(() => |
2552 new MatchesJsonObject("server.status params", null, | 2552 new MatchesJsonObject("server.status params", null, |
2553 optionalFields: {"analysis": isAnalysisStatus, "pub": isPubStatus})); | 2553 optionalFields: {"analysis": isAnalysisStatus, "pub": isPubStatus})); |
OLD | NEW |