| 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/spec/generate_files". | 7 // "pkg/analysis_server/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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJson
Object( | 658 final Matcher isEditGetRefactoringResult = new LazyMatcher(() => new MatchesJson
Object( |
| 659 "edit.getRefactoring result", { | 659 "edit.getRefactoring result", { |
| 660 "problems": isListOf(isRefactoringProblem) | 660 "problems": isListOf(isRefactoringProblem) |
| 661 }, optionalFields: { | 661 }, optionalFields: { |
| 662 "feedback": isRefactoringFeedback, | 662 "feedback": isRefactoringFeedback, |
| 663 "change": isSourceChange, | 663 "change": isSourceChange, |
| 664 "potentialEdits": isListOf(isString) | 664 "potentialEdits": isListOf(isString) |
| 665 })); | 665 })); |
| 666 | 666 |
| 667 /** | 667 /** |
| 668 * debug.createContext params | 668 * execution.createContext params |
| 669 * | 669 * |
| 670 * { | 670 * { |
| 671 * "contextRoot": FilePath | 671 * "contextRoot": FilePath |
| 672 * } | 672 * } |
| 673 */ | 673 */ |
| 674 final Matcher isDebugCreateContextParams = new LazyMatcher(() => new MatchesJson
Object( | 674 final Matcher isExecutionCreateContextParams = new LazyMatcher(() => new Matches
JsonObject( |
| 675 "debug.createContext params", { | 675 "execution.createContext params", { |
| 676 "contextRoot": isFilePath | 676 "contextRoot": isFilePath |
| 677 })); | 677 })); |
| 678 | 678 |
| 679 /** | 679 /** |
| 680 * debug.createContext result | 680 * execution.createContext result |
| 681 * | 681 * |
| 682 * { | 682 * { |
| 683 * "id": DebugContextId | 683 * "id": ExecutionContextId |
| 684 * } | 684 * } |
| 685 */ | 685 */ |
| 686 final Matcher isDebugCreateContextResult = new LazyMatcher(() => new MatchesJson
Object( | 686 final Matcher isExecutionCreateContextResult = new LazyMatcher(() => new Matches
JsonObject( |
| 687 "debug.createContext result", { | 687 "execution.createContext result", { |
| 688 "id": isDebugContextId | 688 "id": isExecutionContextId |
| 689 })); | 689 })); |
| 690 | 690 |
| 691 /** | 691 /** |
| 692 * debug.deleteContext params | 692 * execution.deleteContext params |
| 693 * | 693 * |
| 694 * { | 694 * { |
| 695 * "id": DebugContextId | 695 * "id": ExecutionContextId |
| 696 * } | 696 * } |
| 697 */ | 697 */ |
| 698 final Matcher isDebugDeleteContextParams = new LazyMatcher(() => new MatchesJson
Object( | 698 final Matcher isExecutionDeleteContextParams = new LazyMatcher(() => new Matches
JsonObject( |
| 699 "debug.deleteContext params", { | 699 "execution.deleteContext params", { |
| 700 "id": isDebugContextId | 700 "id": isExecutionContextId |
| 701 })); | 701 })); |
| 702 | 702 |
| 703 /** | 703 /** |
| 704 * debug.deleteContext result | 704 * execution.deleteContext result |
| 705 */ | 705 */ |
| 706 final Matcher isDebugDeleteContextResult = isNull; | 706 final Matcher isExecutionDeleteContextResult = isNull; |
| 707 | 707 |
| 708 /** | 708 /** |
| 709 * debug.mapUri params | 709 * execution.mapUri params |
| 710 * | 710 * |
| 711 * { | 711 * { |
| 712 * "id": DebugContextId | 712 * "id": ExecutionContextId |
| 713 * "file": optional FilePath | 713 * "file": optional FilePath |
| 714 * "uri": optional String | 714 * "uri": optional String |
| 715 * } | 715 * } |
| 716 */ | 716 */ |
| 717 final Matcher isDebugMapUriParams = new LazyMatcher(() => new MatchesJsonObject( | 717 final Matcher isExecutionMapUriParams = new LazyMatcher(() => new MatchesJsonObj
ect( |
| 718 "debug.mapUri params", { | 718 "execution.mapUri params", { |
| 719 "id": isDebugContextId | 719 "id": isExecutionContextId |
| 720 }, optionalFields: { | 720 }, optionalFields: { |
| 721 "file": isFilePath, | 721 "file": isFilePath, |
| 722 "uri": isString | 722 "uri": isString |
| 723 })); | 723 })); |
| 724 | 724 |
| 725 /** | 725 /** |
| 726 * debug.mapUri result | 726 * execution.mapUri result |
| 727 * | 727 * |
| 728 * { | 728 * { |
| 729 * "file": optional FilePath | 729 * "file": optional FilePath |
| 730 * "uri": optional String | 730 * "uri": optional String |
| 731 * } | 731 * } |
| 732 */ | 732 */ |
| 733 final Matcher isDebugMapUriResult = new LazyMatcher(() => new MatchesJsonObject( | 733 final Matcher isExecutionMapUriResult = new LazyMatcher(() => new MatchesJsonObj
ect( |
| 734 "debug.mapUri result", null, optionalFields: { | 734 "execution.mapUri result", null, optionalFields: { |
| 735 "file": isFilePath, | 735 "file": isFilePath, |
| 736 "uri": isString | 736 "uri": isString |
| 737 })); | 737 })); |
| 738 | 738 |
| 739 /** | 739 /** |
| 740 * debug.setSubscriptions params | 740 * execution.setSubscriptions params |
| 741 * | 741 * |
| 742 * { | 742 * { |
| 743 * "subscriptions": List<DebugService> | 743 * "subscriptions": List<ExecutionService> |
| 744 * } | 744 * } |
| 745 */ | 745 */ |
| 746 final Matcher isDebugSetSubscriptionsParams = new LazyMatcher(() => new MatchesJ
sonObject( | 746 final Matcher isExecutionSetSubscriptionsParams = new LazyMatcher(() => new Matc
hesJsonObject( |
| 747 "debug.setSubscriptions params", { | 747 "execution.setSubscriptions params", { |
| 748 "subscriptions": isListOf(isDebugService) | 748 "subscriptions": isListOf(isExecutionService) |
| 749 })); | 749 })); |
| 750 | 750 |
| 751 /** | 751 /** |
| 752 * debug.setSubscriptions result | 752 * execution.setSubscriptions result |
| 753 */ | 753 */ |
| 754 final Matcher isDebugSetSubscriptionsResult = isNull; | 754 final Matcher isExecutionSetSubscriptionsResult = isNull; |
| 755 | 755 |
| 756 /** | 756 /** |
| 757 * debug.launchData params | 757 * execution.launchData params |
| 758 * | 758 * |
| 759 * { | 759 * { |
| 760 * "executables": List<ExecutableFile> | 760 * "executables": List<ExecutableFile> |
| 761 * "dartToHtml": Map<FilePath, List<FilePath>> | 761 * "dartToHtml": Map<FilePath, List<FilePath>> |
| 762 * "htmlToDart": Map<FilePath, List<FilePath>> | 762 * "htmlToDart": Map<FilePath, List<FilePath>> |
| 763 * } | 763 * } |
| 764 */ | 764 */ |
| 765 final Matcher isDebugLaunchDataParams = new LazyMatcher(() => new MatchesJsonObj
ect( | 765 final Matcher isExecutionLaunchDataParams = new LazyMatcher(() => new MatchesJso
nObject( |
| 766 "debug.launchData params", { | 766 "execution.launchData params", { |
| 767 "executables": isListOf(isExecutableFile), | 767 "executables": isListOf(isExecutableFile), |
| 768 "dartToHtml": isMapOf(isFilePath, isListOf(isFilePath)), | 768 "dartToHtml": isMapOf(isFilePath, isListOf(isFilePath)), |
| 769 "htmlToDart": isMapOf(isFilePath, isListOf(isFilePath)) | 769 "htmlToDart": isMapOf(isFilePath, isListOf(isFilePath)) |
| 770 })); | 770 })); |
| 771 | 771 |
| 772 /** | 772 /** |
| 773 * AddContentOverlay | 773 * AddContentOverlay |
| 774 * | 774 * |
| 775 * { | 775 * { |
| 776 * "type": "add" | 776 * "type": "add" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 "METHOD_NAME", | 1034 "METHOD_NAME", |
| 1035 "NAMED_ARGUMENT", | 1035 "NAMED_ARGUMENT", |
| 1036 "OPTIONAL_ARGUMENT", | 1036 "OPTIONAL_ARGUMENT", |
| 1037 "PARAMETER", | 1037 "PARAMETER", |
| 1038 "SETTER", | 1038 "SETTER", |
| 1039 "TOP_LEVEL_VARIABLE", | 1039 "TOP_LEVEL_VARIABLE", |
| 1040 "TYPE_PARAMETER" | 1040 "TYPE_PARAMETER" |
| 1041 ]); | 1041 ]); |
| 1042 | 1042 |
| 1043 /** | 1043 /** |
| 1044 * DebugContextId | |
| 1045 * | |
| 1046 * String | |
| 1047 */ | |
| 1048 final Matcher isDebugContextId = isString; | |
| 1049 | |
| 1050 /** | |
| 1051 * DebugService | |
| 1052 * | |
| 1053 * enum { | |
| 1054 * LAUNCH_DATA | |
| 1055 * } | |
| 1056 */ | |
| 1057 final Matcher isDebugService = new MatchesEnum("DebugService", [ | |
| 1058 "LAUNCH_DATA" | |
| 1059 ]); | |
| 1060 | |
| 1061 /** | |
| 1062 * Element | 1044 * Element |
| 1063 * | 1045 * |
| 1064 * { | 1046 * { |
| 1065 * "kind": ElementKind | 1047 * "kind": ElementKind |
| 1066 * "name": String | 1048 * "name": String |
| 1067 * "location": optional Location | 1049 * "location": optional Location |
| 1068 * "flags": int | 1050 * "flags": int |
| 1069 * "parameters": optional String | 1051 * "parameters": optional String |
| 1070 * "returnType": optional String | 1052 * "returnType": optional String |
| 1071 * } | 1053 * } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 * SERVER | 1131 * SERVER |
| 1150 * } | 1132 * } |
| 1151 */ | 1133 */ |
| 1152 final Matcher isExecutableKind = new MatchesEnum("ExecutableKind", [ | 1134 final Matcher isExecutableKind = new MatchesEnum("ExecutableKind", [ |
| 1153 "CLIENT", | 1135 "CLIENT", |
| 1154 "EITHER", | 1136 "EITHER", |
| 1155 "SERVER" | 1137 "SERVER" |
| 1156 ]); | 1138 ]); |
| 1157 | 1139 |
| 1158 /** | 1140 /** |
| 1141 * ExecutionContextId |
| 1142 * |
| 1143 * String |
| 1144 */ |
| 1145 final Matcher isExecutionContextId = isString; |
| 1146 |
| 1147 /** |
| 1148 * ExecutionService |
| 1149 * |
| 1150 * enum { |
| 1151 * LAUNCH_DATA |
| 1152 * } |
| 1153 */ |
| 1154 final Matcher isExecutionService = new MatchesEnum("ExecutionService", [ |
| 1155 "LAUNCH_DATA" |
| 1156 ]); |
| 1157 |
| 1158 /** |
| 1159 * FilePath | 1159 * FilePath |
| 1160 * | 1160 * |
| 1161 * String | 1161 * String |
| 1162 */ | 1162 */ |
| 1163 final Matcher isFilePath = isString; | 1163 final Matcher isFilePath = isString; |
| 1164 | 1164 |
| 1165 /** | 1165 /** |
| 1166 * FoldingKind | 1166 * FoldingKind |
| 1167 * | 1167 * |
| 1168 * enum { | 1168 * enum { |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1935 * | 1935 * |
| 1936 * { | 1936 * { |
| 1937 * "newName": String | 1937 * "newName": String |
| 1938 * } | 1938 * } |
| 1939 */ | 1939 */ |
| 1940 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( | 1940 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( |
| 1941 "rename options", { | 1941 "rename options", { |
| 1942 "newName": isString | 1942 "newName": isString |
| 1943 })); | 1943 })); |
| 1944 | 1944 |
| OLD | NEW |