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

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

Issue 1416093007: Experimental `getDiagnostics` request (#24480). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Review fixes. Created 5 years, 1 month 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
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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 */ 1000 */
1001 final Matcher isExecutionLaunchDataParams = new LazyMatcher(() => new MatchesJso nObject( 1001 final Matcher isExecutionLaunchDataParams = new LazyMatcher(() => new MatchesJso nObject(
1002 "execution.launchData params", { 1002 "execution.launchData params", {
1003 "file": isFilePath 1003 "file": isFilePath
1004 }, optionalFields: { 1004 }, optionalFields: {
1005 "kind": isExecutableKind, 1005 "kind": isExecutableKind,
1006 "referencedFiles": isListOf(isFilePath) 1006 "referencedFiles": isListOf(isFilePath)
1007 })); 1007 }));
1008 1008
1009 /** 1009 /**
1010 * experimental.getDiagnostics params
1011 */
1012 final Matcher isExperimentalGetDiagnosticsParams = isNull;
1013
1014 /**
1015 * experimental.getDiagnostics result
1016 *
1017 * {
1018 * "contexts": List<ContextData>
1019 * }
1020 */
1021 final Matcher isExperimentalGetDiagnosticsResult = new LazyMatcher(() => new Mat chesJsonObject(
1022 "experimental.getDiagnostics result", {
1023 "contexts": isListOf(isContextData)
1024 }));
1025
1026 /**
1010 * AddContentOverlay 1027 * AddContentOverlay
1011 * 1028 *
1012 * { 1029 * {
1013 * "type": "add" 1030 * "type": "add"
1014 * "content": String 1031 * "content": String
1015 * } 1032 * }
1016 */ 1033 */
1017 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject( 1034 final Matcher isAddContentOverlay = new LazyMatcher(() => new MatchesJsonObject(
1018 "AddContentOverlay", { 1035 "AddContentOverlay", {
1019 "type": equals("add"), 1036 "type": equals("add"),
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 "IMPORT", 1269 "IMPORT",
1253 "IDENTIFIER", 1270 "IDENTIFIER",
1254 "INVOCATION", 1271 "INVOCATION",
1255 "KEYWORD", 1272 "KEYWORD",
1256 "NAMED_ARGUMENT", 1273 "NAMED_ARGUMENT",
1257 "OPTIONAL_ARGUMENT", 1274 "OPTIONAL_ARGUMENT",
1258 "PARAMETER" 1275 "PARAMETER"
1259 ]); 1276 ]);
1260 1277
1261 /** 1278 /**
1279 * ContextData
1280 *
1281 * {
1282 * "name": String
1283 * "explicitFileCount": int
1284 * "implicitFileCount": int
1285 * "workItemQueueLength": int
1286 * "cacheEntryExceptions": List<String>
1287 * }
1288 */
1289 final Matcher isContextData = new LazyMatcher(() => new MatchesJsonObject(
1290 "ContextData", {
1291 "name": isString,
1292 "explicitFileCount": isInt,
1293 "implicitFileCount": isInt,
1294 "workItemQueueLength": isInt,
1295 "cacheEntryExceptions": isListOf(isString)
1296 }));
1297
1298 /**
1262 * Element 1299 * Element
1263 * 1300 *
1264 * { 1301 * {
1265 * "kind": ElementKind 1302 * "kind": ElementKind
1266 * "name": String 1303 * "name": String
1267 * "location": optional Location 1304 * "location": optional Location
1268 * "flags": int 1305 * "flags": int
1269 * "parameters": optional String 1306 * "parameters": optional String
1270 * "returnType": optional String 1307 * "returnType": optional String
1271 * "typeParameters": optional String 1308 * "typeParameters": optional String
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2410 * 2447 *
2411 * { 2448 * {
2412 * "newName": String 2449 * "newName": String
2413 * } 2450 * }
2414 */ 2451 */
2415 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 2452 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
2416 "rename options", { 2453 "rename options", {
2417 "newName": isString 2454 "newName": isString
2418 })); 2455 }));
2419 2456
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/integration_test_methods.dart ('k') | pkg/analysis_server/test/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698