| 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/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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 * { | 1046 * { |
| 1047 * "contexts": List<ContextData> | 1047 * "contexts": List<ContextData> |
| 1048 * } | 1048 * } |
| 1049 */ | 1049 */ |
| 1050 final Matcher isDiagnosticGetDiagnosticsResult = new LazyMatcher(() => new Match
esJsonObject( | 1050 final Matcher isDiagnosticGetDiagnosticsResult = new LazyMatcher(() => new Match
esJsonObject( |
| 1051 "diagnostic.getDiagnostics result", { | 1051 "diagnostic.getDiagnostics result", { |
| 1052 "contexts": isListOf(isContextData) | 1052 "contexts": isListOf(isContextData) |
| 1053 })); | 1053 })); |
| 1054 | 1054 |
| 1055 /** | 1055 /** |
| 1056 * diagnostic.getServerPort params |
| 1057 */ |
| 1058 final Matcher isDiagnosticGetServerPortParams = isNull; |
| 1059 |
| 1060 /** |
| 1061 * diagnostic.getServerPort result |
| 1062 * |
| 1063 * { |
| 1064 * "port": int |
| 1065 * } |
| 1066 */ |
| 1067 final Matcher isDiagnosticGetServerPortResult = new LazyMatcher(() => new Matche
sJsonObject( |
| 1068 "diagnostic.getServerPort result", { |
| 1069 "port": isInt |
| 1070 })); |
| 1071 |
| 1072 /** |
| 1056 * AddContentOverlay | 1073 * AddContentOverlay |
| 1057 * | 1074 * |
| 1058 * { | 1075 * { |
| 1059 * "type": "add" | 1076 * "type": "add" |
| 1060 * "content": String | 1077 * "content": String |
| 1061 * } | 1078 * } |
| 1062 */ | 1079 */ |
| 1063 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject( | 1080 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject( |
| 1064 "AddContentOverlay", { | 1081 "AddContentOverlay", { |
| 1065 "type": equals("add"), | 1082 "type": equals("add"), |
| (...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2111 * GET_REACHABLE_SOURCES_INVALID_FILE | 2128 * GET_REACHABLE_SOURCES_INVALID_FILE |
| 2112 * INVALID_ANALYSIS_ROOT | 2129 * INVALID_ANALYSIS_ROOT |
| 2113 * INVALID_EXECUTION_CONTEXT | 2130 * INVALID_EXECUTION_CONTEXT |
| 2114 * INVALID_FILE_PATH_FORMAT | 2131 * INVALID_FILE_PATH_FORMAT |
| 2115 * INVALID_OVERLAY_CHANGE | 2132 * INVALID_OVERLAY_CHANGE |
| 2116 * INVALID_PARAMETER | 2133 * INVALID_PARAMETER |
| 2117 * INVALID_REQUEST | 2134 * INVALID_REQUEST |
| 2118 * NO_INDEX_GENERATED | 2135 * NO_INDEX_GENERATED |
| 2119 * ORGANIZE_DIRECTIVES_ERROR | 2136 * ORGANIZE_DIRECTIVES_ERROR |
| 2120 * REFACTORING_REQUEST_CANCELLED | 2137 * REFACTORING_REQUEST_CANCELLED |
| 2138 * ERROR_HANDLING_REQUEST |
| 2121 * SERVER_ALREADY_STARTED | 2139 * SERVER_ALREADY_STARTED |
| 2122 * SERVER_ERROR | 2140 * SERVER_ERROR |
| 2123 * SORT_MEMBERS_INVALID_FILE | 2141 * SORT_MEMBERS_INVALID_FILE |
| 2124 * SORT_MEMBERS_PARSE_ERRORS | 2142 * SORT_MEMBERS_PARSE_ERRORS |
| 2125 * UNANALYZED_PRIORITY_FILES | 2143 * UNANALYZED_PRIORITY_FILES |
| 2126 * UNKNOWN_REQUEST | 2144 * UNKNOWN_REQUEST |
| 2127 * UNKNOWN_SOURCE | 2145 * UNKNOWN_SOURCE |
| 2128 * UNSUPPORTED_FEATURE | 2146 * UNSUPPORTED_FEATURE |
| 2129 * } | 2147 * } |
| 2130 */ | 2148 */ |
| 2131 final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [ | 2149 final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [ |
| 2132 "CONTENT_MODIFIED", | 2150 "CONTENT_MODIFIED", |
| 2133 "FILE_NOT_ANALYZED", | 2151 "FILE_NOT_ANALYZED", |
| 2134 "FORMAT_INVALID_FILE", | 2152 "FORMAT_INVALID_FILE", |
| 2135 "FORMAT_WITH_ERRORS", | 2153 "FORMAT_WITH_ERRORS", |
| 2136 "GET_ERRORS_INVALID_FILE", | 2154 "GET_ERRORS_INVALID_FILE", |
| 2137 "GET_NAVIGATION_INVALID_FILE", | 2155 "GET_NAVIGATION_INVALID_FILE", |
| 2138 "GET_REACHABLE_SOURCES_INVALID_FILE", | 2156 "GET_REACHABLE_SOURCES_INVALID_FILE", |
| 2139 "INVALID_ANALYSIS_ROOT", | 2157 "INVALID_ANALYSIS_ROOT", |
| 2140 "INVALID_EXECUTION_CONTEXT", | 2158 "INVALID_EXECUTION_CONTEXT", |
| 2141 "INVALID_FILE_PATH_FORMAT", | 2159 "INVALID_FILE_PATH_FORMAT", |
| 2142 "INVALID_OVERLAY_CHANGE", | 2160 "INVALID_OVERLAY_CHANGE", |
| 2143 "INVALID_PARAMETER", | 2161 "INVALID_PARAMETER", |
| 2144 "INVALID_REQUEST", | 2162 "INVALID_REQUEST", |
| 2145 "NO_INDEX_GENERATED", | 2163 "NO_INDEX_GENERATED", |
| 2146 "ORGANIZE_DIRECTIVES_ERROR", | 2164 "ORGANIZE_DIRECTIVES_ERROR", |
| 2147 "REFACTORING_REQUEST_CANCELLED", | 2165 "REFACTORING_REQUEST_CANCELLED", |
| 2166 "ERROR_HANDLING_REQUEST", |
| 2148 "SERVER_ALREADY_STARTED", | 2167 "SERVER_ALREADY_STARTED", |
| 2149 "SERVER_ERROR", | 2168 "SERVER_ERROR", |
| 2150 "SORT_MEMBERS_INVALID_FILE", | 2169 "SORT_MEMBERS_INVALID_FILE", |
| 2151 "SORT_MEMBERS_PARSE_ERRORS", | 2170 "SORT_MEMBERS_PARSE_ERRORS", |
| 2152 "UNANALYZED_PRIORITY_FILES", | 2171 "UNANALYZED_PRIORITY_FILES", |
| 2153 "UNKNOWN_REQUEST", | 2172 "UNKNOWN_REQUEST", |
| 2154 "UNKNOWN_SOURCE", | 2173 "UNKNOWN_SOURCE", |
| 2155 "UNSUPPORTED_FEATURE" | 2174 "UNSUPPORTED_FEATURE" |
| 2156 ]); | 2175 ]); |
| 2157 | 2176 |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2484 * | 2503 * |
| 2485 * { | 2504 * { |
| 2486 * "newName": String | 2505 * "newName": String |
| 2487 * } | 2506 * } |
| 2488 */ | 2507 */ |
| 2489 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( | 2508 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( |
| 2490 "rename options", { | 2509 "rename options", { |
| 2491 "newName": isString | 2510 "newName": isString |
| 2492 })); | 2511 })); |
| 2493 | 2512 |
| OLD | NEW |