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

Unified Diff: pkg/analyzer_plugin/lib/protocol/protocol_generated.dart

Issue 2988743002: Remove the analysus.reanalyze request from the plugin API (Closed)
Patch Set: Restart plugins 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 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 ad04c2d79a5d059217aeffba1fd9f97474afef69..95d7d33c54c1bd8c197a300006cd7fb92654ade7 100644
--- a/pkg/analyzer_plugin/lib/protocol/protocol_generated.dart
+++ b/pkg/analyzer_plugin/lib/protocol/protocol_generated.dart
@@ -1287,123 +1287,6 @@ class AnalysisOutlineParams implements HasToJson {
}
/**
- * analysis.reanalyze params
- *
- * {
- * "roots": optional List<FilePath>
- * }
- *
- * Clients may not extend, implement or mix-in this class.
- */
-class AnalysisReanalyzeParams implements RequestParams {
- List<String> _roots;
-
- /**
- * A list of the context roots that are to be re-analyzed.
- *
- * If no context roots are provided, then all current context roots should be
- * re-analyzed.
- */
- List<String> get roots => _roots;
-
- /**
- * A list of the context roots that are to be re-analyzed.
- *
- * If no context roots are provided, then all current context roots should be
- * re-analyzed.
- */
- void set roots(List<String> value) {
- this._roots = value;
- }
-
- AnalysisReanalyzeParams({List<String> roots}) {
- this.roots = roots;
- }
-
- factory AnalysisReanalyzeParams.fromJson(
- JsonDecoder jsonDecoder, String jsonPath, Object json) {
- if (json == null) {
- json = {};
- }
- if (json is Map) {
- List<String> roots;
- if (json.containsKey("roots")) {
- roots = jsonDecoder.decodeList(
- jsonPath + ".roots", json["roots"], jsonDecoder.decodeString);
- }
- return new AnalysisReanalyzeParams(roots: roots);
- } else {
- throw jsonDecoder.mismatch(jsonPath, "analysis.reanalyze params", json);
- }
- }
-
- factory AnalysisReanalyzeParams.fromRequest(Request request) {
- return new AnalysisReanalyzeParams.fromJson(
- new RequestDecoder(request), "params", request.params);
- }
-
- @override
- Map<String, dynamic> toJson() {
- Map<String, dynamic> result = {};
- if (roots != null) {
- result["roots"] = roots;
- }
- return result;
- }
-
- @override
- Request toRequest(String id) {
- return new Request(id, "analysis.reanalyze", toJson());
- }
-
- @override
- String toString() => JSON.encode(toJson());
-
- @override
- bool operator ==(other) {
- if (other is AnalysisReanalyzeParams) {
- return listEqual(roots, other.roots, (String a, String b) => a == b);
- }
- return false;
- }
-
- @override
- int get hashCode {
- int hash = 0;
- hash = JenkinsSmiHash.combine(hash, roots.hashCode);
- return JenkinsSmiHash.finish(hash);
- }
-}
-
-/**
- * analysis.reanalyze result
- *
- * Clients may not extend, implement or mix-in this class.
- */
-class AnalysisReanalyzeResult 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 AnalysisReanalyzeResult) {
- return true;
- }
- return false;
- }
-
- @override
- int get hashCode {
- return 846803925;
- }
-}
-
-/**
* AnalysisService
*
* enum {

Powered by Google App Engine
This is Rietveld 408576698