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

Side by Side Diff: pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart

Issue 1453433002: Move diagnostics to `diagnostics` domain (#24931). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: master merge Created 5 years, 1 month 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_diagnostic.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of analysis_server.plugin.protocol.protocol; 9 part of analysis_server.plugin.protocol.protocol;
10 10
(...skipping 7404 matching lines...) Expand 10 before | Expand all | Expand 10 after
7415 @override 7415 @override
7416 int get hashCode { 7416 int get hashCode {
7417 int hash = 0; 7417 int hash = 0;
7418 hash = JenkinsSmiHash.combine(hash, file.hashCode); 7418 hash = JenkinsSmiHash.combine(hash, file.hashCode);
7419 hash = JenkinsSmiHash.combine(hash, kind.hashCode); 7419 hash = JenkinsSmiHash.combine(hash, kind.hashCode);
7420 hash = JenkinsSmiHash.combine(hash, referencedFiles.hashCode); 7420 hash = JenkinsSmiHash.combine(hash, referencedFiles.hashCode);
7421 return JenkinsSmiHash.finish(hash); 7421 return JenkinsSmiHash.finish(hash);
7422 } 7422 }
7423 } 7423 }
7424 /** 7424 /**
7425 * experimental.getDiagnostics params 7425 * diagnostic.getDiagnostics params
7426 * 7426 *
7427 * Clients may not extend, implement or mix-in this class. 7427 * Clients may not extend, implement or mix-in this class.
7428 */ 7428 */
7429 class ExperimentalGetDiagnosticsParams { 7429 class DiagnosticGetDiagnosticsParams {
7430 Request toRequest(String id) { 7430 Request toRequest(String id) {
7431 return new Request(id, "experimental.getDiagnostics", null); 7431 return new Request(id, "diagnostic.getDiagnostics", null);
7432 } 7432 }
7433 7433
7434 @override 7434 @override
7435 bool operator==(other) { 7435 bool operator==(other) {
7436 if (other is ExperimentalGetDiagnosticsParams) { 7436 if (other is DiagnosticGetDiagnosticsParams) {
7437 return true; 7437 return true;
7438 } 7438 }
7439 return false; 7439 return false;
7440 } 7440 }
7441 7441
7442 @override 7442 @override
7443 int get hashCode { 7443 int get hashCode {
7444 return 876666064; 7444 return 587526202;
7445 } 7445 }
7446 } 7446 }
7447 7447
7448 /** 7448 /**
7449 * experimental.getDiagnostics result 7449 * diagnostic.getDiagnostics result
7450 * 7450 *
7451 * { 7451 * {
7452 * "contexts": List<ContextData> 7452 * "contexts": List<ContextData>
7453 * } 7453 * }
7454 * 7454 *
7455 * Clients may not extend, implement or mix-in this class. 7455 * Clients may not extend, implement or mix-in this class.
7456 */ 7456 */
7457 class ExperimentalGetDiagnosticsResult implements HasToJson { 7457 class DiagnosticGetDiagnosticsResult implements HasToJson {
7458 List<ContextData> _contexts; 7458 List<ContextData> _contexts;
7459 7459
7460 /** 7460 /**
7461 * The list of analysis contexts. 7461 * The list of analysis contexts.
7462 */ 7462 */
7463 List<ContextData> get contexts => _contexts; 7463 List<ContextData> get contexts => _contexts;
7464 7464
7465 /** 7465 /**
7466 * The list of analysis contexts. 7466 * The list of analysis contexts.
7467 */ 7467 */
7468 void set contexts(List<ContextData> value) { 7468 void set contexts(List<ContextData> value) {
7469 assert(value != null); 7469 assert(value != null);
7470 this._contexts = value; 7470 this._contexts = value;
7471 } 7471 }
7472 7472
7473 ExperimentalGetDiagnosticsResult(List<ContextData> contexts) { 7473 DiagnosticGetDiagnosticsResult(List<ContextData> contexts) {
7474 this.contexts = contexts; 7474 this.contexts = contexts;
7475 } 7475 }
7476 7476
7477 factory ExperimentalGetDiagnosticsResult.fromJson(JsonDecoder jsonDecoder, Str ing jsonPath, Object json) { 7477 factory DiagnosticGetDiagnosticsResult.fromJson(JsonDecoder jsonDecoder, Strin g jsonPath, Object json) {
7478 if (json == null) { 7478 if (json == null) {
7479 json = {}; 7479 json = {};
7480 } 7480 }
7481 if (json is Map) { 7481 if (json is Map) {
7482 List<ContextData> contexts; 7482 List<ContextData> contexts;
7483 if (json.containsKey("contexts")) { 7483 if (json.containsKey("contexts")) {
7484 contexts = jsonDecoder.decodeList(jsonPath + ".contexts", json["contexts "], (String jsonPath, Object json) => new ContextData.fromJson(jsonDecoder, json Path, json)); 7484 contexts = jsonDecoder.decodeList(jsonPath + ".contexts", json["contexts "], (String jsonPath, Object json) => new ContextData.fromJson(jsonDecoder, json Path, json));
7485 } else { 7485 } else {
7486 throw jsonDecoder.missingKey(jsonPath, "contexts"); 7486 throw jsonDecoder.missingKey(jsonPath, "contexts");
7487 } 7487 }
7488 return new ExperimentalGetDiagnosticsResult(contexts); 7488 return new DiagnosticGetDiagnosticsResult(contexts);
7489 } else { 7489 } else {
7490 throw jsonDecoder.mismatch(jsonPath, "experimental.getDiagnostics result", json); 7490 throw jsonDecoder.mismatch(jsonPath, "diagnostic.getDiagnostics result", j son);
7491 } 7491 }
7492 } 7492 }
7493 7493
7494 factory ExperimentalGetDiagnosticsResult.fromResponse(Response response) { 7494 factory DiagnosticGetDiagnosticsResult.fromResponse(Response response) {
7495 return new ExperimentalGetDiagnosticsResult.fromJson( 7495 return new DiagnosticGetDiagnosticsResult.fromJson(
7496 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result); 7496 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), " result", response._result);
7497 } 7497 }
7498 7498
7499 Map<String, dynamic> toJson() { 7499 Map<String, dynamic> toJson() {
7500 Map<String, dynamic> result = {}; 7500 Map<String, dynamic> result = {};
7501 result["contexts"] = contexts.map((ContextData value) => value.toJson()).toL ist(); 7501 result["contexts"] = contexts.map((ContextData value) => value.toJson()).toL ist();
7502 return result; 7502 return result;
7503 } 7503 }
7504 7504
7505 Response toResponse(String id) { 7505 Response toResponse(String id) {
7506 return new Response(id, result: toJson()); 7506 return new Response(id, result: toJson());
7507 } 7507 }
7508 7508
7509 @override 7509 @override
7510 String toString() => JSON.encode(toJson()); 7510 String toString() => JSON.encode(toJson());
7511 7511
7512 @override 7512 @override
7513 bool operator==(other) { 7513 bool operator==(other) {
7514 if (other is ExperimentalGetDiagnosticsResult) { 7514 if (other is DiagnosticGetDiagnosticsResult) {
7515 return listEqual(contexts, other.contexts, (ContextData a, ContextData b) => a == b); 7515 return listEqual(contexts, other.contexts, (ContextData a, ContextData b) => a == b);
7516 } 7516 }
7517 return false; 7517 return false;
7518 } 7518 }
7519 7519
7520 @override 7520 @override
7521 int get hashCode { 7521 int get hashCode {
7522 int hash = 0; 7522 int hash = 0;
7523 hash = JenkinsSmiHash.combine(hash, contexts.hashCode); 7523 hash = JenkinsSmiHash.combine(hash, contexts.hashCode);
7524 return JenkinsSmiHash.finish(hash); 7524 return JenkinsSmiHash.finish(hash);
(...skipping 9175 matching lines...) Expand 10 before | Expand all | Expand 10 after
16700 return false; 16700 return false;
16701 } 16701 }
16702 16702
16703 @override 16703 @override
16704 int get hashCode { 16704 int get hashCode {
16705 int hash = 0; 16705 int hash = 0;
16706 hash = JenkinsSmiHash.combine(hash, newName.hashCode); 16706 hash = JenkinsSmiHash.combine(hash, newName.hashCode);
16707 return JenkinsSmiHash.finish(hash); 16707 return JenkinsSmiHash.finish(hash);
16708 } 16708 }
16709 } 16709 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_diagnostic.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698