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 protocol; | 9 part of protocol; |
10 /** | 10 /** |
(...skipping 2570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2581 @override | 2581 @override |
2582 int get hashCode { | 2582 int get hashCode { |
2583 int hash = 0; | 2583 int hash = 0; |
2584 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 2584 hash = _JenkinsSmiHash.combine(hash, file.hashCode); |
2585 hash = _JenkinsSmiHash.combine(hash, regions.hashCode); | 2585 hash = _JenkinsSmiHash.combine(hash, regions.hashCode); |
2586 return _JenkinsSmiHash.finish(hash); | 2586 return _JenkinsSmiHash.finish(hash); |
2587 } | 2587 } |
2588 } | 2588 } |
2589 | 2589 |
2590 /** | 2590 /** |
| 2591 * analysis.implemented params |
| 2592 * |
| 2593 * { |
| 2594 * "file": FilePath |
| 2595 * "classes": List<ImplementedClass> |
| 2596 * "members": List<ImplementedMember> |
| 2597 * } |
| 2598 */ |
| 2599 class AnalysisImplementedParams implements HasToJson { |
| 2600 String _file; |
| 2601 |
| 2602 List<ImplementedClass> _classes; |
| 2603 |
| 2604 List<ImplementedMember> _members; |
| 2605 |
| 2606 /** |
| 2607 * The file with which the implementations are associated. |
| 2608 */ |
| 2609 String get file => _file; |
| 2610 |
| 2611 /** |
| 2612 * The file with which the implementations are associated. |
| 2613 */ |
| 2614 void set file(String value) { |
| 2615 assert(value != null); |
| 2616 this._file = value; |
| 2617 } |
| 2618 |
| 2619 /** |
| 2620 * The classes defined in the file that are implemented or extended. |
| 2621 */ |
| 2622 List<ImplementedClass> get classes => _classes; |
| 2623 |
| 2624 /** |
| 2625 * The classes defined in the file that are implemented or extended. |
| 2626 */ |
| 2627 void set classes(List<ImplementedClass> value) { |
| 2628 assert(value != null); |
| 2629 this._classes = value; |
| 2630 } |
| 2631 |
| 2632 /** |
| 2633 * The member defined in the file that are implemented or overridden. |
| 2634 */ |
| 2635 List<ImplementedMember> get members => _members; |
| 2636 |
| 2637 /** |
| 2638 * The member defined in the file that are implemented or overridden. |
| 2639 */ |
| 2640 void set members(List<ImplementedMember> value) { |
| 2641 assert(value != null); |
| 2642 this._members = value; |
| 2643 } |
| 2644 |
| 2645 AnalysisImplementedParams(String file, List<ImplementedClass> classes, List<Im
plementedMember> members) { |
| 2646 this.file = file; |
| 2647 this.classes = classes; |
| 2648 this.members = members; |
| 2649 } |
| 2650 |
| 2651 factory AnalysisImplementedParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { |
| 2652 if (json == null) { |
| 2653 json = {}; |
| 2654 } |
| 2655 if (json is Map) { |
| 2656 String file; |
| 2657 if (json.containsKey("file")) { |
| 2658 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); |
| 2659 } else { |
| 2660 throw jsonDecoder.missingKey(jsonPath, "file"); |
| 2661 } |
| 2662 List<ImplementedClass> classes; |
| 2663 if (json.containsKey("classes")) { |
| 2664 classes = jsonDecoder._decodeList(jsonPath + ".classes", json["classes"]
, (String jsonPath, Object json) => new ImplementedClass.fromJson(jsonDecoder, j
sonPath, json)); |
| 2665 } else { |
| 2666 throw jsonDecoder.missingKey(jsonPath, "classes"); |
| 2667 } |
| 2668 List<ImplementedMember> members; |
| 2669 if (json.containsKey("members")) { |
| 2670 members = jsonDecoder._decodeList(jsonPath + ".members", json["members"]
, (String jsonPath, Object json) => new ImplementedMember.fromJson(jsonDecoder,
jsonPath, json)); |
| 2671 } else { |
| 2672 throw jsonDecoder.missingKey(jsonPath, "members"); |
| 2673 } |
| 2674 return new AnalysisImplementedParams(file, classes, members); |
| 2675 } else { |
| 2676 throw jsonDecoder.mismatch(jsonPath, "analysis.implemented params", json); |
| 2677 } |
| 2678 } |
| 2679 |
| 2680 factory AnalysisImplementedParams.fromNotification(Notification notification)
{ |
| 2681 return new AnalysisImplementedParams.fromJson( |
| 2682 new ResponseDecoder(null), "params", notification._params); |
| 2683 } |
| 2684 |
| 2685 Map<String, dynamic> toJson() { |
| 2686 Map<String, dynamic> result = {}; |
| 2687 result["file"] = file; |
| 2688 result["classes"] = classes.map((ImplementedClass value) => value.toJson()).
toList(); |
| 2689 result["members"] = members.map((ImplementedMember value) => value.toJson())
.toList(); |
| 2690 return result; |
| 2691 } |
| 2692 |
| 2693 Notification toNotification() { |
| 2694 return new Notification("analysis.implemented", toJson()); |
| 2695 } |
| 2696 |
| 2697 @override |
| 2698 String toString() => JSON.encode(toJson()); |
| 2699 |
| 2700 @override |
| 2701 bool operator==(other) { |
| 2702 if (other is AnalysisImplementedParams) { |
| 2703 return file == other.file && |
| 2704 _listEqual(classes, other.classes, (ImplementedClass a, ImplementedCla
ss b) => a == b) && |
| 2705 _listEqual(members, other.members, (ImplementedMember a, ImplementedMe
mber b) => a == b); |
| 2706 } |
| 2707 return false; |
| 2708 } |
| 2709 |
| 2710 @override |
| 2711 int get hashCode { |
| 2712 int hash = 0; |
| 2713 hash = _JenkinsSmiHash.combine(hash, file.hashCode); |
| 2714 hash = _JenkinsSmiHash.combine(hash, classes.hashCode); |
| 2715 hash = _JenkinsSmiHash.combine(hash, members.hashCode); |
| 2716 return _JenkinsSmiHash.finish(hash); |
| 2717 } |
| 2718 } |
| 2719 |
| 2720 /** |
2591 * analysis.invalidate params | 2721 * analysis.invalidate params |
2592 * | 2722 * |
2593 * { | 2723 * { |
2594 * "file": FilePath | 2724 * "file": FilePath |
2595 * "offset": int | 2725 * "offset": int |
2596 * "length": int | 2726 * "length": int |
2597 * "delta": int | 2727 * "delta": int |
2598 * } | 2728 * } |
2599 */ | 2729 */ |
2600 class AnalysisInvalidateParams implements HasToJson { | 2730 class AnalysisInvalidateParams implements HasToJson { |
(...skipping 5228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7829 return _JenkinsSmiHash.finish(hash); | 7959 return _JenkinsSmiHash.finish(hash); |
7830 } | 7960 } |
7831 } | 7961 } |
7832 | 7962 |
7833 /** | 7963 /** |
7834 * AnalysisService | 7964 * AnalysisService |
7835 * | 7965 * |
7836 * enum { | 7966 * enum { |
7837 * FOLDING | 7967 * FOLDING |
7838 * HIGHLIGHTS | 7968 * HIGHLIGHTS |
| 7969 * IMPLEMENTED |
7839 * INVALIDATE | 7970 * INVALIDATE |
7840 * NAVIGATION | 7971 * NAVIGATION |
7841 * OCCURRENCES | 7972 * OCCURRENCES |
7842 * OUTLINE | 7973 * OUTLINE |
7843 * OVERRIDES | 7974 * OVERRIDES |
7844 * } | 7975 * } |
7845 */ | 7976 */ |
7846 class AnalysisService implements Enum { | 7977 class AnalysisService implements Enum { |
7847 static const FOLDING = const AnalysisService._("FOLDING"); | 7978 static const FOLDING = const AnalysisService._("FOLDING"); |
7848 | 7979 |
7849 static const HIGHLIGHTS = const AnalysisService._("HIGHLIGHTS"); | 7980 static const HIGHLIGHTS = const AnalysisService._("HIGHLIGHTS"); |
7850 | 7981 |
| 7982 static const IMPLEMENTED = const AnalysisService._("IMPLEMENTED"); |
| 7983 |
7851 /** | 7984 /** |
7852 * This service is not currently implemented and will become a | 7985 * This service is not currently implemented and will become a |
7853 * GeneralAnalysisService in a future release. | 7986 * GeneralAnalysisService in a future release. |
7854 */ | 7987 */ |
7855 static const INVALIDATE = const AnalysisService._("INVALIDATE"); | 7988 static const INVALIDATE = const AnalysisService._("INVALIDATE"); |
7856 | 7989 |
7857 static const NAVIGATION = const AnalysisService._("NAVIGATION"); | 7990 static const NAVIGATION = const AnalysisService._("NAVIGATION"); |
7858 | 7991 |
7859 static const OCCURRENCES = const AnalysisService._("OCCURRENCES"); | 7992 static const OCCURRENCES = const AnalysisService._("OCCURRENCES"); |
7860 | 7993 |
7861 static const OUTLINE = const AnalysisService._("OUTLINE"); | 7994 static const OUTLINE = const AnalysisService._("OUTLINE"); |
7862 | 7995 |
7863 static const OVERRIDES = const AnalysisService._("OVERRIDES"); | 7996 static const OVERRIDES = const AnalysisService._("OVERRIDES"); |
7864 | 7997 |
7865 /** | 7998 /** |
7866 * A list containing all of the enum values that are defined. | 7999 * A list containing all of the enum values that are defined. |
7867 */ | 8000 */ |
7868 static const List<AnalysisService> VALUES = const <AnalysisService>[FOLDING, H
IGHLIGHTS, INVALIDATE, NAVIGATION, OCCURRENCES, OUTLINE, OVERRIDES]; | 8001 static const List<AnalysisService> VALUES = const <AnalysisService>[FOLDING, H
IGHLIGHTS, IMPLEMENTED, INVALIDATE, NAVIGATION, OCCURRENCES, OUTLINE, OVERRIDES]
; |
7869 | 8002 |
7870 final String name; | 8003 final String name; |
7871 | 8004 |
7872 const AnalysisService._(this.name); | 8005 const AnalysisService._(this.name); |
7873 | 8006 |
7874 factory AnalysisService(String name) { | 8007 factory AnalysisService(String name) { |
7875 switch (name) { | 8008 switch (name) { |
7876 case "FOLDING": | 8009 case "FOLDING": |
7877 return FOLDING; | 8010 return FOLDING; |
7878 case "HIGHLIGHTS": | 8011 case "HIGHLIGHTS": |
7879 return HIGHLIGHTS; | 8012 return HIGHLIGHTS; |
| 8013 case "IMPLEMENTED": |
| 8014 return IMPLEMENTED; |
7880 case "INVALIDATE": | 8015 case "INVALIDATE": |
7881 return INVALIDATE; | 8016 return INVALIDATE; |
7882 case "NAVIGATION": | 8017 case "NAVIGATION": |
7883 return NAVIGATION; | 8018 return NAVIGATION; |
7884 case "OCCURRENCES": | 8019 case "OCCURRENCES": |
7885 return OCCURRENCES; | 8020 return OCCURRENCES; |
7886 case "OUTLINE": | 8021 case "OUTLINE": |
7887 return OUTLINE; | 8022 return OUTLINE; |
7888 case "OVERRIDES": | 8023 case "OVERRIDES": |
7889 return OVERRIDES; | 8024 return OVERRIDES; |
(...skipping 2738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10628 hash = _JenkinsSmiHash.combine(hash, elementDescription.hashCode); | 10763 hash = _JenkinsSmiHash.combine(hash, elementDescription.hashCode); |
10629 hash = _JenkinsSmiHash.combine(hash, elementKind.hashCode); | 10764 hash = _JenkinsSmiHash.combine(hash, elementKind.hashCode); |
10630 hash = _JenkinsSmiHash.combine(hash, parameter.hashCode); | 10765 hash = _JenkinsSmiHash.combine(hash, parameter.hashCode); |
10631 hash = _JenkinsSmiHash.combine(hash, propagatedType.hashCode); | 10766 hash = _JenkinsSmiHash.combine(hash, propagatedType.hashCode); |
10632 hash = _JenkinsSmiHash.combine(hash, staticType.hashCode); | 10767 hash = _JenkinsSmiHash.combine(hash, staticType.hashCode); |
10633 return _JenkinsSmiHash.finish(hash); | 10768 return _JenkinsSmiHash.finish(hash); |
10634 } | 10769 } |
10635 } | 10770 } |
10636 | 10771 |
10637 /** | 10772 /** |
| 10773 * ImplementedClass |
| 10774 * |
| 10775 * { |
| 10776 * "offset": int |
| 10777 * "length": int |
| 10778 * } |
| 10779 */ |
| 10780 class ImplementedClass implements HasToJson { |
| 10781 int _offset; |
| 10782 |
| 10783 int _length; |
| 10784 |
| 10785 /** |
| 10786 * The offset of the name of the implemented class. |
| 10787 */ |
| 10788 int get offset => _offset; |
| 10789 |
| 10790 /** |
| 10791 * The offset of the name of the implemented class. |
| 10792 */ |
| 10793 void set offset(int value) { |
| 10794 assert(value != null); |
| 10795 this._offset = value; |
| 10796 } |
| 10797 |
| 10798 /** |
| 10799 * The length of the name of the implemented class. |
| 10800 */ |
| 10801 int get length => _length; |
| 10802 |
| 10803 /** |
| 10804 * The length of the name of the implemented class. |
| 10805 */ |
| 10806 void set length(int value) { |
| 10807 assert(value != null); |
| 10808 this._length = value; |
| 10809 } |
| 10810 |
| 10811 ImplementedClass(int offset, int length) { |
| 10812 this.offset = offset; |
| 10813 this.length = length; |
| 10814 } |
| 10815 |
| 10816 factory ImplementedClass.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
| 10817 if (json == null) { |
| 10818 json = {}; |
| 10819 } |
| 10820 if (json is Map) { |
| 10821 int offset; |
| 10822 if (json.containsKey("offset")) { |
| 10823 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); |
| 10824 } else { |
| 10825 throw jsonDecoder.missingKey(jsonPath, "offset"); |
| 10826 } |
| 10827 int length; |
| 10828 if (json.containsKey("length")) { |
| 10829 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
| 10830 } else { |
| 10831 throw jsonDecoder.missingKey(jsonPath, "length"); |
| 10832 } |
| 10833 return new ImplementedClass(offset, length); |
| 10834 } else { |
| 10835 throw jsonDecoder.mismatch(jsonPath, "ImplementedClass", json); |
| 10836 } |
| 10837 } |
| 10838 |
| 10839 Map<String, dynamic> toJson() { |
| 10840 Map<String, dynamic> result = {}; |
| 10841 result["offset"] = offset; |
| 10842 result["length"] = length; |
| 10843 return result; |
| 10844 } |
| 10845 |
| 10846 @override |
| 10847 String toString() => JSON.encode(toJson()); |
| 10848 |
| 10849 @override |
| 10850 bool operator==(other) { |
| 10851 if (other is ImplementedClass) { |
| 10852 return offset == other.offset && |
| 10853 length == other.length; |
| 10854 } |
| 10855 return false; |
| 10856 } |
| 10857 |
| 10858 @override |
| 10859 int get hashCode { |
| 10860 int hash = 0; |
| 10861 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); |
| 10862 hash = _JenkinsSmiHash.combine(hash, length.hashCode); |
| 10863 return _JenkinsSmiHash.finish(hash); |
| 10864 } |
| 10865 } |
| 10866 |
| 10867 /** |
| 10868 * ImplementedMember |
| 10869 * |
| 10870 * { |
| 10871 * "offset": int |
| 10872 * "length": int |
| 10873 * } |
| 10874 */ |
| 10875 class ImplementedMember implements HasToJson { |
| 10876 int _offset; |
| 10877 |
| 10878 int _length; |
| 10879 |
| 10880 /** |
| 10881 * The offset of the name of the implemented member. |
| 10882 */ |
| 10883 int get offset => _offset; |
| 10884 |
| 10885 /** |
| 10886 * The offset of the name of the implemented member. |
| 10887 */ |
| 10888 void set offset(int value) { |
| 10889 assert(value != null); |
| 10890 this._offset = value; |
| 10891 } |
| 10892 |
| 10893 /** |
| 10894 * The length of the name of the implemented member. |
| 10895 */ |
| 10896 int get length => _length; |
| 10897 |
| 10898 /** |
| 10899 * The length of the name of the implemented member. |
| 10900 */ |
| 10901 void set length(int value) { |
| 10902 assert(value != null); |
| 10903 this._length = value; |
| 10904 } |
| 10905 |
| 10906 ImplementedMember(int offset, int length) { |
| 10907 this.offset = offset; |
| 10908 this.length = length; |
| 10909 } |
| 10910 |
| 10911 factory ImplementedMember.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
| 10912 if (json == null) { |
| 10913 json = {}; |
| 10914 } |
| 10915 if (json is Map) { |
| 10916 int offset; |
| 10917 if (json.containsKey("offset")) { |
| 10918 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); |
| 10919 } else { |
| 10920 throw jsonDecoder.missingKey(jsonPath, "offset"); |
| 10921 } |
| 10922 int length; |
| 10923 if (json.containsKey("length")) { |
| 10924 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); |
| 10925 } else { |
| 10926 throw jsonDecoder.missingKey(jsonPath, "length"); |
| 10927 } |
| 10928 return new ImplementedMember(offset, length); |
| 10929 } else { |
| 10930 throw jsonDecoder.mismatch(jsonPath, "ImplementedMember", json); |
| 10931 } |
| 10932 } |
| 10933 |
| 10934 Map<String, dynamic> toJson() { |
| 10935 Map<String, dynamic> result = {}; |
| 10936 result["offset"] = offset; |
| 10937 result["length"] = length; |
| 10938 return result; |
| 10939 } |
| 10940 |
| 10941 @override |
| 10942 String toString() => JSON.encode(toJson()); |
| 10943 |
| 10944 @override |
| 10945 bool operator==(other) { |
| 10946 if (other is ImplementedMember) { |
| 10947 return offset == other.offset && |
| 10948 length == other.length; |
| 10949 } |
| 10950 return false; |
| 10951 } |
| 10952 |
| 10953 @override |
| 10954 int get hashCode { |
| 10955 int hash = 0; |
| 10956 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); |
| 10957 hash = _JenkinsSmiHash.combine(hash, length.hashCode); |
| 10958 return _JenkinsSmiHash.finish(hash); |
| 10959 } |
| 10960 } |
| 10961 |
| 10962 /** |
10638 * LinkedEditGroup | 10963 * LinkedEditGroup |
10639 * | 10964 * |
10640 * { | 10965 * { |
10641 * "positions": List<Position> | 10966 * "positions": List<Position> |
10642 * "length": int | 10967 * "length": int |
10643 * "suggestions": List<LinkedEditSuggestion> | 10968 * "suggestions": List<LinkedEditSuggestion> |
10644 * } | 10969 * } |
10645 */ | 10970 */ |
10646 class LinkedEditGroup implements HasToJson { | 10971 class LinkedEditGroup implements HasToJson { |
10647 List<Position> _positions; | 10972 List<Position> _positions; |
(...skipping 4944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15592 return false; | 15917 return false; |
15593 } | 15918 } |
15594 | 15919 |
15595 @override | 15920 @override |
15596 int get hashCode { | 15921 int get hashCode { |
15597 int hash = 0; | 15922 int hash = 0; |
15598 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 15923 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
15599 return _JenkinsSmiHash.finish(hash); | 15924 return _JenkinsSmiHash.finish(hash); |
15600 } | 15925 } |
15601 } | 15926 } |
OLD | NEW |