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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 "IMPORT", | 199 "IMPORT", |
200 "IDENTIFIER", | 200 "IDENTIFIER", |
201 "INVOCATION", | 201 "INVOCATION", |
202 "KEYWORD", | 202 "KEYWORD", |
203 "NAMED_ARGUMENT", | 203 "NAMED_ARGUMENT", |
204 "OPTIONAL_ARGUMENT", | 204 "OPTIONAL_ARGUMENT", |
205 "PARAMETER" | 205 "PARAMETER" |
206 ]); | 206 ]); |
207 | 207 |
208 /** | 208 /** |
209 * ContextBuilderOptions | |
210 * | |
211 * { | |
212 * "dartSdkSummaryPath": optional FilePath | |
213 * "defaultAnalysisOptionsFilePath": optional List<FilePath> | |
214 * "declaredVariables": optional Map<String, String> | |
215 * "defaultPackageFilePath": optional List<FilePath> | |
216 * "defaultPackagesDirectoryPath": optional List<FilePath> | |
217 * } | |
218 */ | |
219 final Matcher isContextBuilderOptions = new LazyMatcher( | |
220 () => new MatchesJsonObject("ContextBuilderOptions", null, optionalFields: { | |
221 "dartSdkSummaryPath": isFilePath, | |
222 "defaultAnalysisOptionsFilePath": isListOf(isFilePath), | |
223 "declaredVariables": isMapOf(isString, isString), | |
224 "defaultPackageFilePath": isListOf(isFilePath), | |
225 "defaultPackagesDirectoryPath": isListOf(isFilePath) | |
226 })); | |
227 | |
228 /** | |
229 * ContextRoot | 209 * ContextRoot |
230 * | 210 * |
231 * { | 211 * { |
232 * "root": FilePath | 212 * "root": FilePath |
233 * "exclude": List<FilePath> | 213 * "exclude": List<FilePath> |
234 * "optionsFile": optional FilePath | 214 * "optionsFile": optional FilePath |
235 * } | 215 * } |
236 */ | 216 */ |
237 final Matcher isContextRoot = new LazyMatcher(() => new MatchesJsonObject( | 217 final Matcher isContextRoot = new LazyMatcher(() => new MatchesJsonObject( |
238 "ContextRoot", {"root": isFilePath, "exclude": isListOf(isFilePath)}, | 218 "ContextRoot", {"root": isFilePath, "exclude": isListOf(isFilePath)}, |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 final Matcher isAnalysisReanalyzeParams = new LazyMatcher(() => | 998 final Matcher isAnalysisReanalyzeParams = new LazyMatcher(() => |
1019 new MatchesJsonObject("analysis.reanalyze params", null, | 999 new MatchesJsonObject("analysis.reanalyze params", null, |
1020 optionalFields: {"roots": isListOf(isFilePath)})); | 1000 optionalFields: {"roots": isListOf(isFilePath)})); |
1021 | 1001 |
1022 /** | 1002 /** |
1023 * analysis.reanalyze result | 1003 * analysis.reanalyze result |
1024 */ | 1004 */ |
1025 final Matcher isAnalysisReanalyzeResult = isNull; | 1005 final Matcher isAnalysisReanalyzeResult = isNull; |
1026 | 1006 |
1027 /** | 1007 /** |
1028 * analysis.setContextBuilderOptions params | |
1029 * | |
1030 * { | |
1031 * "options": ContextBuilderOptions | |
1032 * } | |
1033 */ | |
1034 final Matcher isAnalysisSetContextBuilderOptionsParams = new LazyMatcher(() => | |
1035 new MatchesJsonObject("analysis.setContextBuilderOptions params", | |
1036 {"options": isContextBuilderOptions})); | |
1037 | |
1038 /** | |
1039 * analysis.setContextBuilderOptions result | |
1040 */ | |
1041 final Matcher isAnalysisSetContextBuilderOptionsResult = isNull; | |
1042 | |
1043 /** | |
1044 * analysis.setContextRoots params | 1008 * analysis.setContextRoots params |
1045 * | 1009 * |
1046 * { | 1010 * { |
1047 * "roots": List<ContextRoot> | 1011 * "roots": List<ContextRoot> |
1048 * } | 1012 * } |
1049 */ | 1013 */ |
1050 final Matcher isAnalysisSetContextRootsParams = new LazyMatcher(() => | 1014 final Matcher isAnalysisSetContextRootsParams = new LazyMatcher(() => |
1051 new MatchesJsonObject( | 1015 new MatchesJsonObject( |
1052 "analysis.setContextRoots params", {"roots": isListOf(isContextRoot)})); | 1016 "analysis.setContextRoots params", {"roots": isListOf(isContextRoot)})); |
1053 | 1017 |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1493 | 1457 |
1494 /** | 1458 /** |
1495 * rename options | 1459 * rename options |
1496 * | 1460 * |
1497 * { | 1461 * { |
1498 * "newName": String | 1462 * "newName": String |
1499 * } | 1463 * } |
1500 */ | 1464 */ |
1501 final Matcher isRenameOptions = new LazyMatcher( | 1465 final Matcher isRenameOptions = new LazyMatcher( |
1502 () => new MatchesJsonObject("rename options", {"newName": isString})); | 1466 () => new MatchesJsonObject("rename options", {"newName": isString})); |
OLD | NEW |