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

Side by Side 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, 4 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 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 @override 1280 @override
1281 int get hashCode { 1281 int get hashCode {
1282 int hash = 0; 1282 int hash = 0;
1283 hash = JenkinsSmiHash.combine(hash, file.hashCode); 1283 hash = JenkinsSmiHash.combine(hash, file.hashCode);
1284 hash = JenkinsSmiHash.combine(hash, outline.hashCode); 1284 hash = JenkinsSmiHash.combine(hash, outline.hashCode);
1285 return JenkinsSmiHash.finish(hash); 1285 return JenkinsSmiHash.finish(hash);
1286 } 1286 }
1287 } 1287 }
1288 1288
1289 /** 1289 /**
1290 * analysis.reanalyze params
1291 *
1292 * {
1293 * "roots": optional List<FilePath>
1294 * }
1295 *
1296 * Clients may not extend, implement or mix-in this class.
1297 */
1298 class AnalysisReanalyzeParams implements RequestParams {
1299 List<String> _roots;
1300
1301 /**
1302 * A list of the context roots that are to be re-analyzed.
1303 *
1304 * If no context roots are provided, then all current context roots should be
1305 * re-analyzed.
1306 */
1307 List<String> get roots => _roots;
1308
1309 /**
1310 * A list of the context roots that are to be re-analyzed.
1311 *
1312 * If no context roots are provided, then all current context roots should be
1313 * re-analyzed.
1314 */
1315 void set roots(List<String> value) {
1316 this._roots = value;
1317 }
1318
1319 AnalysisReanalyzeParams({List<String> roots}) {
1320 this.roots = roots;
1321 }
1322
1323 factory AnalysisReanalyzeParams.fromJson(
1324 JsonDecoder jsonDecoder, String jsonPath, Object json) {
1325 if (json == null) {
1326 json = {};
1327 }
1328 if (json is Map) {
1329 List<String> roots;
1330 if (json.containsKey("roots")) {
1331 roots = jsonDecoder.decodeList(
1332 jsonPath + ".roots", json["roots"], jsonDecoder.decodeString);
1333 }
1334 return new AnalysisReanalyzeParams(roots: roots);
1335 } else {
1336 throw jsonDecoder.mismatch(jsonPath, "analysis.reanalyze params", json);
1337 }
1338 }
1339
1340 factory AnalysisReanalyzeParams.fromRequest(Request request) {
1341 return new AnalysisReanalyzeParams.fromJson(
1342 new RequestDecoder(request), "params", request.params);
1343 }
1344
1345 @override
1346 Map<String, dynamic> toJson() {
1347 Map<String, dynamic> result = {};
1348 if (roots != null) {
1349 result["roots"] = roots;
1350 }
1351 return result;
1352 }
1353
1354 @override
1355 Request toRequest(String id) {
1356 return new Request(id, "analysis.reanalyze", toJson());
1357 }
1358
1359 @override
1360 String toString() => JSON.encode(toJson());
1361
1362 @override
1363 bool operator ==(other) {
1364 if (other is AnalysisReanalyzeParams) {
1365 return listEqual(roots, other.roots, (String a, String b) => a == b);
1366 }
1367 return false;
1368 }
1369
1370 @override
1371 int get hashCode {
1372 int hash = 0;
1373 hash = JenkinsSmiHash.combine(hash, roots.hashCode);
1374 return JenkinsSmiHash.finish(hash);
1375 }
1376 }
1377
1378 /**
1379 * analysis.reanalyze result
1380 *
1381 * Clients may not extend, implement or mix-in this class.
1382 */
1383 class AnalysisReanalyzeResult implements ResponseResult {
1384 @override
1385 Map<String, dynamic> toJson() => <String, dynamic>{};
1386
1387 @override
1388 Response toResponse(String id, int requestTime) {
1389 return new Response(id, requestTime, result: null);
1390 }
1391
1392 @override
1393 bool operator ==(other) {
1394 if (other is AnalysisReanalyzeResult) {
1395 return true;
1396 }
1397 return false;
1398 }
1399
1400 @override
1401 int get hashCode {
1402 return 846803925;
1403 }
1404 }
1405
1406 /**
1407 * AnalysisService 1290 * AnalysisService
1408 * 1291 *
1409 * enum { 1292 * enum {
1410 * FOLDING 1293 * FOLDING
1411 * HIGHLIGHTS 1294 * HIGHLIGHTS
1412 * NAVIGATION 1295 * NAVIGATION
1413 * OCCURRENCES 1296 * OCCURRENCES
1414 * OUTLINE 1297 * OUTLINE
1415 * } 1298 * }
1416 * 1299 *
(...skipping 4871 matching lines...) Expand 10 before | Expand all | Expand 10 after
6288 } 6171 }
6289 } 6172 }
6290 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json); 6173 throw jsonDecoder.mismatch(jsonPath, "WatchEventType", json);
6291 } 6174 }
6292 6175
6293 @override 6176 @override
6294 String toString() => "WatchEventType.$name"; 6177 String toString() => "WatchEventType.$name";
6295 6178
6296 String toJson() => name; 6179 String toJson() => name;
6297 } 6180 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698