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

Side by Side Diff: pkg/analyzer_plugin/lib/protocol/protocol_generated.dart

Issue 2964113003: Remove an unused request and the associated type (Closed)
Patch Set: Created 3 years, 5 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 import 'dart:convert' hide JsonDecoder; 9 import 'dart:convert' hide JsonDecoder;
10 10
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 throw jsonDecoder.mismatch(jsonPath, "AnalysisService", json); 1474 throw jsonDecoder.mismatch(jsonPath, "AnalysisService", json);
1475 } 1475 }
1476 1476
1477 @override 1477 @override
1478 String toString() => "AnalysisService.$name"; 1478 String toString() => "AnalysisService.$name";
1479 1479
1480 String toJson() => name; 1480 String toJson() => name;
1481 } 1481 }
1482 1482
1483 /** 1483 /**
1484 * analysis.setContextBuilderOptions params
1485 *
1486 * {
1487 * "options": ContextBuilderOptions
1488 * }
1489 *
1490 * Clients may not extend, implement or mix-in this class.
1491 */
1492 class AnalysisSetContextBuilderOptionsParams implements RequestParams {
1493 ContextBuilderOptions _options;
1494
1495 /**
1496 * The options used to build the analysis contexts.
1497 */
1498 ContextBuilderOptions get options => _options;
1499
1500 /**
1501 * The options used to build the analysis contexts.
1502 */
1503 void set options(ContextBuilderOptions value) {
1504 assert(value != null);
1505 this._options = value;
1506 }
1507
1508 AnalysisSetContextBuilderOptionsParams(ContextBuilderOptions options) {
1509 this.options = options;
1510 }
1511
1512 factory AnalysisSetContextBuilderOptionsParams.fromJson(
1513 JsonDecoder jsonDecoder, String jsonPath, Object json) {
1514 if (json == null) {
1515 json = {};
1516 }
1517 if (json is Map) {
1518 ContextBuilderOptions options;
1519 if (json.containsKey("options")) {
1520 options = new ContextBuilderOptions.fromJson(
1521 jsonDecoder, jsonPath + ".options", json["options"]);
1522 } else {
1523 throw jsonDecoder.mismatch(jsonPath, "options");
1524 }
1525 return new AnalysisSetContextBuilderOptionsParams(options);
1526 } else {
1527 throw jsonDecoder.mismatch(
1528 jsonPath, "analysis.setContextBuilderOptions params", json);
1529 }
1530 }
1531
1532 factory AnalysisSetContextBuilderOptionsParams.fromRequest(Request request) {
1533 return new AnalysisSetContextBuilderOptionsParams.fromJson(
1534 new RequestDecoder(request), "params", request.params);
1535 }
1536
1537 @override
1538 Map<String, dynamic> toJson() {
1539 Map<String, dynamic> result = {};
1540 result["options"] = options.toJson();
1541 return result;
1542 }
1543
1544 @override
1545 Request toRequest(String id) {
1546 return new Request(id, "analysis.setContextBuilderOptions", toJson());
1547 }
1548
1549 @override
1550 String toString() => JSON.encode(toJson());
1551
1552 @override
1553 bool operator ==(other) {
1554 if (other is AnalysisSetContextBuilderOptionsParams) {
1555 return options == other.options;
1556 }
1557 return false;
1558 }
1559
1560 @override
1561 int get hashCode {
1562 int hash = 0;
1563 hash = JenkinsSmiHash.combine(hash, options.hashCode);
1564 return JenkinsSmiHash.finish(hash);
1565 }
1566 }
1567
1568 /**
1569 * analysis.setContextBuilderOptions result
1570 *
1571 * Clients may not extend, implement or mix-in this class.
1572 */
1573 class AnalysisSetContextBuilderOptionsResult implements ResponseResult {
1574 @override
1575 Map<String, dynamic> toJson() => <String, dynamic>{};
1576
1577 @override
1578 Response toResponse(String id, int requestTime) {
1579 return new Response(id, requestTime, result: null);
1580 }
1581
1582 @override
1583 bool operator ==(other) {
1584 if (other is AnalysisSetContextBuilderOptionsResult) {
1585 return true;
1586 }
1587 return false;
1588 }
1589
1590 @override
1591 int get hashCode {
1592 return 645412314;
1593 }
1594 }
1595
1596 /**
1597 * analysis.setContextRoots params 1484 * analysis.setContextRoots params
1598 * 1485 *
1599 * { 1486 * {
1600 * "roots": List<ContextRoot> 1487 * "roots": List<ContextRoot>
1601 * } 1488 * }
1602 * 1489 *
1603 * Clients may not extend, implement or mix-in this class. 1490 * Clients may not extend, implement or mix-in this class.
1604 */ 1491 */
1605 class AnalysisSetContextRootsParams implements RequestParams { 1492 class AnalysisSetContextRootsParams implements RequestParams {
1606 List<ContextRoot> _roots; 1493 List<ContextRoot> _roots;
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 int get hashCode { 2231 int get hashCode {
2345 int hash = 0; 2232 int hash = 0;
2346 hash = JenkinsSmiHash.combine(hash, replacementOffset.hashCode); 2233 hash = JenkinsSmiHash.combine(hash, replacementOffset.hashCode);
2347 hash = JenkinsSmiHash.combine(hash, replacementLength.hashCode); 2234 hash = JenkinsSmiHash.combine(hash, replacementLength.hashCode);
2348 hash = JenkinsSmiHash.combine(hash, results.hashCode); 2235 hash = JenkinsSmiHash.combine(hash, results.hashCode);
2349 return JenkinsSmiHash.finish(hash); 2236 return JenkinsSmiHash.finish(hash);
2350 } 2237 }
2351 } 2238 }
2352 2239
2353 /** 2240 /**
2354 * ContextBuilderOptions
2355 *
2356 * {
2357 * "dartSdkSummaryPath": optional FilePath
2358 * "defaultAnalysisOptionsFilePath": optional List<FilePath>
2359 * "declaredVariables": optional Map<String, String>
2360 * "defaultPackageFilePath": optional List<FilePath>
2361 * "defaultPackagesDirectoryPath": optional List<FilePath>
2362 * }
2363 *
2364 * Clients may not extend, implement or mix-in this class.
2365 */
2366 class ContextBuilderOptions implements HasToJson {
2367 String _dartSdkSummaryPath;
2368
2369 List<String> _defaultAnalysisOptionsFilePath;
2370
2371 Map<String, String> _declaredVariables;
2372
2373 List<String> _defaultPackageFilePath;
2374
2375 List<String> _defaultPackagesDirectoryPath;
2376
2377 /**
2378 * The file path of the file containing the summary of the SDK that should be
2379 * used to "analyze" the SDK. The field will be omitted if the summary should
2380 * be found in the SDK.
2381 */
2382 String get dartSdkSummaryPath => _dartSdkSummaryPath;
2383
2384 /**
2385 * The file path of the file containing the summary of the SDK that should be
2386 * used to "analyze" the SDK. The field will be omitted if the summary should
2387 * be found in the SDK.
2388 */
2389 void set dartSdkSummaryPath(String value) {
2390 this._dartSdkSummaryPath = value;
2391 }
2392
2393 /**
2394 * The file path of the analysis options file that should be used in place of
2395 * any file in the root directory or a parent of the root directory. The
2396 * field will be omitted if the normal lookup mechanism should be used.
2397 */
2398 List<String> get defaultAnalysisOptionsFilePath =>
2399 _defaultAnalysisOptionsFilePath;
2400
2401 /**
2402 * The file path of the analysis options file that should be used in place of
2403 * any file in the root directory or a parent of the root directory. The
2404 * field will be omitted if the normal lookup mechanism should be used.
2405 */
2406 void set defaultAnalysisOptionsFilePath(List<String> value) {
2407 this._defaultAnalysisOptionsFilePath = value;
2408 }
2409
2410 /**
2411 * A table mapping variable names to values for the declared variables. The
2412 * field will be omitted if no additional variables need to be declared.
2413 */
2414 Map<String, String> get declaredVariables => _declaredVariables;
2415
2416 /**
2417 * A table mapping variable names to values for the declared variables. The
2418 * field will be omitted if no additional variables need to be declared.
2419 */
2420 void set declaredVariables(Map<String, String> value) {
2421 this._declaredVariables = value;
2422 }
2423
2424 /**
2425 * The file path of the .packages file that should be used in place of any
2426 * file found using the normal (Package Specification DEP) lookup mechanism.
2427 * The field will be omitted if the normal lookup mechanism should be used.
2428 */
2429 List<String> get defaultPackageFilePath => _defaultPackageFilePath;
2430
2431 /**
2432 * The file path of the .packages file that should be used in place of any
2433 * file found using the normal (Package Specification DEP) lookup mechanism.
2434 * The field will be omitted if the normal lookup mechanism should be used.
2435 */
2436 void set defaultPackageFilePath(List<String> value) {
2437 this._defaultPackageFilePath = value;
2438 }
2439
2440 /**
2441 * The file path of the packages directory that should be used in place of
2442 * any file found using the normal (Package Specification DEP) lookup
2443 * mechanism. The field will be omitted if the normal lookup mechanism should
2444 * be used.
2445 */
2446 List<String> get defaultPackagesDirectoryPath =>
2447 _defaultPackagesDirectoryPath;
2448
2449 /**
2450 * The file path of the packages directory that should be used in place of
2451 * any file found using the normal (Package Specification DEP) lookup
2452 * mechanism. The field will be omitted if the normal lookup mechanism should
2453 * be used.
2454 */
2455 void set defaultPackagesDirectoryPath(List<String> value) {
2456 this._defaultPackagesDirectoryPath = value;
2457 }
2458
2459 ContextBuilderOptions(
2460 {String dartSdkSummaryPath,
2461 List<String> defaultAnalysisOptionsFilePath,
2462 Map<String, String> declaredVariables,
2463 List<String> defaultPackageFilePath,
2464 List<String> defaultPackagesDirectoryPath}) {
2465 this.dartSdkSummaryPath = dartSdkSummaryPath;
2466 this.defaultAnalysisOptionsFilePath = defaultAnalysisOptionsFilePath;
2467 this.declaredVariables = declaredVariables;
2468 this.defaultPackageFilePath = defaultPackageFilePath;
2469 this.defaultPackagesDirectoryPath = defaultPackagesDirectoryPath;
2470 }
2471
2472 factory ContextBuilderOptions.fromJson(
2473 JsonDecoder jsonDecoder, String jsonPath, Object json) {
2474 if (json == null) {
2475 json = {};
2476 }
2477 if (json is Map) {
2478 String dartSdkSummaryPath;
2479 if (json.containsKey("dartSdkSummaryPath")) {
2480 dartSdkSummaryPath = jsonDecoder.decodeString(
2481 jsonPath + ".dartSdkSummaryPath", json["dartSdkSummaryPath"]);
2482 }
2483 List<String> defaultAnalysisOptionsFilePath;
2484 if (json.containsKey("defaultAnalysisOptionsFilePath")) {
2485 defaultAnalysisOptionsFilePath = jsonDecoder.decodeList(
2486 jsonPath + ".defaultAnalysisOptionsFilePath",
2487 json["defaultAnalysisOptionsFilePath"],
2488 jsonDecoder.decodeString);
2489 }
2490 Map<String, String> declaredVariables;
2491 if (json.containsKey("declaredVariables")) {
2492 declaredVariables = jsonDecoder.decodeMap(
2493 jsonPath + ".declaredVariables", json["declaredVariables"],
2494 valueDecoder: jsonDecoder.decodeString);
2495 }
2496 List<String> defaultPackageFilePath;
2497 if (json.containsKey("defaultPackageFilePath")) {
2498 defaultPackageFilePath = jsonDecoder.decodeList(
2499 jsonPath + ".defaultPackageFilePath",
2500 json["defaultPackageFilePath"],
2501 jsonDecoder.decodeString);
2502 }
2503 List<String> defaultPackagesDirectoryPath;
2504 if (json.containsKey("defaultPackagesDirectoryPath")) {
2505 defaultPackagesDirectoryPath = jsonDecoder.decodeList(
2506 jsonPath + ".defaultPackagesDirectoryPath",
2507 json["defaultPackagesDirectoryPath"],
2508 jsonDecoder.decodeString);
2509 }
2510 return new ContextBuilderOptions(
2511 dartSdkSummaryPath: dartSdkSummaryPath,
2512 defaultAnalysisOptionsFilePath: defaultAnalysisOptionsFilePath,
2513 declaredVariables: declaredVariables,
2514 defaultPackageFilePath: defaultPackageFilePath,
2515 defaultPackagesDirectoryPath: defaultPackagesDirectoryPath);
2516 } else {
2517 throw jsonDecoder.mismatch(jsonPath, "ContextBuilderOptions", json);
2518 }
2519 }
2520
2521 @override
2522 Map<String, dynamic> toJson() {
2523 Map<String, dynamic> result = {};
2524 if (dartSdkSummaryPath != null) {
2525 result["dartSdkSummaryPath"] = dartSdkSummaryPath;
2526 }
2527 if (defaultAnalysisOptionsFilePath != null) {
2528 result["defaultAnalysisOptionsFilePath"] = defaultAnalysisOptionsFilePath;
2529 }
2530 if (declaredVariables != null) {
2531 result["declaredVariables"] = declaredVariables;
2532 }
2533 if (defaultPackageFilePath != null) {
2534 result["defaultPackageFilePath"] = defaultPackageFilePath;
2535 }
2536 if (defaultPackagesDirectoryPath != null) {
2537 result["defaultPackagesDirectoryPath"] = defaultPackagesDirectoryPath;
2538 }
2539 return result;
2540 }
2541
2542 @override
2543 String toString() => JSON.encode(toJson());
2544
2545 @override
2546 bool operator ==(other) {
2547 if (other is ContextBuilderOptions) {
2548 return dartSdkSummaryPath == other.dartSdkSummaryPath &&
2549 listEqual(
2550 defaultAnalysisOptionsFilePath,
2551 other.defaultAnalysisOptionsFilePath,
2552 (String a, String b) => a == b) &&
2553 mapEqual(declaredVariables, other.declaredVariables,
2554 (String a, String b) => a == b) &&
2555 listEqual(defaultPackageFilePath, other.defaultPackageFilePath,
2556 (String a, String b) => a == b) &&
2557 listEqual(
2558 defaultPackagesDirectoryPath,
2559 other.defaultPackagesDirectoryPath,
2560 (String a, String b) => a == b);
2561 }
2562 return false;
2563 }
2564
2565 @override
2566 int get hashCode {
2567 int hash = 0;
2568 hash = JenkinsSmiHash.combine(hash, dartSdkSummaryPath.hashCode);
2569 hash =
2570 JenkinsSmiHash.combine(hash, defaultAnalysisOptionsFilePath.hashCode);
2571 hash = JenkinsSmiHash.combine(hash, declaredVariables.hashCode);
2572 hash = JenkinsSmiHash.combine(hash, defaultPackageFilePath.hashCode);
2573 hash = JenkinsSmiHash.combine(hash, defaultPackagesDirectoryPath.hashCode);
2574 return JenkinsSmiHash.finish(hash);
2575 }
2576 }
2577
2578 /**
2579 * ContextRoot 2241 * ContextRoot
2580 * 2242 *
2581 * { 2243 * {
2582 * "root": FilePath 2244 * "root": FilePath
2583 * "exclude": List<FilePath> 2245 * "exclude": List<FilePath>
2584 * "optionsFile": optional FilePath 2246 * "optionsFile": optional FilePath
2585 * } 2247 * }
2586 * 2248 *
2587 * Clients may not extend, implement or mix-in this class. 2249 * Clients may not extend, implement or mix-in this class.
2588 */ 2250 */
(...skipping 4037 matching lines...) Expand 10 before | Expand all | Expand 10 after
6626 } 6288 }
6627 } 6289 }
6628 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); 6290 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json);
6629 } 6291 }
6630 6292
6631 @override 6293 @override
6632 String toString() => "WatchEventType.$name"; 6294 String toString() => "WatchEventType.$name";
6633 6295
6634 String toJson() => name; 6296 String toJson() => name;
6635 } 6297 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698