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

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

Issue 469673002: Add union types to the analysis server API spec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months 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/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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 /** 204 /**
205 * analysis.setSubscriptions result 205 * analysis.setSubscriptions result
206 */ 206 */
207 final Matcher isAnalysisSetSubscriptionsResult = isNull; 207 final Matcher isAnalysisSetSubscriptionsResult = isNull;
208 208
209 /** 209 /**
210 * analysis.updateContent params 210 * analysis.updateContent params
211 * 211 *
212 * { 212 * {
213 * "files": Map<FilePath, object> 213 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon tentOverlay>
214 * } 214 * }
215 */ 215 */
216 final Matcher isAnalysisUpdateContentParams = new MatchesJsonObject( 216 final Matcher isAnalysisUpdateContentParams = new MatchesJsonObject(
217 "analysis.updateContent params", { 217 "analysis.updateContent params", {
218 "files": isMapOf(isFilePath, isObject) 218 "files": isMapOf(isFilePath, isOneOf([isAddContentOverlay, isChangeContentOv erlay, isRemoveContentOverlay]))
219 }); 219 });
220 220
221 /** 221 /**
222 * analysis.updateContent result 222 * analysis.updateContent result
223 */ 223 */
224 final Matcher isAnalysisUpdateContentResult = isNull; 224 final Matcher isAnalysisUpdateContentResult = isNull;
225 225
226 /** 226 /**
227 * analysis.updateOptions params 227 * analysis.updateOptions params
228 * 228 *
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1866 * 1866 *
1867 * { 1867 * {
1868 * "newName": String 1868 * "newName": String
1869 * } 1869 * }
1870 */ 1870 */
1871 final Matcher isRenameOptions = new MatchesJsonObject( 1871 final Matcher isRenameOptions = new MatchesJsonObject(
1872 "rename options", { 1872 "rename options", {
1873 "newName": isString 1873 "newName": isString
1874 }); 1874 });
1875 1875
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/integration_tests.dart ('k') | pkg/analysis_server/tool/spec/api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698