| 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/spec/generate_files". | 7 // "pkg/analysis_server/spec/generate_files". |
| 8 | 8 |
| 9 part of protocol; | 9 part of protocol; |
| 10 /** | 10 /** |
| (...skipping 3350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3361 | 3361 |
| 3362 /** | 3362 /** |
| 3363 * edit.getFixes result | 3363 * edit.getFixes result |
| 3364 * | 3364 * |
| 3365 * { | 3365 * { |
| 3366 * "fixes": List<AnalysisErrorFixes> | 3366 * "fixes": List<AnalysisErrorFixes> |
| 3367 * } | 3367 * } |
| 3368 */ | 3368 */ |
| 3369 class EditGetFixesResult implements HasToJson { | 3369 class EditGetFixesResult implements HasToJson { |
| 3370 /** | 3370 /** |
| 3371 * The fixes that are available for each of the analysis errors. There is a | 3371 * The fixes that are available for the errors at the given offset. |
| 3372 * one-to-one correspondence between the analysis errors in the request and | |
| 3373 * the lists of changes in the response. In particular, it is always the case | |
| 3374 * that errors.length == fixes.length and that fixes[i] is the list of fixes | |
| 3375 * for the error in errors[i]. The list of changes corresponding to an error | |
| 3376 * can be empty if there are no fixes available for that error. | |
| 3377 */ | 3372 */ |
| 3378 List<AnalysisErrorFixes> fixes; | 3373 List<AnalysisErrorFixes> fixes; |
| 3379 | 3374 |
| 3380 EditGetFixesResult(this.fixes); | 3375 EditGetFixesResult(this.fixes); |
| 3381 | 3376 |
| 3382 factory EditGetFixesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 3377 factory EditGetFixesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
| 3383 if (json == null) { | 3378 if (json == null) { |
| 3384 json = {}; | 3379 json = {}; |
| 3385 } | 3380 } |
| 3386 if (json is Map) { | 3381 if (json is Map) { |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3701 int hash = 0; | 3696 int hash = 0; |
| 3702 hash = _JenkinsSmiHash.combine(hash, problems.hashCode); | 3697 hash = _JenkinsSmiHash.combine(hash, problems.hashCode); |
| 3703 hash = _JenkinsSmiHash.combine(hash, feedback.hashCode); | 3698 hash = _JenkinsSmiHash.combine(hash, feedback.hashCode); |
| 3704 hash = _JenkinsSmiHash.combine(hash, change.hashCode); | 3699 hash = _JenkinsSmiHash.combine(hash, change.hashCode); |
| 3705 hash = _JenkinsSmiHash.combine(hash, potentialEdits.hashCode); | 3700 hash = _JenkinsSmiHash.combine(hash, potentialEdits.hashCode); |
| 3706 return _JenkinsSmiHash.finish(hash); | 3701 return _JenkinsSmiHash.finish(hash); |
| 3707 } | 3702 } |
| 3708 } | 3703 } |
| 3709 | 3704 |
| 3710 /** | 3705 /** |
| 3711 * debug.createContext params | 3706 * execution.createContext params |
| 3712 * | 3707 * |
| 3713 * { | 3708 * { |
| 3714 * "contextRoot": FilePath | 3709 * "contextRoot": FilePath |
| 3715 * } | 3710 * } |
| 3716 */ | 3711 */ |
| 3717 class DebugCreateContextParams implements HasToJson { | 3712 class ExecutionCreateContextParams implements HasToJson { |
| 3718 /** | 3713 /** |
| 3719 * The path of the Dart or HTML file that will be launched. | 3714 * The path of the Dart or HTML file that will be launched. |
| 3720 */ | 3715 */ |
| 3721 String contextRoot; | 3716 String contextRoot; |
| 3722 | 3717 |
| 3723 DebugCreateContextParams(this.contextRoot); | 3718 ExecutionCreateContextParams(this.contextRoot); |
| 3724 | 3719 |
| 3725 factory DebugCreateContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3720 factory ExecutionCreateContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
| 3726 if (json == null) { | 3721 if (json == null) { |
| 3727 json = {}; | 3722 json = {}; |
| 3728 } | 3723 } |
| 3729 if (json is Map) { | 3724 if (json is Map) { |
| 3730 String contextRoot; | 3725 String contextRoot; |
| 3731 if (json.containsKey("contextRoot")) { | 3726 if (json.containsKey("contextRoot")) { |
| 3732 contextRoot = jsonDecoder._decodeString(jsonPath + ".contextRoot", json[
"contextRoot"]); | 3727 contextRoot = jsonDecoder._decodeString(jsonPath + ".contextRoot", json[
"contextRoot"]); |
| 3733 } else { | 3728 } else { |
| 3734 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); | 3729 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); |
| 3735 } | 3730 } |
| 3736 return new DebugCreateContextParams(contextRoot); | 3731 return new ExecutionCreateContextParams(contextRoot); |
| 3737 } else { | 3732 } else { |
| 3738 throw jsonDecoder.mismatch(jsonPath, "debug.createContext params"); | 3733 throw jsonDecoder.mismatch(jsonPath, "execution.createContext params"); |
| 3739 } | 3734 } |
| 3740 } | 3735 } |
| 3741 | 3736 |
| 3742 factory DebugCreateContextParams.fromRequest(Request request) { | 3737 factory ExecutionCreateContextParams.fromRequest(Request request) { |
| 3743 return new DebugCreateContextParams.fromJson( | 3738 return new ExecutionCreateContextParams.fromJson( |
| 3744 new RequestDecoder(request), "params", request._params); | 3739 new RequestDecoder(request), "params", request._params); |
| 3745 } | 3740 } |
| 3746 | 3741 |
| 3747 Map<String, dynamic> toJson() { | 3742 Map<String, dynamic> toJson() { |
| 3748 Map<String, dynamic> result = {}; | 3743 Map<String, dynamic> result = {}; |
| 3749 result["contextRoot"] = contextRoot; | 3744 result["contextRoot"] = contextRoot; |
| 3750 return result; | 3745 return result; |
| 3751 } | 3746 } |
| 3752 | 3747 |
| 3753 Request toRequest(String id) { | 3748 Request toRequest(String id) { |
| 3754 return new Request(id, "debug.createContext", toJson()); | 3749 return new Request(id, "execution.createContext", toJson()); |
| 3755 } | 3750 } |
| 3756 | 3751 |
| 3757 @override | 3752 @override |
| 3758 String toString() => JSON.encode(toJson()); | 3753 String toString() => JSON.encode(toJson()); |
| 3759 | 3754 |
| 3760 @override | 3755 @override |
| 3761 bool operator==(other) { | 3756 bool operator==(other) { |
| 3762 if (other is DebugCreateContextParams) { | 3757 if (other is ExecutionCreateContextParams) { |
| 3763 return contextRoot == other.contextRoot; | 3758 return contextRoot == other.contextRoot; |
| 3764 } | 3759 } |
| 3765 return false; | 3760 return false; |
| 3766 } | 3761 } |
| 3767 | 3762 |
| 3768 @override | 3763 @override |
| 3769 int get hashCode { | 3764 int get hashCode { |
| 3770 int hash = 0; | 3765 int hash = 0; |
| 3771 hash = _JenkinsSmiHash.combine(hash, contextRoot.hashCode); | 3766 hash = _JenkinsSmiHash.combine(hash, contextRoot.hashCode); |
| 3772 return _JenkinsSmiHash.finish(hash); | 3767 return _JenkinsSmiHash.finish(hash); |
| 3773 } | 3768 } |
| 3774 } | 3769 } |
| 3775 | 3770 |
| 3776 /** | 3771 /** |
| 3777 * debug.createContext result | 3772 * execution.createContext result |
| 3778 * | 3773 * |
| 3779 * { | 3774 * { |
| 3780 * "id": DebugContextId | 3775 * "id": ExecutionContextId |
| 3781 * } | 3776 * } |
| 3782 */ | 3777 */ |
| 3783 class DebugCreateContextResult implements HasToJson { | 3778 class ExecutionCreateContextResult implements HasToJson { |
| 3784 /** | 3779 /** |
| 3785 * The identifier used to refer to the debugging context that was created. | 3780 * The identifier used to refer to the execution context that was created. |
| 3786 */ | 3781 */ |
| 3787 String id; | 3782 String id; |
| 3788 | 3783 |
| 3789 DebugCreateContextResult(this.id); | 3784 ExecutionCreateContextResult(this.id); |
| 3790 | 3785 |
| 3791 factory DebugCreateContextResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3786 factory ExecutionCreateContextResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
| 3792 if (json == null) { | 3787 if (json == null) { |
| 3793 json = {}; | 3788 json = {}; |
| 3794 } | 3789 } |
| 3795 if (json is Map) { | 3790 if (json is Map) { |
| 3796 String id; | 3791 String id; |
| 3797 if (json.containsKey("id")) { | 3792 if (json.containsKey("id")) { |
| 3798 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3793 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
| 3799 } else { | 3794 } else { |
| 3800 throw jsonDecoder.missingKey(jsonPath, "id"); | 3795 throw jsonDecoder.missingKey(jsonPath, "id"); |
| 3801 } | 3796 } |
| 3802 return new DebugCreateContextResult(id); | 3797 return new ExecutionCreateContextResult(id); |
| 3803 } else { | 3798 } else { |
| 3804 throw jsonDecoder.mismatch(jsonPath, "debug.createContext result"); | 3799 throw jsonDecoder.mismatch(jsonPath, "execution.createContext result"); |
| 3805 } | 3800 } |
| 3806 } | 3801 } |
| 3807 | 3802 |
| 3808 factory DebugCreateContextResult.fromResponse(Response response) { | 3803 factory ExecutionCreateContextResult.fromResponse(Response response) { |
| 3809 return new DebugCreateContextResult.fromJson( | 3804 return new ExecutionCreateContextResult.fromJson( |
| 3810 new ResponseDecoder(response), "result", response._result); | 3805 new ResponseDecoder(response), "result", response._result); |
| 3811 } | 3806 } |
| 3812 | 3807 |
| 3813 Map<String, dynamic> toJson() { | 3808 Map<String, dynamic> toJson() { |
| 3814 Map<String, dynamic> result = {}; | 3809 Map<String, dynamic> result = {}; |
| 3815 result["id"] = id; | 3810 result["id"] = id; |
| 3816 return result; | 3811 return result; |
| 3817 } | 3812 } |
| 3818 | 3813 |
| 3819 Response toResponse(String id) { | 3814 Response toResponse(String id) { |
| 3820 return new Response(id, result: toJson()); | 3815 return new Response(id, result: toJson()); |
| 3821 } | 3816 } |
| 3822 | 3817 |
| 3823 @override | 3818 @override |
| 3824 String toString() => JSON.encode(toJson()); | 3819 String toString() => JSON.encode(toJson()); |
| 3825 | 3820 |
| 3826 @override | 3821 @override |
| 3827 bool operator==(other) { | 3822 bool operator==(other) { |
| 3828 if (other is DebugCreateContextResult) { | 3823 if (other is ExecutionCreateContextResult) { |
| 3829 return id == other.id; | 3824 return id == other.id; |
| 3830 } | 3825 } |
| 3831 return false; | 3826 return false; |
| 3832 } | 3827 } |
| 3833 | 3828 |
| 3834 @override | 3829 @override |
| 3835 int get hashCode { | 3830 int get hashCode { |
| 3836 int hash = 0; | 3831 int hash = 0; |
| 3837 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 3832 hash = _JenkinsSmiHash.combine(hash, id.hashCode); |
| 3838 return _JenkinsSmiHash.finish(hash); | 3833 return _JenkinsSmiHash.finish(hash); |
| 3839 } | 3834 } |
| 3840 } | 3835 } |
| 3841 | 3836 |
| 3842 /** | 3837 /** |
| 3843 * debug.deleteContext params | 3838 * execution.deleteContext params |
| 3844 * | 3839 * |
| 3845 * { | 3840 * { |
| 3846 * "id": DebugContextId | 3841 * "id": ExecutionContextId |
| 3847 * } | 3842 * } |
| 3848 */ | 3843 */ |
| 3849 class DebugDeleteContextParams implements HasToJson { | 3844 class ExecutionDeleteContextParams implements HasToJson { |
| 3850 /** | 3845 /** |
| 3851 * The identifier of the debugging context that is to be deleted. | 3846 * The identifier of the execution context that is to be deleted. |
| 3852 */ | 3847 */ |
| 3853 String id; | 3848 String id; |
| 3854 | 3849 |
| 3855 DebugDeleteContextParams(this.id); | 3850 ExecutionDeleteContextParams(this.id); |
| 3856 | 3851 |
| 3857 factory DebugDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3852 factory ExecutionDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
| 3858 if (json == null) { | 3853 if (json == null) { |
| 3859 json = {}; | 3854 json = {}; |
| 3860 } | 3855 } |
| 3861 if (json is Map) { | 3856 if (json is Map) { |
| 3862 String id; | 3857 String id; |
| 3863 if (json.containsKey("id")) { | 3858 if (json.containsKey("id")) { |
| 3864 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3859 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
| 3865 } else { | 3860 } else { |
| 3866 throw jsonDecoder.missingKey(jsonPath, "id"); | 3861 throw jsonDecoder.missingKey(jsonPath, "id"); |
| 3867 } | 3862 } |
| 3868 return new DebugDeleteContextParams(id); | 3863 return new ExecutionDeleteContextParams(id); |
| 3869 } else { | 3864 } else { |
| 3870 throw jsonDecoder.mismatch(jsonPath, "debug.deleteContext params"); | 3865 throw jsonDecoder.mismatch(jsonPath, "execution.deleteContext params"); |
| 3871 } | 3866 } |
| 3872 } | 3867 } |
| 3873 | 3868 |
| 3874 factory DebugDeleteContextParams.fromRequest(Request request) { | 3869 factory ExecutionDeleteContextParams.fromRequest(Request request) { |
| 3875 return new DebugDeleteContextParams.fromJson( | 3870 return new ExecutionDeleteContextParams.fromJson( |
| 3876 new RequestDecoder(request), "params", request._params); | 3871 new RequestDecoder(request), "params", request._params); |
| 3877 } | 3872 } |
| 3878 | 3873 |
| 3879 Map<String, dynamic> toJson() { | 3874 Map<String, dynamic> toJson() { |
| 3880 Map<String, dynamic> result = {}; | 3875 Map<String, dynamic> result = {}; |
| 3881 result["id"] = id; | 3876 result["id"] = id; |
| 3882 return result; | 3877 return result; |
| 3883 } | 3878 } |
| 3884 | 3879 |
| 3885 Request toRequest(String id) { | 3880 Request toRequest(String id) { |
| 3886 return new Request(id, "debug.deleteContext", toJson()); | 3881 return new Request(id, "execution.deleteContext", toJson()); |
| 3887 } | 3882 } |
| 3888 | 3883 |
| 3889 @override | 3884 @override |
| 3890 String toString() => JSON.encode(toJson()); | 3885 String toString() => JSON.encode(toJson()); |
| 3891 | 3886 |
| 3892 @override | 3887 @override |
| 3893 bool operator==(other) { | 3888 bool operator==(other) { |
| 3894 if (other is DebugDeleteContextParams) { | 3889 if (other is ExecutionDeleteContextParams) { |
| 3895 return id == other.id; | 3890 return id == other.id; |
| 3896 } | 3891 } |
| 3897 return false; | 3892 return false; |
| 3898 } | 3893 } |
| 3899 | 3894 |
| 3900 @override | 3895 @override |
| 3901 int get hashCode { | 3896 int get hashCode { |
| 3902 int hash = 0; | 3897 int hash = 0; |
| 3903 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 3898 hash = _JenkinsSmiHash.combine(hash, id.hashCode); |
| 3904 return _JenkinsSmiHash.finish(hash); | 3899 return _JenkinsSmiHash.finish(hash); |
| 3905 } | 3900 } |
| 3906 } | 3901 } |
| 3907 /** | 3902 /** |
| 3908 * debug.deleteContext result | 3903 * execution.deleteContext result |
| 3909 */ | 3904 */ |
| 3910 class DebugDeleteContextResult { | 3905 class ExecutionDeleteContextResult { |
| 3911 Response toResponse(String id) { | 3906 Response toResponse(String id) { |
| 3912 return new Response(id, result: null); | 3907 return new Response(id, result: null); |
| 3913 } | 3908 } |
| 3914 | 3909 |
| 3915 @override | 3910 @override |
| 3916 bool operator==(other) { | 3911 bool operator==(other) { |
| 3917 if (other is DebugDeleteContextResult) { | 3912 if (other is ExecutionDeleteContextResult) { |
| 3918 return true; | 3913 return true; |
| 3919 } | 3914 } |
| 3920 return false; | 3915 return false; |
| 3921 } | 3916 } |
| 3922 | 3917 |
| 3923 @override | 3918 @override |
| 3924 int get hashCode { | 3919 int get hashCode { |
| 3925 return 923895626; | 3920 return 479954425; |
| 3926 } | 3921 } |
| 3927 } | 3922 } |
| 3928 | 3923 |
| 3929 /** | 3924 /** |
| 3930 * debug.mapUri params | 3925 * execution.mapUri params |
| 3931 * | 3926 * |
| 3932 * { | 3927 * { |
| 3933 * "id": DebugContextId | 3928 * "id": ExecutionContextId |
| 3934 * "file": optional FilePath | 3929 * "file": optional FilePath |
| 3935 * "uri": optional String | 3930 * "uri": optional String |
| 3936 * } | 3931 * } |
| 3937 */ | 3932 */ |
| 3938 class DebugMapUriParams implements HasToJson { | 3933 class ExecutionMapUriParams implements HasToJson { |
| 3939 /** | 3934 /** |
| 3940 * The identifier of the debugging context in which the URI is to be mapped. | 3935 * The identifier of the execution context in which the URI is to be mapped. |
| 3941 */ | 3936 */ |
| 3942 String id; | 3937 String id; |
| 3943 | 3938 |
| 3944 /** | 3939 /** |
| 3945 * The path of the file to be mapped into a URI. | 3940 * The path of the file to be mapped into a URI. |
| 3946 */ | 3941 */ |
| 3947 String file; | 3942 String file; |
| 3948 | 3943 |
| 3949 /** | 3944 /** |
| 3950 * The URI to be mapped into a file path. | 3945 * The URI to be mapped into a file path. |
| 3951 */ | 3946 */ |
| 3952 String uri; | 3947 String uri; |
| 3953 | 3948 |
| 3954 DebugMapUriParams(this.id, {this.file, this.uri}); | 3949 ExecutionMapUriParams(this.id, {this.file, this.uri}); |
| 3955 | 3950 |
| 3956 factory DebugMapUriParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 3951 factory ExecutionMapUriParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
| 3957 if (json == null) { | 3952 if (json == null) { |
| 3958 json = {}; | 3953 json = {}; |
| 3959 } | 3954 } |
| 3960 if (json is Map) { | 3955 if (json is Map) { |
| 3961 String id; | 3956 String id; |
| 3962 if (json.containsKey("id")) { | 3957 if (json.containsKey("id")) { |
| 3963 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3958 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
| 3964 } else { | 3959 } else { |
| 3965 throw jsonDecoder.missingKey(jsonPath, "id"); | 3960 throw jsonDecoder.missingKey(jsonPath, "id"); |
| 3966 } | 3961 } |
| 3967 String file; | 3962 String file; |
| 3968 if (json.containsKey("file")) { | 3963 if (json.containsKey("file")) { |
| 3969 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 3964 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); |
| 3970 } | 3965 } |
| 3971 String uri; | 3966 String uri; |
| 3972 if (json.containsKey("uri")) { | 3967 if (json.containsKey("uri")) { |
| 3973 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); | 3968 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); |
| 3974 } | 3969 } |
| 3975 return new DebugMapUriParams(id, file: file, uri: uri); | 3970 return new ExecutionMapUriParams(id, file: file, uri: uri); |
| 3976 } else { | 3971 } else { |
| 3977 throw jsonDecoder.mismatch(jsonPath, "debug.mapUri params"); | 3972 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri params"); |
| 3978 } | 3973 } |
| 3979 } | 3974 } |
| 3980 | 3975 |
| 3981 factory DebugMapUriParams.fromRequest(Request request) { | 3976 factory ExecutionMapUriParams.fromRequest(Request request) { |
| 3982 return new DebugMapUriParams.fromJson( | 3977 return new ExecutionMapUriParams.fromJson( |
| 3983 new RequestDecoder(request), "params", request._params); | 3978 new RequestDecoder(request), "params", request._params); |
| 3984 } | 3979 } |
| 3985 | 3980 |
| 3986 Map<String, dynamic> toJson() { | 3981 Map<String, dynamic> toJson() { |
| 3987 Map<String, dynamic> result = {}; | 3982 Map<String, dynamic> result = {}; |
| 3988 result["id"] = id; | 3983 result["id"] = id; |
| 3989 if (file != null) { | 3984 if (file != null) { |
| 3990 result["file"] = file; | 3985 result["file"] = file; |
| 3991 } | 3986 } |
| 3992 if (uri != null) { | 3987 if (uri != null) { |
| 3993 result["uri"] = uri; | 3988 result["uri"] = uri; |
| 3994 } | 3989 } |
| 3995 return result; | 3990 return result; |
| 3996 } | 3991 } |
| 3997 | 3992 |
| 3998 Request toRequest(String id) { | 3993 Request toRequest(String id) { |
| 3999 return new Request(id, "debug.mapUri", toJson()); | 3994 return new Request(id, "execution.mapUri", toJson()); |
| 4000 } | 3995 } |
| 4001 | 3996 |
| 4002 @override | 3997 @override |
| 4003 String toString() => JSON.encode(toJson()); | 3998 String toString() => JSON.encode(toJson()); |
| 4004 | 3999 |
| 4005 @override | 4000 @override |
| 4006 bool operator==(other) { | 4001 bool operator==(other) { |
| 4007 if (other is DebugMapUriParams) { | 4002 if (other is ExecutionMapUriParams) { |
| 4008 return id == other.id && | 4003 return id == other.id && |
| 4009 file == other.file && | 4004 file == other.file && |
| 4010 uri == other.uri; | 4005 uri == other.uri; |
| 4011 } | 4006 } |
| 4012 return false; | 4007 return false; |
| 4013 } | 4008 } |
| 4014 | 4009 |
| 4015 @override | 4010 @override |
| 4016 int get hashCode { | 4011 int get hashCode { |
| 4017 int hash = 0; | 4012 int hash = 0; |
| 4018 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 4013 hash = _JenkinsSmiHash.combine(hash, id.hashCode); |
| 4019 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 4014 hash = _JenkinsSmiHash.combine(hash, file.hashCode); |
| 4020 hash = _JenkinsSmiHash.combine(hash, uri.hashCode); | 4015 hash = _JenkinsSmiHash.combine(hash, uri.hashCode); |
| 4021 return _JenkinsSmiHash.finish(hash); | 4016 return _JenkinsSmiHash.finish(hash); |
| 4022 } | 4017 } |
| 4023 } | 4018 } |
| 4024 | 4019 |
| 4025 /** | 4020 /** |
| 4026 * debug.mapUri result | 4021 * execution.mapUri result |
| 4027 * | 4022 * |
| 4028 * { | 4023 * { |
| 4029 * "file": optional FilePath | 4024 * "file": optional FilePath |
| 4030 * "uri": optional String | 4025 * "uri": optional String |
| 4031 * } | 4026 * } |
| 4032 */ | 4027 */ |
| 4033 class DebugMapUriResult implements HasToJson { | 4028 class ExecutionMapUriResult implements HasToJson { |
| 4034 /** | 4029 /** |
| 4035 * The file to which the URI was mapped. This field is omitted if the uri | 4030 * The file to which the URI was mapped. This field is omitted if the uri |
| 4036 * field was not given in the request. | 4031 * field was not given in the request. |
| 4037 */ | 4032 */ |
| 4038 String file; | 4033 String file; |
| 4039 | 4034 |
| 4040 /** | 4035 /** |
| 4041 * The URI to which the file path was mapped. This field is omitted if the | 4036 * The URI to which the file path was mapped. This field is omitted if the |
| 4042 * file field was not given in the request. | 4037 * file field was not given in the request. |
| 4043 */ | 4038 */ |
| 4044 String uri; | 4039 String uri; |
| 4045 | 4040 |
| 4046 DebugMapUriResult({this.file, this.uri}); | 4041 ExecutionMapUriResult({this.file, this.uri}); |
| 4047 | 4042 |
| 4048 factory DebugMapUriResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 4043 factory ExecutionMapUriResult.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
| 4049 if (json == null) { | 4044 if (json == null) { |
| 4050 json = {}; | 4045 json = {}; |
| 4051 } | 4046 } |
| 4052 if (json is Map) { | 4047 if (json is Map) { |
| 4053 String file; | 4048 String file; |
| 4054 if (json.containsKey("file")) { | 4049 if (json.containsKey("file")) { |
| 4055 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 4050 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); |
| 4056 } | 4051 } |
| 4057 String uri; | 4052 String uri; |
| 4058 if (json.containsKey("uri")) { | 4053 if (json.containsKey("uri")) { |
| 4059 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); | 4054 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); |
| 4060 } | 4055 } |
| 4061 return new DebugMapUriResult(file: file, uri: uri); | 4056 return new ExecutionMapUriResult(file: file, uri: uri); |
| 4062 } else { | 4057 } else { |
| 4063 throw jsonDecoder.mismatch(jsonPath, "debug.mapUri result"); | 4058 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri result"); |
| 4064 } | 4059 } |
| 4065 } | 4060 } |
| 4066 | 4061 |
| 4067 factory DebugMapUriResult.fromResponse(Response response) { | 4062 factory ExecutionMapUriResult.fromResponse(Response response) { |
| 4068 return new DebugMapUriResult.fromJson( | 4063 return new ExecutionMapUriResult.fromJson( |
| 4069 new ResponseDecoder(response), "result", response._result); | 4064 new ResponseDecoder(response), "result", response._result); |
| 4070 } | 4065 } |
| 4071 | 4066 |
| 4072 Map<String, dynamic> toJson() { | 4067 Map<String, dynamic> toJson() { |
| 4073 Map<String, dynamic> result = {}; | 4068 Map<String, dynamic> result = {}; |
| 4074 if (file != null) { | 4069 if (file != null) { |
| 4075 result["file"] = file; | 4070 result["file"] = file; |
| 4076 } | 4071 } |
| 4077 if (uri != null) { | 4072 if (uri != null) { |
| 4078 result["uri"] = uri; | 4073 result["uri"] = uri; |
| 4079 } | 4074 } |
| 4080 return result; | 4075 return result; |
| 4081 } | 4076 } |
| 4082 | 4077 |
| 4083 Response toResponse(String id) { | 4078 Response toResponse(String id) { |
| 4084 return new Response(id, result: toJson()); | 4079 return new Response(id, result: toJson()); |
| 4085 } | 4080 } |
| 4086 | 4081 |
| 4087 @override | 4082 @override |
| 4088 String toString() => JSON.encode(toJson()); | 4083 String toString() => JSON.encode(toJson()); |
| 4089 | 4084 |
| 4090 @override | 4085 @override |
| 4091 bool operator==(other) { | 4086 bool operator==(other) { |
| 4092 if (other is DebugMapUriResult) { | 4087 if (other is ExecutionMapUriResult) { |
| 4093 return file == other.file && | 4088 return file == other.file && |
| 4094 uri == other.uri; | 4089 uri == other.uri; |
| 4095 } | 4090 } |
| 4096 return false; | 4091 return false; |
| 4097 } | 4092 } |
| 4098 | 4093 |
| 4099 @override | 4094 @override |
| 4100 int get hashCode { | 4095 int get hashCode { |
| 4101 int hash = 0; | 4096 int hash = 0; |
| 4102 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 4097 hash = _JenkinsSmiHash.combine(hash, file.hashCode); |
| 4103 hash = _JenkinsSmiHash.combine(hash, uri.hashCode); | 4098 hash = _JenkinsSmiHash.combine(hash, uri.hashCode); |
| 4104 return _JenkinsSmiHash.finish(hash); | 4099 return _JenkinsSmiHash.finish(hash); |
| 4105 } | 4100 } |
| 4106 } | 4101 } |
| 4107 | 4102 |
| 4108 /** | 4103 /** |
| 4109 * debug.setSubscriptions params | 4104 * execution.setSubscriptions params |
| 4110 * | 4105 * |
| 4111 * { | 4106 * { |
| 4112 * "subscriptions": List<DebugService> | 4107 * "subscriptions": List<ExecutionService> |
| 4113 * } | 4108 * } |
| 4114 */ | 4109 */ |
| 4115 class DebugSetSubscriptionsParams implements HasToJson { | 4110 class ExecutionSetSubscriptionsParams implements HasToJson { |
| 4116 /** | 4111 /** |
| 4117 * A list of the services being subscribed to. | 4112 * A list of the services being subscribed to. |
| 4118 */ | 4113 */ |
| 4119 List<DebugService> subscriptions; | 4114 List<ExecutionService> subscriptions; |
| 4120 | 4115 |
| 4121 DebugSetSubscriptionsParams(this.subscriptions); | 4116 ExecutionSetSubscriptionsParams(this.subscriptions); |
| 4122 | 4117 |
| 4123 factory DebugSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 4118 factory ExecutionSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Stri
ng jsonPath, Object json) { |
| 4124 if (json == null) { | 4119 if (json == null) { |
| 4125 json = {}; | 4120 json = {}; |
| 4126 } | 4121 } |
| 4127 if (json is Map) { | 4122 if (json is Map) { |
| 4128 List<DebugService> subscriptions; | 4123 List<ExecutionService> subscriptions; |
| 4129 if (json.containsKey("subscriptions")) { | 4124 if (json.containsKey("subscriptions")) { |
| 4130 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new DebugService.fromJson(
jsonDecoder, jsonPath, json)); | 4125 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new ExecutionService.fromJ
son(jsonDecoder, jsonPath, json)); |
| 4131 } else { | 4126 } else { |
| 4132 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 4127 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
| 4133 } | 4128 } |
| 4134 return new DebugSetSubscriptionsParams(subscriptions); | 4129 return new ExecutionSetSubscriptionsParams(subscriptions); |
| 4135 } else { | 4130 } else { |
| 4136 throw jsonDecoder.mismatch(jsonPath, "debug.setSubscriptions params"); | 4131 throw jsonDecoder.mismatch(jsonPath, "execution.setSubscriptions params"); |
| 4137 } | 4132 } |
| 4138 } | 4133 } |
| 4139 | 4134 |
| 4140 factory DebugSetSubscriptionsParams.fromRequest(Request request) { | 4135 factory ExecutionSetSubscriptionsParams.fromRequest(Request request) { |
| 4141 return new DebugSetSubscriptionsParams.fromJson( | 4136 return new ExecutionSetSubscriptionsParams.fromJson( |
| 4142 new RequestDecoder(request), "params", request._params); | 4137 new RequestDecoder(request), "params", request._params); |
| 4143 } | 4138 } |
| 4144 | 4139 |
| 4145 Map<String, dynamic> toJson() { | 4140 Map<String, dynamic> toJson() { |
| 4146 Map<String, dynamic> result = {}; | 4141 Map<String, dynamic> result = {}; |
| 4147 result["subscriptions"] = subscriptions.map((DebugService value) => value.to
Json()).toList(); | 4142 result["subscriptions"] = subscriptions.map((ExecutionService value) => valu
e.toJson()).toList(); |
| 4148 return result; | 4143 return result; |
| 4149 } | 4144 } |
| 4150 | 4145 |
| 4151 Request toRequest(String id) { | 4146 Request toRequest(String id) { |
| 4152 return new Request(id, "debug.setSubscriptions", toJson()); | 4147 return new Request(id, "execution.setSubscriptions", toJson()); |
| 4153 } | 4148 } |
| 4154 | 4149 |
| 4155 @override | 4150 @override |
| 4156 String toString() => JSON.encode(toJson()); | 4151 String toString() => JSON.encode(toJson()); |
| 4157 | 4152 |
| 4158 @override | 4153 @override |
| 4159 bool operator==(other) { | 4154 bool operator==(other) { |
| 4160 if (other is DebugSetSubscriptionsParams) { | 4155 if (other is ExecutionSetSubscriptionsParams) { |
| 4161 return _listEqual(subscriptions, other.subscriptions, (DebugService a, Deb
ugService b) => a == b); | 4156 return _listEqual(subscriptions, other.subscriptions, (ExecutionService a,
ExecutionService b) => a == b); |
| 4162 } | 4157 } |
| 4163 return false; | 4158 return false; |
| 4164 } | 4159 } |
| 4165 | 4160 |
| 4166 @override | 4161 @override |
| 4167 int get hashCode { | 4162 int get hashCode { |
| 4168 int hash = 0; | 4163 int hash = 0; |
| 4169 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 4164 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
| 4170 return _JenkinsSmiHash.finish(hash); | 4165 return _JenkinsSmiHash.finish(hash); |
| 4171 } | 4166 } |
| 4172 } | 4167 } |
| 4173 /** | 4168 /** |
| 4174 * debug.setSubscriptions result | 4169 * execution.setSubscriptions result |
| 4175 */ | 4170 */ |
| 4176 class DebugSetSubscriptionsResult { | 4171 class ExecutionSetSubscriptionsResult { |
| 4177 Response toResponse(String id) { | 4172 Response toResponse(String id) { |
| 4178 return new Response(id, result: null); | 4173 return new Response(id, result: null); |
| 4179 } | 4174 } |
| 4180 | 4175 |
| 4181 @override | 4176 @override |
| 4182 bool operator==(other) { | 4177 bool operator==(other) { |
| 4183 if (other is DebugSetSubscriptionsResult) { | 4178 if (other is ExecutionSetSubscriptionsResult) { |
| 4184 return true; | 4179 return true; |
| 4185 } | 4180 } |
| 4186 return false; | 4181 return false; |
| 4187 } | 4182 } |
| 4188 | 4183 |
| 4189 @override | 4184 @override |
| 4190 int get hashCode { | 4185 int get hashCode { |
| 4191 return 36732888; | 4186 return 287678780; |
| 4192 } | 4187 } |
| 4193 } | 4188 } |
| 4194 | 4189 |
| 4195 /** | 4190 /** |
| 4196 * debug.launchData params | 4191 * execution.launchData params |
| 4197 * | 4192 * |
| 4198 * { | 4193 * { |
| 4199 * "executables": List<ExecutableFile> | 4194 * "executables": List<ExecutableFile> |
| 4200 * "dartToHtml": Map<FilePath, List<FilePath>> | 4195 * "dartToHtml": Map<FilePath, List<FilePath>> |
| 4201 * "htmlToDart": Map<FilePath, List<FilePath>> | 4196 * "htmlToDart": Map<FilePath, List<FilePath>> |
| 4202 * } | 4197 * } |
| 4203 */ | 4198 */ |
| 4204 class DebugLaunchDataParams implements HasToJson { | 4199 class ExecutionLaunchDataParams implements HasToJson { |
| 4205 /** | 4200 /** |
| 4206 * A list of the files that are executable in the given context. This list | 4201 * A list of the files that are executable in the given context. This list |
| 4207 * replaces any previous list provided for the given context. | 4202 * replaces any previous list provided for the given context. |
| 4208 */ | 4203 */ |
| 4209 List<ExecutableFile> executables; | 4204 List<ExecutableFile> executables; |
| 4210 | 4205 |
| 4211 /** | 4206 /** |
| 4212 * A mapping from the paths of Dart files that are referenced by HTML files | 4207 * A mapping from the paths of Dart files that are referenced by HTML files |
| 4213 * to a list of the HTML files that reference the Dart files. | 4208 * to a list of the HTML files that reference the Dart files. |
| 4214 */ | 4209 */ |
| 4215 Map<String, List<String>> dartToHtml; | 4210 Map<String, List<String>> dartToHtml; |
| 4216 | 4211 |
| 4217 /** | 4212 /** |
| 4218 * A mapping from the paths of HTML files that reference Dart files to a list | 4213 * A mapping from the paths of HTML files that reference Dart files to a list |
| 4219 * of the Dart files they reference. | 4214 * of the Dart files they reference. |
| 4220 */ | 4215 */ |
| 4221 Map<String, List<String>> htmlToDart; | 4216 Map<String, List<String>> htmlToDart; |
| 4222 | 4217 |
| 4223 DebugLaunchDataParams(this.executables, this.dartToHtml, this.htmlToDart); | 4218 ExecutionLaunchDataParams(this.executables, this.dartToHtml, this.htmlToDart); |
| 4224 | 4219 |
| 4225 factory DebugLaunchDataParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 4220 factory ExecutionLaunchDataParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { |
| 4226 if (json == null) { | 4221 if (json == null) { |
| 4227 json = {}; | 4222 json = {}; |
| 4228 } | 4223 } |
| 4229 if (json is Map) { | 4224 if (json is Map) { |
| 4230 List<ExecutableFile> executables; | 4225 List<ExecutableFile> executables; |
| 4231 if (json.containsKey("executables")) { | 4226 if (json.containsKey("executables")) { |
| 4232 executables = jsonDecoder._decodeList(jsonPath + ".executables", json["e
xecutables"], (String jsonPath, Object json) => new ExecutableFile.fromJson(json
Decoder, jsonPath, json)); | 4227 executables = jsonDecoder._decodeList(jsonPath + ".executables", json["e
xecutables"], (String jsonPath, Object json) => new ExecutableFile.fromJson(json
Decoder, jsonPath, json)); |
| 4233 } else { | 4228 } else { |
| 4234 throw jsonDecoder.missingKey(jsonPath, "executables"); | 4229 throw jsonDecoder.missingKey(jsonPath, "executables"); |
| 4235 } | 4230 } |
| 4236 Map<String, List<String>> dartToHtml; | 4231 Map<String, List<String>> dartToHtml; |
| 4237 if (json.containsKey("dartToHtml")) { | 4232 if (json.containsKey("dartToHtml")) { |
| 4238 dartToHtml = jsonDecoder._decodeMap(jsonPath + ".dartToHtml", json["dart
ToHtml"], valueDecoder: (String jsonPath, Object json) => jsonDecoder._decodeLis
t(jsonPath, json, jsonDecoder._decodeString)); | 4233 dartToHtml = jsonDecoder._decodeMap(jsonPath + ".dartToHtml", json["dart
ToHtml"], valueDecoder: (String jsonPath, Object json) => jsonDecoder._decodeLis
t(jsonPath, json, jsonDecoder._decodeString)); |
| 4239 } else { | 4234 } else { |
| 4240 throw jsonDecoder.missingKey(jsonPath, "dartToHtml"); | 4235 throw jsonDecoder.missingKey(jsonPath, "dartToHtml"); |
| 4241 } | 4236 } |
| 4242 Map<String, List<String>> htmlToDart; | 4237 Map<String, List<String>> htmlToDart; |
| 4243 if (json.containsKey("htmlToDart")) { | 4238 if (json.containsKey("htmlToDart")) { |
| 4244 htmlToDart = jsonDecoder._decodeMap(jsonPath + ".htmlToDart", json["html
ToDart"], valueDecoder: (String jsonPath, Object json) => jsonDecoder._decodeLis
t(jsonPath, json, jsonDecoder._decodeString)); | 4239 htmlToDart = jsonDecoder._decodeMap(jsonPath + ".htmlToDart", json["html
ToDart"], valueDecoder: (String jsonPath, Object json) => jsonDecoder._decodeLis
t(jsonPath, json, jsonDecoder._decodeString)); |
| 4245 } else { | 4240 } else { |
| 4246 throw jsonDecoder.missingKey(jsonPath, "htmlToDart"); | 4241 throw jsonDecoder.missingKey(jsonPath, "htmlToDart"); |
| 4247 } | 4242 } |
| 4248 return new DebugLaunchDataParams(executables, dartToHtml, htmlToDart); | 4243 return new ExecutionLaunchDataParams(executables, dartToHtml, htmlToDart); |
| 4249 } else { | 4244 } else { |
| 4250 throw jsonDecoder.mismatch(jsonPath, "debug.launchData params"); | 4245 throw jsonDecoder.mismatch(jsonPath, "execution.launchData params"); |
| 4251 } | 4246 } |
| 4252 } | 4247 } |
| 4253 | 4248 |
| 4254 factory DebugLaunchDataParams.fromNotification(Notification notification) { | 4249 factory ExecutionLaunchDataParams.fromNotification(Notification notification)
{ |
| 4255 return new DebugLaunchDataParams.fromJson( | 4250 return new ExecutionLaunchDataParams.fromJson( |
| 4256 new ResponseDecoder(null), "params", notification._params); | 4251 new ResponseDecoder(null), "params", notification._params); |
| 4257 } | 4252 } |
| 4258 | 4253 |
| 4259 Map<String, dynamic> toJson() { | 4254 Map<String, dynamic> toJson() { |
| 4260 Map<String, dynamic> result = {}; | 4255 Map<String, dynamic> result = {}; |
| 4261 result["executables"] = executables.map((ExecutableFile value) => value.toJs
on()).toList(); | 4256 result["executables"] = executables.map((ExecutableFile value) => value.toJs
on()).toList(); |
| 4262 result["dartToHtml"] = dartToHtml; | 4257 result["dartToHtml"] = dartToHtml; |
| 4263 result["htmlToDart"] = htmlToDart; | 4258 result["htmlToDart"] = htmlToDart; |
| 4264 return result; | 4259 return result; |
| 4265 } | 4260 } |
| 4266 | 4261 |
| 4267 Notification toNotification() { | 4262 Notification toNotification() { |
| 4268 return new Notification("debug.launchData", toJson()); | 4263 return new Notification("execution.launchData", toJson()); |
| 4269 } | 4264 } |
| 4270 | 4265 |
| 4271 @override | 4266 @override |
| 4272 String toString() => JSON.encode(toJson()); | 4267 String toString() => JSON.encode(toJson()); |
| 4273 | 4268 |
| 4274 @override | 4269 @override |
| 4275 bool operator==(other) { | 4270 bool operator==(other) { |
| 4276 if (other is DebugLaunchDataParams) { | 4271 if (other is ExecutionLaunchDataParams) { |
| 4277 return _listEqual(executables, other.executables, (ExecutableFile a, Execu
tableFile b) => a == b) && | 4272 return _listEqual(executables, other.executables, (ExecutableFile a, Execu
tableFile b) => a == b) && |
| 4278 _mapEqual(dartToHtml, other.dartToHtml, (List<String> a, List<String>
b) => _listEqual(a, b, (String a, String b) => a == b)) && | 4273 _mapEqual(dartToHtml, other.dartToHtml, (List<String> a, List<String>
b) => _listEqual(a, b, (String a, String b) => a == b)) && |
| 4279 _mapEqual(htmlToDart, other.htmlToDart, (List<String> a, List<String>
b) => _listEqual(a, b, (String a, String b) => a == b)); | 4274 _mapEqual(htmlToDart, other.htmlToDart, (List<String> a, List<String>
b) => _listEqual(a, b, (String a, String b) => a == b)); |
| 4280 } | 4275 } |
| 4281 return false; | 4276 return false; |
| 4282 } | 4277 } |
| 4283 | 4278 |
| 4284 @override | 4279 @override |
| 4285 int get hashCode { | 4280 int get hashCode { |
| 4286 int hash = 0; | 4281 int hash = 0; |
| (...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5513 factory CompletionSuggestionKind.fromElementKind(engine.ElementKind kind) => | 5508 factory CompletionSuggestionKind.fromElementKind(engine.ElementKind kind) => |
| 5514 _completionSuggestionKindFromElementKind(kind); | 5509 _completionSuggestionKindFromElementKind(kind); |
| 5515 | 5510 |
| 5516 @override | 5511 @override |
| 5517 String toString() => "CompletionSuggestionKind.$name"; | 5512 String toString() => "CompletionSuggestionKind.$name"; |
| 5518 | 5513 |
| 5519 String toJson() => name; | 5514 String toJson() => name; |
| 5520 } | 5515 } |
| 5521 | 5516 |
| 5522 /** | 5517 /** |
| 5523 * DebugService | |
| 5524 * | |
| 5525 * enum { | |
| 5526 * LAUNCH_DATA | |
| 5527 * } | |
| 5528 */ | |
| 5529 class DebugService { | |
| 5530 static const LAUNCH_DATA = const DebugService._("LAUNCH_DATA"); | |
| 5531 | |
| 5532 final String name; | |
| 5533 | |
| 5534 const DebugService._(this.name); | |
| 5535 | |
| 5536 factory DebugService(String name) { | |
| 5537 switch (name) { | |
| 5538 case "LAUNCH_DATA": | |
| 5539 return LAUNCH_DATA; | |
| 5540 } | |
| 5541 throw new Exception('Illegal enum value: $name'); | |
| 5542 } | |
| 5543 | |
| 5544 factory DebugService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | |
| 5545 if (json is String) { | |
| 5546 try { | |
| 5547 return new DebugService(json); | |
| 5548 } catch(_) { | |
| 5549 // Fall through | |
| 5550 } | |
| 5551 } | |
| 5552 throw jsonDecoder.mismatch(jsonPath, "DebugService"); | |
| 5553 } | |
| 5554 | |
| 5555 @override | |
| 5556 String toString() => "DebugService.$name"; | |
| 5557 | |
| 5558 String toJson() => name; | |
| 5559 } | |
| 5560 | |
| 5561 /** | |
| 5562 * Element | 5518 * Element |
| 5563 * | 5519 * |
| 5564 * { | 5520 * { |
| 5565 * "kind": ElementKind | 5521 * "kind": ElementKind |
| 5566 * "name": String | 5522 * "name": String |
| 5567 * "location": optional Location | 5523 * "location": optional Location |
| 5568 * "flags": int | 5524 * "flags": int |
| 5569 * "parameters": optional String | 5525 * "parameters": optional String |
| 5570 * "returnType": optional String | 5526 * "returnType": optional String |
| 5571 * } | 5527 * } |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5979 throw jsonDecoder.mismatch(jsonPath, "ExecutableKind"); | 5935 throw jsonDecoder.mismatch(jsonPath, "ExecutableKind"); |
| 5980 } | 5936 } |
| 5981 | 5937 |
| 5982 @override | 5938 @override |
| 5983 String toString() => "ExecutableKind.$name"; | 5939 String toString() => "ExecutableKind.$name"; |
| 5984 | 5940 |
| 5985 String toJson() => name; | 5941 String toJson() => name; |
| 5986 } | 5942 } |
| 5987 | 5943 |
| 5988 /** | 5944 /** |
| 5945 * ExecutionService |
| 5946 * |
| 5947 * enum { |
| 5948 * LAUNCH_DATA |
| 5949 * } |
| 5950 */ |
| 5951 class ExecutionService { |
| 5952 static const LAUNCH_DATA = const ExecutionService._("LAUNCH_DATA"); |
| 5953 |
| 5954 final String name; |
| 5955 |
| 5956 const ExecutionService._(this.name); |
| 5957 |
| 5958 factory ExecutionService(String name) { |
| 5959 switch (name) { |
| 5960 case "LAUNCH_DATA": |
| 5961 return LAUNCH_DATA; |
| 5962 } |
| 5963 throw new Exception('Illegal enum value: $name'); |
| 5964 } |
| 5965 |
| 5966 factory ExecutionService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
| 5967 if (json is String) { |
| 5968 try { |
| 5969 return new ExecutionService(json); |
| 5970 } catch(_) { |
| 5971 // Fall through |
| 5972 } |
| 5973 } |
| 5974 throw jsonDecoder.mismatch(jsonPath, "ExecutionService"); |
| 5975 } |
| 5976 |
| 5977 @override |
| 5978 String toString() => "ExecutionService.$name"; |
| 5979 |
| 5980 String toJson() => name; |
| 5981 } |
| 5982 |
| 5983 /** |
| 5989 * FoldingKind | 5984 * FoldingKind |
| 5990 * | 5985 * |
| 5991 * enum { | 5986 * enum { |
| 5992 * COMMENT | 5987 * COMMENT |
| 5993 * CLASS_MEMBER | 5988 * CLASS_MEMBER |
| 5994 * DIRECTIVES | 5989 * DIRECTIVES |
| 5995 * DOCUMENTATION_COMMENT | 5990 * DOCUMENTATION_COMMENT |
| 5996 * TOP_LEVEL_DECLARATION | 5991 * TOP_LEVEL_DECLARATION |
| 5997 * } | 5992 * } |
| 5998 */ | 5993 */ |
| (...skipping 3865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9864 return false; | 9859 return false; |
| 9865 } | 9860 } |
| 9866 | 9861 |
| 9867 @override | 9862 @override |
| 9868 int get hashCode { | 9863 int get hashCode { |
| 9869 int hash = 0; | 9864 int hash = 0; |
| 9870 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 9865 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 9871 return _JenkinsSmiHash.finish(hash); | 9866 return _JenkinsSmiHash.finish(hash); |
| 9872 } | 9867 } |
| 9873 } | 9868 } |
| OLD | NEW |