OLD | NEW |
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 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2347 hash = JenkinsSmiHash.combine(hash, replacementLength.hashCode); | 2347 hash = JenkinsSmiHash.combine(hash, replacementLength.hashCode); |
2348 hash = JenkinsSmiHash.combine(hash, results.hashCode); | 2348 hash = JenkinsSmiHash.combine(hash, results.hashCode); |
2349 return JenkinsSmiHash.finish(hash); | 2349 return JenkinsSmiHash.finish(hash); |
2350 } | 2350 } |
2351 } | 2351 } |
2352 | 2352 |
2353 /** | 2353 /** |
2354 * ContextBuilderOptions | 2354 * ContextBuilderOptions |
2355 * | 2355 * |
2356 * { | 2356 * { |
2357 * "dartSdkSummaryPath": optional String | 2357 * "dartSdkSummaryPath": optional FilePath |
2358 * "defaultAnalysisOptionsFilePath": optional List<String> | 2358 * "defaultAnalysisOptionsFilePath": optional List<FilePath> |
2359 * "declaredVariables": optional Map<String, String> | 2359 * "declaredVariables": optional Map<String, String> |
2360 * "defaultPackageFilePath": optional List<String> | 2360 * "defaultPackageFilePath": optional List<FilePath> |
2361 * "defaultPackagesDirectoryPath": optional List<String> | 2361 * "defaultPackagesDirectoryPath": optional List<FilePath> |
2362 * } | 2362 * } |
2363 * | 2363 * |
2364 * Clients may not extend, implement or mix-in this class. | 2364 * Clients may not extend, implement or mix-in this class. |
2365 */ | 2365 */ |
2366 class ContextBuilderOptions implements HasToJson { | 2366 class ContextBuilderOptions implements HasToJson { |
2367 String _dartSdkSummaryPath; | 2367 String _dartSdkSummaryPath; |
2368 | 2368 |
2369 List<String> _defaultAnalysisOptionsFilePath; | 2369 List<String> _defaultAnalysisOptionsFilePath; |
2370 | 2370 |
2371 Map<String, String> _declaredVariables; | 2371 Map<String, String> _declaredVariables; |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2572 hash = JenkinsSmiHash.combine(hash, defaultPackageFilePath.hashCode); | 2572 hash = JenkinsSmiHash.combine(hash, defaultPackageFilePath.hashCode); |
2573 hash = JenkinsSmiHash.combine(hash, defaultPackagesDirectoryPath.hashCode); | 2573 hash = JenkinsSmiHash.combine(hash, defaultPackagesDirectoryPath.hashCode); |
2574 return JenkinsSmiHash.finish(hash); | 2574 return JenkinsSmiHash.finish(hash); |
2575 } | 2575 } |
2576 } | 2576 } |
2577 | 2577 |
2578 /** | 2578 /** |
2579 * ContextRoot | 2579 * ContextRoot |
2580 * | 2580 * |
2581 * { | 2581 * { |
2582 * "root": String | 2582 * "root": FilePath |
2583 * "exclude": List<String> | 2583 * "exclude": List<FilePath> |
| 2584 * "optionsFile": optional FilePath |
2584 * } | 2585 * } |
2585 * | 2586 * |
2586 * Clients may not extend, implement or mix-in this class. | 2587 * Clients may not extend, implement or mix-in this class. |
2587 */ | 2588 */ |
2588 class ContextRoot implements HasToJson { | 2589 class ContextRoot implements HasToJson { |
2589 String _root; | 2590 String _root; |
2590 | 2591 |
2591 List<String> _exclude; | 2592 List<String> _exclude; |
2592 | 2593 |
| 2594 String _optionsFile; |
| 2595 |
2593 /** | 2596 /** |
2594 * The absolute path of the root directory containing the files to be | 2597 * The absolute path of the root directory containing the files to be |
2595 * analyzed. | 2598 * analyzed. |
2596 */ | 2599 */ |
2597 String get root => _root; | 2600 String get root => _root; |
2598 | 2601 |
2599 /** | 2602 /** |
2600 * The absolute path of the root directory containing the files to be | 2603 * The absolute path of the root directory containing the files to be |
2601 * analyzed. | 2604 * analyzed. |
2602 */ | 2605 */ |
(...skipping 10 matching lines...) Expand all Loading... |
2613 | 2616 |
2614 /** | 2617 /** |
2615 * A list of the absolute paths of files and directories within the root | 2618 * A list of the absolute paths of files and directories within the root |
2616 * directory that should not be analyzed. | 2619 * directory that should not be analyzed. |
2617 */ | 2620 */ |
2618 void set exclude(List<String> value) { | 2621 void set exclude(List<String> value) { |
2619 assert(value != null); | 2622 assert(value != null); |
2620 this._exclude = value; | 2623 this._exclude = value; |
2621 } | 2624 } |
2622 | 2625 |
2623 ContextRoot(String root, List<String> exclude) { | 2626 /** |
| 2627 * The absolute path of the analysis options file that should be used to |
| 2628 * control the analysis of the files in the context. |
| 2629 */ |
| 2630 String get optionsFile => _optionsFile; |
| 2631 |
| 2632 /** |
| 2633 * The absolute path of the analysis options file that should be used to |
| 2634 * control the analysis of the files in the context. |
| 2635 */ |
| 2636 void set optionsFile(String value) { |
| 2637 this._optionsFile = value; |
| 2638 } |
| 2639 |
| 2640 ContextRoot(String root, List<String> exclude, {String optionsFile}) { |
2624 this.root = root; | 2641 this.root = root; |
2625 this.exclude = exclude; | 2642 this.exclude = exclude; |
| 2643 this.optionsFile = optionsFile; |
2626 } | 2644 } |
2627 | 2645 |
2628 factory ContextRoot.fromJson( | 2646 factory ContextRoot.fromJson( |
2629 JsonDecoder jsonDecoder, String jsonPath, Object json) { | 2647 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2630 if (json == null) { | 2648 if (json == null) { |
2631 json = {}; | 2649 json = {}; |
2632 } | 2650 } |
2633 if (json is Map) { | 2651 if (json is Map) { |
2634 String root; | 2652 String root; |
2635 if (json.containsKey("root")) { | 2653 if (json.containsKey("root")) { |
2636 root = jsonDecoder.decodeString(jsonPath + ".root", json["root"]); | 2654 root = jsonDecoder.decodeString(jsonPath + ".root", json["root"]); |
2637 } else { | 2655 } else { |
2638 throw jsonDecoder.mismatch(jsonPath, "root"); | 2656 throw jsonDecoder.mismatch(jsonPath, "root"); |
2639 } | 2657 } |
2640 List<String> exclude; | 2658 List<String> exclude; |
2641 if (json.containsKey("exclude")) { | 2659 if (json.containsKey("exclude")) { |
2642 exclude = jsonDecoder.decodeList( | 2660 exclude = jsonDecoder.decodeList( |
2643 jsonPath + ".exclude", json["exclude"], jsonDecoder.decodeString); | 2661 jsonPath + ".exclude", json["exclude"], jsonDecoder.decodeString); |
2644 } else { | 2662 } else { |
2645 throw jsonDecoder.mismatch(jsonPath, "exclude"); | 2663 throw jsonDecoder.mismatch(jsonPath, "exclude"); |
2646 } | 2664 } |
2647 return new ContextRoot(root, exclude); | 2665 String optionsFile; |
| 2666 if (json.containsKey("optionsFile")) { |
| 2667 optionsFile = jsonDecoder.decodeString( |
| 2668 jsonPath + ".optionsFile", json["optionsFile"]); |
| 2669 } |
| 2670 return new ContextRoot(root, exclude, optionsFile: optionsFile); |
2648 } else { | 2671 } else { |
2649 throw jsonDecoder.mismatch(jsonPath, "ContextRoot", json); | 2672 throw jsonDecoder.mismatch(jsonPath, "ContextRoot", json); |
2650 } | 2673 } |
2651 } | 2674 } |
2652 | 2675 |
2653 @override | 2676 @override |
2654 Map<String, dynamic> toJson() { | 2677 Map<String, dynamic> toJson() { |
2655 Map<String, dynamic> result = {}; | 2678 Map<String, dynamic> result = {}; |
2656 result["root"] = root; | 2679 result["root"] = root; |
2657 result["exclude"] = exclude; | 2680 result["exclude"] = exclude; |
| 2681 if (optionsFile != null) { |
| 2682 result["optionsFile"] = optionsFile; |
| 2683 } |
2658 return result; | 2684 return result; |
2659 } | 2685 } |
2660 | 2686 |
2661 @override | 2687 @override |
2662 String toString() => JSON.encode(toJson()); | 2688 String toString() => JSON.encode(toJson()); |
2663 | 2689 |
2664 @override | 2690 @override |
2665 bool operator ==(other) { | 2691 bool operator ==(other) { |
2666 if (other is ContextRoot) { | 2692 if (other is ContextRoot) { |
2667 return root == other.root && | 2693 return root == other.root && |
2668 listEqual(exclude, other.exclude, (String a, String b) => a == b); | 2694 listEqual(exclude, other.exclude, (String a, String b) => a == b) && |
| 2695 optionsFile == other.optionsFile; |
2669 } | 2696 } |
2670 return false; | 2697 return false; |
2671 } | 2698 } |
2672 | 2699 |
2673 @override | 2700 @override |
2674 int get hashCode { | 2701 int get hashCode { |
2675 int hash = 0; | 2702 int hash = 0; |
2676 hash = JenkinsSmiHash.combine(hash, root.hashCode); | 2703 hash = JenkinsSmiHash.combine(hash, root.hashCode); |
2677 hash = JenkinsSmiHash.combine(hash, exclude.hashCode); | 2704 hash = JenkinsSmiHash.combine(hash, exclude.hashCode); |
| 2705 hash = JenkinsSmiHash.combine(hash, optionsFile.hashCode); |
2678 return JenkinsSmiHash.finish(hash); | 2706 return JenkinsSmiHash.finish(hash); |
2679 } | 2707 } |
2680 } | 2708 } |
2681 | 2709 |
2682 /** | 2710 /** |
2683 * convertGetterToMethod feedback | 2711 * convertGetterToMethod feedback |
2684 * | 2712 * |
2685 * Clients may not extend, implement or mix-in this class. | 2713 * Clients may not extend, implement or mix-in this class. |
2686 */ | 2714 */ |
2687 class ConvertGetterToMethodFeedback extends RefactoringFeedback | 2715 class ConvertGetterToMethodFeedback extends RefactoringFeedback |
(...skipping 2744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5432 @override | 5460 @override |
5433 int get hashCode { | 5461 int get hashCode { |
5434 return 9389109; | 5462 return 9389109; |
5435 } | 5463 } |
5436 } | 5464 } |
5437 | 5465 |
5438 /** | 5466 /** |
5439 * plugin.versionCheck params | 5467 * plugin.versionCheck params |
5440 * | 5468 * |
5441 * { | 5469 * { |
5442 * "byteStorePath": String | 5470 * "byteStorePath": FilePath |
5443 * "sdkPath": String | 5471 * "sdkPath": FilePath |
5444 * "version": String | 5472 * "version": String |
5445 * } | 5473 * } |
5446 * | 5474 * |
5447 * Clients may not extend, implement or mix-in this class. | 5475 * Clients may not extend, implement or mix-in this class. |
5448 */ | 5476 */ |
5449 class PluginVersionCheckParams implements RequestParams { | 5477 class PluginVersionCheckParams implements RequestParams { |
5450 String _byteStorePath; | 5478 String _byteStorePath; |
5451 | 5479 |
5452 String _sdkPath; | 5480 String _sdkPath; |
5453 | 5481 |
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6434 String toString() => "RequestErrorCode.$name"; | 6462 String toString() => "RequestErrorCode.$name"; |
6435 | 6463 |
6436 String toJson() => name; | 6464 String toJson() => name; |
6437 } | 6465 } |
6438 | 6466 |
6439 /** | 6467 /** |
6440 * WatchEvent | 6468 * WatchEvent |
6441 * | 6469 * |
6442 * { | 6470 * { |
6443 * "type": WatchEventType | 6471 * "type": WatchEventType |
6444 * "path": String | 6472 * "path": FilePath |
6445 * } | 6473 * } |
6446 * | 6474 * |
6447 * Clients may not extend, implement or mix-in this class. | 6475 * Clients may not extend, implement or mix-in this class. |
6448 */ | 6476 */ |
6449 class WatchEvent implements HasToJson { | 6477 class WatchEvent implements HasToJson { |
6450 WatchEventType _type; | 6478 WatchEventType _type; |
6451 | 6479 |
6452 String _path; | 6480 String _path; |
6453 | 6481 |
6454 /** | 6482 /** |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6598 } | 6626 } |
6599 } | 6627 } |
6600 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); | 6628 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); |
6601 } | 6629 } |
6602 | 6630 |
6603 @override | 6631 @override |
6604 String toString() => "WatchEventType.$name"; | 6632 String toString() => "WatchEventType.$name"; |
6605 | 6633 |
6606 String toJson() => name; | 6634 String toJson() => name; |
6607 } | 6635 } |
OLD | NEW |