OLD | NEW |
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 11280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11291 * | 11291 * |
11292 * { | 11292 * { |
11293 * "offset": int | 11293 * "offset": int |
11294 * "length": int | 11294 * "length": int |
11295 * "containingLibraryPath": optional String | 11295 * "containingLibraryPath": optional String |
11296 * "containingLibraryName": optional String | 11296 * "containingLibraryName": optional String |
11297 * "containingClassDescription": optional String | 11297 * "containingClassDescription": optional String |
11298 * "dartdoc": optional String | 11298 * "dartdoc": optional String |
11299 * "elementDescription": optional String | 11299 * "elementDescription": optional String |
11300 * "elementKind": optional String | 11300 * "elementKind": optional String |
| 11301 * "isDeprecated": optional bool |
11301 * "parameter": optional String | 11302 * "parameter": optional String |
11302 * "propagatedType": optional String | 11303 * "propagatedType": optional String |
11303 * "staticType": optional String | 11304 * "staticType": optional String |
11304 * } | 11305 * } |
11305 * | 11306 * |
11306 * Clients may not extend, implement or mix-in this class. | 11307 * Clients may not extend, implement or mix-in this class. |
11307 */ | 11308 */ |
11308 class HoverInformation implements HasToJson { | 11309 class HoverInformation implements HasToJson { |
11309 int _offset; | 11310 int _offset; |
11310 | 11311 |
11311 int _length; | 11312 int _length; |
11312 | 11313 |
11313 String _containingLibraryPath; | 11314 String _containingLibraryPath; |
11314 | 11315 |
11315 String _containingLibraryName; | 11316 String _containingLibraryName; |
11316 | 11317 |
11317 String _containingClassDescription; | 11318 String _containingClassDescription; |
11318 | 11319 |
11319 String _dartdoc; | 11320 String _dartdoc; |
11320 | 11321 |
11321 String _elementDescription; | 11322 String _elementDescription; |
11322 | 11323 |
11323 String _elementKind; | 11324 String _elementKind; |
11324 | 11325 |
| 11326 bool _isDeprecated; |
| 11327 |
11325 String _parameter; | 11328 String _parameter; |
11326 | 11329 |
11327 String _propagatedType; | 11330 String _propagatedType; |
11328 | 11331 |
11329 String _staticType; | 11332 String _staticType; |
11330 | 11333 |
11331 /** | 11334 /** |
11332 * The offset of the range of characters that encompasses the cursor position | 11335 * The offset of the range of characters that encompasses the cursor position |
11333 * and has the same hover information as the cursor position. | 11336 * and has the same hover information as the cursor position. |
11334 */ | 11337 */ |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11448 /** | 11451 /** |
11449 * A human-readable description of the kind of element being referenced (such | 11452 * A human-readable description of the kind of element being referenced (such |
11450 * as “class” or “function type alias”). This data is omitted if there is no | 11453 * as “class” or “function type alias”). This data is omitted if there is no |
11451 * referenced element. | 11454 * referenced element. |
11452 */ | 11455 */ |
11453 void set elementKind(String value) { | 11456 void set elementKind(String value) { |
11454 this._elementKind = value; | 11457 this._elementKind = value; |
11455 } | 11458 } |
11456 | 11459 |
11457 /** | 11460 /** |
| 11461 * True if the referenced element is deprecated. |
| 11462 */ |
| 11463 bool get isDeprecated => _isDeprecated; |
| 11464 |
| 11465 /** |
| 11466 * True if the referenced element is deprecated. |
| 11467 */ |
| 11468 void set isDeprecated(bool value) { |
| 11469 this._isDeprecated = value; |
| 11470 } |
| 11471 |
| 11472 /** |
11458 * A human-readable description of the parameter corresponding to the | 11473 * A human-readable description of the parameter corresponding to the |
11459 * expression being hovered over. This data is omitted if the location is not | 11474 * expression being hovered over. This data is omitted if the location is not |
11460 * in an argument to a function. | 11475 * in an argument to a function. |
11461 */ | 11476 */ |
11462 String get parameter => _parameter; | 11477 String get parameter => _parameter; |
11463 | 11478 |
11464 /** | 11479 /** |
11465 * A human-readable description of the parameter corresponding to the | 11480 * A human-readable description of the parameter corresponding to the |
11466 * expression being hovered over. This data is omitted if the location is not | 11481 * expression being hovered over. This data is omitted if the location is not |
11467 * in an argument to a function. | 11482 * in an argument to a function. |
(...skipping 25 matching lines...) Expand all Loading... |
11493 String get staticType => _staticType; | 11508 String get staticType => _staticType; |
11494 | 11509 |
11495 /** | 11510 /** |
11496 * The name of the static type of the expression. This data is omitted if the | 11511 * The name of the static type of the expression. This data is omitted if the |
11497 * location does not correspond to an expression. | 11512 * location does not correspond to an expression. |
11498 */ | 11513 */ |
11499 void set staticType(String value) { | 11514 void set staticType(String value) { |
11500 this._staticType = value; | 11515 this._staticType = value; |
11501 } | 11516 } |
11502 | 11517 |
11503 HoverInformation(int offset, int length, {String containingLibraryPath, String
containingLibraryName, String containingClassDescription, String dartdoc, Strin
g elementDescription, String elementKind, String parameter, String propagatedTyp
e, String staticType}) { | 11518 HoverInformation(int offset, int length, {String containingLibraryPath, String
containingLibraryName, String containingClassDescription, String dartdoc, Strin
g elementDescription, String elementKind, bool isDeprecated, String parameter, S
tring propagatedType, String staticType}) { |
11504 this.offset = offset; | 11519 this.offset = offset; |
11505 this.length = length; | 11520 this.length = length; |
11506 this.containingLibraryPath = containingLibraryPath; | 11521 this.containingLibraryPath = containingLibraryPath; |
11507 this.containingLibraryName = containingLibraryName; | 11522 this.containingLibraryName = containingLibraryName; |
11508 this.containingClassDescription = containingClassDescription; | 11523 this.containingClassDescription = containingClassDescription; |
11509 this.dartdoc = dartdoc; | 11524 this.dartdoc = dartdoc; |
11510 this.elementDescription = elementDescription; | 11525 this.elementDescription = elementDescription; |
11511 this.elementKind = elementKind; | 11526 this.elementKind = elementKind; |
| 11527 this.isDeprecated = isDeprecated; |
11512 this.parameter = parameter; | 11528 this.parameter = parameter; |
11513 this.propagatedType = propagatedType; | 11529 this.propagatedType = propagatedType; |
11514 this.staticType = staticType; | 11530 this.staticType = staticType; |
11515 } | 11531 } |
11516 | 11532 |
11517 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 11533 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
11518 if (json == null) { | 11534 if (json == null) { |
11519 json = {}; | 11535 json = {}; |
11520 } | 11536 } |
11521 if (json is Map) { | 11537 if (json is Map) { |
(...skipping 26 matching lines...) Expand all Loading... |
11548 dartdoc = jsonDecoder.decodeString(jsonPath + ".dartdoc", json["dartdoc"
]); | 11564 dartdoc = jsonDecoder.decodeString(jsonPath + ".dartdoc", json["dartdoc"
]); |
11549 } | 11565 } |
11550 String elementDescription; | 11566 String elementDescription; |
11551 if (json.containsKey("elementDescription")) { | 11567 if (json.containsKey("elementDescription")) { |
11552 elementDescription = jsonDecoder.decodeString(jsonPath + ".elementDescri
ption", json["elementDescription"]); | 11568 elementDescription = jsonDecoder.decodeString(jsonPath + ".elementDescri
ption", json["elementDescription"]); |
11553 } | 11569 } |
11554 String elementKind; | 11570 String elementKind; |
11555 if (json.containsKey("elementKind")) { | 11571 if (json.containsKey("elementKind")) { |
11556 elementKind = jsonDecoder.decodeString(jsonPath + ".elementKind", json["
elementKind"]); | 11572 elementKind = jsonDecoder.decodeString(jsonPath + ".elementKind", json["
elementKind"]); |
11557 } | 11573 } |
| 11574 bool isDeprecated; |
| 11575 if (json.containsKey("isDeprecated")) { |
| 11576 isDeprecated = jsonDecoder.decodeBool(jsonPath + ".isDeprecated", json["
isDeprecated"]); |
| 11577 } |
11558 String parameter; | 11578 String parameter; |
11559 if (json.containsKey("parameter")) { | 11579 if (json.containsKey("parameter")) { |
11560 parameter = jsonDecoder.decodeString(jsonPath + ".parameter", json["para
meter"]); | 11580 parameter = jsonDecoder.decodeString(jsonPath + ".parameter", json["para
meter"]); |
11561 } | 11581 } |
11562 String propagatedType; | 11582 String propagatedType; |
11563 if (json.containsKey("propagatedType")) { | 11583 if (json.containsKey("propagatedType")) { |
11564 propagatedType = jsonDecoder.decodeString(jsonPath + ".propagatedType",
json["propagatedType"]); | 11584 propagatedType = jsonDecoder.decodeString(jsonPath + ".propagatedType",
json["propagatedType"]); |
11565 } | 11585 } |
11566 String staticType; | 11586 String staticType; |
11567 if (json.containsKey("staticType")) { | 11587 if (json.containsKey("staticType")) { |
11568 staticType = jsonDecoder.decodeString(jsonPath + ".staticType", json["st
aticType"]); | 11588 staticType = jsonDecoder.decodeString(jsonPath + ".staticType", json["st
aticType"]); |
11569 } | 11589 } |
11570 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); | 11590 return new HoverInformation(offset, length, containingLibraryPath: contain
ingLibraryPath, containingLibraryName: containingLibraryName, containingClassDes
cription: containingClassDescription, dartdoc: dartdoc, elementDescription: elem
entDescription, elementKind: elementKind, isDeprecated: isDeprecated, parameter:
parameter, propagatedType: propagatedType, staticType: staticType); |
11571 } else { | 11591 } else { |
11572 throw jsonDecoder.mismatch(jsonPath, "HoverInformation", json); | 11592 throw jsonDecoder.mismatch(jsonPath, "HoverInformation", json); |
11573 } | 11593 } |
11574 } | 11594 } |
11575 | 11595 |
11576 Map<String, dynamic> toJson() { | 11596 Map<String, dynamic> toJson() { |
11577 Map<String, dynamic> result = {}; | 11597 Map<String, dynamic> result = {}; |
11578 result["offset"] = offset; | 11598 result["offset"] = offset; |
11579 result["length"] = length; | 11599 result["length"] = length; |
11580 if (containingLibraryPath != null) { | 11600 if (containingLibraryPath != null) { |
11581 result["containingLibraryPath"] = containingLibraryPath; | 11601 result["containingLibraryPath"] = containingLibraryPath; |
11582 } | 11602 } |
11583 if (containingLibraryName != null) { | 11603 if (containingLibraryName != null) { |
11584 result["containingLibraryName"] = containingLibraryName; | 11604 result["containingLibraryName"] = containingLibraryName; |
11585 } | 11605 } |
11586 if (containingClassDescription != null) { | 11606 if (containingClassDescription != null) { |
11587 result["containingClassDescription"] = containingClassDescription; | 11607 result["containingClassDescription"] = containingClassDescription; |
11588 } | 11608 } |
11589 if (dartdoc != null) { | 11609 if (dartdoc != null) { |
11590 result["dartdoc"] = dartdoc; | 11610 result["dartdoc"] = dartdoc; |
11591 } | 11611 } |
11592 if (elementDescription != null) { | 11612 if (elementDescription != null) { |
11593 result["elementDescription"] = elementDescription; | 11613 result["elementDescription"] = elementDescription; |
11594 } | 11614 } |
11595 if (elementKind != null) { | 11615 if (elementKind != null) { |
11596 result["elementKind"] = elementKind; | 11616 result["elementKind"] = elementKind; |
11597 } | 11617 } |
| 11618 if (isDeprecated != null) { |
| 11619 result["isDeprecated"] = isDeprecated; |
| 11620 } |
11598 if (parameter != null) { | 11621 if (parameter != null) { |
11599 result["parameter"] = parameter; | 11622 result["parameter"] = parameter; |
11600 } | 11623 } |
11601 if (propagatedType != null) { | 11624 if (propagatedType != null) { |
11602 result["propagatedType"] = propagatedType; | 11625 result["propagatedType"] = propagatedType; |
11603 } | 11626 } |
11604 if (staticType != null) { | 11627 if (staticType != null) { |
11605 result["staticType"] = staticType; | 11628 result["staticType"] = staticType; |
11606 } | 11629 } |
11607 return result; | 11630 return result; |
11608 } | 11631 } |
11609 | 11632 |
11610 @override | 11633 @override |
11611 String toString() => JSON.encode(toJson()); | 11634 String toString() => JSON.encode(toJson()); |
11612 | 11635 |
11613 @override | 11636 @override |
11614 bool operator==(other) { | 11637 bool operator==(other) { |
11615 if (other is HoverInformation) { | 11638 if (other is HoverInformation) { |
11616 return offset == other.offset && | 11639 return offset == other.offset && |
11617 length == other.length && | 11640 length == other.length && |
11618 containingLibraryPath == other.containingLibraryPath && | 11641 containingLibraryPath == other.containingLibraryPath && |
11619 containingLibraryName == other.containingLibraryName && | 11642 containingLibraryName == other.containingLibraryName && |
11620 containingClassDescription == other.containingClassDescription && | 11643 containingClassDescription == other.containingClassDescription && |
11621 dartdoc == other.dartdoc && | 11644 dartdoc == other.dartdoc && |
11622 elementDescription == other.elementDescription && | 11645 elementDescription == other.elementDescription && |
11623 elementKind == other.elementKind && | 11646 elementKind == other.elementKind && |
| 11647 isDeprecated == other.isDeprecated && |
11624 parameter == other.parameter && | 11648 parameter == other.parameter && |
11625 propagatedType == other.propagatedType && | 11649 propagatedType == other.propagatedType && |
11626 staticType == other.staticType; | 11650 staticType == other.staticType; |
11627 } | 11651 } |
11628 return false; | 11652 return false; |
11629 } | 11653 } |
11630 | 11654 |
11631 @override | 11655 @override |
11632 int get hashCode { | 11656 int get hashCode { |
11633 int hash = 0; | 11657 int hash = 0; |
11634 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 11658 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
11635 hash = JenkinsSmiHash.combine(hash, length.hashCode); | 11659 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
11636 hash = JenkinsSmiHash.combine(hash, containingLibraryPath.hashCode); | 11660 hash = JenkinsSmiHash.combine(hash, containingLibraryPath.hashCode); |
11637 hash = JenkinsSmiHash.combine(hash, containingLibraryName.hashCode); | 11661 hash = JenkinsSmiHash.combine(hash, containingLibraryName.hashCode); |
11638 hash = JenkinsSmiHash.combine(hash, containingClassDescription.hashCode); | 11662 hash = JenkinsSmiHash.combine(hash, containingClassDescription.hashCode); |
11639 hash = JenkinsSmiHash.combine(hash, dartdoc.hashCode); | 11663 hash = JenkinsSmiHash.combine(hash, dartdoc.hashCode); |
11640 hash = JenkinsSmiHash.combine(hash, elementDescription.hashCode); | 11664 hash = JenkinsSmiHash.combine(hash, elementDescription.hashCode); |
11641 hash = JenkinsSmiHash.combine(hash, elementKind.hashCode); | 11665 hash = JenkinsSmiHash.combine(hash, elementKind.hashCode); |
| 11666 hash = JenkinsSmiHash.combine(hash, isDeprecated.hashCode); |
11642 hash = JenkinsSmiHash.combine(hash, parameter.hashCode); | 11667 hash = JenkinsSmiHash.combine(hash, parameter.hashCode); |
11643 hash = JenkinsSmiHash.combine(hash, propagatedType.hashCode); | 11668 hash = JenkinsSmiHash.combine(hash, propagatedType.hashCode); |
11644 hash = JenkinsSmiHash.combine(hash, staticType.hashCode); | 11669 hash = JenkinsSmiHash.combine(hash, staticType.hashCode); |
11645 return JenkinsSmiHash.finish(hash); | 11670 return JenkinsSmiHash.finish(hash); |
11646 } | 11671 } |
11647 } | 11672 } |
11648 | 11673 |
11649 /** | 11674 /** |
11650 * ImplementedClass | 11675 * ImplementedClass |
11651 * | 11676 * |
(...skipping 5308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16960 return false; | 16985 return false; |
16961 } | 16986 } |
16962 | 16987 |
16963 @override | 16988 @override |
16964 int get hashCode { | 16989 int get hashCode { |
16965 int hash = 0; | 16990 int hash = 0; |
16966 hash = JenkinsSmiHash.combine(hash, newName.hashCode); | 16991 hash = JenkinsSmiHash.combine(hash, newName.hashCode); |
16967 return JenkinsSmiHash.finish(hash); | 16992 return JenkinsSmiHash.finish(hash); |
16968 } | 16993 } |
16969 } | 16994 } |
OLD | NEW |