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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 * "path": FilePath | 705 * "path": FilePath |
706 * "prefix": String | 706 * "prefix": String |
707 * "elements": List<String> | 707 * "elements": List<String> |
708 * } | 708 * } |
709 */ | 709 */ |
710 final Matcher isImportedElements = new LazyMatcher(() => new MatchesJsonObject( | 710 final Matcher isImportedElements = new LazyMatcher(() => new MatchesJsonObject( |
711 "ImportedElements", | 711 "ImportedElements", |
712 {"path": isFilePath, "prefix": isString, "elements": isListOf(isString)})); | 712 {"path": isFilePath, "prefix": isString, "elements": isListOf(isString)})); |
713 | 713 |
714 /** | 714 /** |
| 715 * KytheEntry |
| 716 * |
| 717 * { |
| 718 * "source": KytheVName |
| 719 * "kind": String |
| 720 * "target": KytheVName |
| 721 * "fact": String |
| 722 * "value": List<int> |
| 723 * } |
| 724 */ |
| 725 final Matcher isKytheEntry = |
| 726 new LazyMatcher(() => new MatchesJsonObject("KytheEntry", { |
| 727 "source": isKytheVName, |
| 728 "kind": isString, |
| 729 "target": isKytheVName, |
| 730 "fact": isString, |
| 731 "value": isListOf(isInt) |
| 732 })); |
| 733 |
| 734 /** |
| 735 * KytheVName |
| 736 * |
| 737 * { |
| 738 * "signature": String |
| 739 * "corpus": String |
| 740 * "root": String |
| 741 * "path": String |
| 742 * "language": String |
| 743 * } |
| 744 */ |
| 745 final Matcher isKytheVName = |
| 746 new LazyMatcher(() => new MatchesJsonObject("KytheVName", { |
| 747 "signature": isString, |
| 748 "corpus": isString, |
| 749 "root": isString, |
| 750 "path": isString, |
| 751 "language": isString |
| 752 })); |
| 753 |
| 754 /** |
715 * LinkedEditGroup | 755 * LinkedEditGroup |
716 * | 756 * |
717 * { | 757 * { |
718 * "positions": List<Position> | 758 * "positions": List<Position> |
719 * "length": int | 759 * "length": int |
720 * "suggestions": List<LinkedEditSuggestion> | 760 * "suggestions": List<LinkedEditSuggestion> |
721 * } | 761 * } |
722 */ | 762 */ |
723 final Matcher isLinkedEditGroup = | 763 final Matcher isLinkedEditGroup = |
724 new LazyMatcher(() => new MatchesJsonObject("LinkedEditGroup", { | 764 new LazyMatcher(() => new MatchesJsonObject("LinkedEditGroup", { |
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2312 * { | 2352 * { |
2313 * "deleteSource": bool | 2353 * "deleteSource": bool |
2314 * "inlineAll": bool | 2354 * "inlineAll": bool |
2315 * } | 2355 * } |
2316 */ | 2356 */ |
2317 final Matcher isInlineMethodOptions = new LazyMatcher(() => | 2357 final Matcher isInlineMethodOptions = new LazyMatcher(() => |
2318 new MatchesJsonObject( | 2358 new MatchesJsonObject( |
2319 "inlineMethod options", {"deleteSource": isBool, "inlineAll": isBool})); | 2359 "inlineMethod options", {"deleteSource": isBool, "inlineAll": isBool})); |
2320 | 2360 |
2321 /** | 2361 /** |
| 2362 * kythe.getKytheEntries params |
| 2363 * |
| 2364 * { |
| 2365 * "file": FilePath |
| 2366 * } |
| 2367 */ |
| 2368 final Matcher isKytheGetKytheEntriesParams = new LazyMatcher(() => |
| 2369 new MatchesJsonObject( |
| 2370 "kythe.getKytheEntries params", {"file": isFilePath})); |
| 2371 |
| 2372 /** |
| 2373 * kythe.getKytheEntries result |
| 2374 * |
| 2375 * { |
| 2376 * "entries": List<KytheEntry> |
| 2377 * "files": List<FilePath> |
| 2378 * } |
| 2379 */ |
| 2380 final Matcher isKytheGetKytheEntriesResult = new LazyMatcher(() => |
| 2381 new MatchesJsonObject("kythe.getKytheEntries result", |
| 2382 {"entries": isListOf(isKytheEntry), "files": isListOf(isFilePath)})); |
| 2383 |
| 2384 /** |
2322 * moveFile feedback | 2385 * moveFile feedback |
2323 */ | 2386 */ |
2324 final Matcher isMoveFileFeedback = isNull; | 2387 final Matcher isMoveFileFeedback = isNull; |
2325 | 2388 |
2326 /** | 2389 /** |
2327 * moveFile options | 2390 * moveFile options |
2328 * | 2391 * |
2329 * { | 2392 * { |
2330 * "newFile": FilePath | 2393 * "newFile": FilePath |
2331 * } | 2394 * } |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2565 * server.status params | 2628 * server.status params |
2566 * | 2629 * |
2567 * { | 2630 * { |
2568 * "analysis": optional AnalysisStatus | 2631 * "analysis": optional AnalysisStatus |
2569 * "pub": optional PubStatus | 2632 * "pub": optional PubStatus |
2570 * } | 2633 * } |
2571 */ | 2634 */ |
2572 final Matcher isServerStatusParams = new LazyMatcher(() => | 2635 final Matcher isServerStatusParams = new LazyMatcher(() => |
2573 new MatchesJsonObject("server.status params", null, | 2636 new MatchesJsonObject("server.status params", null, |
2574 optionalFields: {"analysis": isAnalysisStatus, "pub": isPubStatus})); | 2637 optionalFields: {"analysis": isAnalysisStatus, "pub": isPubStatus})); |
OLD | NEW |