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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 }, optionalFields: { | 236 }, optionalFields: { |
237 "packageRoots": isMapOf(isFilePath, isFilePath) | 237 "packageRoots": isMapOf(isFilePath, isFilePath) |
238 })); | 238 })); |
239 | 239 |
240 /** | 240 /** |
241 * analysis.setAnalysisRoots result | 241 * analysis.setAnalysisRoots result |
242 */ | 242 */ |
243 final Matcher isAnalysisSetAnalysisRootsResult = isNull; | 243 final Matcher isAnalysisSetAnalysisRootsResult = isNull; |
244 | 244 |
245 /** | 245 /** |
| 246 * analysis.setGeneralSubscriptions params |
| 247 * |
| 248 * { |
| 249 * "subscriptions": List<GeneralAnalysisService> |
| 250 * } |
| 251 */ |
| 252 final Matcher isAnalysisSetGeneralSubscriptionsParams = new LazyMatcher(() => ne
w MatchesJsonObject( |
| 253 "analysis.setGeneralSubscriptions params", { |
| 254 "subscriptions": isListOf(isGeneralAnalysisService) |
| 255 })); |
| 256 |
| 257 /** |
| 258 * analysis.setGeneralSubscriptions result |
| 259 */ |
| 260 final Matcher isAnalysisSetGeneralSubscriptionsResult = isNull; |
| 261 |
| 262 /** |
246 * analysis.setPriorityFiles params | 263 * analysis.setPriorityFiles params |
247 * | 264 * |
248 * { | 265 * { |
249 * "files": List<FilePath> | 266 * "files": List<FilePath> |
250 * } | 267 * } |
251 */ | 268 */ |
252 final Matcher isAnalysisSetPriorityFilesParams = new LazyMatcher(() => new Match
esJsonObject( | 269 final Matcher isAnalysisSetPriorityFilesParams = new LazyMatcher(() => new Match
esJsonObject( |
253 "analysis.setPriorityFiles params", { | 270 "analysis.setPriorityFiles params", { |
254 "files": isListOf(isFilePath) | 271 "files": isListOf(isFilePath) |
255 })); | 272 })); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 "analysis.updateOptions params", { | 325 "analysis.updateOptions params", { |
309 "options": isAnalysisOptions | 326 "options": isAnalysisOptions |
310 })); | 327 })); |
311 | 328 |
312 /** | 329 /** |
313 * analysis.updateOptions result | 330 * analysis.updateOptions result |
314 */ | 331 */ |
315 final Matcher isAnalysisUpdateOptionsResult = isNull; | 332 final Matcher isAnalysisUpdateOptionsResult = isNull; |
316 | 333 |
317 /** | 334 /** |
| 335 * analysis.analyzedFiles params |
| 336 * |
| 337 * { |
| 338 * "directories": List<FilePath> |
| 339 * } |
| 340 */ |
| 341 final Matcher isAnalysisAnalyzedFilesParams = new LazyMatcher(() => new MatchesJ
sonObject( |
| 342 "analysis.analyzedFiles params", { |
| 343 "directories": isListOf(isFilePath) |
| 344 })); |
| 345 |
| 346 /** |
318 * analysis.errors params | 347 * analysis.errors params |
319 * | 348 * |
320 * { | 349 * { |
321 * "file": FilePath | 350 * "file": FilePath |
322 * "errors": List<AnalysisError> | 351 * "errors": List<AnalysisError> |
323 * } | 352 * } |
324 */ | 353 */ |
325 final Matcher isAnalysisErrorsParams = new LazyMatcher(() => new MatchesJsonObje
ct( | 354 final Matcher isAnalysisErrorsParams = new LazyMatcher(() => new MatchesJsonObje
ct( |
326 "analysis.errors params", { | 355 "analysis.errors params", { |
327 "file": isFilePath, | 356 "file": isFilePath, |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 * } | 1367 * } |
1339 */ | 1368 */ |
1340 final Matcher isFoldingRegion = new LazyMatcher(() => new MatchesJsonObject( | 1369 final Matcher isFoldingRegion = new LazyMatcher(() => new MatchesJsonObject( |
1341 "FoldingRegion", { | 1370 "FoldingRegion", { |
1342 "kind": isFoldingKind, | 1371 "kind": isFoldingKind, |
1343 "offset": isInt, | 1372 "offset": isInt, |
1344 "length": isInt | 1373 "length": isInt |
1345 })); | 1374 })); |
1346 | 1375 |
1347 /** | 1376 /** |
| 1377 * GeneralAnalysisService |
| 1378 * |
| 1379 * enum { |
| 1380 * ANALYZED_FILES |
| 1381 * } |
| 1382 */ |
| 1383 final Matcher isGeneralAnalysisService = new MatchesEnum("GeneralAnalysisService
", [ |
| 1384 "ANALYZED_FILES" |
| 1385 ]); |
| 1386 |
| 1387 /** |
1348 * HighlightRegion | 1388 * HighlightRegion |
1349 * | 1389 * |
1350 * { | 1390 * { |
1351 * "type": HighlightRegionType | 1391 * "type": HighlightRegionType |
1352 * "offset": int | 1392 * "offset": int |
1353 * "length": int | 1393 * "length": int |
1354 * } | 1394 * } |
1355 */ | 1395 */ |
1356 final Matcher isHighlightRegion = new LazyMatcher(() => new MatchesJsonObject( | 1396 final Matcher isHighlightRegion = new LazyMatcher(() => new MatchesJsonObject( |
1357 "HighlightRegion", { | 1397 "HighlightRegion", { |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2194 * | 2234 * |
2195 * { | 2235 * { |
2196 * "newName": String | 2236 * "newName": String |
2197 * } | 2237 * } |
2198 */ | 2238 */ |
2199 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( | 2239 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( |
2200 "rename options", { | 2240 "rename options", { |
2201 "newName": isString | 2241 "newName": isString |
2202 })); | 2242 })); |
2203 | 2243 |
OLD | NEW |