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

Side by Side Diff: pkg/analysis_server/lib/src/generated_protocol.dart

Issue 1003193005: Add 'containingClassDescription' to HoverInformation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
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 protocol; 9 part of protocol;
10 /** 10 /**
(...skipping 7390 matching lines...) Expand 10 before | Expand all | Expand 10 after
7401 } 7401 }
7402 7402
7403 /** 7403 /**
7404 * HoverInformation 7404 * HoverInformation
7405 * 7405 *
7406 * { 7406 * {
7407 * "offset": int 7407 * "offset": int
7408 * "length": int 7408 * "length": int
7409 * "containingLibraryPath": optional String 7409 * "containingLibraryPath": optional String
7410 * "containingLibraryName": optional String 7410 * "containingLibraryName": optional String
7411 * "containingClassDescription": optional String
7411 * "dartdoc": optional String 7412 * "dartdoc": optional String
7412 * "elementDescription": optional String 7413 * "elementDescription": optional String
7413 * "elementKind": optional String 7414 * "elementKind": optional String
7414 * "parameter": optional String 7415 * "parameter": optional String
7415 * "propagatedType": optional String 7416 * "propagatedType": optional String
7416 * "staticType": optional String 7417 * "staticType": optional String
7417 * } 7418 * }
7418 */ 7419 */
7419 class HoverInformation implements HasToJson { 7420 class HoverInformation implements HasToJson {
7420 /** 7421 /**
(...skipping 16 matching lines...) Expand all
7437 String containingLibraryPath; 7438 String containingLibraryPath;
7438 7439
7439 /** 7440 /**
7440 * The name of the library in which the referenced element is declared. This 7441 * The name of the library in which the referenced element is declared. This
7441 * data is omitted if there is no referenced element, or if the element is 7442 * data is omitted if there is no referenced element, or if the element is
7442 * declared inside an HTML file. 7443 * declared inside an HTML file.
7443 */ 7444 */
7444 String containingLibraryName; 7445 String containingLibraryName;
7445 7446
7446 /** 7447 /**
7448 * A human-readable description of the class declaring the element being
7449 * referenced. This data is omitted if there is no referenced element, or if
7450 * the element is not a class member.
7451 */
7452 String containingClassDescription;
7453
7454 /**
7447 * The dartdoc associated with the referenced element. Other than the removal 7455 * The dartdoc associated with the referenced element. Other than the removal
7448 * of the comment delimiters, including leading asterisks in the case of a 7456 * of the comment delimiters, including leading asterisks in the case of a
7449 * block comment, the dartdoc is unprocessed markdown. This data is omitted 7457 * block comment, the dartdoc is unprocessed markdown. This data is omitted
7450 * if there is no referenced element, or if the element has no dartdoc. 7458 * if there is no referenced element, or if the element has no dartdoc.
7451 */ 7459 */
7452 String dartdoc; 7460 String dartdoc;
7453 7461
7454 /** 7462 /**
7455 * A human-readable description of the element being referenced. This data is 7463 * A human-readable description of the element being referenced. This data is
7456 * omitted if there is no referenced element. 7464 * omitted if there is no referenced element.
(...skipping 20 matching lines...) Expand all
7477 * propagated type information. 7485 * propagated type information.
7478 */ 7486 */
7479 String propagatedType; 7487 String propagatedType;
7480 7488
7481 /** 7489 /**
7482 * The name of the static type of the expression. This data is omitted if the 7490 * The name of the static type of the expression. This data is omitted if the
7483 * location does not correspond to an expression. 7491 * location does not correspond to an expression.
7484 */ 7492 */
7485 String staticType; 7493 String staticType;
7486 7494
7487 HoverInformation(this.offset, this.length, {this.containingLibraryPath, this.c ontainingLibraryName, this.dartdoc, this.elementDescription, this.elementKind, t his.parameter, this.propagatedType, this.staticType}); 7495 HoverInformation(this.offset, this.length, {this.containingLibraryPath, this.c ontainingLibraryName, this.containingClassDescription, this.dartdoc, this.elemen tDescription, this.elementKind, this.parameter, this.propagatedType, this.static Type});
7488 7496
7489 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) { 7497 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) {
7490 if (json == null) { 7498 if (json == null) {
7491 json = {}; 7499 json = {};
7492 } 7500 }
7493 if (json is Map) { 7501 if (json is Map) {
7494 int offset; 7502 int offset;
7495 if (json.containsKey("offset")) { 7503 if (json.containsKey("offset")) {
7496 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); 7504 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]);
7497 } else { 7505 } else {
7498 throw jsonDecoder.missingKey(jsonPath, "offset"); 7506 throw jsonDecoder.missingKey(jsonPath, "offset");
7499 } 7507 }
7500 int length; 7508 int length;
7501 if (json.containsKey("length")) { 7509 if (json.containsKey("length")) {
7502 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); 7510 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]);
7503 } else { 7511 } else {
7504 throw jsonDecoder.missingKey(jsonPath, "length"); 7512 throw jsonDecoder.missingKey(jsonPath, "length");
7505 } 7513 }
7506 String containingLibraryPath; 7514 String containingLibraryPath;
7507 if (json.containsKey("containingLibraryPath")) { 7515 if (json.containsKey("containingLibraryPath")) {
7508 containingLibraryPath = jsonDecoder._decodeString(jsonPath + ".containin gLibraryPath", json["containingLibraryPath"]); 7516 containingLibraryPath = jsonDecoder._decodeString(jsonPath + ".containin gLibraryPath", json["containingLibraryPath"]);
7509 } 7517 }
7510 String containingLibraryName; 7518 String containingLibraryName;
7511 if (json.containsKey("containingLibraryName")) { 7519 if (json.containsKey("containingLibraryName")) {
7512 containingLibraryName = jsonDecoder._decodeString(jsonPath + ".containin gLibraryName", json["containingLibraryName"]); 7520 containingLibraryName = jsonDecoder._decodeString(jsonPath + ".containin gLibraryName", json["containingLibraryName"]);
7513 } 7521 }
7522 String containingClassDescription;
7523 if (json.containsKey("containingClassDescription")) {
7524 containingClassDescription = jsonDecoder._decodeString(jsonPath + ".cont ainingClassDescription", json["containingClassDescription"]);
7525 }
7514 String dartdoc; 7526 String dartdoc;
7515 if (json.containsKey("dartdoc")) { 7527 if (json.containsKey("dartdoc")) {
7516 dartdoc = jsonDecoder._decodeString(jsonPath + ".dartdoc", json["dartdoc "]); 7528 dartdoc = jsonDecoder._decodeString(jsonPath + ".dartdoc", json["dartdoc "]);
7517 } 7529 }
7518 String elementDescription; 7530 String elementDescription;
7519 if (json.containsKey("elementDescription")) { 7531 if (json.containsKey("elementDescription")) {
7520 elementDescription = jsonDecoder._decodeString(jsonPath + ".elementDescr iption", json["elementDescription"]); 7532 elementDescription = jsonDecoder._decodeString(jsonPath + ".elementDescr iption", json["elementDescription"]);
7521 } 7533 }
7522 String elementKind; 7534 String elementKind;
7523 if (json.containsKey("elementKind")) { 7535 if (json.containsKey("elementKind")) {
7524 elementKind = jsonDecoder._decodeString(jsonPath + ".elementKind", json[ "elementKind"]); 7536 elementKind = jsonDecoder._decodeString(jsonPath + ".elementKind", json[ "elementKind"]);
7525 } 7537 }
7526 String parameter; 7538 String parameter;
7527 if (json.containsKey("parameter")) { 7539 if (json.containsKey("parameter")) {
7528 parameter = jsonDecoder._decodeString(jsonPath + ".parameter", json["par ameter"]); 7540 parameter = jsonDecoder._decodeString(jsonPath + ".parameter", json["par ameter"]);
7529 } 7541 }
7530 String propagatedType; 7542 String propagatedType;
7531 if (json.containsKey("propagatedType")) { 7543 if (json.containsKey("propagatedType")) {
7532 propagatedType = jsonDecoder._decodeString(jsonPath + ".propagatedType", json["propagatedType"]); 7544 propagatedType = jsonDecoder._decodeString(jsonPath + ".propagatedType", json["propagatedType"]);
7533 } 7545 }
7534 String staticType; 7546 String staticType;
7535 if (json.containsKey("staticType")) { 7547 if (json.containsKey("staticType")) {
7536 staticType = jsonDecoder._decodeString(jsonPath + ".staticType", json["s taticType"]); 7548 staticType = jsonDecoder._decodeString(jsonPath + ".staticType", json["s taticType"]);
7537 } 7549 }
7538 return new HoverInformation(offset, length, containingLibraryPath: contain ingLibraryPath, containingLibraryName: containingLibraryName, dartdoc: dartdoc, elementDescription: elementDescription, elementKind: elementKind, parameter: par ameter, propagatedType: propagatedType, staticType: staticType); 7550 return new HoverInformation(offset, length, containingLibraryPath: contain ingLibraryPath, containingLibraryName: containingLibraryName, containingClassDes cription: containingClassDescription, dartdoc: dartdoc, elementDescription: elem entDescription, elementKind: elementKind, parameter: parameter, propagatedType: propagatedType, staticType: staticType);
7539 } else { 7551 } else {
7540 throw jsonDecoder.mismatch(jsonPath, "HoverInformation"); 7552 throw jsonDecoder.mismatch(jsonPath, "HoverInformation");
7541 } 7553 }
7542 } 7554 }
7543 7555
7544 Map<String, dynamic> toJson() { 7556 Map<String, dynamic> toJson() {
7545 Map<String, dynamic> result = {}; 7557 Map<String, dynamic> result = {};
7546 result["offset"] = offset; 7558 result["offset"] = offset;
7547 result["length"] = length; 7559 result["length"] = length;
7548 if (containingLibraryPath != null) { 7560 if (containingLibraryPath != null) {
7549 result["containingLibraryPath"] = containingLibraryPath; 7561 result["containingLibraryPath"] = containingLibraryPath;
7550 } 7562 }
7551 if (containingLibraryName != null) { 7563 if (containingLibraryName != null) {
7552 result["containingLibraryName"] = containingLibraryName; 7564 result["containingLibraryName"] = containingLibraryName;
7553 } 7565 }
7566 if (containingClassDescription != null) {
7567 result["containingClassDescription"] = containingClassDescription;
7568 }
7554 if (dartdoc != null) { 7569 if (dartdoc != null) {
7555 result["dartdoc"] = dartdoc; 7570 result["dartdoc"] = dartdoc;
7556 } 7571 }
7557 if (elementDescription != null) { 7572 if (elementDescription != null) {
7558 result["elementDescription"] = elementDescription; 7573 result["elementDescription"] = elementDescription;
7559 } 7574 }
7560 if (elementKind != null) { 7575 if (elementKind != null) {
7561 result["elementKind"] = elementKind; 7576 result["elementKind"] = elementKind;
7562 } 7577 }
7563 if (parameter != null) { 7578 if (parameter != null) {
(...skipping 11 matching lines...) Expand all
7575 @override 7590 @override
7576 String toString() => JSON.encode(toJson()); 7591 String toString() => JSON.encode(toJson());
7577 7592
7578 @override 7593 @override
7579 bool operator==(other) { 7594 bool operator==(other) {
7580 if (other is HoverInformation) { 7595 if (other is HoverInformation) {
7581 return offset == other.offset && 7596 return offset == other.offset &&
7582 length == other.length && 7597 length == other.length &&
7583 containingLibraryPath == other.containingLibraryPath && 7598 containingLibraryPath == other.containingLibraryPath &&
7584 containingLibraryName == other.containingLibraryName && 7599 containingLibraryName == other.containingLibraryName &&
7600 containingClassDescription == other.containingClassDescription &&
7585 dartdoc == other.dartdoc && 7601 dartdoc == other.dartdoc &&
7586 elementDescription == other.elementDescription && 7602 elementDescription == other.elementDescription &&
7587 elementKind == other.elementKind && 7603 elementKind == other.elementKind &&
7588 parameter == other.parameter && 7604 parameter == other.parameter &&
7589 propagatedType == other.propagatedType && 7605 propagatedType == other.propagatedType &&
7590 staticType == other.staticType; 7606 staticType == other.staticType;
7591 } 7607 }
7592 return false; 7608 return false;
7593 } 7609 }
7594 7610
7595 @override 7611 @override
7596 int get hashCode { 7612 int get hashCode {
7597 int hash = 0; 7613 int hash = 0;
7598 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); 7614 hash = _JenkinsSmiHash.combine(hash, offset.hashCode);
7599 hash = _JenkinsSmiHash.combine(hash, length.hashCode); 7615 hash = _JenkinsSmiHash.combine(hash, length.hashCode);
7600 hash = _JenkinsSmiHash.combine(hash, containingLibraryPath.hashCode); 7616 hash = _JenkinsSmiHash.combine(hash, containingLibraryPath.hashCode);
7601 hash = _JenkinsSmiHash.combine(hash, containingLibraryName.hashCode); 7617 hash = _JenkinsSmiHash.combine(hash, containingLibraryName.hashCode);
7618 hash = _JenkinsSmiHash.combine(hash, containingClassDescription.hashCode);
7602 hash = _JenkinsSmiHash.combine(hash, dartdoc.hashCode); 7619 hash = _JenkinsSmiHash.combine(hash, dartdoc.hashCode);
7603 hash = _JenkinsSmiHash.combine(hash, elementDescription.hashCode); 7620 hash = _JenkinsSmiHash.combine(hash, elementDescription.hashCode);
7604 hash = _JenkinsSmiHash.combine(hash, elementKind.hashCode); 7621 hash = _JenkinsSmiHash.combine(hash, elementKind.hashCode);
7605 hash = _JenkinsSmiHash.combine(hash, parameter.hashCode); 7622 hash = _JenkinsSmiHash.combine(hash, parameter.hashCode);
7606 hash = _JenkinsSmiHash.combine(hash, propagatedType.hashCode); 7623 hash = _JenkinsSmiHash.combine(hash, propagatedType.hashCode);
7607 hash = _JenkinsSmiHash.combine(hash, staticType.hashCode); 7624 hash = _JenkinsSmiHash.combine(hash, staticType.hashCode);
7608 return _JenkinsSmiHash.finish(hash); 7625 return _JenkinsSmiHash.finish(hash);
7609 } 7626 }
7610 } 7627 }
7611 7628
(...skipping 3711 matching lines...) Expand 10 before | Expand all | Expand 10 after
11323 return false; 11340 return false;
11324 } 11341 }
11325 11342
11326 @override 11343 @override
11327 int get hashCode { 11344 int get hashCode {
11328 int hash = 0; 11345 int hash = 0;
11329 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 11346 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
11330 return _JenkinsSmiHash.finish(hash); 11347 return _JenkinsSmiHash.finish(hash);
11331 } 11348 }
11332 } 11349 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_hover.dart ('k') | pkg/analysis_server/test/analysis/get_hover_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698