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

Side by Side Diff: pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart

Issue 2947743002: Add support to pass the location of the analysis options file to plugins (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 "KEYWORD", 202 "KEYWORD",
203 "NAMED_ARGUMENT", 203 "NAMED_ARGUMENT",
204 "OPTIONAL_ARGUMENT", 204 "OPTIONAL_ARGUMENT",
205 "PARAMETER" 205 "PARAMETER"
206 ]); 206 ]);
207 207
208 /** 208 /**
209 * ContextBuilderOptions 209 * ContextBuilderOptions
210 * 210 *
211 * { 211 * {
212 * "dartSdkSummaryPath": optional String 212 * "dartSdkSummaryPath": optional FilePath
213 * "defaultAnalysisOptionsFilePath": optional List<String> 213 * "defaultAnalysisOptionsFilePath": optional List<FilePath>
214 * "declaredVariables": optional Map<String, String> 214 * "declaredVariables": optional Map<String, String>
215 * "defaultPackageFilePath": optional List<String> 215 * "defaultPackageFilePath": optional List<FilePath>
216 * "defaultPackagesDirectoryPath": optional List<String> 216 * "defaultPackagesDirectoryPath": optional List<FilePath>
217 * } 217 * }
218 */ 218 */
219 final Matcher isContextBuilderOptions = new LazyMatcher( 219 final Matcher isContextBuilderOptions = new LazyMatcher(
220 () => new MatchesJsonObject("ContextBuilderOptions", null, optionalFields: { 220 () => new MatchesJsonObject("ContextBuilderOptions", null, optionalFields: {
221 "dartSdkSummaryPath": isString, 221 "dartSdkSummaryPath": isFilePath,
222 "defaultAnalysisOptionsFilePath": isListOf(isString), 222 "defaultAnalysisOptionsFilePath": isListOf(isFilePath),
223 "declaredVariables": isMapOf(isString, isString), 223 "declaredVariables": isMapOf(isString, isString),
224 "defaultPackageFilePath": isListOf(isString), 224 "defaultPackageFilePath": isListOf(isFilePath),
225 "defaultPackagesDirectoryPath": isListOf(isString) 225 "defaultPackagesDirectoryPath": isListOf(isFilePath)
226 })); 226 }));
227 227
228 /** 228 /**
229 * ContextRoot 229 * ContextRoot
230 * 230 *
231 * { 231 * {
232 * "root": String 232 * "root": FilePath
233 * "exclude": List<String> 233 * "exclude": List<FilePath>
234 * "optionsFile": optional FilePath
234 * } 235 * }
235 */ 236 */
236 final Matcher isContextRoot = new LazyMatcher(() => new MatchesJsonObject( 237 final Matcher isContextRoot = new LazyMatcher(() => new MatchesJsonObject(
237 "ContextRoot", {"root": isString, "exclude": isListOf(isString)})); 238 "ContextRoot", {"root": isFilePath, "exclude": isListOf(isFilePath)},
239 optionalFields: {"optionsFile": isFilePath}));
238 240
239 /** 241 /**
240 * Element 242 * Element
241 * 243 *
242 * { 244 * {
243 * "kind": ElementKind 245 * "kind": ElementKind
244 * "name": String 246 * "name": String
245 * "location": optional Location 247 * "location": optional Location
246 * "flags": int 248 * "flags": int
247 * "parameters": optional String 249 * "parameters": optional String
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 */ 860 */
859 final Matcher isSourceFileEdit = new LazyMatcher(() => new MatchesJsonObject( 861 final Matcher isSourceFileEdit = new LazyMatcher(() => new MatchesJsonObject(
860 "SourceFileEdit", 862 "SourceFileEdit",
861 {"file": isFilePath, "fileStamp": isInt, "edits": isListOf(isSourceEdit)})); 863 {"file": isFilePath, "fileStamp": isInt, "edits": isListOf(isSourceEdit)}));
862 864
863 /** 865 /**
864 * WatchEvent 866 * WatchEvent
865 * 867 *
866 * { 868 * {
867 * "type": WatchEventType 869 * "type": WatchEventType
868 * "path": String 870 * "path": FilePath
869 * } 871 * }
870 */ 872 */
871 final Matcher isWatchEvent = new LazyMatcher(() => new MatchesJsonObject( 873 final Matcher isWatchEvent = new LazyMatcher(() => new MatchesJsonObject(
872 "WatchEvent", {"type": isWatchEventType, "path": isString})); 874 "WatchEvent", {"type": isWatchEventType, "path": isFilePath}));
873 875
874 /** 876 /**
875 * WatchEventType 877 * WatchEventType
876 * 878 *
877 * enum { 879 * enum {
878 * ADD 880 * ADD
879 * MODIFY 881 * MODIFY
880 * REMOVE 882 * REMOVE
881 * } 883 * }
882 */ 884 */
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 1433
1432 /** 1434 /**
1433 * plugin.shutdown result 1435 * plugin.shutdown result
1434 */ 1436 */
1435 final Matcher isPluginShutdownResult = isNull; 1437 final Matcher isPluginShutdownResult = isNull;
1436 1438
1437 /** 1439 /**
1438 * plugin.versionCheck params 1440 * plugin.versionCheck params
1439 * 1441 *
1440 * { 1442 * {
1441 * "byteStorePath": String 1443 * "byteStorePath": FilePath
1442 * "sdkPath": String 1444 * "sdkPath": FilePath
1443 * "version": String 1445 * "version": String
1444 * } 1446 * }
1445 */ 1447 */
1446 final Matcher isPluginVersionCheckParams = new LazyMatcher(() => 1448 final Matcher isPluginVersionCheckParams = new LazyMatcher(() =>
1447 new MatchesJsonObject("plugin.versionCheck params", 1449 new MatchesJsonObject("plugin.versionCheck params", {
1448 {"byteStorePath": isString, "sdkPath": isString, "version": isString})); 1450 "byteStorePath": isFilePath,
1451 "sdkPath": isFilePath,
1452 "version": isString
1453 }));
1449 1454
1450 /** 1455 /**
1451 * plugin.versionCheck result 1456 * plugin.versionCheck result
1452 * 1457 *
1453 * { 1458 * {
1454 * "isCompatible": bool 1459 * "isCompatible": bool
1455 * "name": String 1460 * "name": String
1456 * "version": String 1461 * "version": String
1457 * "contactInfo": optional String 1462 * "contactInfo": optional String
1458 * "interestingFiles": List<String> 1463 * "interestingFiles": List<String>
(...skipping 29 matching lines...) Expand all
1488 1493
1489 /** 1494 /**
1490 * rename options 1495 * rename options
1491 * 1496 *
1492 * { 1497 * {
1493 * "newName": String 1498 * "newName": String
1494 * } 1499 * }
1495 */ 1500 */
1496 final Matcher isRenameOptions = new LazyMatcher( 1501 final Matcher isRenameOptions = new LazyMatcher(
1497 () => new MatchesJsonObject("rename options", {"newName": isString})); 1502 () => new MatchesJsonObject("rename options", {"newName": isString}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698