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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_plugin/lib/protocol/protocol_generated.dart
diff --git a/pkg/analyzer_plugin/lib/protocol/protocol_generated.dart b/pkg/analyzer_plugin/lib/protocol/protocol_generated.dart
index 05f7f3b08de63c8d4353d8313adadd380405897a..ad04c2d79a5d059217aeffba1fd9f97474afef69 100644
--- a/pkg/analyzer_plugin/lib/protocol/protocol_generated.dart
+++ b/pkg/analyzer_plugin/lib/protocol/protocol_generated.dart
@@ -1481,119 +1481,6 @@ class AnalysisService implements Enum {
}
/**
- * analysis.setContextBuilderOptions params
- *
- * {
- * "options": ContextBuilderOptions
- * }
- *
- * Clients may not extend, implement or mix-in this class.
- */
-class AnalysisSetContextBuilderOptionsParams implements RequestParams {
- ContextBuilderOptions _options;
-
- /**
- * The options used to build the analysis contexts.
- */
- ContextBuilderOptions get options => _options;
-
- /**
- * The options used to build the analysis contexts.
- */
- void set options(ContextBuilderOptions value) {
- assert(value != null);
- this._options = value;
- }
-
- AnalysisSetContextBuilderOptionsParams(ContextBuilderOptions options) {
- this.options = options;
- }
-
- factory AnalysisSetContextBuilderOptionsParams.fromJson(
- JsonDecoder jsonDecoder, String jsonPath, Object json) {
- if (json == null) {
- json = {};
- }
- if (json is Map) {
- ContextBuilderOptions options;
- if (json.containsKey("options")) {
- options = new ContextBuilderOptions.fromJson(
- jsonDecoder, jsonPath + ".options", json["options"]);
- } else {
- throw jsonDecoder.mismatch(jsonPath, "options");
- }
- return new AnalysisSetContextBuilderOptionsParams(options);
- } else {
- throw jsonDecoder.mismatch(
- jsonPath, "analysis.setContextBuilderOptions params", json);
- }
- }
-
- factory AnalysisSetContextBuilderOptionsParams.fromRequest(Request request) {
- return new AnalysisSetContextBuilderOptionsParams.fromJson(
- new RequestDecoder(request), "params", request.params);
- }
-
- @override
- Map<String, dynamic> toJson() {
- Map<String, dynamic> result = {};
- result["options"] = options.toJson();
- return result;
- }
-
- @override
- Request toRequest(String id) {
- return new Request(id, "analysis.setContextBuilderOptions", toJson());
- }
-
- @override
- String toString() => JSON.encode(toJson());
-
- @override
- bool operator ==(other) {
- if (other is AnalysisSetContextBuilderOptionsParams) {
- return options == other.options;
- }
- return false;
- }
-
- @override
- int get hashCode {
- int hash = 0;
- hash = JenkinsSmiHash.combine(hash, options.hashCode);
- return JenkinsSmiHash.finish(hash);
- }
-}
-
-/**
- * analysis.setContextBuilderOptions result
- *
- * Clients may not extend, implement or mix-in this class.
- */
-class AnalysisSetContextBuilderOptionsResult implements ResponseResult {
- @override
- Map<String, dynamic> toJson() => <String, dynamic>{};
-
- @override
- Response toResponse(String id, int requestTime) {
- return new Response(id, requestTime, result: null);
- }
-
- @override
- bool operator ==(other) {
- if (other is AnalysisSetContextBuilderOptionsResult) {
- return true;
- }
- return false;
- }
-
- @override
- int get hashCode {
- return 645412314;
- }
-}
-
-/**
* analysis.setContextRoots params
*
* {
@@ -2351,231 +2238,6 @@ class CompletionGetSuggestionsResult implements ResponseResult {
}
/**
- * ContextBuilderOptions
- *
- * {
- * "dartSdkSummaryPath": optional FilePath
- * "defaultAnalysisOptionsFilePath": optional List<FilePath>
- * "declaredVariables": optional Map<String, String>
- * "defaultPackageFilePath": optional List<FilePath>
- * "defaultPackagesDirectoryPath": optional List<FilePath>
- * }
- *
- * Clients may not extend, implement or mix-in this class.
- */
-class ContextBuilderOptions implements HasToJson {
- String _dartSdkSummaryPath;
-
- List<String> _defaultAnalysisOptionsFilePath;
-
- Map<String, String> _declaredVariables;
-
- List<String> _defaultPackageFilePath;
-
- List<String> _defaultPackagesDirectoryPath;
-
- /**
- * The file path of the file containing the summary of the SDK that should be
- * used to "analyze" the SDK. The field will be omitted if the summary should
- * be found in the SDK.
- */
- String get dartSdkSummaryPath => _dartSdkSummaryPath;
-
- /**
- * The file path of the file containing the summary of the SDK that should be
- * used to "analyze" the SDK. The field will be omitted if the summary should
- * be found in the SDK.
- */
- void set dartSdkSummaryPath(String value) {
- this._dartSdkSummaryPath = value;
- }
-
- /**
- * The file path of the analysis options file that should be used in place of
- * any file in the root directory or a parent of the root directory. The
- * field will be omitted if the normal lookup mechanism should be used.
- */
- List<String> get defaultAnalysisOptionsFilePath =>
- _defaultAnalysisOptionsFilePath;
-
- /**
- * The file path of the analysis options file that should be used in place of
- * any file in the root directory or a parent of the root directory. The
- * field will be omitted if the normal lookup mechanism should be used.
- */
- void set defaultAnalysisOptionsFilePath(List<String> value) {
- this._defaultAnalysisOptionsFilePath = value;
- }
-
- /**
- * A table mapping variable names to values for the declared variables. The
- * field will be omitted if no additional variables need to be declared.
- */
- Map<String, String> get declaredVariables => _declaredVariables;
-
- /**
- * A table mapping variable names to values for the declared variables. The
- * field will be omitted if no additional variables need to be declared.
- */
- void set declaredVariables(Map<String, String> value) {
- this._declaredVariables = value;
- }
-
- /**
- * The file path of the .packages file that should be used in place of any
- * file found using the normal (Package Specification DEP) lookup mechanism.
- * The field will be omitted if the normal lookup mechanism should be used.
- */
- List<String> get defaultPackageFilePath => _defaultPackageFilePath;
-
- /**
- * The file path of the .packages file that should be used in place of any
- * file found using the normal (Package Specification DEP) lookup mechanism.
- * The field will be omitted if the normal lookup mechanism should be used.
- */
- void set defaultPackageFilePath(List<String> value) {
- this._defaultPackageFilePath = value;
- }
-
- /**
- * The file path of the packages directory that should be used in place of
- * any file found using the normal (Package Specification DEP) lookup
- * mechanism. The field will be omitted if the normal lookup mechanism should
- * be used.
- */
- List<String> get defaultPackagesDirectoryPath =>
- _defaultPackagesDirectoryPath;
-
- /**
- * The file path of the packages directory that should be used in place of
- * any file found using the normal (Package Specification DEP) lookup
- * mechanism. The field will be omitted if the normal lookup mechanism should
- * be used.
- */
- void set defaultPackagesDirectoryPath(List<String> value) {
- this._defaultPackagesDirectoryPath = value;
- }
-
- ContextBuilderOptions(
- {String dartSdkSummaryPath,
- List<String> defaultAnalysisOptionsFilePath,
- Map<String, String> declaredVariables,
- List<String> defaultPackageFilePath,
- List<String> defaultPackagesDirectoryPath}) {
- this.dartSdkSummaryPath = dartSdkSummaryPath;
- this.defaultAnalysisOptionsFilePath = defaultAnalysisOptionsFilePath;
- this.declaredVariables = declaredVariables;
- this.defaultPackageFilePath = defaultPackageFilePath;
- this.defaultPackagesDirectoryPath = defaultPackagesDirectoryPath;
- }
-
- factory ContextBuilderOptions.fromJson(
- JsonDecoder jsonDecoder, String jsonPath, Object json) {
- if (json == null) {
- json = {};
- }
- if (json is Map) {
- String dartSdkSummaryPath;
- if (json.containsKey("dartSdkSummaryPath")) {
- dartSdkSummaryPath = jsonDecoder.decodeString(
- jsonPath + ".dartSdkSummaryPath", json["dartSdkSummaryPath"]);
- }
- List<String> defaultAnalysisOptionsFilePath;
- if (json.containsKey("defaultAnalysisOptionsFilePath")) {
- defaultAnalysisOptionsFilePath = jsonDecoder.decodeList(
- jsonPath + ".defaultAnalysisOptionsFilePath",
- json["defaultAnalysisOptionsFilePath"],
- jsonDecoder.decodeString);
- }
- Map<String, String> declaredVariables;
- if (json.containsKey("declaredVariables")) {
- declaredVariables = jsonDecoder.decodeMap(
- jsonPath + ".declaredVariables", json["declaredVariables"],
- valueDecoder: jsonDecoder.decodeString);
- }
- List<String> defaultPackageFilePath;
- if (json.containsKey("defaultPackageFilePath")) {
- defaultPackageFilePath = jsonDecoder.decodeList(
- jsonPath + ".defaultPackageFilePath",
- json["defaultPackageFilePath"],
- jsonDecoder.decodeString);
- }
- List<String> defaultPackagesDirectoryPath;
- if (json.containsKey("defaultPackagesDirectoryPath")) {
- defaultPackagesDirectoryPath = jsonDecoder.decodeList(
- jsonPath + ".defaultPackagesDirectoryPath",
- json["defaultPackagesDirectoryPath"],
- jsonDecoder.decodeString);
- }
- return new ContextBuilderOptions(
- dartSdkSummaryPath: dartSdkSummaryPath,
- defaultAnalysisOptionsFilePath: defaultAnalysisOptionsFilePath,
- declaredVariables: declaredVariables,
- defaultPackageFilePath: defaultPackageFilePath,
- defaultPackagesDirectoryPath: defaultPackagesDirectoryPath);
- } else {
- throw jsonDecoder.mismatch(jsonPath, "ContextBuilderOptions", json);
- }
- }
-
- @override
- Map<String, dynamic> toJson() {
- Map<String, dynamic> result = {};
- if (dartSdkSummaryPath != null) {
- result["dartSdkSummaryPath"] = dartSdkSummaryPath;
- }
- if (defaultAnalysisOptionsFilePath != null) {
- result["defaultAnalysisOptionsFilePath"] = defaultAnalysisOptionsFilePath;
- }
- if (declaredVariables != null) {
- result["declaredVariables"] = declaredVariables;
- }
- if (defaultPackageFilePath != null) {
- result["defaultPackageFilePath"] = defaultPackageFilePath;
- }
- if (defaultPackagesDirectoryPath != null) {
- result["defaultPackagesDirectoryPath"] = defaultPackagesDirectoryPath;
- }
- return result;
- }
-
- @override
- String toString() => JSON.encode(toJson());
-
- @override
- bool operator ==(other) {
- if (other is ContextBuilderOptions) {
- return dartSdkSummaryPath == other.dartSdkSummaryPath &&
- listEqual(
- defaultAnalysisOptionsFilePath,
- other.defaultAnalysisOptionsFilePath,
- (String a, String b) => a == b) &&
- mapEqual(declaredVariables, other.declaredVariables,
- (String a, String b) => a == b) &&
- listEqual(defaultPackageFilePath, other.defaultPackageFilePath,
- (String a, String b) => a == b) &&
- listEqual(
- defaultPackagesDirectoryPath,
- other.defaultPackagesDirectoryPath,
- (String a, String b) => a == b);
- }
- return false;
- }
-
- @override
- int get hashCode {
- int hash = 0;
- hash = JenkinsSmiHash.combine(hash, dartSdkSummaryPath.hashCode);
- hash =
- JenkinsSmiHash.combine(hash, defaultAnalysisOptionsFilePath.hashCode);
- hash = JenkinsSmiHash.combine(hash, declaredVariables.hashCode);
- hash = JenkinsSmiHash.combine(hash, defaultPackageFilePath.hashCode);
- hash = JenkinsSmiHash.combine(hash, defaultPackagesDirectoryPath.hashCode);
- return JenkinsSmiHash.finish(hash);
- }
-}
-
-/**
* ContextRoot
*
* {

Powered by Google App Engine
This is Rietveld 408576698