Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: pkg/analysis_server/test/integration/protocol_matchers.dart

Issue 769963003: Add paging support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 * { 137 * {
138 * "hovers": List<HoverInformation> 138 * "hovers": List<HoverInformation>
139 * } 139 * }
140 */ 140 */
141 final Matcher isAnalysisGetHoverResult = new LazyMatcher(() => new MatchesJsonOb ject( 141 final Matcher isAnalysisGetHoverResult = new LazyMatcher(() => new MatchesJsonOb ject(
142 "analysis.getHover result", { 142 "analysis.getHover result", {
143 "hovers": isListOf(isHoverInformation) 143 "hovers": isListOf(isHoverInformation)
144 })); 144 }));
145 145
146 /** 146 /**
147 * analysis.getNavigation params
148 *
149 * {
150 * "file": FilePath
151 * "offset": int
152 * "length": int
153 * }
154 */
155 final Matcher isAnalysisGetNavigationParams = new LazyMatcher(() => new MatchesJ sonObject(
156 "analysis.getNavigation params", {
157 "file": isFilePath,
158 "offset": isInt,
159 "length": isInt
160 }));
161
162 /**
163 * analysis.getNavigation result
164 *
165 * {
166 * "files": List<FilePath>
167 * "targets": List<NavigationTarget>
168 * "regions": List<NavigationRegion>
169 * }
170 */
171 final Matcher isAnalysisGetNavigationResult = new LazyMatcher(() => new MatchesJ sonObject(
172 "analysis.getNavigation result", {
173 "files": isListOf(isFilePath),
174 "targets": isListOf(isNavigationTarget),
175 "regions": isListOf(isNavigationRegion)
176 }));
177
178 /**
147 * analysis.reanalyze params 179 * analysis.reanalyze params
148 */ 180 */
149 final Matcher isAnalysisReanalyzeParams = isNull; 181 final Matcher isAnalysisReanalyzeParams = isNull;
150 182
151 /** 183 /**
152 * analysis.reanalyze result 184 * analysis.reanalyze result
153 */ 185 */
154 final Matcher isAnalysisReanalyzeResult = isNull; 186 final Matcher isAnalysisReanalyzeResult = isNull;
155 187
156 /** 188 /**
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 * "regions": List<HighlightRegion> 323 * "regions": List<HighlightRegion>
292 * } 324 * }
293 */ 325 */
294 final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson Object( 326 final Matcher isAnalysisHighlightsParams = new LazyMatcher(() => new MatchesJson Object(
295 "analysis.highlights params", { 327 "analysis.highlights params", {
296 "file": isFilePath, 328 "file": isFilePath,
297 "regions": isListOf(isHighlightRegion) 329 "regions": isListOf(isHighlightRegion)
298 })); 330 }));
299 331
300 /** 332 /**
333 * analysis.invalidate params
334 *
335 * {
336 * "file": FilePath
337 * "offset": int
338 * "length": int
339 * "delta": int
340 * }
341 */
342 final Matcher isAnalysisInvalidateParams = new LazyMatcher(() => new MatchesJson Object(
343 "analysis.invalidate params", {
344 "file": isFilePath,
345 "offset": isInt,
346 "length": isInt,
347 "delta": isInt
348 }));
349
350 /**
301 * analysis.navigation params 351 * analysis.navigation params
302 * 352 *
303 * { 353 * {
304 * "file": FilePath 354 * "file": FilePath
305 * "regions": List<NavigationRegion> 355 * "regions": List<NavigationRegion>
306 * "targets": List<NavigationTarget> 356 * "targets": List<NavigationTarget>
307 * "files": List<FilePath> 357 * "files": List<FilePath>
308 * } 358 * }
309 */ 359 */
310 final Matcher isAnalysisNavigationParams = new LazyMatcher(() => new MatchesJson Object( 360 final Matcher isAnalysisNavigationParams = new LazyMatcher(() => new MatchesJson Object(
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 "generateDart2jsHints": isBool, 965 "generateDart2jsHints": isBool,
916 "generateHints": isBool 966 "generateHints": isBool
917 })); 967 }));
918 968
919 /** 969 /**
920 * AnalysisService 970 * AnalysisService
921 * 971 *
922 * enum { 972 * enum {
923 * FOLDING 973 * FOLDING
924 * HIGHLIGHTS 974 * HIGHLIGHTS
975 * INVALIDATE
925 * NAVIGATION 976 * NAVIGATION
926 * OCCURRENCES 977 * OCCURRENCES
927 * OUTLINE 978 * OUTLINE
928 * OVERRIDES 979 * OVERRIDES
929 * } 980 * }
930 */ 981 */
931 final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [ 982 final Matcher isAnalysisService = new MatchesEnum("AnalysisService", [
932 "FOLDING", 983 "FOLDING",
933 "HIGHLIGHTS", 984 "HIGHLIGHTS",
985 "INVALIDATE",
934 "NAVIGATION", 986 "NAVIGATION",
935 "OCCURRENCES", 987 "OCCURRENCES",
936 "OUTLINE", 988 "OUTLINE",
937 "OVERRIDES" 989 "OVERRIDES"
938 ]); 990 ]);
939 991
940 /** 992 /**
941 * AnalysisStatus 993 * AnalysisStatus
942 * 994 *
943 * { 995 * {
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
1683 "code": isRequestErrorCode, 1735 "code": isRequestErrorCode,
1684 "message": isString 1736 "message": isString
1685 }, optionalFields: { 1737 }, optionalFields: {
1686 "stackTrace": isString 1738 "stackTrace": isString
1687 })); 1739 }));
1688 1740
1689 /** 1741 /**
1690 * RequestErrorCode 1742 * RequestErrorCode
1691 * 1743 *
1692 * enum { 1744 * enum {
1745 * CONTENT_MODIFIED
1693 * GET_ERRORS_INVALID_FILE 1746 * GET_ERRORS_INVALID_FILE
1694 * INVALID_OVERLAY_CHANGE 1747 * INVALID_OVERLAY_CHANGE
1695 * INVALID_PARAMETER 1748 * INVALID_PARAMETER
1696 * INVALID_REQUEST 1749 * INVALID_REQUEST
1697 * SERVER_ALREADY_STARTED 1750 * SERVER_ALREADY_STARTED
1698 * SERVER_ERROR 1751 * SERVER_ERROR
1699 * SORT_MEMBERS_INVALID_FILE 1752 * SORT_MEMBERS_INVALID_FILE
1700 * SORT_MEMBERS_PARSE_ERRORS 1753 * SORT_MEMBERS_PARSE_ERRORS
1701 * UNANALYZED_PRIORITY_FILES 1754 * UNANALYZED_PRIORITY_FILES
1702 * UNKNOWN_REQUEST 1755 * UNKNOWN_REQUEST
1703 * UNSUPPORTED_FEATURE 1756 * UNSUPPORTED_FEATURE
1704 * } 1757 * }
1705 */ 1758 */
1706 final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [ 1759 final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [
1760 "CONTENT_MODIFIED",
1707 "GET_ERRORS_INVALID_FILE", 1761 "GET_ERRORS_INVALID_FILE",
1708 "INVALID_OVERLAY_CHANGE", 1762 "INVALID_OVERLAY_CHANGE",
1709 "INVALID_PARAMETER", 1763 "INVALID_PARAMETER",
1710 "INVALID_REQUEST", 1764 "INVALID_REQUEST",
1711 "SERVER_ALREADY_STARTED", 1765 "SERVER_ALREADY_STARTED",
1712 "SERVER_ERROR", 1766 "SERVER_ERROR",
1713 "SORT_MEMBERS_INVALID_FILE", 1767 "SORT_MEMBERS_INVALID_FILE",
1714 "SORT_MEMBERS_PARSE_ERRORS", 1768 "SORT_MEMBERS_PARSE_ERRORS",
1715 "UNANALYZED_PRIORITY_FILES", 1769 "UNANALYZED_PRIORITY_FILES",
1716 "UNKNOWN_REQUEST", 1770 "UNKNOWN_REQUEST",
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
2041 * 2095 *
2042 * { 2096 * {
2043 * "newName": String 2097 * "newName": String
2044 * } 2098 * }
2045 */ 2099 */
2046 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2100 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2047 "rename options", { 2101 "rename options", {
2048 "newName": isString 2102 "newName": isString
2049 })); 2103 }));
2050 2104
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/integration_test_methods.dart ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698