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

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

Issue 508203002: Rename some bools in the analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/spec/generate_files". 7 // "pkg/analysis_server/spec/generate_files".
8 8
9 part of protocol; 9 part of protocol;
10 /** 10 /**
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 @override 242 @override
243 int get hashCode { 243 int get hashCode {
244 return 509239412; 244 return 509239412;
245 } 245 }
246 } 246 }
247 247
248 /** 248 /**
249 * server.error params 249 * server.error params
250 * 250 *
251 * { 251 * {
252 * "fatal": bool 252 * "isFatal": bool
253 * "message": String 253 * "message": String
254 * "stackTrace": String 254 * "stackTrace": String
255 * } 255 * }
256 */ 256 */
257 class ServerErrorParams { 257 class ServerErrorParams {
258 /** 258 /**
259 * True if the error is a fatal error, meaning that the server will shutdown 259 * True if the error is a fatal error, meaning that the server will shutdown
260 * automatically after sending this notification. 260 * automatically after sending this notification.
261 */ 261 */
262 bool fatal; 262 bool isFatal;
263 263
264 /** 264 /**
265 * The error message indicating what kind of error was encountered. 265 * The error message indicating what kind of error was encountered.
266 */ 266 */
267 String message; 267 String message;
268 268
269 /** 269 /**
270 * The stack trace associated with the generation of the error, used for 270 * The stack trace associated with the generation of the error, used for
271 * debugging the server. 271 * debugging the server.
272 */ 272 */
273 String stackTrace; 273 String stackTrace;
274 274
275 ServerErrorParams(this.fatal, this.message, this.stackTrace); 275 ServerErrorParams(this.isFatal, this.message, this.stackTrace);
276 276
277 factory ServerErrorParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O bject json) { 277 factory ServerErrorParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O bject json) {
278 if (json == null) { 278 if (json == null) {
279 json = {}; 279 json = {};
280 } 280 }
281 if (json is Map) { 281 if (json is Map) {
282 bool fatal; 282 bool isFatal;
283 if (json.containsKey("fatal")) { 283 if (json.containsKey("isFatal")) {
284 fatal = jsonDecoder._decodeBool(jsonPath + ".fatal", json["fatal"]); 284 isFatal = jsonDecoder._decodeBool(jsonPath + ".isFatal", json["isFatal"] );
285 } else { 285 } else {
286 throw jsonDecoder.missingKey(jsonPath, "fatal"); 286 throw jsonDecoder.missingKey(jsonPath, "isFatal");
287 } 287 }
288 String message; 288 String message;
289 if (json.containsKey("message")) { 289 if (json.containsKey("message")) {
290 message = jsonDecoder._decodeString(jsonPath + ".message", json["message "]); 290 message = jsonDecoder._decodeString(jsonPath + ".message", json["message "]);
291 } else { 291 } else {
292 throw jsonDecoder.missingKey(jsonPath, "message"); 292 throw jsonDecoder.missingKey(jsonPath, "message");
293 } 293 }
294 String stackTrace; 294 String stackTrace;
295 if (json.containsKey("stackTrace")) { 295 if (json.containsKey("stackTrace")) {
296 stackTrace = jsonDecoder._decodeString(jsonPath + ".stackTrace", json["s tackTrace"]); 296 stackTrace = jsonDecoder._decodeString(jsonPath + ".stackTrace", json["s tackTrace"]);
297 } else { 297 } else {
298 throw jsonDecoder.missingKey(jsonPath, "stackTrace"); 298 throw jsonDecoder.missingKey(jsonPath, "stackTrace");
299 } 299 }
300 return new ServerErrorParams(fatal, message, stackTrace); 300 return new ServerErrorParams(isFatal, message, stackTrace);
301 } else { 301 } else {
302 throw jsonDecoder.mismatch(jsonPath, "server.error params"); 302 throw jsonDecoder.mismatch(jsonPath, "server.error params");
303 } 303 }
304 } 304 }
305 305
306 factory ServerErrorParams.fromNotification(Notification notification) { 306 factory ServerErrorParams.fromNotification(Notification notification) {
307 return new ServerErrorParams.fromJson( 307 return new ServerErrorParams.fromJson(
308 new ResponseDecoder(), "params", notification._params); 308 new ResponseDecoder(), "params", notification._params);
309 } 309 }
310 310
311 Map<String, dynamic> toJson() { 311 Map<String, dynamic> toJson() {
312 Map<String, dynamic> result = {}; 312 Map<String, dynamic> result = {};
313 result["fatal"] = fatal; 313 result["isFatal"] = isFatal;
314 result["message"] = message; 314 result["message"] = message;
315 result["stackTrace"] = stackTrace; 315 result["stackTrace"] = stackTrace;
316 return result; 316 return result;
317 } 317 }
318 318
319 Notification toNotification() { 319 Notification toNotification() {
320 return new Notification("server.error", toJson()); 320 return new Notification("server.error", toJson());
321 } 321 }
322 322
323 @override 323 @override
324 String toString() => JSON.encode(toJson()); 324 String toString() => JSON.encode(toJson());
325 325
326 @override 326 @override
327 bool operator==(other) { 327 bool operator==(other) {
328 if (other is ServerErrorParams) { 328 if (other is ServerErrorParams) {
329 return fatal == other.fatal && 329 return isFatal == other.isFatal &&
330 message == other.message && 330 message == other.message &&
331 stackTrace == other.stackTrace; 331 stackTrace == other.stackTrace;
332 } 332 }
333 return false; 333 return false;
334 } 334 }
335 335
336 @override 336 @override
337 int get hashCode { 337 int get hashCode {
338 int hash = 0; 338 int hash = 0;
339 hash = _JenkinsSmiHash.combine(hash, fatal.hashCode); 339 hash = _JenkinsSmiHash.combine(hash, isFatal.hashCode);
340 hash = _JenkinsSmiHash.combine(hash, message.hashCode); 340 hash = _JenkinsSmiHash.combine(hash, message.hashCode);
341 hash = _JenkinsSmiHash.combine(hash, stackTrace.hashCode); 341 hash = _JenkinsSmiHash.combine(hash, stackTrace.hashCode);
342 return _JenkinsSmiHash.finish(hash); 342 return _JenkinsSmiHash.finish(hash);
343 } 343 }
344 } 344 }
345 345
346 /** 346 /**
347 * server.status params 347 * server.status params
348 * 348 *
349 * { 349 * {
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1978 } 1978 }
1979 1979
1980 /** 1980 /**
1981 * completion.results params 1981 * completion.results params
1982 * 1982 *
1983 * { 1983 * {
1984 * "id": CompletionId 1984 * "id": CompletionId
1985 * "replacementOffset": int 1985 * "replacementOffset": int
1986 * "replacementLength": int 1986 * "replacementLength": int
1987 * "results": List<CompletionSuggestion> 1987 * "results": List<CompletionSuggestion>
1988 * "last": bool 1988 * "isLast": bool
1989 * } 1989 * }
1990 */ 1990 */
1991 class CompletionResultsParams { 1991 class CompletionResultsParams {
1992 /** 1992 /**
1993 * The id associated with the completion. 1993 * The id associated with the completion.
1994 */ 1994 */
1995 String id; 1995 String id;
1996 1996
1997 /** 1997 /**
1998 * The offset of the start of the text to be replaced. This will be different 1998 * The offset of the start of the text to be replaced. This will be different
(...skipping 16 matching lines...) Expand all
2015 * not match the characters the user has already typed. This allows the 2015 * not match the characters the user has already typed. This allows the
2016 * client to respond to further keystrokes from the user without having to 2016 * client to respond to further keystrokes from the user without having to
2017 * make additional requests. 2017 * make additional requests.
2018 */ 2018 */
2019 List<CompletionSuggestion> results; 2019 List<CompletionSuggestion> results;
2020 2020
2021 /** 2021 /**
2022 * True if this is that last set of results that will be returned for the 2022 * True if this is that last set of results that will be returned for the
2023 * indicated completion. 2023 * indicated completion.
2024 */ 2024 */
2025 bool last; 2025 bool isLast;
2026 2026
2027 CompletionResultsParams(this.id, this.replacementOffset, this.replacementLengt h, this.results, this.last); 2027 CompletionResultsParams(this.id, this.replacementOffset, this.replacementLengt h, this.results, this.isLast);
2028 2028
2029 factory CompletionResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) { 2029 factory CompletionResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonP ath, Object json) {
2030 if (json == null) { 2030 if (json == null) {
2031 json = {}; 2031 json = {};
2032 } 2032 }
2033 if (json is Map) { 2033 if (json is Map) {
2034 String id; 2034 String id;
2035 if (json.containsKey("id")) { 2035 if (json.containsKey("id")) {
2036 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 2036 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
2037 } else { 2037 } else {
(...skipping 10 matching lines...) Expand all
2048 replacementLength = jsonDecoder._decodeInt(jsonPath + ".replacementLengt h", json["replacementLength"]); 2048 replacementLength = jsonDecoder._decodeInt(jsonPath + ".replacementLengt h", json["replacementLength"]);
2049 } else { 2049 } else {
2050 throw jsonDecoder.missingKey(jsonPath, "replacementLength"); 2050 throw jsonDecoder.missingKey(jsonPath, "replacementLength");
2051 } 2051 }
2052 List<CompletionSuggestion> results; 2052 List<CompletionSuggestion> results;
2053 if (json.containsKey("results")) { 2053 if (json.containsKey("results")) {
2054 results = jsonDecoder._decodeList(jsonPath + ".results", json["results"] , (String jsonPath, Object json) => new CompletionSuggestion.fromJson(jsonDecode r, jsonPath, json)); 2054 results = jsonDecoder._decodeList(jsonPath + ".results", json["results"] , (String jsonPath, Object json) => new CompletionSuggestion.fromJson(jsonDecode r, jsonPath, json));
2055 } else { 2055 } else {
2056 throw jsonDecoder.missingKey(jsonPath, "results"); 2056 throw jsonDecoder.missingKey(jsonPath, "results");
2057 } 2057 }
2058 bool last; 2058 bool isLast;
2059 if (json.containsKey("last")) { 2059 if (json.containsKey("isLast")) {
2060 last = jsonDecoder._decodeBool(jsonPath + ".last", json["last"]); 2060 isLast = jsonDecoder._decodeBool(jsonPath + ".isLast", json["isLast"]);
2061 } else { 2061 } else {
2062 throw jsonDecoder.missingKey(jsonPath, "last"); 2062 throw jsonDecoder.missingKey(jsonPath, "isLast");
2063 } 2063 }
2064 return new CompletionResultsParams(id, replacementOffset, replacementLengt h, results, last); 2064 return new CompletionResultsParams(id, replacementOffset, replacementLengt h, results, isLast);
2065 } else { 2065 } else {
2066 throw jsonDecoder.mismatch(jsonPath, "completion.results params"); 2066 throw jsonDecoder.mismatch(jsonPath, "completion.results params");
2067 } 2067 }
2068 } 2068 }
2069 2069
2070 factory CompletionResultsParams.fromNotification(Notification notification) { 2070 factory CompletionResultsParams.fromNotification(Notification notification) {
2071 return new CompletionResultsParams.fromJson( 2071 return new CompletionResultsParams.fromJson(
2072 new ResponseDecoder(), "params", notification._params); 2072 new ResponseDecoder(), "params", notification._params);
2073 } 2073 }
2074 2074
2075 Map<String, dynamic> toJson() { 2075 Map<String, dynamic> toJson() {
2076 Map<String, dynamic> result = {}; 2076 Map<String, dynamic> result = {};
2077 result["id"] = id; 2077 result["id"] = id;
2078 result["replacementOffset"] = replacementOffset; 2078 result["replacementOffset"] = replacementOffset;
2079 result["replacementLength"] = replacementLength; 2079 result["replacementLength"] = replacementLength;
2080 result["results"] = results.map((CompletionSuggestion value) => value.toJson ()).toList(); 2080 result["results"] = results.map((CompletionSuggestion value) => value.toJson ()).toList();
2081 result["last"] = last; 2081 result["isLast"] = isLast;
2082 return result; 2082 return result;
2083 } 2083 }
2084 2084
2085 Notification toNotification() { 2085 Notification toNotification() {
2086 return new Notification("completion.results", toJson()); 2086 return new Notification("completion.results", toJson());
2087 } 2087 }
2088 2088
2089 @override 2089 @override
2090 String toString() => JSON.encode(toJson()); 2090 String toString() => JSON.encode(toJson());
2091 2091
2092 @override 2092 @override
2093 bool operator==(other) { 2093 bool operator==(other) {
2094 if (other is CompletionResultsParams) { 2094 if (other is CompletionResultsParams) {
2095 return id == other.id && 2095 return id == other.id &&
2096 replacementOffset == other.replacementOffset && 2096 replacementOffset == other.replacementOffset &&
2097 replacementLength == other.replacementLength && 2097 replacementLength == other.replacementLength &&
2098 _listEqual(results, other.results, (CompletionSuggestion a, Completion Suggestion b) => a == b) && 2098 _listEqual(results, other.results, (CompletionSuggestion a, Completion Suggestion b) => a == b) &&
2099 last == other.last; 2099 isLast == other.isLast;
2100 } 2100 }
2101 return false; 2101 return false;
2102 } 2102 }
2103 2103
2104 @override 2104 @override
2105 int get hashCode { 2105 int get hashCode {
2106 int hash = 0; 2106 int hash = 0;
2107 hash = _JenkinsSmiHash.combine(hash, id.hashCode); 2107 hash = _JenkinsSmiHash.combine(hash, id.hashCode);
2108 hash = _JenkinsSmiHash.combine(hash, replacementOffset.hashCode); 2108 hash = _JenkinsSmiHash.combine(hash, replacementOffset.hashCode);
2109 hash = _JenkinsSmiHash.combine(hash, replacementLength.hashCode); 2109 hash = _JenkinsSmiHash.combine(hash, replacementLength.hashCode);
2110 hash = _JenkinsSmiHash.combine(hash, results.hashCode); 2110 hash = _JenkinsSmiHash.combine(hash, results.hashCode);
2111 hash = _JenkinsSmiHash.combine(hash, last.hashCode); 2111 hash = _JenkinsSmiHash.combine(hash, isLast.hashCode);
2112 return _JenkinsSmiHash.finish(hash); 2112 return _JenkinsSmiHash.finish(hash);
2113 } 2113 }
2114 } 2114 }
2115 2115
2116 /** 2116 /**
2117 * search.findElementReferences params 2117 * search.findElementReferences params
2118 * 2118 *
2119 * { 2119 * {
2120 * "file": FilePath 2120 * "file": FilePath
2121 * "offset": int 2121 * "offset": int
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
2853 return _JenkinsSmiHash.finish(hash); 2853 return _JenkinsSmiHash.finish(hash);
2854 } 2854 }
2855 } 2855 }
2856 2856
2857 /** 2857 /**
2858 * search.results params 2858 * search.results params
2859 * 2859 *
2860 * { 2860 * {
2861 * "id": SearchId 2861 * "id": SearchId
2862 * "results": List<SearchResult> 2862 * "results": List<SearchResult>
2863 * "last": bool 2863 * "isLast": bool
2864 * } 2864 * }
2865 */ 2865 */
2866 class SearchResultsParams { 2866 class SearchResultsParams {
2867 /** 2867 /**
2868 * The id associated with the search. 2868 * The id associated with the search.
2869 */ 2869 */
2870 String id; 2870 String id;
2871 2871
2872 /** 2872 /**
2873 * The search results being reported. 2873 * The search results being reported.
2874 */ 2874 */
2875 List<SearchResult> results; 2875 List<SearchResult> results;
2876 2876
2877 /** 2877 /**
2878 * True if this is that last set of results that will be returned for the 2878 * True if this is that last set of results that will be returned for the
2879 * indicated search. 2879 * indicated search.
2880 */ 2880 */
2881 bool last; 2881 bool isLast;
2882 2882
2883 SearchResultsParams(this.id, this.results, this.last); 2883 SearchResultsParams(this.id, this.results, this.isLast);
2884 2884
2885 factory SearchResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) { 2885 factory SearchResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
2886 if (json == null) { 2886 if (json == null) {
2887 json = {}; 2887 json = {};
2888 } 2888 }
2889 if (json is Map) { 2889 if (json is Map) {
2890 String id; 2890 String id;
2891 if (json.containsKey("id")) { 2891 if (json.containsKey("id")) {
2892 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); 2892 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]);
2893 } else { 2893 } else {
2894 throw jsonDecoder.missingKey(jsonPath, "id"); 2894 throw jsonDecoder.missingKey(jsonPath, "id");
2895 } 2895 }
2896 List<SearchResult> results; 2896 List<SearchResult> results;
2897 if (json.containsKey("results")) { 2897 if (json.containsKey("results")) {
2898 results = jsonDecoder._decodeList(jsonPath + ".results", json["results"] , (String jsonPath, Object json) => new SearchResult.fromJson(jsonDecoder, jsonP ath, json)); 2898 results = jsonDecoder._decodeList(jsonPath + ".results", json["results"] , (String jsonPath, Object json) => new SearchResult.fromJson(jsonDecoder, jsonP ath, json));
2899 } else { 2899 } else {
2900 throw jsonDecoder.missingKey(jsonPath, "results"); 2900 throw jsonDecoder.missingKey(jsonPath, "results");
2901 } 2901 }
2902 bool last; 2902 bool isLast;
2903 if (json.containsKey("last")) { 2903 if (json.containsKey("isLast")) {
2904 last = jsonDecoder._decodeBool(jsonPath + ".last", json["last"]); 2904 isLast = jsonDecoder._decodeBool(jsonPath + ".isLast", json["isLast"]);
2905 } else { 2905 } else {
2906 throw jsonDecoder.missingKey(jsonPath, "last"); 2906 throw jsonDecoder.missingKey(jsonPath, "isLast");
2907 } 2907 }
2908 return new SearchResultsParams(id, results, last); 2908 return new SearchResultsParams(id, results, isLast);
2909 } else { 2909 } else {
2910 throw jsonDecoder.mismatch(jsonPath, "search.results params"); 2910 throw jsonDecoder.mismatch(jsonPath, "search.results params");
2911 } 2911 }
2912 } 2912 }
2913 2913
2914 factory SearchResultsParams.fromNotification(Notification notification) { 2914 factory SearchResultsParams.fromNotification(Notification notification) {
2915 return new SearchResultsParams.fromJson( 2915 return new SearchResultsParams.fromJson(
2916 new ResponseDecoder(), "params", notification._params); 2916 new ResponseDecoder(), "params", notification._params);
2917 } 2917 }
2918 2918
2919 Map<String, dynamic> toJson() { 2919 Map<String, dynamic> toJson() {
2920 Map<String, dynamic> result = {}; 2920 Map<String, dynamic> result = {};
2921 result["id"] = id; 2921 result["id"] = id;
2922 result["results"] = results.map((SearchResult value) => value.toJson()).toLi st(); 2922 result["results"] = results.map((SearchResult value) => value.toJson()).toLi st();
2923 result["last"] = last; 2923 result["isLast"] = isLast;
2924 return result; 2924 return result;
2925 } 2925 }
2926 2926
2927 Notification toNotification() { 2927 Notification toNotification() {
2928 return new Notification("search.results", toJson()); 2928 return new Notification("search.results", toJson());
2929 } 2929 }
2930 2930
2931 @override 2931 @override
2932 String toString() => JSON.encode(toJson()); 2932 String toString() => JSON.encode(toJson());
2933 2933
2934 @override 2934 @override
2935 bool operator==(other) { 2935 bool operator==(other) {
2936 if (other is SearchResultsParams) { 2936 if (other is SearchResultsParams) {
2937 return id == other.id && 2937 return id == other.id &&
2938 _listEqual(results, other.results, (SearchResult a, SearchResult b) => a == b) && 2938 _listEqual(results, other.results, (SearchResult a, SearchResult b) => a == b) &&
2939 last == other.last; 2939 isLast == other.isLast;
2940 } 2940 }
2941 return false; 2941 return false;
2942 } 2942 }
2943 2943
2944 @override 2944 @override
2945 int get hashCode { 2945 int get hashCode {
2946 int hash = 0; 2946 int hash = 0;
2947 hash = _JenkinsSmiHash.combine(hash, id.hashCode); 2947 hash = _JenkinsSmiHash.combine(hash, id.hashCode);
2948 hash = _JenkinsSmiHash.combine(hash, results.hashCode); 2948 hash = _JenkinsSmiHash.combine(hash, results.hashCode);
2949 hash = _JenkinsSmiHash.combine(hash, last.hashCode); 2949 hash = _JenkinsSmiHash.combine(hash, isLast.hashCode);
2950 return _JenkinsSmiHash.finish(hash); 2950 return _JenkinsSmiHash.finish(hash);
2951 } 2951 }
2952 } 2952 }
2953 2953
2954 /** 2954 /**
2955 * edit.getAssists params 2955 * edit.getAssists params
2956 * 2956 *
2957 * { 2957 * {
2958 * "file": FilePath 2958 * "file": FilePath
2959 * "offset": int 2959 * "offset": int
(...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after
4663 @override 4663 @override
4664 String toString() => "AnalysisService.$name"; 4664 String toString() => "AnalysisService.$name";
4665 4665
4666 String toJson() => name; 4666 String toJson() => name;
4667 } 4667 }
4668 4668
4669 /** 4669 /**
4670 * AnalysisStatus 4670 * AnalysisStatus
4671 * 4671 *
4672 * { 4672 * {
4673 * "analyzing": bool 4673 * "isAnalyzing": bool
4674 * "analysisTarget": optional String 4674 * "analysisTarget": optional String
4675 * } 4675 * }
4676 */ 4676 */
4677 class AnalysisStatus { 4677 class AnalysisStatus {
4678 /** 4678 /**
4679 * True if analysis is currently being performed. 4679 * True if analysis is currently being performed.
4680 */ 4680 */
4681 bool analyzing; 4681 bool isAnalyzing;
4682 4682
4683 /** 4683 /**
4684 * The name of the current target of analysis. This field is omitted if 4684 * The name of the current target of analysis. This field is omitted if
4685 * analyzing is false. 4685 * analyzing is false.
4686 */ 4686 */
4687 String analysisTarget; 4687 String analysisTarget;
4688 4688
4689 AnalysisStatus(this.analyzing, {this.analysisTarget}); 4689 AnalysisStatus(this.isAnalyzing, {this.analysisTarget});
4690 4690
4691 factory AnalysisStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) { 4691 factory AnalysisStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje ct json) {
4692 if (json == null) { 4692 if (json == null) {
4693 json = {}; 4693 json = {};
4694 } 4694 }
4695 if (json is Map) { 4695 if (json is Map) {
4696 bool analyzing; 4696 bool isAnalyzing;
4697 if (json.containsKey("analyzing")) { 4697 if (json.containsKey("isAnalyzing")) {
4698 analyzing = jsonDecoder._decodeBool(jsonPath + ".analyzing", json["analy zing"]); 4698 isAnalyzing = jsonDecoder._decodeBool(jsonPath + ".isAnalyzing", json["i sAnalyzing"]);
4699 } else { 4699 } else {
4700 throw jsonDecoder.missingKey(jsonPath, "analyzing"); 4700 throw jsonDecoder.missingKey(jsonPath, "isAnalyzing");
4701 } 4701 }
4702 String analysisTarget; 4702 String analysisTarget;
4703 if (json.containsKey("analysisTarget")) { 4703 if (json.containsKey("analysisTarget")) {
4704 analysisTarget = jsonDecoder._decodeString(jsonPath + ".analysisTarget", json["analysisTarget"]); 4704 analysisTarget = jsonDecoder._decodeString(jsonPath + ".analysisTarget", json["analysisTarget"]);
4705 } 4705 }
4706 return new AnalysisStatus(analyzing, analysisTarget: analysisTarget); 4706 return new AnalysisStatus(isAnalyzing, analysisTarget: analysisTarget);
4707 } else { 4707 } else {
4708 throw jsonDecoder.mismatch(jsonPath, "AnalysisStatus"); 4708 throw jsonDecoder.mismatch(jsonPath, "AnalysisStatus");
4709 } 4709 }
4710 } 4710 }
4711 4711
4712 Map<String, dynamic> toJson() { 4712 Map<String, dynamic> toJson() {
4713 Map<String, dynamic> result = {}; 4713 Map<String, dynamic> result = {};
4714 result["analyzing"] = analyzing; 4714 result["isAnalyzing"] = isAnalyzing;
4715 if (analysisTarget != null) { 4715 if (analysisTarget != null) {
4716 result["analysisTarget"] = analysisTarget; 4716 result["analysisTarget"] = analysisTarget;
4717 } 4717 }
4718 return result; 4718 return result;
4719 } 4719 }
4720 4720
4721 @override 4721 @override
4722 String toString() => JSON.encode(toJson()); 4722 String toString() => JSON.encode(toJson());
4723 4723
4724 @override 4724 @override
4725 bool operator==(other) { 4725 bool operator==(other) {
4726 if (other is AnalysisStatus) { 4726 if (other is AnalysisStatus) {
4727 return analyzing == other.analyzing && 4727 return isAnalyzing == other.isAnalyzing &&
4728 analysisTarget == other.analysisTarget; 4728 analysisTarget == other.analysisTarget;
4729 } 4729 }
4730 return false; 4730 return false;
4731 } 4731 }
4732 4732
4733 @override 4733 @override
4734 int get hashCode { 4734 int get hashCode {
4735 int hash = 0; 4735 int hash = 0;
4736 hash = _JenkinsSmiHash.combine(hash, analyzing.hashCode); 4736 hash = _JenkinsSmiHash.combine(hash, isAnalyzing.hashCode);
4737 hash = _JenkinsSmiHash.combine(hash, analysisTarget.hashCode); 4737 hash = _JenkinsSmiHash.combine(hash, analysisTarget.hashCode);
4738 return _JenkinsSmiHash.finish(hash); 4738 return _JenkinsSmiHash.finish(hash);
4739 } 4739 }
4740 } 4740 }
4741 4741
4742 /** 4742 /**
4743 * ChangeContentOverlay 4743 * ChangeContentOverlay
4744 * 4744 *
4745 * { 4745 * {
4746 * "type": "change" 4746 * "type": "change"
(...skipping 4933 matching lines...) Expand 10 before | Expand all | Expand 10 after
9680 return false; 9680 return false;
9681 } 9681 }
9682 9682
9683 @override 9683 @override
9684 int get hashCode { 9684 int get hashCode {
9685 int hash = 0; 9685 int hash = 0;
9686 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 9686 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
9687 return _JenkinsSmiHash.finish(hash); 9687 return _JenkinsSmiHash.finish(hash);
9688 } 9688 }
9689 } 9689 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698