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 analysis_server.plugin.protocol.protocol; |
| 10 |
10 /** | 11 /** |
11 * server.getVersion params | 12 * server.getVersion params |
| 13 * |
| 14 * Clients are not expected to subtype this class. |
12 */ | 15 */ |
13 class ServerGetVersionParams { | 16 class ServerGetVersionParams { |
14 Request toRequest(String id) { | 17 Request toRequest(String id) { |
15 return new Request(id, "server.getVersion", null); | 18 return new Request(id, "server.getVersion", null); |
16 } | 19 } |
17 | 20 |
18 @override | 21 @override |
19 bool operator==(other) { | 22 bool operator==(other) { |
20 if (other is ServerGetVersionParams) { | 23 if (other is ServerGetVersionParams) { |
21 return true; | 24 return true; |
22 } | 25 } |
23 return false; | 26 return false; |
24 } | 27 } |
25 | 28 |
26 @override | 29 @override |
27 int get hashCode { | 30 int get hashCode { |
28 return 55877452; | 31 return 55877452; |
29 } | 32 } |
30 } | 33 } |
31 | 34 |
32 /** | 35 /** |
33 * server.getVersion result | 36 * server.getVersion result |
34 * | 37 * |
35 * { | 38 * { |
36 * "version": String | 39 * "version": String |
37 * } | 40 * } |
| 41 * |
| 42 * Clients are not expected to subtype this class. |
38 */ | 43 */ |
39 class ServerGetVersionResult implements HasToJson { | 44 class ServerGetVersionResult implements HasToJson { |
40 String _version; | 45 String _version; |
41 | 46 |
42 /** | 47 /** |
43 * The version number of the analysis server. | 48 * The version number of the analysis server. |
44 */ | 49 */ |
45 String get version => _version; | 50 String get version => _version; |
46 | 51 |
47 /** | 52 /** |
48 * The version number of the analysis server. | 53 * The version number of the analysis server. |
49 */ | 54 */ |
50 void set version(String value) { | 55 void set version(String value) { |
51 assert(value != null); | 56 assert(value != null); |
52 this._version = value; | 57 this._version = value; |
53 } | 58 } |
54 | 59 |
55 ServerGetVersionResult(String version) { | 60 ServerGetVersionResult(String version) { |
56 this.version = version; | 61 this.version = version; |
57 } | 62 } |
58 | 63 |
59 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 64 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { |
60 if (json == null) { | 65 if (json == null) { |
61 json = {}; | 66 json = {}; |
62 } | 67 } |
63 if (json is Map) { | 68 if (json is Map) { |
64 String version; | 69 String version; |
65 if (json.containsKey("version")) { | 70 if (json.containsKey("version")) { |
66 version = jsonDecoder._decodeString(jsonPath + ".version", json["version
"]); | 71 version = jsonDecoder.decodeString(jsonPath + ".version", json["version"
]); |
67 } else { | 72 } else { |
68 throw jsonDecoder.missingKey(jsonPath, "version"); | 73 throw jsonDecoder.missingKey(jsonPath, "version"); |
69 } | 74 } |
70 return new ServerGetVersionResult(version); | 75 return new ServerGetVersionResult(version); |
71 } else { | 76 } else { |
72 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result", json); | 77 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result", json); |
73 } | 78 } |
74 } | 79 } |
75 | 80 |
76 factory ServerGetVersionResult.fromResponse(Response response) { | 81 factory ServerGetVersionResult.fromResponse(Response response) { |
(...skipping 18 matching lines...) Expand all Loading... |
95 bool operator==(other) { | 100 bool operator==(other) { |
96 if (other is ServerGetVersionResult) { | 101 if (other is ServerGetVersionResult) { |
97 return version == other.version; | 102 return version == other.version; |
98 } | 103 } |
99 return false; | 104 return false; |
100 } | 105 } |
101 | 106 |
102 @override | 107 @override |
103 int get hashCode { | 108 int get hashCode { |
104 int hash = 0; | 109 int hash = 0; |
105 hash = _JenkinsSmiHash.combine(hash, version.hashCode); | 110 hash = JenkinsSmiHash.combine(hash, version.hashCode); |
106 return _JenkinsSmiHash.finish(hash); | 111 return JenkinsSmiHash.finish(hash); |
107 } | 112 } |
108 } | 113 } |
109 /** | 114 /** |
110 * server.shutdown params | 115 * server.shutdown params |
| 116 * |
| 117 * Clients are not expected to subtype this class. |
111 */ | 118 */ |
112 class ServerShutdownParams { | 119 class ServerShutdownParams { |
113 Request toRequest(String id) { | 120 Request toRequest(String id) { |
114 return new Request(id, "server.shutdown", null); | 121 return new Request(id, "server.shutdown", null); |
115 } | 122 } |
116 | 123 |
117 @override | 124 @override |
118 bool operator==(other) { | 125 bool operator==(other) { |
119 if (other is ServerShutdownParams) { | 126 if (other is ServerShutdownParams) { |
120 return true; | 127 return true; |
121 } | 128 } |
122 return false; | 129 return false; |
123 } | 130 } |
124 | 131 |
125 @override | 132 @override |
126 int get hashCode { | 133 int get hashCode { |
127 return 366630911; | 134 return 366630911; |
128 } | 135 } |
129 } | 136 } |
130 /** | 137 /** |
131 * server.shutdown result | 138 * server.shutdown result |
| 139 * |
| 140 * Clients are not expected to subtype this class. |
132 */ | 141 */ |
133 class ServerShutdownResult { | 142 class ServerShutdownResult { |
134 Response toResponse(String id) { | 143 Response toResponse(String id) { |
135 return new Response(id, result: null); | 144 return new Response(id, result: null); |
136 } | 145 } |
137 | 146 |
138 @override | 147 @override |
139 bool operator==(other) { | 148 bool operator==(other) { |
140 if (other is ServerShutdownResult) { | 149 if (other is ServerShutdownResult) { |
141 return true; | 150 return true; |
142 } | 151 } |
143 return false; | 152 return false; |
144 } | 153 } |
145 | 154 |
146 @override | 155 @override |
147 int get hashCode { | 156 int get hashCode { |
148 return 193626532; | 157 return 193626532; |
149 } | 158 } |
150 } | 159 } |
151 | 160 |
152 /** | 161 /** |
153 * server.setSubscriptions params | 162 * server.setSubscriptions params |
154 * | 163 * |
155 * { | 164 * { |
156 * "subscriptions": List<ServerService> | 165 * "subscriptions": List<ServerService> |
157 * } | 166 * } |
| 167 * |
| 168 * Clients are not expected to subtype this class. |
158 */ | 169 */ |
159 class ServerSetSubscriptionsParams implements HasToJson { | 170 class ServerSetSubscriptionsParams implements HasToJson { |
160 List<ServerService> _subscriptions; | 171 List<ServerService> _subscriptions; |
161 | 172 |
162 /** | 173 /** |
163 * A list of the services being subscribed to. | 174 * A list of the services being subscribed to. |
164 */ | 175 */ |
165 List<ServerService> get subscriptions => _subscriptions; | 176 List<ServerService> get subscriptions => _subscriptions; |
166 | 177 |
167 /** | 178 /** |
168 * A list of the services being subscribed to. | 179 * A list of the services being subscribed to. |
169 */ | 180 */ |
170 void set subscriptions(List<ServerService> value) { | 181 void set subscriptions(List<ServerService> value) { |
171 assert(value != null); | 182 assert(value != null); |
172 this._subscriptions = value; | 183 this._subscriptions = value; |
173 } | 184 } |
174 | 185 |
175 ServerSetSubscriptionsParams(List<ServerService> subscriptions) { | 186 ServerSetSubscriptionsParams(List<ServerService> subscriptions) { |
176 this.subscriptions = subscriptions; | 187 this.subscriptions = subscriptions; |
177 } | 188 } |
178 | 189 |
179 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 190 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
180 if (json == null) { | 191 if (json == null) { |
181 json = {}; | 192 json = {}; |
182 } | 193 } |
183 if (json is Map) { | 194 if (json is Map) { |
184 List<ServerService> subscriptions; | 195 List<ServerService> subscriptions; |
185 if (json.containsKey("subscriptions")) { | 196 if (json.containsKey("subscriptions")) { |
186 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new ServerService.fromJson
(jsonDecoder, jsonPath, json)); | 197 subscriptions = jsonDecoder.decodeList(jsonPath + ".subscriptions", json
["subscriptions"], (String jsonPath, Object json) => new ServerService.fromJson(
jsonDecoder, jsonPath, json)); |
187 } else { | 198 } else { |
188 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 199 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
189 } | 200 } |
190 return new ServerSetSubscriptionsParams(subscriptions); | 201 return new ServerSetSubscriptionsParams(subscriptions); |
191 } else { | 202 } else { |
192 throw jsonDecoder.mismatch(jsonPath, "server.setSubscriptions params", jso
n); | 203 throw jsonDecoder.mismatch(jsonPath, "server.setSubscriptions params", jso
n); |
193 } | 204 } |
194 } | 205 } |
195 | 206 |
196 factory ServerSetSubscriptionsParams.fromRequest(Request request) { | 207 factory ServerSetSubscriptionsParams.fromRequest(Request request) { |
(...skipping 10 matching lines...) Expand all Loading... |
207 Request toRequest(String id) { | 218 Request toRequest(String id) { |
208 return new Request(id, "server.setSubscriptions", toJson()); | 219 return new Request(id, "server.setSubscriptions", toJson()); |
209 } | 220 } |
210 | 221 |
211 @override | 222 @override |
212 String toString() => JSON.encode(toJson()); | 223 String toString() => JSON.encode(toJson()); |
213 | 224 |
214 @override | 225 @override |
215 bool operator==(other) { | 226 bool operator==(other) { |
216 if (other is ServerSetSubscriptionsParams) { | 227 if (other is ServerSetSubscriptionsParams) { |
217 return _listEqual(subscriptions, other.subscriptions, (ServerService a, Se
rverService b) => a == b); | 228 return listEqual(subscriptions, other.subscriptions, (ServerService a, Ser
verService b) => a == b); |
218 } | 229 } |
219 return false; | 230 return false; |
220 } | 231 } |
221 | 232 |
222 @override | 233 @override |
223 int get hashCode { | 234 int get hashCode { |
224 int hash = 0; | 235 int hash = 0; |
225 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 236 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
226 return _JenkinsSmiHash.finish(hash); | 237 return JenkinsSmiHash.finish(hash); |
227 } | 238 } |
228 } | 239 } |
229 /** | 240 /** |
230 * server.setSubscriptions result | 241 * server.setSubscriptions result |
| 242 * |
| 243 * Clients are not expected to subtype this class. |
231 */ | 244 */ |
232 class ServerSetSubscriptionsResult { | 245 class ServerSetSubscriptionsResult { |
233 Response toResponse(String id) { | 246 Response toResponse(String id) { |
234 return new Response(id, result: null); | 247 return new Response(id, result: null); |
235 } | 248 } |
236 | 249 |
237 @override | 250 @override |
238 bool operator==(other) { | 251 bool operator==(other) { |
239 if (other is ServerSetSubscriptionsResult) { | 252 if (other is ServerSetSubscriptionsResult) { |
240 return true; | 253 return true; |
241 } | 254 } |
242 return false; | 255 return false; |
243 } | 256 } |
244 | 257 |
245 @override | 258 @override |
246 int get hashCode { | 259 int get hashCode { |
247 return 748820900; | 260 return 748820900; |
248 } | 261 } |
249 } | 262 } |
250 | 263 |
251 /** | 264 /** |
252 * server.connected params | 265 * server.connected params |
253 * | 266 * |
254 * { | 267 * { |
255 * "version": String | 268 * "version": String |
256 * } | 269 * } |
| 270 * |
| 271 * Clients are not expected to subtype this class. |
257 */ | 272 */ |
258 class ServerConnectedParams implements HasToJson { | 273 class ServerConnectedParams implements HasToJson { |
259 String _version; | 274 String _version; |
260 | 275 |
261 /** | 276 /** |
262 * The version number of the analysis server. | 277 * The version number of the analysis server. |
263 */ | 278 */ |
264 String get version => _version; | 279 String get version => _version; |
265 | 280 |
266 /** | 281 /** |
267 * The version number of the analysis server. | 282 * The version number of the analysis server. |
268 */ | 283 */ |
269 void set version(String value) { | 284 void set version(String value) { |
270 assert(value != null); | 285 assert(value != null); |
271 this._version = value; | 286 this._version = value; |
272 } | 287 } |
273 | 288 |
274 ServerConnectedParams(String version) { | 289 ServerConnectedParams(String version) { |
275 this.version = version; | 290 this.version = version; |
276 } | 291 } |
277 | 292 |
278 factory ServerConnectedParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 293 factory ServerConnectedParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
279 if (json == null) { | 294 if (json == null) { |
280 json = {}; | 295 json = {}; |
281 } | 296 } |
282 if (json is Map) { | 297 if (json is Map) { |
283 String version; | 298 String version; |
284 if (json.containsKey("version")) { | 299 if (json.containsKey("version")) { |
285 version = jsonDecoder._decodeString(jsonPath + ".version", json["version
"]); | 300 version = jsonDecoder.decodeString(jsonPath + ".version", json["version"
]); |
286 } else { | 301 } else { |
287 throw jsonDecoder.missingKey(jsonPath, "version"); | 302 throw jsonDecoder.missingKey(jsonPath, "version"); |
288 } | 303 } |
289 return new ServerConnectedParams(version); | 304 return new ServerConnectedParams(version); |
290 } else { | 305 } else { |
291 throw jsonDecoder.mismatch(jsonPath, "server.connected params", json); | 306 throw jsonDecoder.mismatch(jsonPath, "server.connected params", json); |
292 } | 307 } |
293 } | 308 } |
294 | 309 |
295 factory ServerConnectedParams.fromNotification(Notification notification) { | 310 factory ServerConnectedParams.fromNotification(Notification notification) { |
(...skipping 18 matching lines...) Expand all Loading... |
314 bool operator==(other) { | 329 bool operator==(other) { |
315 if (other is ServerConnectedParams) { | 330 if (other is ServerConnectedParams) { |
316 return version == other.version; | 331 return version == other.version; |
317 } | 332 } |
318 return false; | 333 return false; |
319 } | 334 } |
320 | 335 |
321 @override | 336 @override |
322 int get hashCode { | 337 int get hashCode { |
323 int hash = 0; | 338 int hash = 0; |
324 hash = _JenkinsSmiHash.combine(hash, version.hashCode); | 339 hash = JenkinsSmiHash.combine(hash, version.hashCode); |
325 return _JenkinsSmiHash.finish(hash); | 340 return JenkinsSmiHash.finish(hash); |
326 } | 341 } |
327 } | 342 } |
328 | 343 |
329 /** | 344 /** |
330 * server.error params | 345 * server.error params |
331 * | 346 * |
332 * { | 347 * { |
333 * "isFatal": bool | 348 * "isFatal": bool |
334 * "message": String | 349 * "message": String |
335 * "stackTrace": String | 350 * "stackTrace": String |
336 * } | 351 * } |
| 352 * |
| 353 * Clients are not expected to subtype this class. |
337 */ | 354 */ |
338 class ServerErrorParams implements HasToJson { | 355 class ServerErrorParams implements HasToJson { |
339 bool _isFatal; | 356 bool _isFatal; |
340 | 357 |
341 String _message; | 358 String _message; |
342 | 359 |
343 String _stackTrace; | 360 String _stackTrace; |
344 | 361 |
345 /** | 362 /** |
346 * True if the error is a fatal error, meaning that the server will shutdown | 363 * True if the error is a fatal error, meaning that the server will shutdown |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 this.stackTrace = stackTrace; | 408 this.stackTrace = stackTrace; |
392 } | 409 } |
393 | 410 |
394 factory ServerErrorParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 411 factory ServerErrorParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
395 if (json == null) { | 412 if (json == null) { |
396 json = {}; | 413 json = {}; |
397 } | 414 } |
398 if (json is Map) { | 415 if (json is Map) { |
399 bool isFatal; | 416 bool isFatal; |
400 if (json.containsKey("isFatal")) { | 417 if (json.containsKey("isFatal")) { |
401 isFatal = jsonDecoder._decodeBool(jsonPath + ".isFatal", json["isFatal"]
); | 418 isFatal = jsonDecoder.decodeBool(jsonPath + ".isFatal", json["isFatal"])
; |
402 } else { | 419 } else { |
403 throw jsonDecoder.missingKey(jsonPath, "isFatal"); | 420 throw jsonDecoder.missingKey(jsonPath, "isFatal"); |
404 } | 421 } |
405 String message; | 422 String message; |
406 if (json.containsKey("message")) { | 423 if (json.containsKey("message")) { |
407 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); | 424 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); |
408 } else { | 425 } else { |
409 throw jsonDecoder.missingKey(jsonPath, "message"); | 426 throw jsonDecoder.missingKey(jsonPath, "message"); |
410 } | 427 } |
411 String stackTrace; | 428 String stackTrace; |
412 if (json.containsKey("stackTrace")) { | 429 if (json.containsKey("stackTrace")) { |
413 stackTrace = jsonDecoder._decodeString(jsonPath + ".stackTrace", json["s
tackTrace"]); | 430 stackTrace = jsonDecoder.decodeString(jsonPath + ".stackTrace", json["st
ackTrace"]); |
414 } else { | 431 } else { |
415 throw jsonDecoder.missingKey(jsonPath, "stackTrace"); | 432 throw jsonDecoder.missingKey(jsonPath, "stackTrace"); |
416 } | 433 } |
417 return new ServerErrorParams(isFatal, message, stackTrace); | 434 return new ServerErrorParams(isFatal, message, stackTrace); |
418 } else { | 435 } else { |
419 throw jsonDecoder.mismatch(jsonPath, "server.error params", json); | 436 throw jsonDecoder.mismatch(jsonPath, "server.error params", json); |
420 } | 437 } |
421 } | 438 } |
422 | 439 |
423 factory ServerErrorParams.fromNotification(Notification notification) { | 440 factory ServerErrorParams.fromNotification(Notification notification) { |
(...skipping 22 matching lines...) Expand all Loading... |
446 return isFatal == other.isFatal && | 463 return isFatal == other.isFatal && |
447 message == other.message && | 464 message == other.message && |
448 stackTrace == other.stackTrace; | 465 stackTrace == other.stackTrace; |
449 } | 466 } |
450 return false; | 467 return false; |
451 } | 468 } |
452 | 469 |
453 @override | 470 @override |
454 int get hashCode { | 471 int get hashCode { |
455 int hash = 0; | 472 int hash = 0; |
456 hash = _JenkinsSmiHash.combine(hash, isFatal.hashCode); | 473 hash = JenkinsSmiHash.combine(hash, isFatal.hashCode); |
457 hash = _JenkinsSmiHash.combine(hash, message.hashCode); | 474 hash = JenkinsSmiHash.combine(hash, message.hashCode); |
458 hash = _JenkinsSmiHash.combine(hash, stackTrace.hashCode); | 475 hash = JenkinsSmiHash.combine(hash, stackTrace.hashCode); |
459 return _JenkinsSmiHash.finish(hash); | 476 return JenkinsSmiHash.finish(hash); |
460 } | 477 } |
461 } | 478 } |
462 | 479 |
463 /** | 480 /** |
464 * server.status params | 481 * server.status params |
465 * | 482 * |
466 * { | 483 * { |
467 * "analysis": optional AnalysisStatus | 484 * "analysis": optional AnalysisStatus |
468 * "pub": optional PubStatus | 485 * "pub": optional PubStatus |
469 * } | 486 * } |
| 487 * |
| 488 * Clients are not expected to subtype this class. |
470 */ | 489 */ |
471 class ServerStatusParams implements HasToJson { | 490 class ServerStatusParams implements HasToJson { |
472 AnalysisStatus _analysis; | 491 AnalysisStatus _analysis; |
473 | 492 |
474 PubStatus _pub; | 493 PubStatus _pub; |
475 | 494 |
476 /** | 495 /** |
477 * The current status of analysis, including whether analysis is being | 496 * The current status of analysis, including whether analysis is being |
478 * performed and if so what is being analyzed. | 497 * performed and if so what is being analyzed. |
479 */ | 498 */ |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 if (other is ServerStatusParams) { | 572 if (other is ServerStatusParams) { |
554 return analysis == other.analysis && | 573 return analysis == other.analysis && |
555 pub == other.pub; | 574 pub == other.pub; |
556 } | 575 } |
557 return false; | 576 return false; |
558 } | 577 } |
559 | 578 |
560 @override | 579 @override |
561 int get hashCode { | 580 int get hashCode { |
562 int hash = 0; | 581 int hash = 0; |
563 hash = _JenkinsSmiHash.combine(hash, analysis.hashCode); | 582 hash = JenkinsSmiHash.combine(hash, analysis.hashCode); |
564 hash = _JenkinsSmiHash.combine(hash, pub.hashCode); | 583 hash = JenkinsSmiHash.combine(hash, pub.hashCode); |
565 return _JenkinsSmiHash.finish(hash); | 584 return JenkinsSmiHash.finish(hash); |
566 } | 585 } |
567 } | 586 } |
568 | 587 |
569 /** | 588 /** |
570 * analysis.getErrors params | 589 * analysis.getErrors params |
571 * | 590 * |
572 * { | 591 * { |
573 * "file": FilePath | 592 * "file": FilePath |
574 * } | 593 * } |
| 594 * |
| 595 * Clients are not expected to subtype this class. |
575 */ | 596 */ |
576 class AnalysisGetErrorsParams implements HasToJson { | 597 class AnalysisGetErrorsParams implements HasToJson { |
577 String _file; | 598 String _file; |
578 | 599 |
579 /** | 600 /** |
580 * The file for which errors are being requested. | 601 * The file for which errors are being requested. |
581 */ | 602 */ |
582 String get file => _file; | 603 String get file => _file; |
583 | 604 |
584 /** | 605 /** |
585 * The file for which errors are being requested. | 606 * The file for which errors are being requested. |
586 */ | 607 */ |
587 void set file(String value) { | 608 void set file(String value) { |
588 assert(value != null); | 609 assert(value != null); |
589 this._file = value; | 610 this._file = value; |
590 } | 611 } |
591 | 612 |
592 AnalysisGetErrorsParams(String file) { | 613 AnalysisGetErrorsParams(String file) { |
593 this.file = file; | 614 this.file = file; |
594 } | 615 } |
595 | 616 |
596 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 617 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
597 if (json == null) { | 618 if (json == null) { |
598 json = {}; | 619 json = {}; |
599 } | 620 } |
600 if (json is Map) { | 621 if (json is Map) { |
601 String file; | 622 String file; |
602 if (json.containsKey("file")) { | 623 if (json.containsKey("file")) { |
603 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 624 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
604 } else { | 625 } else { |
605 throw jsonDecoder.missingKey(jsonPath, "file"); | 626 throw jsonDecoder.missingKey(jsonPath, "file"); |
606 } | 627 } |
607 return new AnalysisGetErrorsParams(file); | 628 return new AnalysisGetErrorsParams(file); |
608 } else { | 629 } else { |
609 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors params", json); | 630 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors params", json); |
610 } | 631 } |
611 } | 632 } |
612 | 633 |
613 factory AnalysisGetErrorsParams.fromRequest(Request request) { | 634 factory AnalysisGetErrorsParams.fromRequest(Request request) { |
(...skipping 18 matching lines...) Expand all Loading... |
632 bool operator==(other) { | 653 bool operator==(other) { |
633 if (other is AnalysisGetErrorsParams) { | 654 if (other is AnalysisGetErrorsParams) { |
634 return file == other.file; | 655 return file == other.file; |
635 } | 656 } |
636 return false; | 657 return false; |
637 } | 658 } |
638 | 659 |
639 @override | 660 @override |
640 int get hashCode { | 661 int get hashCode { |
641 int hash = 0; | 662 int hash = 0; |
642 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 663 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
643 return _JenkinsSmiHash.finish(hash); | 664 return JenkinsSmiHash.finish(hash); |
644 } | 665 } |
645 } | 666 } |
646 | 667 |
647 /** | 668 /** |
648 * analysis.getErrors result | 669 * analysis.getErrors result |
649 * | 670 * |
650 * { | 671 * { |
651 * "errors": List<AnalysisError> | 672 * "errors": List<AnalysisError> |
652 * } | 673 * } |
| 674 * |
| 675 * Clients are not expected to subtype this class. |
653 */ | 676 */ |
654 class AnalysisGetErrorsResult implements HasToJson { | 677 class AnalysisGetErrorsResult implements HasToJson { |
655 List<AnalysisError> _errors; | 678 List<AnalysisError> _errors; |
656 | 679 |
657 /** | 680 /** |
658 * The errors associated with the file. | 681 * The errors associated with the file. |
659 */ | 682 */ |
660 List<AnalysisError> get errors => _errors; | 683 List<AnalysisError> get errors => _errors; |
661 | 684 |
662 /** | 685 /** |
663 * The errors associated with the file. | 686 * The errors associated with the file. |
664 */ | 687 */ |
665 void set errors(List<AnalysisError> value) { | 688 void set errors(List<AnalysisError> value) { |
666 assert(value != null); | 689 assert(value != null); |
667 this._errors = value; | 690 this._errors = value; |
668 } | 691 } |
669 | 692 |
670 AnalysisGetErrorsResult(List<AnalysisError> errors) { | 693 AnalysisGetErrorsResult(List<AnalysisError> errors) { |
671 this.errors = errors; | 694 this.errors = errors; |
672 } | 695 } |
673 | 696 |
674 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 697 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
675 if (json == null) { | 698 if (json == null) { |
676 json = {}; | 699 json = {}; |
677 } | 700 } |
678 if (json is Map) { | 701 if (json is Map) { |
679 List<AnalysisError> errors; | 702 List<AnalysisError> errors; |
680 if (json.containsKey("errors")) { | 703 if (json.containsKey("errors")) { |
681 errors = jsonDecoder._decodeList(jsonPath + ".errors", json["errors"], (
String jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPat
h, json)); | 704 errors = jsonDecoder.decodeList(jsonPath + ".errors", json["errors"], (S
tring jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPath
, json)); |
682 } else { | 705 } else { |
683 throw jsonDecoder.missingKey(jsonPath, "errors"); | 706 throw jsonDecoder.missingKey(jsonPath, "errors"); |
684 } | 707 } |
685 return new AnalysisGetErrorsResult(errors); | 708 return new AnalysisGetErrorsResult(errors); |
686 } else { | 709 } else { |
687 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result", json); | 710 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result", json); |
688 } | 711 } |
689 } | 712 } |
690 | 713 |
691 factory AnalysisGetErrorsResult.fromResponse(Response response) { | 714 factory AnalysisGetErrorsResult.fromResponse(Response response) { |
(...skipping 10 matching lines...) Expand all Loading... |
702 Response toResponse(String id) { | 725 Response toResponse(String id) { |
703 return new Response(id, result: toJson()); | 726 return new Response(id, result: toJson()); |
704 } | 727 } |
705 | 728 |
706 @override | 729 @override |
707 String toString() => JSON.encode(toJson()); | 730 String toString() => JSON.encode(toJson()); |
708 | 731 |
709 @override | 732 @override |
710 bool operator==(other) { | 733 bool operator==(other) { |
711 if (other is AnalysisGetErrorsResult) { | 734 if (other is AnalysisGetErrorsResult) { |
712 return _listEqual(errors, other.errors, (AnalysisError a, AnalysisError b)
=> a == b); | 735 return listEqual(errors, other.errors, (AnalysisError a, AnalysisError b)
=> a == b); |
713 } | 736 } |
714 return false; | 737 return false; |
715 } | 738 } |
716 | 739 |
717 @override | 740 @override |
718 int get hashCode { | 741 int get hashCode { |
719 int hash = 0; | 742 int hash = 0; |
720 hash = _JenkinsSmiHash.combine(hash, errors.hashCode); | 743 hash = JenkinsSmiHash.combine(hash, errors.hashCode); |
721 return _JenkinsSmiHash.finish(hash); | 744 return JenkinsSmiHash.finish(hash); |
722 } | 745 } |
723 } | 746 } |
724 | 747 |
725 /** | 748 /** |
726 * analysis.getHover params | 749 * analysis.getHover params |
727 * | 750 * |
728 * { | 751 * { |
729 * "file": FilePath | 752 * "file": FilePath |
730 * "offset": int | 753 * "offset": int |
731 * } | 754 * } |
| 755 * |
| 756 * Clients are not expected to subtype this class. |
732 */ | 757 */ |
733 class AnalysisGetHoverParams implements HasToJson { | 758 class AnalysisGetHoverParams implements HasToJson { |
734 String _file; | 759 String _file; |
735 | 760 |
736 int _offset; | 761 int _offset; |
737 | 762 |
738 /** | 763 /** |
739 * The file in which hover information is being requested. | 764 * The file in which hover information is being requested. |
740 */ | 765 */ |
741 String get file => _file; | 766 String get file => _file; |
(...skipping 24 matching lines...) Expand all Loading... |
766 this.offset = offset; | 791 this.offset = offset; |
767 } | 792 } |
768 | 793 |
769 factory AnalysisGetHoverParams.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 794 factory AnalysisGetHoverParams.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { |
770 if (json == null) { | 795 if (json == null) { |
771 json = {}; | 796 json = {}; |
772 } | 797 } |
773 if (json is Map) { | 798 if (json is Map) { |
774 String file; | 799 String file; |
775 if (json.containsKey("file")) { | 800 if (json.containsKey("file")) { |
776 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 801 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
777 } else { | 802 } else { |
778 throw jsonDecoder.missingKey(jsonPath, "file"); | 803 throw jsonDecoder.missingKey(jsonPath, "file"); |
779 } | 804 } |
780 int offset; | 805 int offset; |
781 if (json.containsKey("offset")) { | 806 if (json.containsKey("offset")) { |
782 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 807 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
783 } else { | 808 } else { |
784 throw jsonDecoder.missingKey(jsonPath, "offset"); | 809 throw jsonDecoder.missingKey(jsonPath, "offset"); |
785 } | 810 } |
786 return new AnalysisGetHoverParams(file, offset); | 811 return new AnalysisGetHoverParams(file, offset); |
787 } else { | 812 } else { |
788 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover params", json); | 813 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover params", json); |
789 } | 814 } |
790 } | 815 } |
791 | 816 |
792 factory AnalysisGetHoverParams.fromRequest(Request request) { | 817 factory AnalysisGetHoverParams.fromRequest(Request request) { |
(...skipping 20 matching lines...) Expand all Loading... |
813 if (other is AnalysisGetHoverParams) { | 838 if (other is AnalysisGetHoverParams) { |
814 return file == other.file && | 839 return file == other.file && |
815 offset == other.offset; | 840 offset == other.offset; |
816 } | 841 } |
817 return false; | 842 return false; |
818 } | 843 } |
819 | 844 |
820 @override | 845 @override |
821 int get hashCode { | 846 int get hashCode { |
822 int hash = 0; | 847 int hash = 0; |
823 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 848 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
824 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 849 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
825 return _JenkinsSmiHash.finish(hash); | 850 return JenkinsSmiHash.finish(hash); |
826 } | 851 } |
827 } | 852 } |
828 | 853 |
829 /** | 854 /** |
830 * analysis.getHover result | 855 * analysis.getHover result |
831 * | 856 * |
832 * { | 857 * { |
833 * "hovers": List<HoverInformation> | 858 * "hovers": List<HoverInformation> |
834 * } | 859 * } |
| 860 * |
| 861 * Clients are not expected to subtype this class. |
835 */ | 862 */ |
836 class AnalysisGetHoverResult implements HasToJson { | 863 class AnalysisGetHoverResult implements HasToJson { |
837 List<HoverInformation> _hovers; | 864 List<HoverInformation> _hovers; |
838 | 865 |
839 /** | 866 /** |
840 * The hover information associated with the location. The list will be empty | 867 * The hover information associated with the location. The list will be empty |
841 * if no information could be determined for the location. The list can | 868 * if no information could be determined for the location. The list can |
842 * contain multiple items if the file is being analyzed in multiple contexts | 869 * contain multiple items if the file is being analyzed in multiple contexts |
843 * in conflicting ways (such as a part that is included in multiple | 870 * in conflicting ways (such as a part that is included in multiple |
844 * libraries). | 871 * libraries). |
(...skipping 16 matching lines...) Expand all Loading... |
861 this.hovers = hovers; | 888 this.hovers = hovers; |
862 } | 889 } |
863 | 890 |
864 factory AnalysisGetHoverResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 891 factory AnalysisGetHoverResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { |
865 if (json == null) { | 892 if (json == null) { |
866 json = {}; | 893 json = {}; |
867 } | 894 } |
868 if (json is Map) { | 895 if (json is Map) { |
869 List<HoverInformation> hovers; | 896 List<HoverInformation> hovers; |
870 if (json.containsKey("hovers")) { | 897 if (json.containsKey("hovers")) { |
871 hovers = jsonDecoder._decodeList(jsonPath + ".hovers", json["hovers"], (
String jsonPath, Object json) => new HoverInformation.fromJson(jsonDecoder, json
Path, json)); | 898 hovers = jsonDecoder.decodeList(jsonPath + ".hovers", json["hovers"], (S
tring jsonPath, Object json) => new HoverInformation.fromJson(jsonDecoder, jsonP
ath, json)); |
872 } else { | 899 } else { |
873 throw jsonDecoder.missingKey(jsonPath, "hovers"); | 900 throw jsonDecoder.missingKey(jsonPath, "hovers"); |
874 } | 901 } |
875 return new AnalysisGetHoverResult(hovers); | 902 return new AnalysisGetHoverResult(hovers); |
876 } else { | 903 } else { |
877 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result", json); | 904 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result", json); |
878 } | 905 } |
879 } | 906 } |
880 | 907 |
881 factory AnalysisGetHoverResult.fromResponse(Response response) { | 908 factory AnalysisGetHoverResult.fromResponse(Response response) { |
(...skipping 10 matching lines...) Expand all Loading... |
892 Response toResponse(String id) { | 919 Response toResponse(String id) { |
893 return new Response(id, result: toJson()); | 920 return new Response(id, result: toJson()); |
894 } | 921 } |
895 | 922 |
896 @override | 923 @override |
897 String toString() => JSON.encode(toJson()); | 924 String toString() => JSON.encode(toJson()); |
898 | 925 |
899 @override | 926 @override |
900 bool operator==(other) { | 927 bool operator==(other) { |
901 if (other is AnalysisGetHoverResult) { | 928 if (other is AnalysisGetHoverResult) { |
902 return _listEqual(hovers, other.hovers, (HoverInformation a, HoverInformat
ion b) => a == b); | 929 return listEqual(hovers, other.hovers, (HoverInformation a, HoverInformati
on b) => a == b); |
903 } | 930 } |
904 return false; | 931 return false; |
905 } | 932 } |
906 | 933 |
907 @override | 934 @override |
908 int get hashCode { | 935 int get hashCode { |
909 int hash = 0; | 936 int hash = 0; |
910 hash = _JenkinsSmiHash.combine(hash, hovers.hashCode); | 937 hash = JenkinsSmiHash.combine(hash, hovers.hashCode); |
911 return _JenkinsSmiHash.finish(hash); | 938 return JenkinsSmiHash.finish(hash); |
912 } | 939 } |
913 } | 940 } |
914 /** | 941 /** |
915 * analysis.getLibraryDependencies params | 942 * analysis.getLibraryDependencies params |
| 943 * |
| 944 * Clients are not expected to subtype this class. |
916 */ | 945 */ |
917 class AnalysisGetLibraryDependenciesParams { | 946 class AnalysisGetLibraryDependenciesParams { |
918 Request toRequest(String id) { | 947 Request toRequest(String id) { |
919 return new Request(id, "analysis.getLibraryDependencies", null); | 948 return new Request(id, "analysis.getLibraryDependencies", null); |
920 } | 949 } |
921 | 950 |
922 @override | 951 @override |
923 bool operator==(other) { | 952 bool operator==(other) { |
924 if (other is AnalysisGetLibraryDependenciesParams) { | 953 if (other is AnalysisGetLibraryDependenciesParams) { |
925 return true; | 954 return true; |
926 } | 955 } |
927 return false; | 956 return false; |
928 } | 957 } |
929 | 958 |
930 @override | 959 @override |
931 int get hashCode { | 960 int get hashCode { |
932 return 246577680; | 961 return 246577680; |
933 } | 962 } |
934 } | 963 } |
935 | 964 |
936 /** | 965 /** |
937 * analysis.getLibraryDependencies result | 966 * analysis.getLibraryDependencies result |
938 * | 967 * |
939 * { | 968 * { |
940 * "libraries": List<FilePath> | 969 * "libraries": List<FilePath> |
941 * "packageMap": Map<String, Map<String, List<FilePath>>> | 970 * "packageMap": Map<String, Map<String, List<FilePath>>> |
942 * } | 971 * } |
| 972 * |
| 973 * Clients are not expected to subtype this class. |
943 */ | 974 */ |
944 class AnalysisGetLibraryDependenciesResult implements HasToJson { | 975 class AnalysisGetLibraryDependenciesResult implements HasToJson { |
945 List<String> _libraries; | 976 List<String> _libraries; |
946 | 977 |
947 Map<String, Map<String, List<String>>> _packageMap; | 978 Map<String, Map<String, List<String>>> _packageMap; |
948 | 979 |
949 /** | 980 /** |
950 * A list of the paths of library elements referenced by files in existing | 981 * A list of the paths of library elements referenced by files in existing |
951 * analysis roots. | 982 * analysis roots. |
952 */ | 983 */ |
(...skipping 28 matching lines...) Expand all Loading... |
981 this.packageMap = packageMap; | 1012 this.packageMap = packageMap; |
982 } | 1013 } |
983 | 1014 |
984 factory AnalysisGetLibraryDependenciesResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 1015 factory AnalysisGetLibraryDependenciesResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { |
985 if (json == null) { | 1016 if (json == null) { |
986 json = {}; | 1017 json = {}; |
987 } | 1018 } |
988 if (json is Map) { | 1019 if (json is Map) { |
989 List<String> libraries; | 1020 List<String> libraries; |
990 if (json.containsKey("libraries")) { | 1021 if (json.containsKey("libraries")) { |
991 libraries = jsonDecoder._decodeList(jsonPath + ".libraries", json["libra
ries"], jsonDecoder._decodeString); | 1022 libraries = jsonDecoder.decodeList(jsonPath + ".libraries", json["librar
ies"], jsonDecoder.decodeString); |
992 } else { | 1023 } else { |
993 throw jsonDecoder.missingKey(jsonPath, "libraries"); | 1024 throw jsonDecoder.missingKey(jsonPath, "libraries"); |
994 } | 1025 } |
995 Map<String, Map<String, List<String>>> packageMap; | 1026 Map<String, Map<String, List<String>>> packageMap; |
996 if (json.containsKey("packageMap")) { | 1027 if (json.containsKey("packageMap")) { |
997 packageMap = jsonDecoder._decodeMap(jsonPath + ".packageMap", json["pack
ageMap"], valueDecoder: (String jsonPath, Object json) => jsonDecoder._decodeMap
(jsonPath, json, valueDecoder: (String jsonPath, Object json) => jsonDecoder._de
codeList(jsonPath, json, jsonDecoder._decodeString))); | 1028 packageMap = jsonDecoder.decodeMap(jsonPath + ".packageMap", json["packa
geMap"], valueDecoder: (String jsonPath, Object json) => jsonDecoder.decodeMap(j
sonPath, json, valueDecoder: (String jsonPath, Object json) => jsonDecoder.decod
eList(jsonPath, json, jsonDecoder.decodeString))); |
998 } else { | 1029 } else { |
999 throw jsonDecoder.missingKey(jsonPath, "packageMap"); | 1030 throw jsonDecoder.missingKey(jsonPath, "packageMap"); |
1000 } | 1031 } |
1001 return new AnalysisGetLibraryDependenciesResult(libraries, packageMap); | 1032 return new AnalysisGetLibraryDependenciesResult(libraries, packageMap); |
1002 } else { | 1033 } else { |
1003 throw jsonDecoder.mismatch(jsonPath, "analysis.getLibraryDependencies resu
lt", json); | 1034 throw jsonDecoder.mismatch(jsonPath, "analysis.getLibraryDependencies resu
lt", json); |
1004 } | 1035 } |
1005 } | 1036 } |
1006 | 1037 |
1007 factory AnalysisGetLibraryDependenciesResult.fromResponse(Response response) { | 1038 factory AnalysisGetLibraryDependenciesResult.fromResponse(Response response) { |
(...skipping 11 matching lines...) Expand all Loading... |
1019 Response toResponse(String id) { | 1050 Response toResponse(String id) { |
1020 return new Response(id, result: toJson()); | 1051 return new Response(id, result: toJson()); |
1021 } | 1052 } |
1022 | 1053 |
1023 @override | 1054 @override |
1024 String toString() => JSON.encode(toJson()); | 1055 String toString() => JSON.encode(toJson()); |
1025 | 1056 |
1026 @override | 1057 @override |
1027 bool operator==(other) { | 1058 bool operator==(other) { |
1028 if (other is AnalysisGetLibraryDependenciesResult) { | 1059 if (other is AnalysisGetLibraryDependenciesResult) { |
1029 return _listEqual(libraries, other.libraries, (String a, String b) => a ==
b) && | 1060 return listEqual(libraries, other.libraries, (String a, String b) => a ==
b) && |
1030 _mapEqual(packageMap, other.packageMap, (Map<String, List<String>> a,
Map<String, List<String>> b) => _mapEqual(a, b, (List<String> a, List<String> b)
=> _listEqual(a, b, (String a, String b) => a == b))); | 1061 mapEqual(packageMap, other.packageMap, (Map<String, List<String>> a, M
ap<String, List<String>> b) => mapEqual(a, b, (List<String> a, List<String> b) =
> listEqual(a, b, (String a, String b) => a == b))); |
1031 } | 1062 } |
1032 return false; | 1063 return false; |
1033 } | 1064 } |
1034 | 1065 |
1035 @override | 1066 @override |
1036 int get hashCode { | 1067 int get hashCode { |
1037 int hash = 0; | 1068 int hash = 0; |
1038 hash = _JenkinsSmiHash.combine(hash, libraries.hashCode); | 1069 hash = JenkinsSmiHash.combine(hash, libraries.hashCode); |
1039 hash = _JenkinsSmiHash.combine(hash, packageMap.hashCode); | 1070 hash = JenkinsSmiHash.combine(hash, packageMap.hashCode); |
1040 return _JenkinsSmiHash.finish(hash); | 1071 return JenkinsSmiHash.finish(hash); |
1041 } | 1072 } |
1042 } | 1073 } |
1043 | 1074 |
1044 /** | 1075 /** |
1045 * analysis.getNavigation params | 1076 * analysis.getNavigation params |
1046 * | 1077 * |
1047 * { | 1078 * { |
1048 * "file": FilePath | 1079 * "file": FilePath |
1049 * "offset": int | 1080 * "offset": int |
1050 * "length": int | 1081 * "length": int |
1051 * } | 1082 * } |
| 1083 * |
| 1084 * Clients are not expected to subtype this class. |
1052 */ | 1085 */ |
1053 class AnalysisGetNavigationParams implements HasToJson { | 1086 class AnalysisGetNavigationParams implements HasToJson { |
1054 String _file; | 1087 String _file; |
1055 | 1088 |
1056 int _offset; | 1089 int _offset; |
1057 | 1090 |
1058 int _length; | 1091 int _length; |
1059 | 1092 |
1060 /** | 1093 /** |
1061 * The file in which navigation information is being requested. | 1094 * The file in which navigation information is being requested. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 this.length = length; | 1139 this.length = length; |
1107 } | 1140 } |
1108 | 1141 |
1109 factory AnalysisGetNavigationParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1142 factory AnalysisGetNavigationParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
1110 if (json == null) { | 1143 if (json == null) { |
1111 json = {}; | 1144 json = {}; |
1112 } | 1145 } |
1113 if (json is Map) { | 1146 if (json is Map) { |
1114 String file; | 1147 String file; |
1115 if (json.containsKey("file")) { | 1148 if (json.containsKey("file")) { |
1116 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 1149 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
1117 } else { | 1150 } else { |
1118 throw jsonDecoder.missingKey(jsonPath, "file"); | 1151 throw jsonDecoder.missingKey(jsonPath, "file"); |
1119 } | 1152 } |
1120 int offset; | 1153 int offset; |
1121 if (json.containsKey("offset")) { | 1154 if (json.containsKey("offset")) { |
1122 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 1155 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
1123 } else { | 1156 } else { |
1124 throw jsonDecoder.missingKey(jsonPath, "offset"); | 1157 throw jsonDecoder.missingKey(jsonPath, "offset"); |
1125 } | 1158 } |
1126 int length; | 1159 int length; |
1127 if (json.containsKey("length")) { | 1160 if (json.containsKey("length")) { |
1128 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 1161 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
1129 } else { | 1162 } else { |
1130 throw jsonDecoder.missingKey(jsonPath, "length"); | 1163 throw jsonDecoder.missingKey(jsonPath, "length"); |
1131 } | 1164 } |
1132 return new AnalysisGetNavigationParams(file, offset, length); | 1165 return new AnalysisGetNavigationParams(file, offset, length); |
1133 } else { | 1166 } else { |
1134 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation params", json
); | 1167 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation params", json
); |
1135 } | 1168 } |
1136 } | 1169 } |
1137 | 1170 |
1138 factory AnalysisGetNavigationParams.fromRequest(Request request) { | 1171 factory AnalysisGetNavigationParams.fromRequest(Request request) { |
(...skipping 22 matching lines...) Expand all Loading... |
1161 return file == other.file && | 1194 return file == other.file && |
1162 offset == other.offset && | 1195 offset == other.offset && |
1163 length == other.length; | 1196 length == other.length; |
1164 } | 1197 } |
1165 return false; | 1198 return false; |
1166 } | 1199 } |
1167 | 1200 |
1168 @override | 1201 @override |
1169 int get hashCode { | 1202 int get hashCode { |
1170 int hash = 0; | 1203 int hash = 0; |
1171 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 1204 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
1172 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 1205 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
1173 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 1206 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
1174 return _JenkinsSmiHash.finish(hash); | 1207 return JenkinsSmiHash.finish(hash); |
1175 } | 1208 } |
1176 } | 1209 } |
1177 | 1210 |
1178 /** | 1211 /** |
1179 * analysis.getNavigation result | 1212 * analysis.getNavigation result |
1180 * | 1213 * |
1181 * { | 1214 * { |
1182 * "files": List<FilePath> | 1215 * "files": List<FilePath> |
1183 * "targets": List<NavigationTarget> | 1216 * "targets": List<NavigationTarget> |
1184 * "regions": List<NavigationRegion> | 1217 * "regions": List<NavigationRegion> |
1185 * } | 1218 * } |
| 1219 * |
| 1220 * Clients are not expected to subtype this class. |
1186 */ | 1221 */ |
1187 class AnalysisGetNavigationResult implements HasToJson { | 1222 class AnalysisGetNavigationResult implements HasToJson { |
1188 List<String> _files; | 1223 List<String> _files; |
1189 | 1224 |
1190 List<NavigationTarget> _targets; | 1225 List<NavigationTarget> _targets; |
1191 | 1226 |
1192 List<NavigationRegion> _regions; | 1227 List<NavigationRegion> _regions; |
1193 | 1228 |
1194 /** | 1229 /** |
1195 * A list of the paths of files that are referenced by the navigation | 1230 * A list of the paths of files that are referenced by the navigation |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 this.regions = regions; | 1275 this.regions = regions; |
1241 } | 1276 } |
1242 | 1277 |
1243 factory AnalysisGetNavigationResult.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1278 factory AnalysisGetNavigationResult.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
1244 if (json == null) { | 1279 if (json == null) { |
1245 json = {}; | 1280 json = {}; |
1246 } | 1281 } |
1247 if (json is Map) { | 1282 if (json is Map) { |
1248 List<String> files; | 1283 List<String> files; |
1249 if (json.containsKey("files")) { | 1284 if (json.containsKey("files")) { |
1250 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); | 1285 files = jsonDecoder.decodeList(jsonPath + ".files", json["files"], jsonD
ecoder.decodeString); |
1251 } else { | 1286 } else { |
1252 throw jsonDecoder.missingKey(jsonPath, "files"); | 1287 throw jsonDecoder.missingKey(jsonPath, "files"); |
1253 } | 1288 } |
1254 List<NavigationTarget> targets; | 1289 List<NavigationTarget> targets; |
1255 if (json.containsKey("targets")) { | 1290 if (json.containsKey("targets")) { |
1256 targets = jsonDecoder._decodeList(jsonPath + ".targets", json["targets"]
, (String jsonPath, Object json) => new NavigationTarget.fromJson(jsonDecoder, j
sonPath, json)); | 1291 targets = jsonDecoder.decodeList(jsonPath + ".targets", json["targets"],
(String jsonPath, Object json) => new NavigationTarget.fromJson(jsonDecoder, js
onPath, json)); |
1257 } else { | 1292 } else { |
1258 throw jsonDecoder.missingKey(jsonPath, "targets"); | 1293 throw jsonDecoder.missingKey(jsonPath, "targets"); |
1259 } | 1294 } |
1260 List<NavigationRegion> regions; | 1295 List<NavigationRegion> regions; |
1261 if (json.containsKey("regions")) { | 1296 if (json.containsKey("regions")) { |
1262 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new NavigationRegion.fromJson(jsonDecoder, j
sonPath, json)); | 1297 regions = jsonDecoder.decodeList(jsonPath + ".regions", json["regions"],
(String jsonPath, Object json) => new NavigationRegion.fromJson(jsonDecoder, js
onPath, json)); |
1263 } else { | 1298 } else { |
1264 throw jsonDecoder.missingKey(jsonPath, "regions"); | 1299 throw jsonDecoder.missingKey(jsonPath, "regions"); |
1265 } | 1300 } |
1266 return new AnalysisGetNavigationResult(files, targets, regions); | 1301 return new AnalysisGetNavigationResult(files, targets, regions); |
1267 } else { | 1302 } else { |
1268 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation result", json
); | 1303 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation result", json
); |
1269 } | 1304 } |
1270 } | 1305 } |
1271 | 1306 |
1272 factory AnalysisGetNavigationResult.fromResponse(Response response) { | 1307 factory AnalysisGetNavigationResult.fromResponse(Response response) { |
(...skipping 12 matching lines...) Expand all Loading... |
1285 Response toResponse(String id) { | 1320 Response toResponse(String id) { |
1286 return new Response(id, result: toJson()); | 1321 return new Response(id, result: toJson()); |
1287 } | 1322 } |
1288 | 1323 |
1289 @override | 1324 @override |
1290 String toString() => JSON.encode(toJson()); | 1325 String toString() => JSON.encode(toJson()); |
1291 | 1326 |
1292 @override | 1327 @override |
1293 bool operator==(other) { | 1328 bool operator==(other) { |
1294 if (other is AnalysisGetNavigationResult) { | 1329 if (other is AnalysisGetNavigationResult) { |
1295 return _listEqual(files, other.files, (String a, String b) => a == b) && | 1330 return listEqual(files, other.files, (String a, String b) => a == b) && |
1296 _listEqual(targets, other.targets, (NavigationTarget a, NavigationTarg
et b) => a == b) && | 1331 listEqual(targets, other.targets, (NavigationTarget a, NavigationTarge
t b) => a == b) && |
1297 _listEqual(regions, other.regions, (NavigationRegion a, NavigationRegi
on b) => a == b); | 1332 listEqual(regions, other.regions, (NavigationRegion a, NavigationRegio
n b) => a == b); |
1298 } | 1333 } |
1299 return false; | 1334 return false; |
1300 } | 1335 } |
1301 | 1336 |
1302 @override | 1337 @override |
1303 int get hashCode { | 1338 int get hashCode { |
1304 int hash = 0; | 1339 int hash = 0; |
1305 hash = _JenkinsSmiHash.combine(hash, files.hashCode); | 1340 hash = JenkinsSmiHash.combine(hash, files.hashCode); |
1306 hash = _JenkinsSmiHash.combine(hash, targets.hashCode); | 1341 hash = JenkinsSmiHash.combine(hash, targets.hashCode); |
1307 hash = _JenkinsSmiHash.combine(hash, regions.hashCode); | 1342 hash = JenkinsSmiHash.combine(hash, regions.hashCode); |
1308 return _JenkinsSmiHash.finish(hash); | 1343 return JenkinsSmiHash.finish(hash); |
1309 } | 1344 } |
1310 } | 1345 } |
1311 | 1346 |
1312 /** | 1347 /** |
1313 * analysis.reanalyze params | 1348 * analysis.reanalyze params |
1314 * | 1349 * |
1315 * { | 1350 * { |
1316 * "roots": optional List<FilePath> | 1351 * "roots": optional List<FilePath> |
1317 * } | 1352 * } |
| 1353 * |
| 1354 * Clients are not expected to subtype this class. |
1318 */ | 1355 */ |
1319 class AnalysisReanalyzeParams implements HasToJson { | 1356 class AnalysisReanalyzeParams implements HasToJson { |
1320 List<String> _roots; | 1357 List<String> _roots; |
1321 | 1358 |
1322 /** | 1359 /** |
1323 * A list of the analysis roots that are to be re-analyzed. | 1360 * A list of the analysis roots that are to be re-analyzed. |
1324 */ | 1361 */ |
1325 List<String> get roots => _roots; | 1362 List<String> get roots => _roots; |
1326 | 1363 |
1327 /** | 1364 /** |
1328 * A list of the analysis roots that are to be re-analyzed. | 1365 * A list of the analysis roots that are to be re-analyzed. |
1329 */ | 1366 */ |
1330 void set roots(List<String> value) { | 1367 void set roots(List<String> value) { |
1331 this._roots = value; | 1368 this._roots = value; |
1332 } | 1369 } |
1333 | 1370 |
1334 AnalysisReanalyzeParams({List<String> roots}) { | 1371 AnalysisReanalyzeParams({List<String> roots}) { |
1335 this.roots = roots; | 1372 this.roots = roots; |
1336 } | 1373 } |
1337 | 1374 |
1338 factory AnalysisReanalyzeParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 1375 factory AnalysisReanalyzeParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
1339 if (json == null) { | 1376 if (json == null) { |
1340 json = {}; | 1377 json = {}; |
1341 } | 1378 } |
1342 if (json is Map) { | 1379 if (json is Map) { |
1343 List<String> roots; | 1380 List<String> roots; |
1344 if (json.containsKey("roots")) { | 1381 if (json.containsKey("roots")) { |
1345 roots = jsonDecoder._decodeList(jsonPath + ".roots", json["roots"], json
Decoder._decodeString); | 1382 roots = jsonDecoder.decodeList(jsonPath + ".roots", json["roots"], jsonD
ecoder.decodeString); |
1346 } | 1383 } |
1347 return new AnalysisReanalyzeParams(roots: roots); | 1384 return new AnalysisReanalyzeParams(roots: roots); |
1348 } else { | 1385 } else { |
1349 throw jsonDecoder.mismatch(jsonPath, "analysis.reanalyze params", json); | 1386 throw jsonDecoder.mismatch(jsonPath, "analysis.reanalyze params", json); |
1350 } | 1387 } |
1351 } | 1388 } |
1352 | 1389 |
1353 factory AnalysisReanalyzeParams.fromRequest(Request request) { | 1390 factory AnalysisReanalyzeParams.fromRequest(Request request) { |
1354 return new AnalysisReanalyzeParams.fromJson( | 1391 return new AnalysisReanalyzeParams.fromJson( |
1355 new RequestDecoder(request), "params", request._params); | 1392 new RequestDecoder(request), "params", request._params); |
(...skipping 10 matching lines...) Expand all Loading... |
1366 Request toRequest(String id) { | 1403 Request toRequest(String id) { |
1367 return new Request(id, "analysis.reanalyze", toJson()); | 1404 return new Request(id, "analysis.reanalyze", toJson()); |
1368 } | 1405 } |
1369 | 1406 |
1370 @override | 1407 @override |
1371 String toString() => JSON.encode(toJson()); | 1408 String toString() => JSON.encode(toJson()); |
1372 | 1409 |
1373 @override | 1410 @override |
1374 bool operator==(other) { | 1411 bool operator==(other) { |
1375 if (other is AnalysisReanalyzeParams) { | 1412 if (other is AnalysisReanalyzeParams) { |
1376 return _listEqual(roots, other.roots, (String a, String b) => a == b); | 1413 return listEqual(roots, other.roots, (String a, String b) => a == b); |
1377 } | 1414 } |
1378 return false; | 1415 return false; |
1379 } | 1416 } |
1380 | 1417 |
1381 @override | 1418 @override |
1382 int get hashCode { | 1419 int get hashCode { |
1383 int hash = 0; | 1420 int hash = 0; |
1384 hash = _JenkinsSmiHash.combine(hash, roots.hashCode); | 1421 hash = JenkinsSmiHash.combine(hash, roots.hashCode); |
1385 return _JenkinsSmiHash.finish(hash); | 1422 return JenkinsSmiHash.finish(hash); |
1386 } | 1423 } |
1387 } | 1424 } |
1388 /** | 1425 /** |
1389 * analysis.reanalyze result | 1426 * analysis.reanalyze result |
| 1427 * |
| 1428 * Clients are not expected to subtype this class. |
1390 */ | 1429 */ |
1391 class AnalysisReanalyzeResult { | 1430 class AnalysisReanalyzeResult { |
1392 Response toResponse(String id) { | 1431 Response toResponse(String id) { |
1393 return new Response(id, result: null); | 1432 return new Response(id, result: null); |
1394 } | 1433 } |
1395 | 1434 |
1396 @override | 1435 @override |
1397 bool operator==(other) { | 1436 bool operator==(other) { |
1398 if (other is AnalysisReanalyzeResult) { | 1437 if (other is AnalysisReanalyzeResult) { |
1399 return true; | 1438 return true; |
1400 } | 1439 } |
1401 return false; | 1440 return false; |
1402 } | 1441 } |
1403 | 1442 |
1404 @override | 1443 @override |
1405 int get hashCode { | 1444 int get hashCode { |
1406 return 846803925; | 1445 return 846803925; |
1407 } | 1446 } |
1408 } | 1447 } |
1409 | 1448 |
1410 /** | 1449 /** |
1411 * analysis.setAnalysisRoots params | 1450 * analysis.setAnalysisRoots params |
1412 * | 1451 * |
1413 * { | 1452 * { |
1414 * "included": List<FilePath> | 1453 * "included": List<FilePath> |
1415 * "excluded": List<FilePath> | 1454 * "excluded": List<FilePath> |
1416 * "packageRoots": optional Map<FilePath, FilePath> | 1455 * "packageRoots": optional Map<FilePath, FilePath> |
1417 * } | 1456 * } |
| 1457 * |
| 1458 * Clients are not expected to subtype this class. |
1418 */ | 1459 */ |
1419 class AnalysisSetAnalysisRootsParams implements HasToJson { | 1460 class AnalysisSetAnalysisRootsParams implements HasToJson { |
1420 List<String> _included; | 1461 List<String> _included; |
1421 | 1462 |
1422 List<String> _excluded; | 1463 List<String> _excluded; |
1423 | 1464 |
1424 Map<String, String> _packageRoots; | 1465 Map<String, String> _packageRoots; |
1425 | 1466 |
1426 /** | 1467 /** |
1427 * A list of the files and directories that should be analyzed. | 1468 * A list of the files and directories that should be analyzed. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1491 this.packageRoots = packageRoots; | 1532 this.packageRoots = packageRoots; |
1492 } | 1533 } |
1493 | 1534 |
1494 factory AnalysisSetAnalysisRootsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 1535 factory AnalysisSetAnalysisRootsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
1495 if (json == null) { | 1536 if (json == null) { |
1496 json = {}; | 1537 json = {}; |
1497 } | 1538 } |
1498 if (json is Map) { | 1539 if (json is Map) { |
1499 List<String> included; | 1540 List<String> included; |
1500 if (json.containsKey("included")) { | 1541 if (json.containsKey("included")) { |
1501 included = jsonDecoder._decodeList(jsonPath + ".included", json["include
d"], jsonDecoder._decodeString); | 1542 included = jsonDecoder.decodeList(jsonPath + ".included", json["included
"], jsonDecoder.decodeString); |
1502 } else { | 1543 } else { |
1503 throw jsonDecoder.missingKey(jsonPath, "included"); | 1544 throw jsonDecoder.missingKey(jsonPath, "included"); |
1504 } | 1545 } |
1505 List<String> excluded; | 1546 List<String> excluded; |
1506 if (json.containsKey("excluded")) { | 1547 if (json.containsKey("excluded")) { |
1507 excluded = jsonDecoder._decodeList(jsonPath + ".excluded", json["exclude
d"], jsonDecoder._decodeString); | 1548 excluded = jsonDecoder.decodeList(jsonPath + ".excluded", json["excluded
"], jsonDecoder.decodeString); |
1508 } else { | 1549 } else { |
1509 throw jsonDecoder.missingKey(jsonPath, "excluded"); | 1550 throw jsonDecoder.missingKey(jsonPath, "excluded"); |
1510 } | 1551 } |
1511 Map<String, String> packageRoots; | 1552 Map<String, String> packageRoots; |
1512 if (json.containsKey("packageRoots")) { | 1553 if (json.containsKey("packageRoots")) { |
1513 packageRoots = jsonDecoder._decodeMap(jsonPath + ".packageRoots", json["
packageRoots"], valueDecoder: jsonDecoder._decodeString); | 1554 packageRoots = jsonDecoder.decodeMap(jsonPath + ".packageRoots", json["p
ackageRoots"], valueDecoder: jsonDecoder.decodeString); |
1514 } | 1555 } |
1515 return new AnalysisSetAnalysisRootsParams(included, excluded, packageRoots
: packageRoots); | 1556 return new AnalysisSetAnalysisRootsParams(included, excluded, packageRoots
: packageRoots); |
1516 } else { | 1557 } else { |
1517 throw jsonDecoder.mismatch(jsonPath, "analysis.setAnalysisRoots params", j
son); | 1558 throw jsonDecoder.mismatch(jsonPath, "analysis.setAnalysisRoots params", j
son); |
1518 } | 1559 } |
1519 } | 1560 } |
1520 | 1561 |
1521 factory AnalysisSetAnalysisRootsParams.fromRequest(Request request) { | 1562 factory AnalysisSetAnalysisRootsParams.fromRequest(Request request) { |
1522 return new AnalysisSetAnalysisRootsParams.fromJson( | 1563 return new AnalysisSetAnalysisRootsParams.fromJson( |
1523 new RequestDecoder(request), "params", request._params); | 1564 new RequestDecoder(request), "params", request._params); |
(...skipping 12 matching lines...) Expand all Loading... |
1536 Request toRequest(String id) { | 1577 Request toRequest(String id) { |
1537 return new Request(id, "analysis.setAnalysisRoots", toJson()); | 1578 return new Request(id, "analysis.setAnalysisRoots", toJson()); |
1538 } | 1579 } |
1539 | 1580 |
1540 @override | 1581 @override |
1541 String toString() => JSON.encode(toJson()); | 1582 String toString() => JSON.encode(toJson()); |
1542 | 1583 |
1543 @override | 1584 @override |
1544 bool operator==(other) { | 1585 bool operator==(other) { |
1545 if (other is AnalysisSetAnalysisRootsParams) { | 1586 if (other is AnalysisSetAnalysisRootsParams) { |
1546 return _listEqual(included, other.included, (String a, String b) => a == b
) && | 1587 return listEqual(included, other.included, (String a, String b) => a == b)
&& |
1547 _listEqual(excluded, other.excluded, (String a, String b) => a == b) &
& | 1588 listEqual(excluded, other.excluded, (String a, String b) => a == b) && |
1548 _mapEqual(packageRoots, other.packageRoots, (String a, String b) => a
== b); | 1589 mapEqual(packageRoots, other.packageRoots, (String a, String b) => a =
= b); |
1549 } | 1590 } |
1550 return false; | 1591 return false; |
1551 } | 1592 } |
1552 | 1593 |
1553 @override | 1594 @override |
1554 int get hashCode { | 1595 int get hashCode { |
1555 int hash = 0; | 1596 int hash = 0; |
1556 hash = _JenkinsSmiHash.combine(hash, included.hashCode); | 1597 hash = JenkinsSmiHash.combine(hash, included.hashCode); |
1557 hash = _JenkinsSmiHash.combine(hash, excluded.hashCode); | 1598 hash = JenkinsSmiHash.combine(hash, excluded.hashCode); |
1558 hash = _JenkinsSmiHash.combine(hash, packageRoots.hashCode); | 1599 hash = JenkinsSmiHash.combine(hash, packageRoots.hashCode); |
1559 return _JenkinsSmiHash.finish(hash); | 1600 return JenkinsSmiHash.finish(hash); |
1560 } | 1601 } |
1561 } | 1602 } |
1562 /** | 1603 /** |
1563 * analysis.setAnalysisRoots result | 1604 * analysis.setAnalysisRoots result |
| 1605 * |
| 1606 * Clients are not expected to subtype this class. |
1564 */ | 1607 */ |
1565 class AnalysisSetAnalysisRootsResult { | 1608 class AnalysisSetAnalysisRootsResult { |
1566 Response toResponse(String id) { | 1609 Response toResponse(String id) { |
1567 return new Response(id, result: null); | 1610 return new Response(id, result: null); |
1568 } | 1611 } |
1569 | 1612 |
1570 @override | 1613 @override |
1571 bool operator==(other) { | 1614 bool operator==(other) { |
1572 if (other is AnalysisSetAnalysisRootsResult) { | 1615 if (other is AnalysisSetAnalysisRootsResult) { |
1573 return true; | 1616 return true; |
1574 } | 1617 } |
1575 return false; | 1618 return false; |
1576 } | 1619 } |
1577 | 1620 |
1578 @override | 1621 @override |
1579 int get hashCode { | 1622 int get hashCode { |
1580 return 866004753; | 1623 return 866004753; |
1581 } | 1624 } |
1582 } | 1625 } |
1583 | 1626 |
1584 /** | 1627 /** |
1585 * analysis.setGeneralSubscriptions params | 1628 * analysis.setGeneralSubscriptions params |
1586 * | 1629 * |
1587 * { | 1630 * { |
1588 * "subscriptions": List<GeneralAnalysisService> | 1631 * "subscriptions": List<GeneralAnalysisService> |
1589 * } | 1632 * } |
| 1633 * |
| 1634 * Clients are not expected to subtype this class. |
1590 */ | 1635 */ |
1591 class AnalysisSetGeneralSubscriptionsParams implements HasToJson { | 1636 class AnalysisSetGeneralSubscriptionsParams implements HasToJson { |
1592 List<GeneralAnalysisService> _subscriptions; | 1637 List<GeneralAnalysisService> _subscriptions; |
1593 | 1638 |
1594 /** | 1639 /** |
1595 * A list of the services being subscribed to. | 1640 * A list of the services being subscribed to. |
1596 */ | 1641 */ |
1597 List<GeneralAnalysisService> get subscriptions => _subscriptions; | 1642 List<GeneralAnalysisService> get subscriptions => _subscriptions; |
1598 | 1643 |
1599 /** | 1644 /** |
1600 * A list of the services being subscribed to. | 1645 * A list of the services being subscribed to. |
1601 */ | 1646 */ |
1602 void set subscriptions(List<GeneralAnalysisService> value) { | 1647 void set subscriptions(List<GeneralAnalysisService> value) { |
1603 assert(value != null); | 1648 assert(value != null); |
1604 this._subscriptions = value; | 1649 this._subscriptions = value; |
1605 } | 1650 } |
1606 | 1651 |
1607 AnalysisSetGeneralSubscriptionsParams(List<GeneralAnalysisService> subscriptio
ns) { | 1652 AnalysisSetGeneralSubscriptionsParams(List<GeneralAnalysisService> subscriptio
ns) { |
1608 this.subscriptions = subscriptions; | 1653 this.subscriptions = subscriptions; |
1609 } | 1654 } |
1610 | 1655 |
1611 factory AnalysisSetGeneralSubscriptionsParams.fromJson(JsonDecoder jsonDecoder
, String jsonPath, Object json) { | 1656 factory AnalysisSetGeneralSubscriptionsParams.fromJson(JsonDecoder jsonDecoder
, String jsonPath, Object json) { |
1612 if (json == null) { | 1657 if (json == null) { |
1613 json = {}; | 1658 json = {}; |
1614 } | 1659 } |
1615 if (json is Map) { | 1660 if (json is Map) { |
1616 List<GeneralAnalysisService> subscriptions; | 1661 List<GeneralAnalysisService> subscriptions; |
1617 if (json.containsKey("subscriptions")) { | 1662 if (json.containsKey("subscriptions")) { |
1618 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new GeneralAnalysisService
.fromJson(jsonDecoder, jsonPath, json)); | 1663 subscriptions = jsonDecoder.decodeList(jsonPath + ".subscriptions", json
["subscriptions"], (String jsonPath, Object json) => new GeneralAnalysisService.
fromJson(jsonDecoder, jsonPath, json)); |
1619 } else { | 1664 } else { |
1620 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 1665 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
1621 } | 1666 } |
1622 return new AnalysisSetGeneralSubscriptionsParams(subscriptions); | 1667 return new AnalysisSetGeneralSubscriptionsParams(subscriptions); |
1623 } else { | 1668 } else { |
1624 throw jsonDecoder.mismatch(jsonPath, "analysis.setGeneralSubscriptions par
ams", json); | 1669 throw jsonDecoder.mismatch(jsonPath, "analysis.setGeneralSubscriptions par
ams", json); |
1625 } | 1670 } |
1626 } | 1671 } |
1627 | 1672 |
1628 factory AnalysisSetGeneralSubscriptionsParams.fromRequest(Request request) { | 1673 factory AnalysisSetGeneralSubscriptionsParams.fromRequest(Request request) { |
(...skipping 10 matching lines...) Expand all Loading... |
1639 Request toRequest(String id) { | 1684 Request toRequest(String id) { |
1640 return new Request(id, "analysis.setGeneralSubscriptions", toJson()); | 1685 return new Request(id, "analysis.setGeneralSubscriptions", toJson()); |
1641 } | 1686 } |
1642 | 1687 |
1643 @override | 1688 @override |
1644 String toString() => JSON.encode(toJson()); | 1689 String toString() => JSON.encode(toJson()); |
1645 | 1690 |
1646 @override | 1691 @override |
1647 bool operator==(other) { | 1692 bool operator==(other) { |
1648 if (other is AnalysisSetGeneralSubscriptionsParams) { | 1693 if (other is AnalysisSetGeneralSubscriptionsParams) { |
1649 return _listEqual(subscriptions, other.subscriptions, (GeneralAnalysisServ
ice a, GeneralAnalysisService b) => a == b); | 1694 return listEqual(subscriptions, other.subscriptions, (GeneralAnalysisServi
ce a, GeneralAnalysisService b) => a == b); |
1650 } | 1695 } |
1651 return false; | 1696 return false; |
1652 } | 1697 } |
1653 | 1698 |
1654 @override | 1699 @override |
1655 int get hashCode { | 1700 int get hashCode { |
1656 int hash = 0; | 1701 int hash = 0; |
1657 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 1702 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
1658 return _JenkinsSmiHash.finish(hash); | 1703 return JenkinsSmiHash.finish(hash); |
1659 } | 1704 } |
1660 } | 1705 } |
1661 /** | 1706 /** |
1662 * analysis.setGeneralSubscriptions result | 1707 * analysis.setGeneralSubscriptions result |
| 1708 * |
| 1709 * Clients are not expected to subtype this class. |
1663 */ | 1710 */ |
1664 class AnalysisSetGeneralSubscriptionsResult { | 1711 class AnalysisSetGeneralSubscriptionsResult { |
1665 Response toResponse(String id) { | 1712 Response toResponse(String id) { |
1666 return new Response(id, result: null); | 1713 return new Response(id, result: null); |
1667 } | 1714 } |
1668 | 1715 |
1669 @override | 1716 @override |
1670 bool operator==(other) { | 1717 bool operator==(other) { |
1671 if (other is AnalysisSetGeneralSubscriptionsResult) { | 1718 if (other is AnalysisSetGeneralSubscriptionsResult) { |
1672 return true; | 1719 return true; |
1673 } | 1720 } |
1674 return false; | 1721 return false; |
1675 } | 1722 } |
1676 | 1723 |
1677 @override | 1724 @override |
1678 int get hashCode { | 1725 int get hashCode { |
1679 return 386759562; | 1726 return 386759562; |
1680 } | 1727 } |
1681 } | 1728 } |
1682 | 1729 |
1683 /** | 1730 /** |
1684 * analysis.setPriorityFiles params | 1731 * analysis.setPriorityFiles params |
1685 * | 1732 * |
1686 * { | 1733 * { |
1687 * "files": List<FilePath> | 1734 * "files": List<FilePath> |
1688 * } | 1735 * } |
| 1736 * |
| 1737 * Clients are not expected to subtype this class. |
1689 */ | 1738 */ |
1690 class AnalysisSetPriorityFilesParams implements HasToJson { | 1739 class AnalysisSetPriorityFilesParams implements HasToJson { |
1691 List<String> _files; | 1740 List<String> _files; |
1692 | 1741 |
1693 /** | 1742 /** |
1694 * The files that are to be a priority for analysis. | 1743 * The files that are to be a priority for analysis. |
1695 */ | 1744 */ |
1696 List<String> get files => _files; | 1745 List<String> get files => _files; |
1697 | 1746 |
1698 /** | 1747 /** |
1699 * The files that are to be a priority for analysis. | 1748 * The files that are to be a priority for analysis. |
1700 */ | 1749 */ |
1701 void set files(List<String> value) { | 1750 void set files(List<String> value) { |
1702 assert(value != null); | 1751 assert(value != null); |
1703 this._files = value; | 1752 this._files = value; |
1704 } | 1753 } |
1705 | 1754 |
1706 AnalysisSetPriorityFilesParams(List<String> files) { | 1755 AnalysisSetPriorityFilesParams(List<String> files) { |
1707 this.files = files; | 1756 this.files = files; |
1708 } | 1757 } |
1709 | 1758 |
1710 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 1759 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
1711 if (json == null) { | 1760 if (json == null) { |
1712 json = {}; | 1761 json = {}; |
1713 } | 1762 } |
1714 if (json is Map) { | 1763 if (json is Map) { |
1715 List<String> files; | 1764 List<String> files; |
1716 if (json.containsKey("files")) { | 1765 if (json.containsKey("files")) { |
1717 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); | 1766 files = jsonDecoder.decodeList(jsonPath + ".files", json["files"], jsonD
ecoder.decodeString); |
1718 } else { | 1767 } else { |
1719 throw jsonDecoder.missingKey(jsonPath, "files"); | 1768 throw jsonDecoder.missingKey(jsonPath, "files"); |
1720 } | 1769 } |
1721 return new AnalysisSetPriorityFilesParams(files); | 1770 return new AnalysisSetPriorityFilesParams(files); |
1722 } else { | 1771 } else { |
1723 throw jsonDecoder.mismatch(jsonPath, "analysis.setPriorityFiles params", j
son); | 1772 throw jsonDecoder.mismatch(jsonPath, "analysis.setPriorityFiles params", j
son); |
1724 } | 1773 } |
1725 } | 1774 } |
1726 | 1775 |
1727 factory AnalysisSetPriorityFilesParams.fromRequest(Request request) { | 1776 factory AnalysisSetPriorityFilesParams.fromRequest(Request request) { |
(...skipping 10 matching lines...) Expand all Loading... |
1738 Request toRequest(String id) { | 1787 Request toRequest(String id) { |
1739 return new Request(id, "analysis.setPriorityFiles", toJson()); | 1788 return new Request(id, "analysis.setPriorityFiles", toJson()); |
1740 } | 1789 } |
1741 | 1790 |
1742 @override | 1791 @override |
1743 String toString() => JSON.encode(toJson()); | 1792 String toString() => JSON.encode(toJson()); |
1744 | 1793 |
1745 @override | 1794 @override |
1746 bool operator==(other) { | 1795 bool operator==(other) { |
1747 if (other is AnalysisSetPriorityFilesParams) { | 1796 if (other is AnalysisSetPriorityFilesParams) { |
1748 return _listEqual(files, other.files, (String a, String b) => a == b); | 1797 return listEqual(files, other.files, (String a, String b) => a == b); |
1749 } | 1798 } |
1750 return false; | 1799 return false; |
1751 } | 1800 } |
1752 | 1801 |
1753 @override | 1802 @override |
1754 int get hashCode { | 1803 int get hashCode { |
1755 int hash = 0; | 1804 int hash = 0; |
1756 hash = _JenkinsSmiHash.combine(hash, files.hashCode); | 1805 hash = JenkinsSmiHash.combine(hash, files.hashCode); |
1757 return _JenkinsSmiHash.finish(hash); | 1806 return JenkinsSmiHash.finish(hash); |
1758 } | 1807 } |
1759 } | 1808 } |
1760 /** | 1809 /** |
1761 * analysis.setPriorityFiles result | 1810 * analysis.setPriorityFiles result |
| 1811 * |
| 1812 * Clients are not expected to subtype this class. |
1762 */ | 1813 */ |
1763 class AnalysisSetPriorityFilesResult { | 1814 class AnalysisSetPriorityFilesResult { |
1764 Response toResponse(String id) { | 1815 Response toResponse(String id) { |
1765 return new Response(id, result: null); | 1816 return new Response(id, result: null); |
1766 } | 1817 } |
1767 | 1818 |
1768 @override | 1819 @override |
1769 bool operator==(other) { | 1820 bool operator==(other) { |
1770 if (other is AnalysisSetPriorityFilesResult) { | 1821 if (other is AnalysisSetPriorityFilesResult) { |
1771 return true; | 1822 return true; |
1772 } | 1823 } |
1773 return false; | 1824 return false; |
1774 } | 1825 } |
1775 | 1826 |
1776 @override | 1827 @override |
1777 int get hashCode { | 1828 int get hashCode { |
1778 return 330050055; | 1829 return 330050055; |
1779 } | 1830 } |
1780 } | 1831 } |
1781 | 1832 |
1782 /** | 1833 /** |
1783 * analysis.setSubscriptions params | 1834 * analysis.setSubscriptions params |
1784 * | 1835 * |
1785 * { | 1836 * { |
1786 * "subscriptions": Map<AnalysisService, List<FilePath>> | 1837 * "subscriptions": Map<AnalysisService, List<FilePath>> |
1787 * } | 1838 * } |
| 1839 * |
| 1840 * Clients are not expected to subtype this class. |
1788 */ | 1841 */ |
1789 class AnalysisSetSubscriptionsParams implements HasToJson { | 1842 class AnalysisSetSubscriptionsParams implements HasToJson { |
1790 Map<AnalysisService, List<String>> _subscriptions; | 1843 Map<AnalysisService, List<String>> _subscriptions; |
1791 | 1844 |
1792 /** | 1845 /** |
1793 * A table mapping services to a list of the files being subscribed to the | 1846 * A table mapping services to a list of the files being subscribed to the |
1794 * service. | 1847 * service. |
1795 */ | 1848 */ |
1796 Map<AnalysisService, List<String>> get subscriptions => _subscriptions; | 1849 Map<AnalysisService, List<String>> get subscriptions => _subscriptions; |
1797 | 1850 |
(...skipping 10 matching lines...) Expand all Loading... |
1808 this.subscriptions = subscriptions; | 1861 this.subscriptions = subscriptions; |
1809 } | 1862 } |
1810 | 1863 |
1811 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 1864 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
1812 if (json == null) { | 1865 if (json == null) { |
1813 json = {}; | 1866 json = {}; |
1814 } | 1867 } |
1815 if (json is Map) { | 1868 if (json is Map) { |
1816 Map<AnalysisService, List<String>> subscriptions; | 1869 Map<AnalysisService, List<String>> subscriptions; |
1817 if (json.containsKey("subscriptions")) { | 1870 if (json.containsKey("subscriptions")) { |
1818 subscriptions = jsonDecoder._decodeMap(jsonPath + ".subscriptions", json
["subscriptions"], keyDecoder: (String jsonPath, Object json) => new AnalysisSer
vice.fromJson(jsonDecoder, jsonPath, json), valueDecoder: (String jsonPath, Obje
ct json) => jsonDecoder._decodeList(jsonPath, json, jsonDecoder._decodeString)); | 1871 subscriptions = jsonDecoder.decodeMap(jsonPath + ".subscriptions", json[
"subscriptions"], keyDecoder: (String jsonPath, Object json) => new AnalysisServ
ice.fromJson(jsonDecoder, jsonPath, json), valueDecoder: (String jsonPath, Objec
t json) => jsonDecoder.decodeList(jsonPath, json, jsonDecoder.decodeString)); |
1819 } else { | 1872 } else { |
1820 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 1873 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
1821 } | 1874 } |
1822 return new AnalysisSetSubscriptionsParams(subscriptions); | 1875 return new AnalysisSetSubscriptionsParams(subscriptions); |
1823 } else { | 1876 } else { |
1824 throw jsonDecoder.mismatch(jsonPath, "analysis.setSubscriptions params", j
son); | 1877 throw jsonDecoder.mismatch(jsonPath, "analysis.setSubscriptions params", j
son); |
1825 } | 1878 } |
1826 } | 1879 } |
1827 | 1880 |
1828 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) { | 1881 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) { |
(...skipping 10 matching lines...) Expand all Loading... |
1839 Request toRequest(String id) { | 1892 Request toRequest(String id) { |
1840 return new Request(id, "analysis.setSubscriptions", toJson()); | 1893 return new Request(id, "analysis.setSubscriptions", toJson()); |
1841 } | 1894 } |
1842 | 1895 |
1843 @override | 1896 @override |
1844 String toString() => JSON.encode(toJson()); | 1897 String toString() => JSON.encode(toJson()); |
1845 | 1898 |
1846 @override | 1899 @override |
1847 bool operator==(other) { | 1900 bool operator==(other) { |
1848 if (other is AnalysisSetSubscriptionsParams) { | 1901 if (other is AnalysisSetSubscriptionsParams) { |
1849 return _mapEqual(subscriptions, other.subscriptions, (List<String> a, List
<String> b) => _listEqual(a, b, (String a, String b) => a == b)); | 1902 return mapEqual(subscriptions, other.subscriptions, (List<String> a, List<
String> b) => listEqual(a, b, (String a, String b) => a == b)); |
1850 } | 1903 } |
1851 return false; | 1904 return false; |
1852 } | 1905 } |
1853 | 1906 |
1854 @override | 1907 @override |
1855 int get hashCode { | 1908 int get hashCode { |
1856 int hash = 0; | 1909 int hash = 0; |
1857 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 1910 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
1858 return _JenkinsSmiHash.finish(hash); | 1911 return JenkinsSmiHash.finish(hash); |
1859 } | 1912 } |
1860 } | 1913 } |
1861 /** | 1914 /** |
1862 * analysis.setSubscriptions result | 1915 * analysis.setSubscriptions result |
| 1916 * |
| 1917 * Clients are not expected to subtype this class. |
1863 */ | 1918 */ |
1864 class AnalysisSetSubscriptionsResult { | 1919 class AnalysisSetSubscriptionsResult { |
1865 Response toResponse(String id) { | 1920 Response toResponse(String id) { |
1866 return new Response(id, result: null); | 1921 return new Response(id, result: null); |
1867 } | 1922 } |
1868 | 1923 |
1869 @override | 1924 @override |
1870 bool operator==(other) { | 1925 bool operator==(other) { |
1871 if (other is AnalysisSetSubscriptionsResult) { | 1926 if (other is AnalysisSetSubscriptionsResult) { |
1872 return true; | 1927 return true; |
1873 } | 1928 } |
1874 return false; | 1929 return false; |
1875 } | 1930 } |
1876 | 1931 |
1877 @override | 1932 @override |
1878 int get hashCode { | 1933 int get hashCode { |
1879 return 218088493; | 1934 return 218088493; |
1880 } | 1935 } |
1881 } | 1936 } |
1882 | 1937 |
1883 /** | 1938 /** |
1884 * analysis.updateContent params | 1939 * analysis.updateContent params |
1885 * | 1940 * |
1886 * { | 1941 * { |
1887 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> | 1942 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> |
1888 * } | 1943 * } |
| 1944 * |
| 1945 * Clients are not expected to subtype this class. |
1889 */ | 1946 */ |
1890 class AnalysisUpdateContentParams implements HasToJson { | 1947 class AnalysisUpdateContentParams implements HasToJson { |
1891 Map<String, dynamic> _files; | 1948 Map<String, dynamic> _files; |
1892 | 1949 |
1893 /** | 1950 /** |
1894 * A table mapping the files whose content has changed to a description of | 1951 * A table mapping the files whose content has changed to a description of |
1895 * the content change. | 1952 * the content change. |
1896 */ | 1953 */ |
1897 Map<String, dynamic> get files => _files; | 1954 Map<String, dynamic> get files => _files; |
1898 | 1955 |
(...skipping 10 matching lines...) Expand all Loading... |
1909 this.files = files; | 1966 this.files = files; |
1910 } | 1967 } |
1911 | 1968 |
1912 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1969 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
1913 if (json == null) { | 1970 if (json == null) { |
1914 json = {}; | 1971 json = {}; |
1915 } | 1972 } |
1916 if (json is Map) { | 1973 if (json is Map) { |
1917 Map<String, dynamic> files; | 1974 Map<String, dynamic> files; |
1918 if (json.containsKey("files")) { | 1975 if (json.containsKey("files")) { |
1919 files = jsonDecoder._decodeMap(jsonPath + ".files", json["files"], value
Decoder: (String jsonPath, Object json) => jsonDecoder._decodeUnion(jsonPath, js
on, "type", {"add": (String jsonPath, Object json) => new AddContentOverlay.from
Json(jsonDecoder, jsonPath, json), "change": (String jsonPath, Object json) => n
ew ChangeContentOverlay.fromJson(jsonDecoder, jsonPath, json), "remove": (String
jsonPath, Object json) => new RemoveContentOverlay.fromJson(jsonDecoder, jsonPa
th, json)})); | 1976 files = jsonDecoder.decodeMap(jsonPath + ".files", json["files"], valueD
ecoder: (String jsonPath, Object json) => jsonDecoder.decodeUnion(jsonPath, json
, "type", {"add": (String jsonPath, Object json) => new AddContentOverlay.fromJs
on(jsonDecoder, jsonPath, json), "change": (String jsonPath, Object json) => new
ChangeContentOverlay.fromJson(jsonDecoder, jsonPath, json), "remove": (String j
sonPath, Object json) => new RemoveContentOverlay.fromJson(jsonDecoder, jsonPath
, json)})); |
1920 } else { | 1977 } else { |
1921 throw jsonDecoder.missingKey(jsonPath, "files"); | 1978 throw jsonDecoder.missingKey(jsonPath, "files"); |
1922 } | 1979 } |
1923 return new AnalysisUpdateContentParams(files); | 1980 return new AnalysisUpdateContentParams(files); |
1924 } else { | 1981 } else { |
1925 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent params", json
); | 1982 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent params", json
); |
1926 } | 1983 } |
1927 } | 1984 } |
1928 | 1985 |
1929 factory AnalysisUpdateContentParams.fromRequest(Request request) { | 1986 factory AnalysisUpdateContentParams.fromRequest(Request request) { |
(...skipping 10 matching lines...) Expand all Loading... |
1940 Request toRequest(String id) { | 1997 Request toRequest(String id) { |
1941 return new Request(id, "analysis.updateContent", toJson()); | 1998 return new Request(id, "analysis.updateContent", toJson()); |
1942 } | 1999 } |
1943 | 2000 |
1944 @override | 2001 @override |
1945 String toString() => JSON.encode(toJson()); | 2002 String toString() => JSON.encode(toJson()); |
1946 | 2003 |
1947 @override | 2004 @override |
1948 bool operator==(other) { | 2005 bool operator==(other) { |
1949 if (other is AnalysisUpdateContentParams) { | 2006 if (other is AnalysisUpdateContentParams) { |
1950 return _mapEqual(files, other.files, (dynamic a, dynamic b) => a == b); | 2007 return mapEqual(files, other.files, (dynamic a, dynamic b) => a == b); |
1951 } | 2008 } |
1952 return false; | 2009 return false; |
1953 } | 2010 } |
1954 | 2011 |
1955 @override | 2012 @override |
1956 int get hashCode { | 2013 int get hashCode { |
1957 int hash = 0; | 2014 int hash = 0; |
1958 hash = _JenkinsSmiHash.combine(hash, files.hashCode); | 2015 hash = JenkinsSmiHash.combine(hash, files.hashCode); |
1959 return _JenkinsSmiHash.finish(hash); | 2016 return JenkinsSmiHash.finish(hash); |
1960 } | 2017 } |
1961 } | 2018 } |
1962 | 2019 |
1963 /** | 2020 /** |
1964 * analysis.updateContent result | 2021 * analysis.updateContent result |
1965 * | 2022 * |
1966 * { | 2023 * { |
1967 * } | 2024 * } |
| 2025 * |
| 2026 * Clients are not expected to subtype this class. |
1968 */ | 2027 */ |
1969 class AnalysisUpdateContentResult implements HasToJson { | 2028 class AnalysisUpdateContentResult implements HasToJson { |
1970 AnalysisUpdateContentResult(); | 2029 AnalysisUpdateContentResult(); |
1971 | 2030 |
1972 factory AnalysisUpdateContentResult.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 2031 factory AnalysisUpdateContentResult.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
1973 if (json == null) { | 2032 if (json == null) { |
1974 json = {}; | 2033 json = {}; |
1975 } | 2034 } |
1976 if (json is Map) { | 2035 if (json is Map) { |
1977 return new AnalysisUpdateContentResult(); | 2036 return new AnalysisUpdateContentResult(); |
(...skipping 23 matching lines...) Expand all Loading... |
2001 bool operator==(other) { | 2060 bool operator==(other) { |
2002 if (other is AnalysisUpdateContentResult) { | 2061 if (other is AnalysisUpdateContentResult) { |
2003 return true; | 2062 return true; |
2004 } | 2063 } |
2005 return false; | 2064 return false; |
2006 } | 2065 } |
2007 | 2066 |
2008 @override | 2067 @override |
2009 int get hashCode { | 2068 int get hashCode { |
2010 int hash = 0; | 2069 int hash = 0; |
2011 return _JenkinsSmiHash.finish(hash); | 2070 return JenkinsSmiHash.finish(hash); |
2012 } | 2071 } |
2013 } | 2072 } |
2014 | 2073 |
2015 /** | 2074 /** |
2016 * analysis.updateOptions params | 2075 * analysis.updateOptions params |
2017 * | 2076 * |
2018 * { | 2077 * { |
2019 * "options": AnalysisOptions | 2078 * "options": AnalysisOptions |
2020 * } | 2079 * } |
| 2080 * |
| 2081 * Clients are not expected to subtype this class. |
2021 */ | 2082 */ |
2022 class AnalysisUpdateOptionsParams implements HasToJson { | 2083 class AnalysisUpdateOptionsParams implements HasToJson { |
2023 AnalysisOptions _options; | 2084 AnalysisOptions _options; |
2024 | 2085 |
2025 /** | 2086 /** |
2026 * The options that are to be used to control analysis. | 2087 * The options that are to be used to control analysis. |
2027 */ | 2088 */ |
2028 AnalysisOptions get options => _options; | 2089 AnalysisOptions get options => _options; |
2029 | 2090 |
2030 /** | 2091 /** |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2078 bool operator==(other) { | 2139 bool operator==(other) { |
2079 if (other is AnalysisUpdateOptionsParams) { | 2140 if (other is AnalysisUpdateOptionsParams) { |
2080 return options == other.options; | 2141 return options == other.options; |
2081 } | 2142 } |
2082 return false; | 2143 return false; |
2083 } | 2144 } |
2084 | 2145 |
2085 @override | 2146 @override |
2086 int get hashCode { | 2147 int get hashCode { |
2087 int hash = 0; | 2148 int hash = 0; |
2088 hash = _JenkinsSmiHash.combine(hash, options.hashCode); | 2149 hash = JenkinsSmiHash.combine(hash, options.hashCode); |
2089 return _JenkinsSmiHash.finish(hash); | 2150 return JenkinsSmiHash.finish(hash); |
2090 } | 2151 } |
2091 } | 2152 } |
2092 /** | 2153 /** |
2093 * analysis.updateOptions result | 2154 * analysis.updateOptions result |
| 2155 * |
| 2156 * Clients are not expected to subtype this class. |
2094 */ | 2157 */ |
2095 class AnalysisUpdateOptionsResult { | 2158 class AnalysisUpdateOptionsResult { |
2096 Response toResponse(String id) { | 2159 Response toResponse(String id) { |
2097 return new Response(id, result: null); | 2160 return new Response(id, result: null); |
2098 } | 2161 } |
2099 | 2162 |
2100 @override | 2163 @override |
2101 bool operator==(other) { | 2164 bool operator==(other) { |
2102 if (other is AnalysisUpdateOptionsResult) { | 2165 if (other is AnalysisUpdateOptionsResult) { |
2103 return true; | 2166 return true; |
2104 } | 2167 } |
2105 return false; | 2168 return false; |
2106 } | 2169 } |
2107 | 2170 |
2108 @override | 2171 @override |
2109 int get hashCode { | 2172 int get hashCode { |
2110 return 179689467; | 2173 return 179689467; |
2111 } | 2174 } |
2112 } | 2175 } |
2113 | 2176 |
2114 /** | 2177 /** |
2115 * analysis.analyzedFiles params | 2178 * analysis.analyzedFiles params |
2116 * | 2179 * |
2117 * { | 2180 * { |
2118 * "directories": List<FilePath> | 2181 * "directories": List<FilePath> |
2119 * } | 2182 * } |
| 2183 * |
| 2184 * Clients are not expected to subtype this class. |
2120 */ | 2185 */ |
2121 class AnalysisAnalyzedFilesParams implements HasToJson { | 2186 class AnalysisAnalyzedFilesParams implements HasToJson { |
2122 List<String> _directories; | 2187 List<String> _directories; |
2123 | 2188 |
2124 /** | 2189 /** |
2125 * A list of the paths of the files that are being analyzed. | 2190 * A list of the paths of the files that are being analyzed. |
2126 */ | 2191 */ |
2127 List<String> get directories => _directories; | 2192 List<String> get directories => _directories; |
2128 | 2193 |
2129 /** | 2194 /** |
2130 * A list of the paths of the files that are being analyzed. | 2195 * A list of the paths of the files that are being analyzed. |
2131 */ | 2196 */ |
2132 void set directories(List<String> value) { | 2197 void set directories(List<String> value) { |
2133 assert(value != null); | 2198 assert(value != null); |
2134 this._directories = value; | 2199 this._directories = value; |
2135 } | 2200 } |
2136 | 2201 |
2137 AnalysisAnalyzedFilesParams(List<String> directories) { | 2202 AnalysisAnalyzedFilesParams(List<String> directories) { |
2138 this.directories = directories; | 2203 this.directories = directories; |
2139 } | 2204 } |
2140 | 2205 |
2141 factory AnalysisAnalyzedFilesParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 2206 factory AnalysisAnalyzedFilesParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
2142 if (json == null) { | 2207 if (json == null) { |
2143 json = {}; | 2208 json = {}; |
2144 } | 2209 } |
2145 if (json is Map) { | 2210 if (json is Map) { |
2146 List<String> directories; | 2211 List<String> directories; |
2147 if (json.containsKey("directories")) { | 2212 if (json.containsKey("directories")) { |
2148 directories = jsonDecoder._decodeList(jsonPath + ".directories", json["d
irectories"], jsonDecoder._decodeString); | 2213 directories = jsonDecoder.decodeList(jsonPath + ".directories", json["di
rectories"], jsonDecoder.decodeString); |
2149 } else { | 2214 } else { |
2150 throw jsonDecoder.missingKey(jsonPath, "directories"); | 2215 throw jsonDecoder.missingKey(jsonPath, "directories"); |
2151 } | 2216 } |
2152 return new AnalysisAnalyzedFilesParams(directories); | 2217 return new AnalysisAnalyzedFilesParams(directories); |
2153 } else { | 2218 } else { |
2154 throw jsonDecoder.mismatch(jsonPath, "analysis.analyzedFiles params", json
); | 2219 throw jsonDecoder.mismatch(jsonPath, "analysis.analyzedFiles params", json
); |
2155 } | 2220 } |
2156 } | 2221 } |
2157 | 2222 |
2158 factory AnalysisAnalyzedFilesParams.fromNotification(Notification notification
) { | 2223 factory AnalysisAnalyzedFilesParams.fromNotification(Notification notification
) { |
(...skipping 10 matching lines...) Expand all Loading... |
2169 Notification toNotification() { | 2234 Notification toNotification() { |
2170 return new Notification("analysis.analyzedFiles", toJson()); | 2235 return new Notification("analysis.analyzedFiles", toJson()); |
2171 } | 2236 } |
2172 | 2237 |
2173 @override | 2238 @override |
2174 String toString() => JSON.encode(toJson()); | 2239 String toString() => JSON.encode(toJson()); |
2175 | 2240 |
2176 @override | 2241 @override |
2177 bool operator==(other) { | 2242 bool operator==(other) { |
2178 if (other is AnalysisAnalyzedFilesParams) { | 2243 if (other is AnalysisAnalyzedFilesParams) { |
2179 return _listEqual(directories, other.directories, (String a, String b) =>
a == b); | 2244 return listEqual(directories, other.directories, (String a, String b) => a
== b); |
2180 } | 2245 } |
2181 return false; | 2246 return false; |
2182 } | 2247 } |
2183 | 2248 |
2184 @override | 2249 @override |
2185 int get hashCode { | 2250 int get hashCode { |
2186 int hash = 0; | 2251 int hash = 0; |
2187 hash = _JenkinsSmiHash.combine(hash, directories.hashCode); | 2252 hash = JenkinsSmiHash.combine(hash, directories.hashCode); |
2188 return _JenkinsSmiHash.finish(hash); | 2253 return JenkinsSmiHash.finish(hash); |
2189 } | 2254 } |
2190 } | 2255 } |
2191 | 2256 |
2192 /** | 2257 /** |
2193 * analysis.errors params | 2258 * analysis.errors params |
2194 * | 2259 * |
2195 * { | 2260 * { |
2196 * "file": FilePath | 2261 * "file": FilePath |
2197 * "errors": List<AnalysisError> | 2262 * "errors": List<AnalysisError> |
2198 * } | 2263 * } |
| 2264 * |
| 2265 * Clients are not expected to subtype this class. |
2199 */ | 2266 */ |
2200 class AnalysisErrorsParams implements HasToJson { | 2267 class AnalysisErrorsParams implements HasToJson { |
2201 String _file; | 2268 String _file; |
2202 | 2269 |
2203 List<AnalysisError> _errors; | 2270 List<AnalysisError> _errors; |
2204 | 2271 |
2205 /** | 2272 /** |
2206 * The file containing the errors. | 2273 * The file containing the errors. |
2207 */ | 2274 */ |
2208 String get file => _file; | 2275 String get file => _file; |
(...skipping 24 matching lines...) Expand all Loading... |
2233 this.errors = errors; | 2300 this.errors = errors; |
2234 } | 2301 } |
2235 | 2302 |
2236 factory AnalysisErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 2303 factory AnalysisErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
2237 if (json == null) { | 2304 if (json == null) { |
2238 json = {}; | 2305 json = {}; |
2239 } | 2306 } |
2240 if (json is Map) { | 2307 if (json is Map) { |
2241 String file; | 2308 String file; |
2242 if (json.containsKey("file")) { | 2309 if (json.containsKey("file")) { |
2243 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 2310 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2244 } else { | 2311 } else { |
2245 throw jsonDecoder.missingKey(jsonPath, "file"); | 2312 throw jsonDecoder.missingKey(jsonPath, "file"); |
2246 } | 2313 } |
2247 List<AnalysisError> errors; | 2314 List<AnalysisError> errors; |
2248 if (json.containsKey("errors")) { | 2315 if (json.containsKey("errors")) { |
2249 errors = jsonDecoder._decodeList(jsonPath + ".errors", json["errors"], (
String jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPat
h, json)); | 2316 errors = jsonDecoder.decodeList(jsonPath + ".errors", json["errors"], (S
tring jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPath
, json)); |
2250 } else { | 2317 } else { |
2251 throw jsonDecoder.missingKey(jsonPath, "errors"); | 2318 throw jsonDecoder.missingKey(jsonPath, "errors"); |
2252 } | 2319 } |
2253 return new AnalysisErrorsParams(file, errors); | 2320 return new AnalysisErrorsParams(file, errors); |
2254 } else { | 2321 } else { |
2255 throw jsonDecoder.mismatch(jsonPath, "analysis.errors params", json); | 2322 throw jsonDecoder.mismatch(jsonPath, "analysis.errors params", json); |
2256 } | 2323 } |
2257 } | 2324 } |
2258 | 2325 |
2259 factory AnalysisErrorsParams.fromNotification(Notification notification) { | 2326 factory AnalysisErrorsParams.fromNotification(Notification notification) { |
(...skipping 12 matching lines...) Expand all Loading... |
2272 return new Notification("analysis.errors", toJson()); | 2339 return new Notification("analysis.errors", toJson()); |
2273 } | 2340 } |
2274 | 2341 |
2275 @override | 2342 @override |
2276 String toString() => JSON.encode(toJson()); | 2343 String toString() => JSON.encode(toJson()); |
2277 | 2344 |
2278 @override | 2345 @override |
2279 bool operator==(other) { | 2346 bool operator==(other) { |
2280 if (other is AnalysisErrorsParams) { | 2347 if (other is AnalysisErrorsParams) { |
2281 return file == other.file && | 2348 return file == other.file && |
2282 _listEqual(errors, other.errors, (AnalysisError a, AnalysisError b) =>
a == b); | 2349 listEqual(errors, other.errors, (AnalysisError a, AnalysisError b) =>
a == b); |
2283 } | 2350 } |
2284 return false; | 2351 return false; |
2285 } | 2352 } |
2286 | 2353 |
2287 @override | 2354 @override |
2288 int get hashCode { | 2355 int get hashCode { |
2289 int hash = 0; | 2356 int hash = 0; |
2290 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 2357 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
2291 hash = _JenkinsSmiHash.combine(hash, errors.hashCode); | 2358 hash = JenkinsSmiHash.combine(hash, errors.hashCode); |
2292 return _JenkinsSmiHash.finish(hash); | 2359 return JenkinsSmiHash.finish(hash); |
2293 } | 2360 } |
2294 } | 2361 } |
2295 | 2362 |
2296 /** | 2363 /** |
2297 * analysis.flushResults params | 2364 * analysis.flushResults params |
2298 * | 2365 * |
2299 * { | 2366 * { |
2300 * "files": List<FilePath> | 2367 * "files": List<FilePath> |
2301 * } | 2368 * } |
| 2369 * |
| 2370 * Clients are not expected to subtype this class. |
2302 */ | 2371 */ |
2303 class AnalysisFlushResultsParams implements HasToJson { | 2372 class AnalysisFlushResultsParams implements HasToJson { |
2304 List<String> _files; | 2373 List<String> _files; |
2305 | 2374 |
2306 /** | 2375 /** |
2307 * The files that are no longer being analyzed. | 2376 * The files that are no longer being analyzed. |
2308 */ | 2377 */ |
2309 List<String> get files => _files; | 2378 List<String> get files => _files; |
2310 | 2379 |
2311 /** | 2380 /** |
2312 * The files that are no longer being analyzed. | 2381 * The files that are no longer being analyzed. |
2313 */ | 2382 */ |
2314 void set files(List<String> value) { | 2383 void set files(List<String> value) { |
2315 assert(value != null); | 2384 assert(value != null); |
2316 this._files = value; | 2385 this._files = value; |
2317 } | 2386 } |
2318 | 2387 |
2319 AnalysisFlushResultsParams(List<String> files) { | 2388 AnalysisFlushResultsParams(List<String> files) { |
2320 this.files = files; | 2389 this.files = files; |
2321 } | 2390 } |
2322 | 2391 |
2323 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 2392 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { |
2324 if (json == null) { | 2393 if (json == null) { |
2325 json = {}; | 2394 json = {}; |
2326 } | 2395 } |
2327 if (json is Map) { | 2396 if (json is Map) { |
2328 List<String> files; | 2397 List<String> files; |
2329 if (json.containsKey("files")) { | 2398 if (json.containsKey("files")) { |
2330 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); | 2399 files = jsonDecoder.decodeList(jsonPath + ".files", json["files"], jsonD
ecoder.decodeString); |
2331 } else { | 2400 } else { |
2332 throw jsonDecoder.missingKey(jsonPath, "files"); | 2401 throw jsonDecoder.missingKey(jsonPath, "files"); |
2333 } | 2402 } |
2334 return new AnalysisFlushResultsParams(files); | 2403 return new AnalysisFlushResultsParams(files); |
2335 } else { | 2404 } else { |
2336 throw jsonDecoder.mismatch(jsonPath, "analysis.flushResults params", json)
; | 2405 throw jsonDecoder.mismatch(jsonPath, "analysis.flushResults params", json)
; |
2337 } | 2406 } |
2338 } | 2407 } |
2339 | 2408 |
2340 factory AnalysisFlushResultsParams.fromNotification(Notification notification)
{ | 2409 factory AnalysisFlushResultsParams.fromNotification(Notification notification)
{ |
(...skipping 10 matching lines...) Expand all Loading... |
2351 Notification toNotification() { | 2420 Notification toNotification() { |
2352 return new Notification("analysis.flushResults", toJson()); | 2421 return new Notification("analysis.flushResults", toJson()); |
2353 } | 2422 } |
2354 | 2423 |
2355 @override | 2424 @override |
2356 String toString() => JSON.encode(toJson()); | 2425 String toString() => JSON.encode(toJson()); |
2357 | 2426 |
2358 @override | 2427 @override |
2359 bool operator==(other) { | 2428 bool operator==(other) { |
2360 if (other is AnalysisFlushResultsParams) { | 2429 if (other is AnalysisFlushResultsParams) { |
2361 return _listEqual(files, other.files, (String a, String b) => a == b); | 2430 return listEqual(files, other.files, (String a, String b) => a == b); |
2362 } | 2431 } |
2363 return false; | 2432 return false; |
2364 } | 2433 } |
2365 | 2434 |
2366 @override | 2435 @override |
2367 int get hashCode { | 2436 int get hashCode { |
2368 int hash = 0; | 2437 int hash = 0; |
2369 hash = _JenkinsSmiHash.combine(hash, files.hashCode); | 2438 hash = JenkinsSmiHash.combine(hash, files.hashCode); |
2370 return _JenkinsSmiHash.finish(hash); | 2439 return JenkinsSmiHash.finish(hash); |
2371 } | 2440 } |
2372 } | 2441 } |
2373 | 2442 |
2374 /** | 2443 /** |
2375 * analysis.folding params | 2444 * analysis.folding params |
2376 * | 2445 * |
2377 * { | 2446 * { |
2378 * "file": FilePath | 2447 * "file": FilePath |
2379 * "regions": List<FoldingRegion> | 2448 * "regions": List<FoldingRegion> |
2380 * } | 2449 * } |
| 2450 * |
| 2451 * Clients are not expected to subtype this class. |
2381 */ | 2452 */ |
2382 class AnalysisFoldingParams implements HasToJson { | 2453 class AnalysisFoldingParams implements HasToJson { |
2383 String _file; | 2454 String _file; |
2384 | 2455 |
2385 List<FoldingRegion> _regions; | 2456 List<FoldingRegion> _regions; |
2386 | 2457 |
2387 /** | 2458 /** |
2388 * The file containing the folding regions. | 2459 * The file containing the folding regions. |
2389 */ | 2460 */ |
2390 String get file => _file; | 2461 String get file => _file; |
(...skipping 24 matching lines...) Expand all Loading... |
2415 this.regions = regions; | 2486 this.regions = regions; |
2416 } | 2487 } |
2417 | 2488 |
2418 factory AnalysisFoldingParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 2489 factory AnalysisFoldingParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
2419 if (json == null) { | 2490 if (json == null) { |
2420 json = {}; | 2491 json = {}; |
2421 } | 2492 } |
2422 if (json is Map) { | 2493 if (json is Map) { |
2423 String file; | 2494 String file; |
2424 if (json.containsKey("file")) { | 2495 if (json.containsKey("file")) { |
2425 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 2496 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2426 } else { | 2497 } else { |
2427 throw jsonDecoder.missingKey(jsonPath, "file"); | 2498 throw jsonDecoder.missingKey(jsonPath, "file"); |
2428 } | 2499 } |
2429 List<FoldingRegion> regions; | 2500 List<FoldingRegion> regions; |
2430 if (json.containsKey("regions")) { | 2501 if (json.containsKey("regions")) { |
2431 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new FoldingRegion.fromJson(jsonDecoder, json
Path, json)); | 2502 regions = jsonDecoder.decodeList(jsonPath + ".regions", json["regions"],
(String jsonPath, Object json) => new FoldingRegion.fromJson(jsonDecoder, jsonP
ath, json)); |
2432 } else { | 2503 } else { |
2433 throw jsonDecoder.missingKey(jsonPath, "regions"); | 2504 throw jsonDecoder.missingKey(jsonPath, "regions"); |
2434 } | 2505 } |
2435 return new AnalysisFoldingParams(file, regions); | 2506 return new AnalysisFoldingParams(file, regions); |
2436 } else { | 2507 } else { |
2437 throw jsonDecoder.mismatch(jsonPath, "analysis.folding params", json); | 2508 throw jsonDecoder.mismatch(jsonPath, "analysis.folding params", json); |
2438 } | 2509 } |
2439 } | 2510 } |
2440 | 2511 |
2441 factory AnalysisFoldingParams.fromNotification(Notification notification) { | 2512 factory AnalysisFoldingParams.fromNotification(Notification notification) { |
(...skipping 12 matching lines...) Expand all Loading... |
2454 return new Notification("analysis.folding", toJson()); | 2525 return new Notification("analysis.folding", toJson()); |
2455 } | 2526 } |
2456 | 2527 |
2457 @override | 2528 @override |
2458 String toString() => JSON.encode(toJson()); | 2529 String toString() => JSON.encode(toJson()); |
2459 | 2530 |
2460 @override | 2531 @override |
2461 bool operator==(other) { | 2532 bool operator==(other) { |
2462 if (other is AnalysisFoldingParams) { | 2533 if (other is AnalysisFoldingParams) { |
2463 return file == other.file && | 2534 return file == other.file && |
2464 _listEqual(regions, other.regions, (FoldingRegion a, FoldingRegion b)
=> a == b); | 2535 listEqual(regions, other.regions, (FoldingRegion a, FoldingRegion b) =
> a == b); |
2465 } | 2536 } |
2466 return false; | 2537 return false; |
2467 } | 2538 } |
2468 | 2539 |
2469 @override | 2540 @override |
2470 int get hashCode { | 2541 int get hashCode { |
2471 int hash = 0; | 2542 int hash = 0; |
2472 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 2543 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
2473 hash = _JenkinsSmiHash.combine(hash, regions.hashCode); | 2544 hash = JenkinsSmiHash.combine(hash, regions.hashCode); |
2474 return _JenkinsSmiHash.finish(hash); | 2545 return JenkinsSmiHash.finish(hash); |
2475 } | 2546 } |
2476 } | 2547 } |
2477 | 2548 |
2478 /** | 2549 /** |
2479 * analysis.highlights params | 2550 * analysis.highlights params |
2480 * | 2551 * |
2481 * { | 2552 * { |
2482 * "file": FilePath | 2553 * "file": FilePath |
2483 * "regions": List<HighlightRegion> | 2554 * "regions": List<HighlightRegion> |
2484 * } | 2555 * } |
| 2556 * |
| 2557 * Clients are not expected to subtype this class. |
2485 */ | 2558 */ |
2486 class AnalysisHighlightsParams implements HasToJson { | 2559 class AnalysisHighlightsParams implements HasToJson { |
2487 String _file; | 2560 String _file; |
2488 | 2561 |
2489 List<HighlightRegion> _regions; | 2562 List<HighlightRegion> _regions; |
2490 | 2563 |
2491 /** | 2564 /** |
2492 * The file containing the highlight regions. | 2565 * The file containing the highlight regions. |
2493 */ | 2566 */ |
2494 String get file => _file; | 2567 String get file => _file; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2527 this.regions = regions; | 2600 this.regions = regions; |
2528 } | 2601 } |
2529 | 2602 |
2530 factory AnalysisHighlightsParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 2603 factory AnalysisHighlightsParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
2531 if (json == null) { | 2604 if (json == null) { |
2532 json = {}; | 2605 json = {}; |
2533 } | 2606 } |
2534 if (json is Map) { | 2607 if (json is Map) { |
2535 String file; | 2608 String file; |
2536 if (json.containsKey("file")) { | 2609 if (json.containsKey("file")) { |
2537 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 2610 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2538 } else { | 2611 } else { |
2539 throw jsonDecoder.missingKey(jsonPath, "file"); | 2612 throw jsonDecoder.missingKey(jsonPath, "file"); |
2540 } | 2613 } |
2541 List<HighlightRegion> regions; | 2614 List<HighlightRegion> regions; |
2542 if (json.containsKey("regions")) { | 2615 if (json.containsKey("regions")) { |
2543 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new HighlightRegion.fromJson(jsonDecoder, js
onPath, json)); | 2616 regions = jsonDecoder.decodeList(jsonPath + ".regions", json["regions"],
(String jsonPath, Object json) => new HighlightRegion.fromJson(jsonDecoder, jso
nPath, json)); |
2544 } else { | 2617 } else { |
2545 throw jsonDecoder.missingKey(jsonPath, "regions"); | 2618 throw jsonDecoder.missingKey(jsonPath, "regions"); |
2546 } | 2619 } |
2547 return new AnalysisHighlightsParams(file, regions); | 2620 return new AnalysisHighlightsParams(file, regions); |
2548 } else { | 2621 } else { |
2549 throw jsonDecoder.mismatch(jsonPath, "analysis.highlights params", json); | 2622 throw jsonDecoder.mismatch(jsonPath, "analysis.highlights params", json); |
2550 } | 2623 } |
2551 } | 2624 } |
2552 | 2625 |
2553 factory AnalysisHighlightsParams.fromNotification(Notification notification) { | 2626 factory AnalysisHighlightsParams.fromNotification(Notification notification) { |
(...skipping 12 matching lines...) Expand all Loading... |
2566 return new Notification("analysis.highlights", toJson()); | 2639 return new Notification("analysis.highlights", toJson()); |
2567 } | 2640 } |
2568 | 2641 |
2569 @override | 2642 @override |
2570 String toString() => JSON.encode(toJson()); | 2643 String toString() => JSON.encode(toJson()); |
2571 | 2644 |
2572 @override | 2645 @override |
2573 bool operator==(other) { | 2646 bool operator==(other) { |
2574 if (other is AnalysisHighlightsParams) { | 2647 if (other is AnalysisHighlightsParams) { |
2575 return file == other.file && | 2648 return file == other.file && |
2576 _listEqual(regions, other.regions, (HighlightRegion a, HighlightRegion
b) => a == b); | 2649 listEqual(regions, other.regions, (HighlightRegion a, HighlightRegion
b) => a == b); |
2577 } | 2650 } |
2578 return false; | 2651 return false; |
2579 } | 2652 } |
2580 | 2653 |
2581 @override | 2654 @override |
2582 int get hashCode { | 2655 int get hashCode { |
2583 int hash = 0; | 2656 int hash = 0; |
2584 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 2657 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
2585 hash = _JenkinsSmiHash.combine(hash, regions.hashCode); | 2658 hash = JenkinsSmiHash.combine(hash, regions.hashCode); |
2586 return _JenkinsSmiHash.finish(hash); | 2659 return JenkinsSmiHash.finish(hash); |
2587 } | 2660 } |
2588 } | 2661 } |
2589 | 2662 |
2590 /** | 2663 /** |
2591 * analysis.implemented params | 2664 * analysis.implemented params |
2592 * | 2665 * |
2593 * { | 2666 * { |
2594 * "file": FilePath | 2667 * "file": FilePath |
2595 * "classes": List<ImplementedClass> | 2668 * "classes": List<ImplementedClass> |
2596 * "members": List<ImplementedMember> | 2669 * "members": List<ImplementedMember> |
2597 * } | 2670 * } |
| 2671 * |
| 2672 * Clients are not expected to subtype this class. |
2598 */ | 2673 */ |
2599 class AnalysisImplementedParams implements HasToJson { | 2674 class AnalysisImplementedParams implements HasToJson { |
2600 String _file; | 2675 String _file; |
2601 | 2676 |
2602 List<ImplementedClass> _classes; | 2677 List<ImplementedClass> _classes; |
2603 | 2678 |
2604 List<ImplementedMember> _members; | 2679 List<ImplementedMember> _members; |
2605 | 2680 |
2606 /** | 2681 /** |
2607 * The file with which the implementations are associated. | 2682 * The file with which the implementations are associated. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2648 this.members = members; | 2723 this.members = members; |
2649 } | 2724 } |
2650 | 2725 |
2651 factory AnalysisImplementedParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { | 2726 factory AnalysisImplementedParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { |
2652 if (json == null) { | 2727 if (json == null) { |
2653 json = {}; | 2728 json = {}; |
2654 } | 2729 } |
2655 if (json is Map) { | 2730 if (json is Map) { |
2656 String file; | 2731 String file; |
2657 if (json.containsKey("file")) { | 2732 if (json.containsKey("file")) { |
2658 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 2733 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2659 } else { | 2734 } else { |
2660 throw jsonDecoder.missingKey(jsonPath, "file"); | 2735 throw jsonDecoder.missingKey(jsonPath, "file"); |
2661 } | 2736 } |
2662 List<ImplementedClass> classes; | 2737 List<ImplementedClass> classes; |
2663 if (json.containsKey("classes")) { | 2738 if (json.containsKey("classes")) { |
2664 classes = jsonDecoder._decodeList(jsonPath + ".classes", json["classes"]
, (String jsonPath, Object json) => new ImplementedClass.fromJson(jsonDecoder, j
sonPath, json)); | 2739 classes = jsonDecoder.decodeList(jsonPath + ".classes", json["classes"],
(String jsonPath, Object json) => new ImplementedClass.fromJson(jsonDecoder, js
onPath, json)); |
2665 } else { | 2740 } else { |
2666 throw jsonDecoder.missingKey(jsonPath, "classes"); | 2741 throw jsonDecoder.missingKey(jsonPath, "classes"); |
2667 } | 2742 } |
2668 List<ImplementedMember> members; | 2743 List<ImplementedMember> members; |
2669 if (json.containsKey("members")) { | 2744 if (json.containsKey("members")) { |
2670 members = jsonDecoder._decodeList(jsonPath + ".members", json["members"]
, (String jsonPath, Object json) => new ImplementedMember.fromJson(jsonDecoder,
jsonPath, json)); | 2745 members = jsonDecoder.decodeList(jsonPath + ".members", json["members"],
(String jsonPath, Object json) => new ImplementedMember.fromJson(jsonDecoder, j
sonPath, json)); |
2671 } else { | 2746 } else { |
2672 throw jsonDecoder.missingKey(jsonPath, "members"); | 2747 throw jsonDecoder.missingKey(jsonPath, "members"); |
2673 } | 2748 } |
2674 return new AnalysisImplementedParams(file, classes, members); | 2749 return new AnalysisImplementedParams(file, classes, members); |
2675 } else { | 2750 } else { |
2676 throw jsonDecoder.mismatch(jsonPath, "analysis.implemented params", json); | 2751 throw jsonDecoder.mismatch(jsonPath, "analysis.implemented params", json); |
2677 } | 2752 } |
2678 } | 2753 } |
2679 | 2754 |
2680 factory AnalysisImplementedParams.fromNotification(Notification notification)
{ | 2755 factory AnalysisImplementedParams.fromNotification(Notification notification)
{ |
(...skipping 13 matching lines...) Expand all Loading... |
2694 return new Notification("analysis.implemented", toJson()); | 2769 return new Notification("analysis.implemented", toJson()); |
2695 } | 2770 } |
2696 | 2771 |
2697 @override | 2772 @override |
2698 String toString() => JSON.encode(toJson()); | 2773 String toString() => JSON.encode(toJson()); |
2699 | 2774 |
2700 @override | 2775 @override |
2701 bool operator==(other) { | 2776 bool operator==(other) { |
2702 if (other is AnalysisImplementedParams) { | 2777 if (other is AnalysisImplementedParams) { |
2703 return file == other.file && | 2778 return file == other.file && |
2704 _listEqual(classes, other.classes, (ImplementedClass a, ImplementedCla
ss b) => a == b) && | 2779 listEqual(classes, other.classes, (ImplementedClass a, ImplementedClas
s b) => a == b) && |
2705 _listEqual(members, other.members, (ImplementedMember a, ImplementedMe
mber b) => a == b); | 2780 listEqual(members, other.members, (ImplementedMember a, ImplementedMem
ber b) => a == b); |
2706 } | 2781 } |
2707 return false; | 2782 return false; |
2708 } | 2783 } |
2709 | 2784 |
2710 @override | 2785 @override |
2711 int get hashCode { | 2786 int get hashCode { |
2712 int hash = 0; | 2787 int hash = 0; |
2713 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 2788 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
2714 hash = _JenkinsSmiHash.combine(hash, classes.hashCode); | 2789 hash = JenkinsSmiHash.combine(hash, classes.hashCode); |
2715 hash = _JenkinsSmiHash.combine(hash, members.hashCode); | 2790 hash = JenkinsSmiHash.combine(hash, members.hashCode); |
2716 return _JenkinsSmiHash.finish(hash); | 2791 return JenkinsSmiHash.finish(hash); |
2717 } | 2792 } |
2718 } | 2793 } |
2719 | 2794 |
2720 /** | 2795 /** |
2721 * analysis.invalidate params | 2796 * analysis.invalidate params |
2722 * | 2797 * |
2723 * { | 2798 * { |
2724 * "file": FilePath | 2799 * "file": FilePath |
2725 * "offset": int | 2800 * "offset": int |
2726 * "length": int | 2801 * "length": int |
2727 * "delta": int | 2802 * "delta": int |
2728 * } | 2803 * } |
| 2804 * |
| 2805 * Clients are not expected to subtype this class. |
2729 */ | 2806 */ |
2730 class AnalysisInvalidateParams implements HasToJson { | 2807 class AnalysisInvalidateParams implements HasToJson { |
2731 String _file; | 2808 String _file; |
2732 | 2809 |
2733 int _offset; | 2810 int _offset; |
2734 | 2811 |
2735 int _length; | 2812 int _length; |
2736 | 2813 |
2737 int _delta; | 2814 int _delta; |
2738 | 2815 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2799 this.delta = delta; | 2876 this.delta = delta; |
2800 } | 2877 } |
2801 | 2878 |
2802 factory AnalysisInvalidateParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 2879 factory AnalysisInvalidateParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
2803 if (json == null) { | 2880 if (json == null) { |
2804 json = {}; | 2881 json = {}; |
2805 } | 2882 } |
2806 if (json is Map) { | 2883 if (json is Map) { |
2807 String file; | 2884 String file; |
2808 if (json.containsKey("file")) { | 2885 if (json.containsKey("file")) { |
2809 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 2886 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2810 } else { | 2887 } else { |
2811 throw jsonDecoder.missingKey(jsonPath, "file"); | 2888 throw jsonDecoder.missingKey(jsonPath, "file"); |
2812 } | 2889 } |
2813 int offset; | 2890 int offset; |
2814 if (json.containsKey("offset")) { | 2891 if (json.containsKey("offset")) { |
2815 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 2892 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
2816 } else { | 2893 } else { |
2817 throw jsonDecoder.missingKey(jsonPath, "offset"); | 2894 throw jsonDecoder.missingKey(jsonPath, "offset"); |
2818 } | 2895 } |
2819 int length; | 2896 int length; |
2820 if (json.containsKey("length")) { | 2897 if (json.containsKey("length")) { |
2821 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 2898 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
2822 } else { | 2899 } else { |
2823 throw jsonDecoder.missingKey(jsonPath, "length"); | 2900 throw jsonDecoder.missingKey(jsonPath, "length"); |
2824 } | 2901 } |
2825 int delta; | 2902 int delta; |
2826 if (json.containsKey("delta")) { | 2903 if (json.containsKey("delta")) { |
2827 delta = jsonDecoder._decodeInt(jsonPath + ".delta", json["delta"]); | 2904 delta = jsonDecoder.decodeInt(jsonPath + ".delta", json["delta"]); |
2828 } else { | 2905 } else { |
2829 throw jsonDecoder.missingKey(jsonPath, "delta"); | 2906 throw jsonDecoder.missingKey(jsonPath, "delta"); |
2830 } | 2907 } |
2831 return new AnalysisInvalidateParams(file, offset, length, delta); | 2908 return new AnalysisInvalidateParams(file, offset, length, delta); |
2832 } else { | 2909 } else { |
2833 throw jsonDecoder.mismatch(jsonPath, "analysis.invalidate params", json); | 2910 throw jsonDecoder.mismatch(jsonPath, "analysis.invalidate params", json); |
2834 } | 2911 } |
2835 } | 2912 } |
2836 | 2913 |
2837 factory AnalysisInvalidateParams.fromNotification(Notification notification) { | 2914 factory AnalysisInvalidateParams.fromNotification(Notification notification) { |
(...skipping 24 matching lines...) Expand all Loading... |
2862 offset == other.offset && | 2939 offset == other.offset && |
2863 length == other.length && | 2940 length == other.length && |
2864 delta == other.delta; | 2941 delta == other.delta; |
2865 } | 2942 } |
2866 return false; | 2943 return false; |
2867 } | 2944 } |
2868 | 2945 |
2869 @override | 2946 @override |
2870 int get hashCode { | 2947 int get hashCode { |
2871 int hash = 0; | 2948 int hash = 0; |
2872 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 2949 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
2873 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 2950 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
2874 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 2951 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
2875 hash = _JenkinsSmiHash.combine(hash, delta.hashCode); | 2952 hash = JenkinsSmiHash.combine(hash, delta.hashCode); |
2876 return _JenkinsSmiHash.finish(hash); | 2953 return JenkinsSmiHash.finish(hash); |
2877 } | 2954 } |
2878 } | 2955 } |
2879 | 2956 |
2880 /** | 2957 /** |
2881 * analysis.navigation params | 2958 * analysis.navigation params |
2882 * | 2959 * |
2883 * { | 2960 * { |
2884 * "file": FilePath | 2961 * "file": FilePath |
2885 * "regions": List<NavigationRegion> | 2962 * "regions": List<NavigationRegion> |
2886 * "targets": List<NavigationTarget> | 2963 * "targets": List<NavigationTarget> |
2887 * "files": List<FilePath> | 2964 * "files": List<FilePath> |
2888 * } | 2965 * } |
| 2966 * |
| 2967 * Clients are not expected to subtype this class. |
2889 */ | 2968 */ |
2890 class AnalysisNavigationParams implements HasToJson { | 2969 class AnalysisNavigationParams implements HasToJson { |
2891 String _file; | 2970 String _file; |
2892 | 2971 |
2893 List<NavigationRegion> _regions; | 2972 List<NavigationRegion> _regions; |
2894 | 2973 |
2895 List<NavigationTarget> _targets; | 2974 List<NavigationTarget> _targets; |
2896 | 2975 |
2897 List<String> _files; | 2976 List<String> _files; |
2898 | 2977 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2971 this.files = files; | 3050 this.files = files; |
2972 } | 3051 } |
2973 | 3052 |
2974 factory AnalysisNavigationParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3053 factory AnalysisNavigationParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
2975 if (json == null) { | 3054 if (json == null) { |
2976 json = {}; | 3055 json = {}; |
2977 } | 3056 } |
2978 if (json is Map) { | 3057 if (json is Map) { |
2979 String file; | 3058 String file; |
2980 if (json.containsKey("file")) { | 3059 if (json.containsKey("file")) { |
2981 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 3060 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2982 } else { | 3061 } else { |
2983 throw jsonDecoder.missingKey(jsonPath, "file"); | 3062 throw jsonDecoder.missingKey(jsonPath, "file"); |
2984 } | 3063 } |
2985 List<NavigationRegion> regions; | 3064 List<NavigationRegion> regions; |
2986 if (json.containsKey("regions")) { | 3065 if (json.containsKey("regions")) { |
2987 regions = jsonDecoder._decodeList(jsonPath + ".regions", json["regions"]
, (String jsonPath, Object json) => new NavigationRegion.fromJson(jsonDecoder, j
sonPath, json)); | 3066 regions = jsonDecoder.decodeList(jsonPath + ".regions", json["regions"],
(String jsonPath, Object json) => new NavigationRegion.fromJson(jsonDecoder, js
onPath, json)); |
2988 } else { | 3067 } else { |
2989 throw jsonDecoder.missingKey(jsonPath, "regions"); | 3068 throw jsonDecoder.missingKey(jsonPath, "regions"); |
2990 } | 3069 } |
2991 List<NavigationTarget> targets; | 3070 List<NavigationTarget> targets; |
2992 if (json.containsKey("targets")) { | 3071 if (json.containsKey("targets")) { |
2993 targets = jsonDecoder._decodeList(jsonPath + ".targets", json["targets"]
, (String jsonPath, Object json) => new NavigationTarget.fromJson(jsonDecoder, j
sonPath, json)); | 3072 targets = jsonDecoder.decodeList(jsonPath + ".targets", json["targets"],
(String jsonPath, Object json) => new NavigationTarget.fromJson(jsonDecoder, js
onPath, json)); |
2994 } else { | 3073 } else { |
2995 throw jsonDecoder.missingKey(jsonPath, "targets"); | 3074 throw jsonDecoder.missingKey(jsonPath, "targets"); |
2996 } | 3075 } |
2997 List<String> files; | 3076 List<String> files; |
2998 if (json.containsKey("files")) { | 3077 if (json.containsKey("files")) { |
2999 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); | 3078 files = jsonDecoder.decodeList(jsonPath + ".files", json["files"], jsonD
ecoder.decodeString); |
3000 } else { | 3079 } else { |
3001 throw jsonDecoder.missingKey(jsonPath, "files"); | 3080 throw jsonDecoder.missingKey(jsonPath, "files"); |
3002 } | 3081 } |
3003 return new AnalysisNavigationParams(file, regions, targets, files); | 3082 return new AnalysisNavigationParams(file, regions, targets, files); |
3004 } else { | 3083 } else { |
3005 throw jsonDecoder.mismatch(jsonPath, "analysis.navigation params", json); | 3084 throw jsonDecoder.mismatch(jsonPath, "analysis.navigation params", json); |
3006 } | 3085 } |
3007 } | 3086 } |
3008 | 3087 |
3009 factory AnalysisNavigationParams.fromNotification(Notification notification) { | 3088 factory AnalysisNavigationParams.fromNotification(Notification notification) { |
(...skipping 14 matching lines...) Expand all Loading... |
3024 return new Notification("analysis.navigation", toJson()); | 3103 return new Notification("analysis.navigation", toJson()); |
3025 } | 3104 } |
3026 | 3105 |
3027 @override | 3106 @override |
3028 String toString() => JSON.encode(toJson()); | 3107 String toString() => JSON.encode(toJson()); |
3029 | 3108 |
3030 @override | 3109 @override |
3031 bool operator==(other) { | 3110 bool operator==(other) { |
3032 if (other is AnalysisNavigationParams) { | 3111 if (other is AnalysisNavigationParams) { |
3033 return file == other.file && | 3112 return file == other.file && |
3034 _listEqual(regions, other.regions, (NavigationRegion a, NavigationRegi
on b) => a == b) && | 3113 listEqual(regions, other.regions, (NavigationRegion a, NavigationRegio
n b) => a == b) && |
3035 _listEqual(targets, other.targets, (NavigationTarget a, NavigationTarg
et b) => a == b) && | 3114 listEqual(targets, other.targets, (NavigationTarget a, NavigationTarge
t b) => a == b) && |
3036 _listEqual(files, other.files, (String a, String b) => a == b); | 3115 listEqual(files, other.files, (String a, String b) => a == b); |
3037 } | 3116 } |
3038 return false; | 3117 return false; |
3039 } | 3118 } |
3040 | 3119 |
3041 @override | 3120 @override |
3042 int get hashCode { | 3121 int get hashCode { |
3043 int hash = 0; | 3122 int hash = 0; |
3044 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 3123 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3045 hash = _JenkinsSmiHash.combine(hash, regions.hashCode); | 3124 hash = JenkinsSmiHash.combine(hash, regions.hashCode); |
3046 hash = _JenkinsSmiHash.combine(hash, targets.hashCode); | 3125 hash = JenkinsSmiHash.combine(hash, targets.hashCode); |
3047 hash = _JenkinsSmiHash.combine(hash, files.hashCode); | 3126 hash = JenkinsSmiHash.combine(hash, files.hashCode); |
3048 return _JenkinsSmiHash.finish(hash); | 3127 return JenkinsSmiHash.finish(hash); |
3049 } | 3128 } |
3050 } | 3129 } |
3051 | 3130 |
3052 /** | 3131 /** |
3053 * analysis.occurrences params | 3132 * analysis.occurrences params |
3054 * | 3133 * |
3055 * { | 3134 * { |
3056 * "file": FilePath | 3135 * "file": FilePath |
3057 * "occurrences": List<Occurrences> | 3136 * "occurrences": List<Occurrences> |
3058 * } | 3137 * } |
| 3138 * |
| 3139 * Clients are not expected to subtype this class. |
3059 */ | 3140 */ |
3060 class AnalysisOccurrencesParams implements HasToJson { | 3141 class AnalysisOccurrencesParams implements HasToJson { |
3061 String _file; | 3142 String _file; |
3062 | 3143 |
3063 List<Occurrences> _occurrences; | 3144 List<Occurrences> _occurrences; |
3064 | 3145 |
3065 /** | 3146 /** |
3066 * The file in which the references occur. | 3147 * The file in which the references occur. |
3067 */ | 3148 */ |
3068 String get file => _file; | 3149 String get file => _file; |
(...skipping 24 matching lines...) Expand all Loading... |
3093 this.occurrences = occurrences; | 3174 this.occurrences = occurrences; |
3094 } | 3175 } |
3095 | 3176 |
3096 factory AnalysisOccurrencesParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { | 3177 factory AnalysisOccurrencesParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { |
3097 if (json == null) { | 3178 if (json == null) { |
3098 json = {}; | 3179 json = {}; |
3099 } | 3180 } |
3100 if (json is Map) { | 3181 if (json is Map) { |
3101 String file; | 3182 String file; |
3102 if (json.containsKey("file")) { | 3183 if (json.containsKey("file")) { |
3103 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 3184 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3104 } else { | 3185 } else { |
3105 throw jsonDecoder.missingKey(jsonPath, "file"); | 3186 throw jsonDecoder.missingKey(jsonPath, "file"); |
3106 } | 3187 } |
3107 List<Occurrences> occurrences; | 3188 List<Occurrences> occurrences; |
3108 if (json.containsKey("occurrences")) { | 3189 if (json.containsKey("occurrences")) { |
3109 occurrences = jsonDecoder._decodeList(jsonPath + ".occurrences", json["o
ccurrences"], (String jsonPath, Object json) => new Occurrences.fromJson(jsonDec
oder, jsonPath, json)); | 3190 occurrences = jsonDecoder.decodeList(jsonPath + ".occurrences", json["oc
currences"], (String jsonPath, Object json) => new Occurrences.fromJson(jsonDeco
der, jsonPath, json)); |
3110 } else { | 3191 } else { |
3111 throw jsonDecoder.missingKey(jsonPath, "occurrences"); | 3192 throw jsonDecoder.missingKey(jsonPath, "occurrences"); |
3112 } | 3193 } |
3113 return new AnalysisOccurrencesParams(file, occurrences); | 3194 return new AnalysisOccurrencesParams(file, occurrences); |
3114 } else { | 3195 } else { |
3115 throw jsonDecoder.mismatch(jsonPath, "analysis.occurrences params", json); | 3196 throw jsonDecoder.mismatch(jsonPath, "analysis.occurrences params", json); |
3116 } | 3197 } |
3117 } | 3198 } |
3118 | 3199 |
3119 factory AnalysisOccurrencesParams.fromNotification(Notification notification)
{ | 3200 factory AnalysisOccurrencesParams.fromNotification(Notification notification)
{ |
(...skipping 12 matching lines...) Expand all Loading... |
3132 return new Notification("analysis.occurrences", toJson()); | 3213 return new Notification("analysis.occurrences", toJson()); |
3133 } | 3214 } |
3134 | 3215 |
3135 @override | 3216 @override |
3136 String toString() => JSON.encode(toJson()); | 3217 String toString() => JSON.encode(toJson()); |
3137 | 3218 |
3138 @override | 3219 @override |
3139 bool operator==(other) { | 3220 bool operator==(other) { |
3140 if (other is AnalysisOccurrencesParams) { | 3221 if (other is AnalysisOccurrencesParams) { |
3141 return file == other.file && | 3222 return file == other.file && |
3142 _listEqual(occurrences, other.occurrences, (Occurrences a, Occurrences
b) => a == b); | 3223 listEqual(occurrences, other.occurrences, (Occurrences a, Occurrences
b) => a == b); |
3143 } | 3224 } |
3144 return false; | 3225 return false; |
3145 } | 3226 } |
3146 | 3227 |
3147 @override | 3228 @override |
3148 int get hashCode { | 3229 int get hashCode { |
3149 int hash = 0; | 3230 int hash = 0; |
3150 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 3231 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3151 hash = _JenkinsSmiHash.combine(hash, occurrences.hashCode); | 3232 hash = JenkinsSmiHash.combine(hash, occurrences.hashCode); |
3152 return _JenkinsSmiHash.finish(hash); | 3233 return JenkinsSmiHash.finish(hash); |
3153 } | 3234 } |
3154 } | 3235 } |
3155 | 3236 |
3156 /** | 3237 /** |
3157 * analysis.outline params | 3238 * analysis.outline params |
3158 * | 3239 * |
3159 * { | 3240 * { |
3160 * "file": FilePath | 3241 * "file": FilePath |
3161 * "kind": FileKind | 3242 * "kind": FileKind |
3162 * "libraryName": optional String | 3243 * "libraryName": optional String |
3163 * "outline": Outline | 3244 * "outline": Outline |
3164 * } | 3245 * } |
| 3246 * |
| 3247 * Clients are not expected to subtype this class. |
3165 */ | 3248 */ |
3166 class AnalysisOutlineParams implements HasToJson { | 3249 class AnalysisOutlineParams implements HasToJson { |
3167 String _file; | 3250 String _file; |
3168 | 3251 |
3169 FileKind _kind; | 3252 FileKind _kind; |
3170 | 3253 |
3171 String _libraryName; | 3254 String _libraryName; |
3172 | 3255 |
3173 Outline _outline; | 3256 Outline _outline; |
3174 | 3257 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3238 this.outline = outline; | 3321 this.outline = outline; |
3239 } | 3322 } |
3240 | 3323 |
3241 factory AnalysisOutlineParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 3324 factory AnalysisOutlineParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
3242 if (json == null) { | 3325 if (json == null) { |
3243 json = {}; | 3326 json = {}; |
3244 } | 3327 } |
3245 if (json is Map) { | 3328 if (json is Map) { |
3246 String file; | 3329 String file; |
3247 if (json.containsKey("file")) { | 3330 if (json.containsKey("file")) { |
3248 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 3331 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3249 } else { | 3332 } else { |
3250 throw jsonDecoder.missingKey(jsonPath, "file"); | 3333 throw jsonDecoder.missingKey(jsonPath, "file"); |
3251 } | 3334 } |
3252 FileKind kind; | 3335 FileKind kind; |
3253 if (json.containsKey("kind")) { | 3336 if (json.containsKey("kind")) { |
3254 kind = new FileKind.fromJson(jsonDecoder, jsonPath + ".kind", json["kind
"]); | 3337 kind = new FileKind.fromJson(jsonDecoder, jsonPath + ".kind", json["kind
"]); |
3255 } else { | 3338 } else { |
3256 throw jsonDecoder.missingKey(jsonPath, "kind"); | 3339 throw jsonDecoder.missingKey(jsonPath, "kind"); |
3257 } | 3340 } |
3258 String libraryName; | 3341 String libraryName; |
3259 if (json.containsKey("libraryName")) { | 3342 if (json.containsKey("libraryName")) { |
3260 libraryName = jsonDecoder._decodeString(jsonPath + ".libraryName", json[
"libraryName"]); | 3343 libraryName = jsonDecoder.decodeString(jsonPath + ".libraryName", json["
libraryName"]); |
3261 } | 3344 } |
3262 Outline outline; | 3345 Outline outline; |
3263 if (json.containsKey("outline")) { | 3346 if (json.containsKey("outline")) { |
3264 outline = new Outline.fromJson(jsonDecoder, jsonPath + ".outline", json[
"outline"]); | 3347 outline = new Outline.fromJson(jsonDecoder, jsonPath + ".outline", json[
"outline"]); |
3265 } else { | 3348 } else { |
3266 throw jsonDecoder.missingKey(jsonPath, "outline"); | 3349 throw jsonDecoder.missingKey(jsonPath, "outline"); |
3267 } | 3350 } |
3268 return new AnalysisOutlineParams(file, kind, outline, libraryName: library
Name); | 3351 return new AnalysisOutlineParams(file, kind, outline, libraryName: library
Name); |
3269 } else { | 3352 } else { |
3270 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params", json); | 3353 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params", json); |
(...skipping 30 matching lines...) Expand all Loading... |
3301 kind == other.kind && | 3384 kind == other.kind && |
3302 libraryName == other.libraryName && | 3385 libraryName == other.libraryName && |
3303 outline == other.outline; | 3386 outline == other.outline; |
3304 } | 3387 } |
3305 return false; | 3388 return false; |
3306 } | 3389 } |
3307 | 3390 |
3308 @override | 3391 @override |
3309 int get hashCode { | 3392 int get hashCode { |
3310 int hash = 0; | 3393 int hash = 0; |
3311 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 3394 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3312 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 3395 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
3313 hash = _JenkinsSmiHash.combine(hash, libraryName.hashCode); | 3396 hash = JenkinsSmiHash.combine(hash, libraryName.hashCode); |
3314 hash = _JenkinsSmiHash.combine(hash, outline.hashCode); | 3397 hash = JenkinsSmiHash.combine(hash, outline.hashCode); |
3315 return _JenkinsSmiHash.finish(hash); | 3398 return JenkinsSmiHash.finish(hash); |
3316 } | 3399 } |
3317 } | 3400 } |
3318 | 3401 |
3319 /** | 3402 /** |
3320 * analysis.overrides params | 3403 * analysis.overrides params |
3321 * | 3404 * |
3322 * { | 3405 * { |
3323 * "file": FilePath | 3406 * "file": FilePath |
3324 * "overrides": List<Override> | 3407 * "overrides": List<Override> |
3325 * } | 3408 * } |
| 3409 * |
| 3410 * Clients are not expected to subtype this class. |
3326 */ | 3411 */ |
3327 class AnalysisOverridesParams implements HasToJson { | 3412 class AnalysisOverridesParams implements HasToJson { |
3328 String _file; | 3413 String _file; |
3329 | 3414 |
3330 List<Override> _overrides; | 3415 List<Override> _overrides; |
3331 | 3416 |
3332 /** | 3417 /** |
3333 * The file with which the overrides are associated. | 3418 * The file with which the overrides are associated. |
3334 */ | 3419 */ |
3335 String get file => _file; | 3420 String get file => _file; |
(...skipping 24 matching lines...) Expand all Loading... |
3360 this.overrides = overrides; | 3445 this.overrides = overrides; |
3361 } | 3446 } |
3362 | 3447 |
3363 factory AnalysisOverridesParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 3448 factory AnalysisOverridesParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
3364 if (json == null) { | 3449 if (json == null) { |
3365 json = {}; | 3450 json = {}; |
3366 } | 3451 } |
3367 if (json is Map) { | 3452 if (json is Map) { |
3368 String file; | 3453 String file; |
3369 if (json.containsKey("file")) { | 3454 if (json.containsKey("file")) { |
3370 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 3455 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3371 } else { | 3456 } else { |
3372 throw jsonDecoder.missingKey(jsonPath, "file"); | 3457 throw jsonDecoder.missingKey(jsonPath, "file"); |
3373 } | 3458 } |
3374 List<Override> overrides; | 3459 List<Override> overrides; |
3375 if (json.containsKey("overrides")) { | 3460 if (json.containsKey("overrides")) { |
3376 overrides = jsonDecoder._decodeList(jsonPath + ".overrides", json["overr
ides"], (String jsonPath, Object json) => new Override.fromJson(jsonDecoder, jso
nPath, json)); | 3461 overrides = jsonDecoder.decodeList(jsonPath + ".overrides", json["overri
des"], (String jsonPath, Object json) => new Override.fromJson(jsonDecoder, json
Path, json)); |
3377 } else { | 3462 } else { |
3378 throw jsonDecoder.missingKey(jsonPath, "overrides"); | 3463 throw jsonDecoder.missingKey(jsonPath, "overrides"); |
3379 } | 3464 } |
3380 return new AnalysisOverridesParams(file, overrides); | 3465 return new AnalysisOverridesParams(file, overrides); |
3381 } else { | 3466 } else { |
3382 throw jsonDecoder.mismatch(jsonPath, "analysis.overrides params", json); | 3467 throw jsonDecoder.mismatch(jsonPath, "analysis.overrides params", json); |
3383 } | 3468 } |
3384 } | 3469 } |
3385 | 3470 |
3386 factory AnalysisOverridesParams.fromNotification(Notification notification) { | 3471 factory AnalysisOverridesParams.fromNotification(Notification notification) { |
(...skipping 12 matching lines...) Expand all Loading... |
3399 return new Notification("analysis.overrides", toJson()); | 3484 return new Notification("analysis.overrides", toJson()); |
3400 } | 3485 } |
3401 | 3486 |
3402 @override | 3487 @override |
3403 String toString() => JSON.encode(toJson()); | 3488 String toString() => JSON.encode(toJson()); |
3404 | 3489 |
3405 @override | 3490 @override |
3406 bool operator==(other) { | 3491 bool operator==(other) { |
3407 if (other is AnalysisOverridesParams) { | 3492 if (other is AnalysisOverridesParams) { |
3408 return file == other.file && | 3493 return file == other.file && |
3409 _listEqual(overrides, other.overrides, (Override a, Override b) => a =
= b); | 3494 listEqual(overrides, other.overrides, (Override a, Override b) => a ==
b); |
3410 } | 3495 } |
3411 return false; | 3496 return false; |
3412 } | 3497 } |
3413 | 3498 |
3414 @override | 3499 @override |
3415 int get hashCode { | 3500 int get hashCode { |
3416 int hash = 0; | 3501 int hash = 0; |
3417 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 3502 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3418 hash = _JenkinsSmiHash.combine(hash, overrides.hashCode); | 3503 hash = JenkinsSmiHash.combine(hash, overrides.hashCode); |
3419 return _JenkinsSmiHash.finish(hash); | 3504 return JenkinsSmiHash.finish(hash); |
3420 } | 3505 } |
3421 } | 3506 } |
3422 | 3507 |
3423 /** | 3508 /** |
3424 * completion.getSuggestions params | 3509 * completion.getSuggestions params |
3425 * | 3510 * |
3426 * { | 3511 * { |
3427 * "file": FilePath | 3512 * "file": FilePath |
3428 * "offset": int | 3513 * "offset": int |
3429 * } | 3514 * } |
| 3515 * |
| 3516 * Clients are not expected to subtype this class. |
3430 */ | 3517 */ |
3431 class CompletionGetSuggestionsParams implements HasToJson { | 3518 class CompletionGetSuggestionsParams implements HasToJson { |
3432 String _file; | 3519 String _file; |
3433 | 3520 |
3434 int _offset; | 3521 int _offset; |
3435 | 3522 |
3436 /** | 3523 /** |
3437 * The file containing the point at which suggestions are to be made. | 3524 * The file containing the point at which suggestions are to be made. |
3438 */ | 3525 */ |
3439 String get file => _file; | 3526 String get file => _file; |
(...skipping 24 matching lines...) Expand all Loading... |
3464 this.offset = offset; | 3551 this.offset = offset; |
3465 } | 3552 } |
3466 | 3553 |
3467 factory CompletionGetSuggestionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 3554 factory CompletionGetSuggestionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
3468 if (json == null) { | 3555 if (json == null) { |
3469 json = {}; | 3556 json = {}; |
3470 } | 3557 } |
3471 if (json is Map) { | 3558 if (json is Map) { |
3472 String file; | 3559 String file; |
3473 if (json.containsKey("file")) { | 3560 if (json.containsKey("file")) { |
3474 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 3561 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3475 } else { | 3562 } else { |
3476 throw jsonDecoder.missingKey(jsonPath, "file"); | 3563 throw jsonDecoder.missingKey(jsonPath, "file"); |
3477 } | 3564 } |
3478 int offset; | 3565 int offset; |
3479 if (json.containsKey("offset")) { | 3566 if (json.containsKey("offset")) { |
3480 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 3567 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
3481 } else { | 3568 } else { |
3482 throw jsonDecoder.missingKey(jsonPath, "offset"); | 3569 throw jsonDecoder.missingKey(jsonPath, "offset"); |
3483 } | 3570 } |
3484 return new CompletionGetSuggestionsParams(file, offset); | 3571 return new CompletionGetSuggestionsParams(file, offset); |
3485 } else { | 3572 } else { |
3486 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions params", j
son); | 3573 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions params", j
son); |
3487 } | 3574 } |
3488 } | 3575 } |
3489 | 3576 |
3490 factory CompletionGetSuggestionsParams.fromRequest(Request request) { | 3577 factory CompletionGetSuggestionsParams.fromRequest(Request request) { |
(...skipping 20 matching lines...) Expand all Loading... |
3511 if (other is CompletionGetSuggestionsParams) { | 3598 if (other is CompletionGetSuggestionsParams) { |
3512 return file == other.file && | 3599 return file == other.file && |
3513 offset == other.offset; | 3600 offset == other.offset; |
3514 } | 3601 } |
3515 return false; | 3602 return false; |
3516 } | 3603 } |
3517 | 3604 |
3518 @override | 3605 @override |
3519 int get hashCode { | 3606 int get hashCode { |
3520 int hash = 0; | 3607 int hash = 0; |
3521 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 3608 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3522 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 3609 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
3523 return _JenkinsSmiHash.finish(hash); | 3610 return JenkinsSmiHash.finish(hash); |
3524 } | 3611 } |
3525 } | 3612 } |
3526 | 3613 |
3527 /** | 3614 /** |
3528 * completion.getSuggestions result | 3615 * completion.getSuggestions result |
3529 * | 3616 * |
3530 * { | 3617 * { |
3531 * "id": CompletionId | 3618 * "id": CompletionId |
3532 * } | 3619 * } |
| 3620 * |
| 3621 * Clients are not expected to subtype this class. |
3533 */ | 3622 */ |
3534 class CompletionGetSuggestionsResult implements HasToJson { | 3623 class CompletionGetSuggestionsResult implements HasToJson { |
3535 String _id; | 3624 String _id; |
3536 | 3625 |
3537 /** | 3626 /** |
3538 * The identifier used to associate results with this completion request. | 3627 * The identifier used to associate results with this completion request. |
3539 */ | 3628 */ |
3540 String get id => _id; | 3629 String get id => _id; |
3541 | 3630 |
3542 /** | 3631 /** |
3543 * The identifier used to associate results with this completion request. | 3632 * The identifier used to associate results with this completion request. |
3544 */ | 3633 */ |
3545 void set id(String value) { | 3634 void set id(String value) { |
3546 assert(value != null); | 3635 assert(value != null); |
3547 this._id = value; | 3636 this._id = value; |
3548 } | 3637 } |
3549 | 3638 |
3550 CompletionGetSuggestionsResult(String id) { | 3639 CompletionGetSuggestionsResult(String id) { |
3551 this.id = id; | 3640 this.id = id; |
3552 } | 3641 } |
3553 | 3642 |
3554 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 3643 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
3555 if (json == null) { | 3644 if (json == null) { |
3556 json = {}; | 3645 json = {}; |
3557 } | 3646 } |
3558 if (json is Map) { | 3647 if (json is Map) { |
3559 String id; | 3648 String id; |
3560 if (json.containsKey("id")) { | 3649 if (json.containsKey("id")) { |
3561 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3650 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
3562 } else { | 3651 } else { |
3563 throw jsonDecoder.missingKey(jsonPath, "id"); | 3652 throw jsonDecoder.missingKey(jsonPath, "id"); |
3564 } | 3653 } |
3565 return new CompletionGetSuggestionsResult(id); | 3654 return new CompletionGetSuggestionsResult(id); |
3566 } else { | 3655 } else { |
3567 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions result", j
son); | 3656 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions result", j
son); |
3568 } | 3657 } |
3569 } | 3658 } |
3570 | 3659 |
3571 factory CompletionGetSuggestionsResult.fromResponse(Response response) { | 3660 factory CompletionGetSuggestionsResult.fromResponse(Response response) { |
(...skipping 18 matching lines...) Expand all Loading... |
3590 bool operator==(other) { | 3679 bool operator==(other) { |
3591 if (other is CompletionGetSuggestionsResult) { | 3680 if (other is CompletionGetSuggestionsResult) { |
3592 return id == other.id; | 3681 return id == other.id; |
3593 } | 3682 } |
3594 return false; | 3683 return false; |
3595 } | 3684 } |
3596 | 3685 |
3597 @override | 3686 @override |
3598 int get hashCode { | 3687 int get hashCode { |
3599 int hash = 0; | 3688 int hash = 0; |
3600 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 3689 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
3601 return _JenkinsSmiHash.finish(hash); | 3690 return JenkinsSmiHash.finish(hash); |
3602 } | 3691 } |
3603 } | 3692 } |
3604 | 3693 |
3605 /** | 3694 /** |
3606 * completion.results params | 3695 * completion.results params |
3607 * | 3696 * |
3608 * { | 3697 * { |
3609 * "id": CompletionId | 3698 * "id": CompletionId |
3610 * "replacementOffset": int | 3699 * "replacementOffset": int |
3611 * "replacementLength": int | 3700 * "replacementLength": int |
3612 * "results": List<CompletionSuggestion> | 3701 * "results": List<CompletionSuggestion> |
3613 * "isLast": bool | 3702 * "isLast": bool |
3614 * } | 3703 * } |
| 3704 * |
| 3705 * Clients are not expected to subtype this class. |
3615 */ | 3706 */ |
3616 class CompletionResultsParams implements HasToJson { | 3707 class CompletionResultsParams implements HasToJson { |
3617 String _id; | 3708 String _id; |
3618 | 3709 |
3619 int _replacementOffset; | 3710 int _replacementOffset; |
3620 | 3711 |
3621 int _replacementLength; | 3712 int _replacementLength; |
3622 | 3713 |
3623 List<CompletionSuggestion> _results; | 3714 List<CompletionSuggestion> _results; |
3624 | 3715 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3717 this.isLast = isLast; | 3808 this.isLast = isLast; |
3718 } | 3809 } |
3719 | 3810 |
3720 factory CompletionResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 3811 factory CompletionResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
3721 if (json == null) { | 3812 if (json == null) { |
3722 json = {}; | 3813 json = {}; |
3723 } | 3814 } |
3724 if (json is Map) { | 3815 if (json is Map) { |
3725 String id; | 3816 String id; |
3726 if (json.containsKey("id")) { | 3817 if (json.containsKey("id")) { |
3727 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3818 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
3728 } else { | 3819 } else { |
3729 throw jsonDecoder.missingKey(jsonPath, "id"); | 3820 throw jsonDecoder.missingKey(jsonPath, "id"); |
3730 } | 3821 } |
3731 int replacementOffset; | 3822 int replacementOffset; |
3732 if (json.containsKey("replacementOffset")) { | 3823 if (json.containsKey("replacementOffset")) { |
3733 replacementOffset = jsonDecoder._decodeInt(jsonPath + ".replacementOffse
t", json["replacementOffset"]); | 3824 replacementOffset = jsonDecoder.decodeInt(jsonPath + ".replacementOffset
", json["replacementOffset"]); |
3734 } else { | 3825 } else { |
3735 throw jsonDecoder.missingKey(jsonPath, "replacementOffset"); | 3826 throw jsonDecoder.missingKey(jsonPath, "replacementOffset"); |
3736 } | 3827 } |
3737 int replacementLength; | 3828 int replacementLength; |
3738 if (json.containsKey("replacementLength")) { | 3829 if (json.containsKey("replacementLength")) { |
3739 replacementLength = jsonDecoder._decodeInt(jsonPath + ".replacementLengt
h", json["replacementLength"]); | 3830 replacementLength = jsonDecoder.decodeInt(jsonPath + ".replacementLength
", json["replacementLength"]); |
3740 } else { | 3831 } else { |
3741 throw jsonDecoder.missingKey(jsonPath, "replacementLength"); | 3832 throw jsonDecoder.missingKey(jsonPath, "replacementLength"); |
3742 } | 3833 } |
3743 List<CompletionSuggestion> results; | 3834 List<CompletionSuggestion> results; |
3744 if (json.containsKey("results")) { | 3835 if (json.containsKey("results")) { |
3745 results = jsonDecoder._decodeList(jsonPath + ".results", json["results"]
, (String jsonPath, Object json) => new CompletionSuggestion.fromJson(jsonDecode
r, jsonPath, json)); | 3836 results = jsonDecoder.decodeList(jsonPath + ".results", json["results"],
(String jsonPath, Object json) => new CompletionSuggestion.fromJson(jsonDecoder
, jsonPath, json)); |
3746 } else { | 3837 } else { |
3747 throw jsonDecoder.missingKey(jsonPath, "results"); | 3838 throw jsonDecoder.missingKey(jsonPath, "results"); |
3748 } | 3839 } |
3749 bool isLast; | 3840 bool isLast; |
3750 if (json.containsKey("isLast")) { | 3841 if (json.containsKey("isLast")) { |
3751 isLast = jsonDecoder._decodeBool(jsonPath + ".isLast", json["isLast"]); | 3842 isLast = jsonDecoder.decodeBool(jsonPath + ".isLast", json["isLast"]); |
3752 } else { | 3843 } else { |
3753 throw jsonDecoder.missingKey(jsonPath, "isLast"); | 3844 throw jsonDecoder.missingKey(jsonPath, "isLast"); |
3754 } | 3845 } |
3755 return new CompletionResultsParams(id, replacementOffset, replacementLengt
h, results, isLast); | 3846 return new CompletionResultsParams(id, replacementOffset, replacementLengt
h, results, isLast); |
3756 } else { | 3847 } else { |
3757 throw jsonDecoder.mismatch(jsonPath, "completion.results params", json); | 3848 throw jsonDecoder.mismatch(jsonPath, "completion.results params", json); |
3758 } | 3849 } |
3759 } | 3850 } |
3760 | 3851 |
3761 factory CompletionResultsParams.fromNotification(Notification notification) { | 3852 factory CompletionResultsParams.fromNotification(Notification notification) { |
(...skipping 17 matching lines...) Expand all Loading... |
3779 | 3870 |
3780 @override | 3871 @override |
3781 String toString() => JSON.encode(toJson()); | 3872 String toString() => JSON.encode(toJson()); |
3782 | 3873 |
3783 @override | 3874 @override |
3784 bool operator==(other) { | 3875 bool operator==(other) { |
3785 if (other is CompletionResultsParams) { | 3876 if (other is CompletionResultsParams) { |
3786 return id == other.id && | 3877 return id == other.id && |
3787 replacementOffset == other.replacementOffset && | 3878 replacementOffset == other.replacementOffset && |
3788 replacementLength == other.replacementLength && | 3879 replacementLength == other.replacementLength && |
3789 _listEqual(results, other.results, (CompletionSuggestion a, Completion
Suggestion b) => a == b) && | 3880 listEqual(results, other.results, (CompletionSuggestion a, CompletionS
uggestion b) => a == b) && |
3790 isLast == other.isLast; | 3881 isLast == other.isLast; |
3791 } | 3882 } |
3792 return false; | 3883 return false; |
3793 } | 3884 } |
3794 | 3885 |
3795 @override | 3886 @override |
3796 int get hashCode { | 3887 int get hashCode { |
3797 int hash = 0; | 3888 int hash = 0; |
3798 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 3889 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
3799 hash = _JenkinsSmiHash.combine(hash, replacementOffset.hashCode); | 3890 hash = JenkinsSmiHash.combine(hash, replacementOffset.hashCode); |
3800 hash = _JenkinsSmiHash.combine(hash, replacementLength.hashCode); | 3891 hash = JenkinsSmiHash.combine(hash, replacementLength.hashCode); |
3801 hash = _JenkinsSmiHash.combine(hash, results.hashCode); | 3892 hash = JenkinsSmiHash.combine(hash, results.hashCode); |
3802 hash = _JenkinsSmiHash.combine(hash, isLast.hashCode); | 3893 hash = JenkinsSmiHash.combine(hash, isLast.hashCode); |
3803 return _JenkinsSmiHash.finish(hash); | 3894 return JenkinsSmiHash.finish(hash); |
3804 } | 3895 } |
3805 } | 3896 } |
3806 | 3897 |
3807 /** | 3898 /** |
3808 * search.findElementReferences params | 3899 * search.findElementReferences params |
3809 * | 3900 * |
3810 * { | 3901 * { |
3811 * "file": FilePath | 3902 * "file": FilePath |
3812 * "offset": int | 3903 * "offset": int |
3813 * "includePotential": bool | 3904 * "includePotential": bool |
3814 * } | 3905 * } |
| 3906 * |
| 3907 * Clients are not expected to subtype this class. |
3815 */ | 3908 */ |
3816 class SearchFindElementReferencesParams implements HasToJson { | 3909 class SearchFindElementReferencesParams implements HasToJson { |
3817 String _file; | 3910 String _file; |
3818 | 3911 |
3819 int _offset; | 3912 int _offset; |
3820 | 3913 |
3821 bool _includePotential; | 3914 bool _includePotential; |
3822 | 3915 |
3823 /** | 3916 /** |
3824 * The file containing the declaration of or reference to the element used to | 3917 * The file containing the declaration of or reference to the element used to |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3869 this.includePotential = includePotential; | 3962 this.includePotential = includePotential; |
3870 } | 3963 } |
3871 | 3964 |
3872 factory SearchFindElementReferencesParams.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { | 3965 factory SearchFindElementReferencesParams.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { |
3873 if (json == null) { | 3966 if (json == null) { |
3874 json = {}; | 3967 json = {}; |
3875 } | 3968 } |
3876 if (json is Map) { | 3969 if (json is Map) { |
3877 String file; | 3970 String file; |
3878 if (json.containsKey("file")) { | 3971 if (json.containsKey("file")) { |
3879 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 3972 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3880 } else { | 3973 } else { |
3881 throw jsonDecoder.missingKey(jsonPath, "file"); | 3974 throw jsonDecoder.missingKey(jsonPath, "file"); |
3882 } | 3975 } |
3883 int offset; | 3976 int offset; |
3884 if (json.containsKey("offset")) { | 3977 if (json.containsKey("offset")) { |
3885 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 3978 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
3886 } else { | 3979 } else { |
3887 throw jsonDecoder.missingKey(jsonPath, "offset"); | 3980 throw jsonDecoder.missingKey(jsonPath, "offset"); |
3888 } | 3981 } |
3889 bool includePotential; | 3982 bool includePotential; |
3890 if (json.containsKey("includePotential")) { | 3983 if (json.containsKey("includePotential")) { |
3891 includePotential = jsonDecoder._decodeBool(jsonPath + ".includePotential
", json["includePotential"]); | 3984 includePotential = jsonDecoder.decodeBool(jsonPath + ".includePotential"
, json["includePotential"]); |
3892 } else { | 3985 } else { |
3893 throw jsonDecoder.missingKey(jsonPath, "includePotential"); | 3986 throw jsonDecoder.missingKey(jsonPath, "includePotential"); |
3894 } | 3987 } |
3895 return new SearchFindElementReferencesParams(file, offset, includePotentia
l); | 3988 return new SearchFindElementReferencesParams(file, offset, includePotentia
l); |
3896 } else { | 3989 } else { |
3897 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences params"
, json); | 3990 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences params"
, json); |
3898 } | 3991 } |
3899 } | 3992 } |
3900 | 3993 |
3901 factory SearchFindElementReferencesParams.fromRequest(Request request) { | 3994 factory SearchFindElementReferencesParams.fromRequest(Request request) { |
(...skipping 22 matching lines...) Expand all Loading... |
3924 return file == other.file && | 4017 return file == other.file && |
3925 offset == other.offset && | 4018 offset == other.offset && |
3926 includePotential == other.includePotential; | 4019 includePotential == other.includePotential; |
3927 } | 4020 } |
3928 return false; | 4021 return false; |
3929 } | 4022 } |
3930 | 4023 |
3931 @override | 4024 @override |
3932 int get hashCode { | 4025 int get hashCode { |
3933 int hash = 0; | 4026 int hash = 0; |
3934 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 4027 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3935 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 4028 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
3936 hash = _JenkinsSmiHash.combine(hash, includePotential.hashCode); | 4029 hash = JenkinsSmiHash.combine(hash, includePotential.hashCode); |
3937 return _JenkinsSmiHash.finish(hash); | 4030 return JenkinsSmiHash.finish(hash); |
3938 } | 4031 } |
3939 } | 4032 } |
3940 | 4033 |
3941 /** | 4034 /** |
3942 * search.findElementReferences result | 4035 * search.findElementReferences result |
3943 * | 4036 * |
3944 * { | 4037 * { |
3945 * "id": optional SearchId | 4038 * "id": optional SearchId |
3946 * "element": optional Element | 4039 * "element": optional Element |
3947 * } | 4040 * } |
| 4041 * |
| 4042 * Clients are not expected to subtype this class. |
3948 */ | 4043 */ |
3949 class SearchFindElementReferencesResult implements HasToJson { | 4044 class SearchFindElementReferencesResult implements HasToJson { |
3950 String _id; | 4045 String _id; |
3951 | 4046 |
3952 Element _element; | 4047 Element _element; |
3953 | 4048 |
3954 /** | 4049 /** |
3955 * The identifier used to associate results with this search request. | 4050 * The identifier used to associate results with this search request. |
3956 * | 4051 * |
3957 * If no element was found at the given location, this field will be absent, | 4052 * If no element was found at the given location, this field will be absent, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3992 this.element = element; | 4087 this.element = element; |
3993 } | 4088 } |
3994 | 4089 |
3995 factory SearchFindElementReferencesResult.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { | 4090 factory SearchFindElementReferencesResult.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { |
3996 if (json == null) { | 4091 if (json == null) { |
3997 json = {}; | 4092 json = {}; |
3998 } | 4093 } |
3999 if (json is Map) { | 4094 if (json is Map) { |
4000 String id; | 4095 String id; |
4001 if (json.containsKey("id")) { | 4096 if (json.containsKey("id")) { |
4002 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 4097 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4003 } | 4098 } |
4004 Element element; | 4099 Element element; |
4005 if (json.containsKey("element")) { | 4100 if (json.containsKey("element")) { |
4006 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 4101 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); |
4007 } | 4102 } |
4008 return new SearchFindElementReferencesResult(id: id, element: element); | 4103 return new SearchFindElementReferencesResult(id: id, element: element); |
4009 } else { | 4104 } else { |
4010 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences result"
, json); | 4105 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences result"
, json); |
4011 } | 4106 } |
4012 } | 4107 } |
(...skipping 26 matching lines...) Expand all Loading... |
4039 if (other is SearchFindElementReferencesResult) { | 4134 if (other is SearchFindElementReferencesResult) { |
4040 return id == other.id && | 4135 return id == other.id && |
4041 element == other.element; | 4136 element == other.element; |
4042 } | 4137 } |
4043 return false; | 4138 return false; |
4044 } | 4139 } |
4045 | 4140 |
4046 @override | 4141 @override |
4047 int get hashCode { | 4142 int get hashCode { |
4048 int hash = 0; | 4143 int hash = 0; |
4049 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 4144 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
4050 hash = _JenkinsSmiHash.combine(hash, element.hashCode); | 4145 hash = JenkinsSmiHash.combine(hash, element.hashCode); |
4051 return _JenkinsSmiHash.finish(hash); | 4146 return JenkinsSmiHash.finish(hash); |
4052 } | 4147 } |
4053 } | 4148 } |
4054 | 4149 |
4055 /** | 4150 /** |
4056 * search.findMemberDeclarations params | 4151 * search.findMemberDeclarations params |
4057 * | 4152 * |
4058 * { | 4153 * { |
4059 * "name": String | 4154 * "name": String |
4060 * } | 4155 * } |
| 4156 * |
| 4157 * Clients are not expected to subtype this class. |
4061 */ | 4158 */ |
4062 class SearchFindMemberDeclarationsParams implements HasToJson { | 4159 class SearchFindMemberDeclarationsParams implements HasToJson { |
4063 String _name; | 4160 String _name; |
4064 | 4161 |
4065 /** | 4162 /** |
4066 * The name of the declarations to be found. | 4163 * The name of the declarations to be found. |
4067 */ | 4164 */ |
4068 String get name => _name; | 4165 String get name => _name; |
4069 | 4166 |
4070 /** | 4167 /** |
4071 * The name of the declarations to be found. | 4168 * The name of the declarations to be found. |
4072 */ | 4169 */ |
4073 void set name(String value) { | 4170 void set name(String value) { |
4074 assert(value != null); | 4171 assert(value != null); |
4075 this._name = value; | 4172 this._name = value; |
4076 } | 4173 } |
4077 | 4174 |
4078 SearchFindMemberDeclarationsParams(String name) { | 4175 SearchFindMemberDeclarationsParams(String name) { |
4079 this.name = name; | 4176 this.name = name; |
4080 } | 4177 } |
4081 | 4178 |
4082 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 4179 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
4083 if (json == null) { | 4180 if (json == null) { |
4084 json = {}; | 4181 json = {}; |
4085 } | 4182 } |
4086 if (json is Map) { | 4183 if (json is Map) { |
4087 String name; | 4184 String name; |
4088 if (json.containsKey("name")) { | 4185 if (json.containsKey("name")) { |
4089 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 4186 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
4090 } else { | 4187 } else { |
4091 throw jsonDecoder.missingKey(jsonPath, "name"); | 4188 throw jsonDecoder.missingKey(jsonPath, "name"); |
4092 } | 4189 } |
4093 return new SearchFindMemberDeclarationsParams(name); | 4190 return new SearchFindMemberDeclarationsParams(name); |
4094 } else { | 4191 } else { |
4095 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations params
", json); | 4192 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations params
", json); |
4096 } | 4193 } |
4097 } | 4194 } |
4098 | 4195 |
4099 factory SearchFindMemberDeclarationsParams.fromRequest(Request request) { | 4196 factory SearchFindMemberDeclarationsParams.fromRequest(Request request) { |
(...skipping 18 matching lines...) Expand all Loading... |
4118 bool operator==(other) { | 4215 bool operator==(other) { |
4119 if (other is SearchFindMemberDeclarationsParams) { | 4216 if (other is SearchFindMemberDeclarationsParams) { |
4120 return name == other.name; | 4217 return name == other.name; |
4121 } | 4218 } |
4122 return false; | 4219 return false; |
4123 } | 4220 } |
4124 | 4221 |
4125 @override | 4222 @override |
4126 int get hashCode { | 4223 int get hashCode { |
4127 int hash = 0; | 4224 int hash = 0; |
4128 hash = _JenkinsSmiHash.combine(hash, name.hashCode); | 4225 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
4129 return _JenkinsSmiHash.finish(hash); | 4226 return JenkinsSmiHash.finish(hash); |
4130 } | 4227 } |
4131 } | 4228 } |
4132 | 4229 |
4133 /** | 4230 /** |
4134 * search.findMemberDeclarations result | 4231 * search.findMemberDeclarations result |
4135 * | 4232 * |
4136 * { | 4233 * { |
4137 * "id": SearchId | 4234 * "id": SearchId |
4138 * } | 4235 * } |
| 4236 * |
| 4237 * Clients are not expected to subtype this class. |
4139 */ | 4238 */ |
4140 class SearchFindMemberDeclarationsResult implements HasToJson { | 4239 class SearchFindMemberDeclarationsResult implements HasToJson { |
4141 String _id; | 4240 String _id; |
4142 | 4241 |
4143 /** | 4242 /** |
4144 * The identifier used to associate results with this search request. | 4243 * The identifier used to associate results with this search request. |
4145 */ | 4244 */ |
4146 String get id => _id; | 4245 String get id => _id; |
4147 | 4246 |
4148 /** | 4247 /** |
4149 * The identifier used to associate results with this search request. | 4248 * The identifier used to associate results with this search request. |
4150 */ | 4249 */ |
4151 void set id(String value) { | 4250 void set id(String value) { |
4152 assert(value != null); | 4251 assert(value != null); |
4153 this._id = value; | 4252 this._id = value; |
4154 } | 4253 } |
4155 | 4254 |
4156 SearchFindMemberDeclarationsResult(String id) { | 4255 SearchFindMemberDeclarationsResult(String id) { |
4157 this.id = id; | 4256 this.id = id; |
4158 } | 4257 } |
4159 | 4258 |
4160 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 4259 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
4161 if (json == null) { | 4260 if (json == null) { |
4162 json = {}; | 4261 json = {}; |
4163 } | 4262 } |
4164 if (json is Map) { | 4263 if (json is Map) { |
4165 String id; | 4264 String id; |
4166 if (json.containsKey("id")) { | 4265 if (json.containsKey("id")) { |
4167 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 4266 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4168 } else { | 4267 } else { |
4169 throw jsonDecoder.missingKey(jsonPath, "id"); | 4268 throw jsonDecoder.missingKey(jsonPath, "id"); |
4170 } | 4269 } |
4171 return new SearchFindMemberDeclarationsResult(id); | 4270 return new SearchFindMemberDeclarationsResult(id); |
4172 } else { | 4271 } else { |
4173 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations result
", json); | 4272 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations result
", json); |
4174 } | 4273 } |
4175 } | 4274 } |
4176 | 4275 |
4177 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) { | 4276 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) { |
(...skipping 18 matching lines...) Expand all Loading... |
4196 bool operator==(other) { | 4295 bool operator==(other) { |
4197 if (other is SearchFindMemberDeclarationsResult) { | 4296 if (other is SearchFindMemberDeclarationsResult) { |
4198 return id == other.id; | 4297 return id == other.id; |
4199 } | 4298 } |
4200 return false; | 4299 return false; |
4201 } | 4300 } |
4202 | 4301 |
4203 @override | 4302 @override |
4204 int get hashCode { | 4303 int get hashCode { |
4205 int hash = 0; | 4304 int hash = 0; |
4206 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 4305 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
4207 return _JenkinsSmiHash.finish(hash); | 4306 return JenkinsSmiHash.finish(hash); |
4208 } | 4307 } |
4209 } | 4308 } |
4210 | 4309 |
4211 /** | 4310 /** |
4212 * search.findMemberReferences params | 4311 * search.findMemberReferences params |
4213 * | 4312 * |
4214 * { | 4313 * { |
4215 * "name": String | 4314 * "name": String |
4216 * } | 4315 * } |
| 4316 * |
| 4317 * Clients are not expected to subtype this class. |
4217 */ | 4318 */ |
4218 class SearchFindMemberReferencesParams implements HasToJson { | 4319 class SearchFindMemberReferencesParams implements HasToJson { |
4219 String _name; | 4320 String _name; |
4220 | 4321 |
4221 /** | 4322 /** |
4222 * The name of the references to be found. | 4323 * The name of the references to be found. |
4223 */ | 4324 */ |
4224 String get name => _name; | 4325 String get name => _name; |
4225 | 4326 |
4226 /** | 4327 /** |
4227 * The name of the references to be found. | 4328 * The name of the references to be found. |
4228 */ | 4329 */ |
4229 void set name(String value) { | 4330 void set name(String value) { |
4230 assert(value != null); | 4331 assert(value != null); |
4231 this._name = value; | 4332 this._name = value; |
4232 } | 4333 } |
4233 | 4334 |
4234 SearchFindMemberReferencesParams(String name) { | 4335 SearchFindMemberReferencesParams(String name) { |
4235 this.name = name; | 4336 this.name = name; |
4236 } | 4337 } |
4237 | 4338 |
4238 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 4339 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { |
4239 if (json == null) { | 4340 if (json == null) { |
4240 json = {}; | 4341 json = {}; |
4241 } | 4342 } |
4242 if (json is Map) { | 4343 if (json is Map) { |
4243 String name; | 4344 String name; |
4244 if (json.containsKey("name")) { | 4345 if (json.containsKey("name")) { |
4245 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 4346 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
4246 } else { | 4347 } else { |
4247 throw jsonDecoder.missingKey(jsonPath, "name"); | 4348 throw jsonDecoder.missingKey(jsonPath, "name"); |
4248 } | 4349 } |
4249 return new SearchFindMemberReferencesParams(name); | 4350 return new SearchFindMemberReferencesParams(name); |
4250 } else { | 4351 } else { |
4251 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences params",
json); | 4352 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences params",
json); |
4252 } | 4353 } |
4253 } | 4354 } |
4254 | 4355 |
4255 factory SearchFindMemberReferencesParams.fromRequest(Request request) { | 4356 factory SearchFindMemberReferencesParams.fromRequest(Request request) { |
(...skipping 18 matching lines...) Expand all Loading... |
4274 bool operator==(other) { | 4375 bool operator==(other) { |
4275 if (other is SearchFindMemberReferencesParams) { | 4376 if (other is SearchFindMemberReferencesParams) { |
4276 return name == other.name; | 4377 return name == other.name; |
4277 } | 4378 } |
4278 return false; | 4379 return false; |
4279 } | 4380 } |
4280 | 4381 |
4281 @override | 4382 @override |
4282 int get hashCode { | 4383 int get hashCode { |
4283 int hash = 0; | 4384 int hash = 0; |
4284 hash = _JenkinsSmiHash.combine(hash, name.hashCode); | 4385 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
4285 return _JenkinsSmiHash.finish(hash); | 4386 return JenkinsSmiHash.finish(hash); |
4286 } | 4387 } |
4287 } | 4388 } |
4288 | 4389 |
4289 /** | 4390 /** |
4290 * search.findMemberReferences result | 4391 * search.findMemberReferences result |
4291 * | 4392 * |
4292 * { | 4393 * { |
4293 * "id": SearchId | 4394 * "id": SearchId |
4294 * } | 4395 * } |
| 4396 * |
| 4397 * Clients are not expected to subtype this class. |
4295 */ | 4398 */ |
4296 class SearchFindMemberReferencesResult implements HasToJson { | 4399 class SearchFindMemberReferencesResult implements HasToJson { |
4297 String _id; | 4400 String _id; |
4298 | 4401 |
4299 /** | 4402 /** |
4300 * The identifier used to associate results with this search request. | 4403 * The identifier used to associate results with this search request. |
4301 */ | 4404 */ |
4302 String get id => _id; | 4405 String get id => _id; |
4303 | 4406 |
4304 /** | 4407 /** |
4305 * The identifier used to associate results with this search request. | 4408 * The identifier used to associate results with this search request. |
4306 */ | 4409 */ |
4307 void set id(String value) { | 4410 void set id(String value) { |
4308 assert(value != null); | 4411 assert(value != null); |
4309 this._id = value; | 4412 this._id = value; |
4310 } | 4413 } |
4311 | 4414 |
4312 SearchFindMemberReferencesResult(String id) { | 4415 SearchFindMemberReferencesResult(String id) { |
4313 this.id = id; | 4416 this.id = id; |
4314 } | 4417 } |
4315 | 4418 |
4316 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 4419 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { |
4317 if (json == null) { | 4420 if (json == null) { |
4318 json = {}; | 4421 json = {}; |
4319 } | 4422 } |
4320 if (json is Map) { | 4423 if (json is Map) { |
4321 String id; | 4424 String id; |
4322 if (json.containsKey("id")) { | 4425 if (json.containsKey("id")) { |
4323 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 4426 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4324 } else { | 4427 } else { |
4325 throw jsonDecoder.missingKey(jsonPath, "id"); | 4428 throw jsonDecoder.missingKey(jsonPath, "id"); |
4326 } | 4429 } |
4327 return new SearchFindMemberReferencesResult(id); | 4430 return new SearchFindMemberReferencesResult(id); |
4328 } else { | 4431 } else { |
4329 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences result",
json); | 4432 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences result",
json); |
4330 } | 4433 } |
4331 } | 4434 } |
4332 | 4435 |
4333 factory SearchFindMemberReferencesResult.fromResponse(Response response) { | 4436 factory SearchFindMemberReferencesResult.fromResponse(Response response) { |
(...skipping 18 matching lines...) Expand all Loading... |
4352 bool operator==(other) { | 4455 bool operator==(other) { |
4353 if (other is SearchFindMemberReferencesResult) { | 4456 if (other is SearchFindMemberReferencesResult) { |
4354 return id == other.id; | 4457 return id == other.id; |
4355 } | 4458 } |
4356 return false; | 4459 return false; |
4357 } | 4460 } |
4358 | 4461 |
4359 @override | 4462 @override |
4360 int get hashCode { | 4463 int get hashCode { |
4361 int hash = 0; | 4464 int hash = 0; |
4362 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 4465 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
4363 return _JenkinsSmiHash.finish(hash); | 4466 return JenkinsSmiHash.finish(hash); |
4364 } | 4467 } |
4365 } | 4468 } |
4366 | 4469 |
4367 /** | 4470 /** |
4368 * search.findTopLevelDeclarations params | 4471 * search.findTopLevelDeclarations params |
4369 * | 4472 * |
4370 * { | 4473 * { |
4371 * "pattern": String | 4474 * "pattern": String |
4372 * } | 4475 * } |
| 4476 * |
| 4477 * Clients are not expected to subtype this class. |
4373 */ | 4478 */ |
4374 class SearchFindTopLevelDeclarationsParams implements HasToJson { | 4479 class SearchFindTopLevelDeclarationsParams implements HasToJson { |
4375 String _pattern; | 4480 String _pattern; |
4376 | 4481 |
4377 /** | 4482 /** |
4378 * The regular expression used to match the names of the declarations to be | 4483 * The regular expression used to match the names of the declarations to be |
4379 * found. | 4484 * found. |
4380 */ | 4485 */ |
4381 String get pattern => _pattern; | 4486 String get pattern => _pattern; |
4382 | 4487 |
(...skipping 10 matching lines...) Expand all Loading... |
4393 this.pattern = pattern; | 4498 this.pattern = pattern; |
4394 } | 4499 } |
4395 | 4500 |
4396 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 4501 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { |
4397 if (json == null) { | 4502 if (json == null) { |
4398 json = {}; | 4503 json = {}; |
4399 } | 4504 } |
4400 if (json is Map) { | 4505 if (json is Map) { |
4401 String pattern; | 4506 String pattern; |
4402 if (json.containsKey("pattern")) { | 4507 if (json.containsKey("pattern")) { |
4403 pattern = jsonDecoder._decodeString(jsonPath + ".pattern", json["pattern
"]); | 4508 pattern = jsonDecoder.decodeString(jsonPath + ".pattern", json["pattern"
]); |
4404 } else { | 4509 } else { |
4405 throw jsonDecoder.missingKey(jsonPath, "pattern"); | 4510 throw jsonDecoder.missingKey(jsonPath, "pattern"); |
4406 } | 4511 } |
4407 return new SearchFindTopLevelDeclarationsParams(pattern); | 4512 return new SearchFindTopLevelDeclarationsParams(pattern); |
4408 } else { | 4513 } else { |
4409 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations para
ms", json); | 4514 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations para
ms", json); |
4410 } | 4515 } |
4411 } | 4516 } |
4412 | 4517 |
4413 factory SearchFindTopLevelDeclarationsParams.fromRequest(Request request) { | 4518 factory SearchFindTopLevelDeclarationsParams.fromRequest(Request request) { |
(...skipping 18 matching lines...) Expand all Loading... |
4432 bool operator==(other) { | 4537 bool operator==(other) { |
4433 if (other is SearchFindTopLevelDeclarationsParams) { | 4538 if (other is SearchFindTopLevelDeclarationsParams) { |
4434 return pattern == other.pattern; | 4539 return pattern == other.pattern; |
4435 } | 4540 } |
4436 return false; | 4541 return false; |
4437 } | 4542 } |
4438 | 4543 |
4439 @override | 4544 @override |
4440 int get hashCode { | 4545 int get hashCode { |
4441 int hash = 0; | 4546 int hash = 0; |
4442 hash = _JenkinsSmiHash.combine(hash, pattern.hashCode); | 4547 hash = JenkinsSmiHash.combine(hash, pattern.hashCode); |
4443 return _JenkinsSmiHash.finish(hash); | 4548 return JenkinsSmiHash.finish(hash); |
4444 } | 4549 } |
4445 } | 4550 } |
4446 | 4551 |
4447 /** | 4552 /** |
4448 * search.findTopLevelDeclarations result | 4553 * search.findTopLevelDeclarations result |
4449 * | 4554 * |
4450 * { | 4555 * { |
4451 * "id": SearchId | 4556 * "id": SearchId |
4452 * } | 4557 * } |
| 4558 * |
| 4559 * Clients are not expected to subtype this class. |
4453 */ | 4560 */ |
4454 class SearchFindTopLevelDeclarationsResult implements HasToJson { | 4561 class SearchFindTopLevelDeclarationsResult implements HasToJson { |
4455 String _id; | 4562 String _id; |
4456 | 4563 |
4457 /** | 4564 /** |
4458 * The identifier used to associate results with this search request. | 4565 * The identifier used to associate results with this search request. |
4459 */ | 4566 */ |
4460 String get id => _id; | 4567 String get id => _id; |
4461 | 4568 |
4462 /** | 4569 /** |
4463 * The identifier used to associate results with this search request. | 4570 * The identifier used to associate results with this search request. |
4464 */ | 4571 */ |
4465 void set id(String value) { | 4572 void set id(String value) { |
4466 assert(value != null); | 4573 assert(value != null); |
4467 this._id = value; | 4574 this._id = value; |
4468 } | 4575 } |
4469 | 4576 |
4470 SearchFindTopLevelDeclarationsResult(String id) { | 4577 SearchFindTopLevelDeclarationsResult(String id) { |
4471 this.id = id; | 4578 this.id = id; |
4472 } | 4579 } |
4473 | 4580 |
4474 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 4581 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { |
4475 if (json == null) { | 4582 if (json == null) { |
4476 json = {}; | 4583 json = {}; |
4477 } | 4584 } |
4478 if (json is Map) { | 4585 if (json is Map) { |
4479 String id; | 4586 String id; |
4480 if (json.containsKey("id")) { | 4587 if (json.containsKey("id")) { |
4481 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 4588 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4482 } else { | 4589 } else { |
4483 throw jsonDecoder.missingKey(jsonPath, "id"); | 4590 throw jsonDecoder.missingKey(jsonPath, "id"); |
4484 } | 4591 } |
4485 return new SearchFindTopLevelDeclarationsResult(id); | 4592 return new SearchFindTopLevelDeclarationsResult(id); |
4486 } else { | 4593 } else { |
4487 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations resu
lt", json); | 4594 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations resu
lt", json); |
4488 } | 4595 } |
4489 } | 4596 } |
4490 | 4597 |
4491 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) { | 4598 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) { |
(...skipping 18 matching lines...) Expand all Loading... |
4510 bool operator==(other) { | 4617 bool operator==(other) { |
4511 if (other is SearchFindTopLevelDeclarationsResult) { | 4618 if (other is SearchFindTopLevelDeclarationsResult) { |
4512 return id == other.id; | 4619 return id == other.id; |
4513 } | 4620 } |
4514 return false; | 4621 return false; |
4515 } | 4622 } |
4516 | 4623 |
4517 @override | 4624 @override |
4518 int get hashCode { | 4625 int get hashCode { |
4519 int hash = 0; | 4626 int hash = 0; |
4520 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 4627 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
4521 return _JenkinsSmiHash.finish(hash); | 4628 return JenkinsSmiHash.finish(hash); |
4522 } | 4629 } |
4523 } | 4630 } |
4524 | 4631 |
4525 /** | 4632 /** |
4526 * search.getTypeHierarchy params | 4633 * search.getTypeHierarchy params |
4527 * | 4634 * |
4528 * { | 4635 * { |
4529 * "file": FilePath | 4636 * "file": FilePath |
4530 * "offset": int | 4637 * "offset": int |
4531 * "superOnly": optional bool | 4638 * "superOnly": optional bool |
4532 * } | 4639 * } |
| 4640 * |
| 4641 * Clients are not expected to subtype this class. |
4533 */ | 4642 */ |
4534 class SearchGetTypeHierarchyParams implements HasToJson { | 4643 class SearchGetTypeHierarchyParams implements HasToJson { |
4535 String _file; | 4644 String _file; |
4536 | 4645 |
4537 int _offset; | 4646 int _offset; |
4538 | 4647 |
4539 bool _superOnly; | 4648 bool _superOnly; |
4540 | 4649 |
4541 /** | 4650 /** |
4542 * The file containing the declaration or reference to the type for which a | 4651 * The file containing the declaration or reference to the type for which a |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4586 this.superOnly = superOnly; | 4695 this.superOnly = superOnly; |
4587 } | 4696 } |
4588 | 4697 |
4589 factory SearchGetTypeHierarchyParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 4698 factory SearchGetTypeHierarchyParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
4590 if (json == null) { | 4699 if (json == null) { |
4591 json = {}; | 4700 json = {}; |
4592 } | 4701 } |
4593 if (json is Map) { | 4702 if (json is Map) { |
4594 String file; | 4703 String file; |
4595 if (json.containsKey("file")) { | 4704 if (json.containsKey("file")) { |
4596 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 4705 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
4597 } else { | 4706 } else { |
4598 throw jsonDecoder.missingKey(jsonPath, "file"); | 4707 throw jsonDecoder.missingKey(jsonPath, "file"); |
4599 } | 4708 } |
4600 int offset; | 4709 int offset; |
4601 if (json.containsKey("offset")) { | 4710 if (json.containsKey("offset")) { |
4602 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 4711 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
4603 } else { | 4712 } else { |
4604 throw jsonDecoder.missingKey(jsonPath, "offset"); | 4713 throw jsonDecoder.missingKey(jsonPath, "offset"); |
4605 } | 4714 } |
4606 bool superOnly; | 4715 bool superOnly; |
4607 if (json.containsKey("superOnly")) { | 4716 if (json.containsKey("superOnly")) { |
4608 superOnly = jsonDecoder._decodeBool(jsonPath + ".superOnly", json["super
Only"]); | 4717 superOnly = jsonDecoder.decodeBool(jsonPath + ".superOnly", json["superO
nly"]); |
4609 } | 4718 } |
4610 return new SearchGetTypeHierarchyParams(file, offset, superOnly: superOnly
); | 4719 return new SearchGetTypeHierarchyParams(file, offset, superOnly: superOnly
); |
4611 } else { | 4720 } else { |
4612 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy params", jso
n); | 4721 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy params", jso
n); |
4613 } | 4722 } |
4614 } | 4723 } |
4615 | 4724 |
4616 factory SearchGetTypeHierarchyParams.fromRequest(Request request) { | 4725 factory SearchGetTypeHierarchyParams.fromRequest(Request request) { |
4617 return new SearchGetTypeHierarchyParams.fromJson( | 4726 return new SearchGetTypeHierarchyParams.fromJson( |
4618 new RequestDecoder(request), "params", request._params); | 4727 new RequestDecoder(request), "params", request._params); |
(...skipping 22 matching lines...) Expand all Loading... |
4641 return file == other.file && | 4750 return file == other.file && |
4642 offset == other.offset && | 4751 offset == other.offset && |
4643 superOnly == other.superOnly; | 4752 superOnly == other.superOnly; |
4644 } | 4753 } |
4645 return false; | 4754 return false; |
4646 } | 4755 } |
4647 | 4756 |
4648 @override | 4757 @override |
4649 int get hashCode { | 4758 int get hashCode { |
4650 int hash = 0; | 4759 int hash = 0; |
4651 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 4760 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
4652 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 4761 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
4653 hash = _JenkinsSmiHash.combine(hash, superOnly.hashCode); | 4762 hash = JenkinsSmiHash.combine(hash, superOnly.hashCode); |
4654 return _JenkinsSmiHash.finish(hash); | 4763 return JenkinsSmiHash.finish(hash); |
4655 } | 4764 } |
4656 } | 4765 } |
4657 | 4766 |
4658 /** | 4767 /** |
4659 * search.getTypeHierarchy result | 4768 * search.getTypeHierarchy result |
4660 * | 4769 * |
4661 * { | 4770 * { |
4662 * "hierarchyItems": optional List<TypeHierarchyItem> | 4771 * "hierarchyItems": optional List<TypeHierarchyItem> |
4663 * } | 4772 * } |
| 4773 * |
| 4774 * Clients are not expected to subtype this class. |
4664 */ | 4775 */ |
4665 class SearchGetTypeHierarchyResult implements HasToJson { | 4776 class SearchGetTypeHierarchyResult implements HasToJson { |
4666 List<TypeHierarchyItem> _hierarchyItems; | 4777 List<TypeHierarchyItem> _hierarchyItems; |
4667 | 4778 |
4668 /** | 4779 /** |
4669 * A list of the types in the requested hierarchy. The first element of the | 4780 * A list of the types in the requested hierarchy. The first element of the |
4670 * list is the item representing the type for which the hierarchy was | 4781 * list is the item representing the type for which the hierarchy was |
4671 * requested. The index of other elements of the list is unspecified, but | 4782 * requested. The index of other elements of the list is unspecified, but |
4672 * correspond to the integers used to reference supertype and subtype items | 4783 * correspond to the integers used to reference supertype and subtype items |
4673 * within the items. | 4784 * within the items. |
(...skipping 23 matching lines...) Expand all Loading... |
4697 this.hierarchyItems = hierarchyItems; | 4808 this.hierarchyItems = hierarchyItems; |
4698 } | 4809 } |
4699 | 4810 |
4700 factory SearchGetTypeHierarchyResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 4811 factory SearchGetTypeHierarchyResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
4701 if (json == null) { | 4812 if (json == null) { |
4702 json = {}; | 4813 json = {}; |
4703 } | 4814 } |
4704 if (json is Map) { | 4815 if (json is Map) { |
4705 List<TypeHierarchyItem> hierarchyItems; | 4816 List<TypeHierarchyItem> hierarchyItems; |
4706 if (json.containsKey("hierarchyItems")) { | 4817 if (json.containsKey("hierarchyItems")) { |
4707 hierarchyItems = jsonDecoder._decodeList(jsonPath + ".hierarchyItems", j
son["hierarchyItems"], (String jsonPath, Object json) => new TypeHierarchyItem.f
romJson(jsonDecoder, jsonPath, json)); | 4818 hierarchyItems = jsonDecoder.decodeList(jsonPath + ".hierarchyItems", js
on["hierarchyItems"], (String jsonPath, Object json) => new TypeHierarchyItem.fr
omJson(jsonDecoder, jsonPath, json)); |
4708 } | 4819 } |
4709 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems); | 4820 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems); |
4710 } else { | 4821 } else { |
4711 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy result", jso
n); | 4822 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy result", jso
n); |
4712 } | 4823 } |
4713 } | 4824 } |
4714 | 4825 |
4715 factory SearchGetTypeHierarchyResult.fromResponse(Response response) { | 4826 factory SearchGetTypeHierarchyResult.fromResponse(Response response) { |
4716 return new SearchGetTypeHierarchyResult.fromJson( | 4827 return new SearchGetTypeHierarchyResult.fromJson( |
4717 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 4828 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
(...skipping 10 matching lines...) Expand all Loading... |
4728 Response toResponse(String id) { | 4839 Response toResponse(String id) { |
4729 return new Response(id, result: toJson()); | 4840 return new Response(id, result: toJson()); |
4730 } | 4841 } |
4731 | 4842 |
4732 @override | 4843 @override |
4733 String toString() => JSON.encode(toJson()); | 4844 String toString() => JSON.encode(toJson()); |
4734 | 4845 |
4735 @override | 4846 @override |
4736 bool operator==(other) { | 4847 bool operator==(other) { |
4737 if (other is SearchGetTypeHierarchyResult) { | 4848 if (other is SearchGetTypeHierarchyResult) { |
4738 return _listEqual(hierarchyItems, other.hierarchyItems, (TypeHierarchyItem
a, TypeHierarchyItem b) => a == b); | 4849 return listEqual(hierarchyItems, other.hierarchyItems, (TypeHierarchyItem
a, TypeHierarchyItem b) => a == b); |
4739 } | 4850 } |
4740 return false; | 4851 return false; |
4741 } | 4852 } |
4742 | 4853 |
4743 @override | 4854 @override |
4744 int get hashCode { | 4855 int get hashCode { |
4745 int hash = 0; | 4856 int hash = 0; |
4746 hash = _JenkinsSmiHash.combine(hash, hierarchyItems.hashCode); | 4857 hash = JenkinsSmiHash.combine(hash, hierarchyItems.hashCode); |
4747 return _JenkinsSmiHash.finish(hash); | 4858 return JenkinsSmiHash.finish(hash); |
4748 } | 4859 } |
4749 } | 4860 } |
4750 | 4861 |
4751 /** | 4862 /** |
4752 * search.results params | 4863 * search.results params |
4753 * | 4864 * |
4754 * { | 4865 * { |
4755 * "id": SearchId | 4866 * "id": SearchId |
4756 * "results": List<SearchResult> | 4867 * "results": List<SearchResult> |
4757 * "isLast": bool | 4868 * "isLast": bool |
4758 * } | 4869 * } |
| 4870 * |
| 4871 * Clients are not expected to subtype this class. |
4759 */ | 4872 */ |
4760 class SearchResultsParams implements HasToJson { | 4873 class SearchResultsParams implements HasToJson { |
4761 String _id; | 4874 String _id; |
4762 | 4875 |
4763 List<SearchResult> _results; | 4876 List<SearchResult> _results; |
4764 | 4877 |
4765 bool _isLast; | 4878 bool _isLast; |
4766 | 4879 |
4767 /** | 4880 /** |
4768 * The id associated with the search. | 4881 * The id associated with the search. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4811 this.isLast = isLast; | 4924 this.isLast = isLast; |
4812 } | 4925 } |
4813 | 4926 |
4814 factory SearchResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 4927 factory SearchResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
4815 if (json == null) { | 4928 if (json == null) { |
4816 json = {}; | 4929 json = {}; |
4817 } | 4930 } |
4818 if (json is Map) { | 4931 if (json is Map) { |
4819 String id; | 4932 String id; |
4820 if (json.containsKey("id")) { | 4933 if (json.containsKey("id")) { |
4821 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 4934 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4822 } else { | 4935 } else { |
4823 throw jsonDecoder.missingKey(jsonPath, "id"); | 4936 throw jsonDecoder.missingKey(jsonPath, "id"); |
4824 } | 4937 } |
4825 List<SearchResult> results; | 4938 List<SearchResult> results; |
4826 if (json.containsKey("results")) { | 4939 if (json.containsKey("results")) { |
4827 results = jsonDecoder._decodeList(jsonPath + ".results", json["results"]
, (String jsonPath, Object json) => new SearchResult.fromJson(jsonDecoder, jsonP
ath, json)); | 4940 results = jsonDecoder.decodeList(jsonPath + ".results", json["results"],
(String jsonPath, Object json) => new SearchResult.fromJson(jsonDecoder, jsonPa
th, json)); |
4828 } else { | 4941 } else { |
4829 throw jsonDecoder.missingKey(jsonPath, "results"); | 4942 throw jsonDecoder.missingKey(jsonPath, "results"); |
4830 } | 4943 } |
4831 bool isLast; | 4944 bool isLast; |
4832 if (json.containsKey("isLast")) { | 4945 if (json.containsKey("isLast")) { |
4833 isLast = jsonDecoder._decodeBool(jsonPath + ".isLast", json["isLast"]); | 4946 isLast = jsonDecoder.decodeBool(jsonPath + ".isLast", json["isLast"]); |
4834 } else { | 4947 } else { |
4835 throw jsonDecoder.missingKey(jsonPath, "isLast"); | 4948 throw jsonDecoder.missingKey(jsonPath, "isLast"); |
4836 } | 4949 } |
4837 return new SearchResultsParams(id, results, isLast); | 4950 return new SearchResultsParams(id, results, isLast); |
4838 } else { | 4951 } else { |
4839 throw jsonDecoder.mismatch(jsonPath, "search.results params", json); | 4952 throw jsonDecoder.mismatch(jsonPath, "search.results params", json); |
4840 } | 4953 } |
4841 } | 4954 } |
4842 | 4955 |
4843 factory SearchResultsParams.fromNotification(Notification notification) { | 4956 factory SearchResultsParams.fromNotification(Notification notification) { |
(...skipping 13 matching lines...) Expand all Loading... |
4857 return new Notification("search.results", toJson()); | 4970 return new Notification("search.results", toJson()); |
4858 } | 4971 } |
4859 | 4972 |
4860 @override | 4973 @override |
4861 String toString() => JSON.encode(toJson()); | 4974 String toString() => JSON.encode(toJson()); |
4862 | 4975 |
4863 @override | 4976 @override |
4864 bool operator==(other) { | 4977 bool operator==(other) { |
4865 if (other is SearchResultsParams) { | 4978 if (other is SearchResultsParams) { |
4866 return id == other.id && | 4979 return id == other.id && |
4867 _listEqual(results, other.results, (SearchResult a, SearchResult b) =>
a == b) && | 4980 listEqual(results, other.results, (SearchResult a, SearchResult b) =>
a == b) && |
4868 isLast == other.isLast; | 4981 isLast == other.isLast; |
4869 } | 4982 } |
4870 return false; | 4983 return false; |
4871 } | 4984 } |
4872 | 4985 |
4873 @override | 4986 @override |
4874 int get hashCode { | 4987 int get hashCode { |
4875 int hash = 0; | 4988 int hash = 0; |
4876 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 4989 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
4877 hash = _JenkinsSmiHash.combine(hash, results.hashCode); | 4990 hash = JenkinsSmiHash.combine(hash, results.hashCode); |
4878 hash = _JenkinsSmiHash.combine(hash, isLast.hashCode); | 4991 hash = JenkinsSmiHash.combine(hash, isLast.hashCode); |
4879 return _JenkinsSmiHash.finish(hash); | 4992 return JenkinsSmiHash.finish(hash); |
4880 } | 4993 } |
4881 } | 4994 } |
4882 | 4995 |
4883 /** | 4996 /** |
4884 * edit.format params | 4997 * edit.format params |
4885 * | 4998 * |
4886 * { | 4999 * { |
4887 * "file": FilePath | 5000 * "file": FilePath |
4888 * "selectionOffset": int | 5001 * "selectionOffset": int |
4889 * "selectionLength": int | 5002 * "selectionLength": int |
4890 * "lineLength": optional int | 5003 * "lineLength": optional int |
4891 * } | 5004 * } |
| 5005 * |
| 5006 * Clients are not expected to subtype this class. |
4892 */ | 5007 */ |
4893 class EditFormatParams implements HasToJson { | 5008 class EditFormatParams implements HasToJson { |
4894 String _file; | 5009 String _file; |
4895 | 5010 |
4896 int _selectionOffset; | 5011 int _selectionOffset; |
4897 | 5012 |
4898 int _selectionLength; | 5013 int _selectionLength; |
4899 | 5014 |
4900 int _lineLength; | 5015 int _lineLength; |
4901 | 5016 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4957 this.lineLength = lineLength; | 5072 this.lineLength = lineLength; |
4958 } | 5073 } |
4959 | 5074 |
4960 factory EditFormatParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 5075 factory EditFormatParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
4961 if (json == null) { | 5076 if (json == null) { |
4962 json = {}; | 5077 json = {}; |
4963 } | 5078 } |
4964 if (json is Map) { | 5079 if (json is Map) { |
4965 String file; | 5080 String file; |
4966 if (json.containsKey("file")) { | 5081 if (json.containsKey("file")) { |
4967 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 5082 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
4968 } else { | 5083 } else { |
4969 throw jsonDecoder.missingKey(jsonPath, "file"); | 5084 throw jsonDecoder.missingKey(jsonPath, "file"); |
4970 } | 5085 } |
4971 int selectionOffset; | 5086 int selectionOffset; |
4972 if (json.containsKey("selectionOffset")) { | 5087 if (json.containsKey("selectionOffset")) { |
4973 selectionOffset = jsonDecoder._decodeInt(jsonPath + ".selectionOffset",
json["selectionOffset"]); | 5088 selectionOffset = jsonDecoder.decodeInt(jsonPath + ".selectionOffset", j
son["selectionOffset"]); |
4974 } else { | 5089 } else { |
4975 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); | 5090 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); |
4976 } | 5091 } |
4977 int selectionLength; | 5092 int selectionLength; |
4978 if (json.containsKey("selectionLength")) { | 5093 if (json.containsKey("selectionLength")) { |
4979 selectionLength = jsonDecoder._decodeInt(jsonPath + ".selectionLength",
json["selectionLength"]); | 5094 selectionLength = jsonDecoder.decodeInt(jsonPath + ".selectionLength", j
son["selectionLength"]); |
4980 } else { | 5095 } else { |
4981 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); | 5096 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); |
4982 } | 5097 } |
4983 int lineLength; | 5098 int lineLength; |
4984 if (json.containsKey("lineLength")) { | 5099 if (json.containsKey("lineLength")) { |
4985 lineLength = jsonDecoder._decodeInt(jsonPath + ".lineLength", json["line
Length"]); | 5100 lineLength = jsonDecoder.decodeInt(jsonPath + ".lineLength", json["lineL
ength"]); |
4986 } | 5101 } |
4987 return new EditFormatParams(file, selectionOffset, selectionLength, lineLe
ngth: lineLength); | 5102 return new EditFormatParams(file, selectionOffset, selectionLength, lineLe
ngth: lineLength); |
4988 } else { | 5103 } else { |
4989 throw jsonDecoder.mismatch(jsonPath, "edit.format params", json); | 5104 throw jsonDecoder.mismatch(jsonPath, "edit.format params", json); |
4990 } | 5105 } |
4991 } | 5106 } |
4992 | 5107 |
4993 factory EditFormatParams.fromRequest(Request request) { | 5108 factory EditFormatParams.fromRequest(Request request) { |
4994 return new EditFormatParams.fromJson( | 5109 return new EditFormatParams.fromJson( |
4995 new RequestDecoder(request), "params", request._params); | 5110 new RequestDecoder(request), "params", request._params); |
(...skipping 24 matching lines...) Expand all Loading... |
5020 selectionOffset == other.selectionOffset && | 5135 selectionOffset == other.selectionOffset && |
5021 selectionLength == other.selectionLength && | 5136 selectionLength == other.selectionLength && |
5022 lineLength == other.lineLength; | 5137 lineLength == other.lineLength; |
5023 } | 5138 } |
5024 return false; | 5139 return false; |
5025 } | 5140 } |
5026 | 5141 |
5027 @override | 5142 @override |
5028 int get hashCode { | 5143 int get hashCode { |
5029 int hash = 0; | 5144 int hash = 0; |
5030 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 5145 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
5031 hash = _JenkinsSmiHash.combine(hash, selectionOffset.hashCode); | 5146 hash = JenkinsSmiHash.combine(hash, selectionOffset.hashCode); |
5032 hash = _JenkinsSmiHash.combine(hash, selectionLength.hashCode); | 5147 hash = JenkinsSmiHash.combine(hash, selectionLength.hashCode); |
5033 hash = _JenkinsSmiHash.combine(hash, lineLength.hashCode); | 5148 hash = JenkinsSmiHash.combine(hash, lineLength.hashCode); |
5034 return _JenkinsSmiHash.finish(hash); | 5149 return JenkinsSmiHash.finish(hash); |
5035 } | 5150 } |
5036 } | 5151 } |
5037 | 5152 |
5038 /** | 5153 /** |
5039 * edit.format result | 5154 * edit.format result |
5040 * | 5155 * |
5041 * { | 5156 * { |
5042 * "edits": List<SourceEdit> | 5157 * "edits": List<SourceEdit> |
5043 * "selectionOffset": int | 5158 * "selectionOffset": int |
5044 * "selectionLength": int | 5159 * "selectionLength": int |
5045 * } | 5160 * } |
| 5161 * |
| 5162 * Clients are not expected to subtype this class. |
5046 */ | 5163 */ |
5047 class EditFormatResult implements HasToJson { | 5164 class EditFormatResult implements HasToJson { |
5048 List<SourceEdit> _edits; | 5165 List<SourceEdit> _edits; |
5049 | 5166 |
5050 int _selectionOffset; | 5167 int _selectionOffset; |
5051 | 5168 |
5052 int _selectionLength; | 5169 int _selectionLength; |
5053 | 5170 |
5054 /** | 5171 /** |
5055 * The edit(s) to be applied in order to format the code. The list will be | 5172 * The edit(s) to be applied in order to format the code. The list will be |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5098 this.selectionLength = selectionLength; | 5215 this.selectionLength = selectionLength; |
5099 } | 5216 } |
5100 | 5217 |
5101 factory EditFormatResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 5218 factory EditFormatResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
5102 if (json == null) { | 5219 if (json == null) { |
5103 json = {}; | 5220 json = {}; |
5104 } | 5221 } |
5105 if (json is Map) { | 5222 if (json is Map) { |
5106 List<SourceEdit> edits; | 5223 List<SourceEdit> edits; |
5107 if (json.containsKey("edits")) { | 5224 if (json.containsKey("edits")) { |
5108 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str
ing jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, jso
n)); | 5225 edits = jsonDecoder.decodeList(jsonPath + ".edits", json["edits"], (Stri
ng jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, json
)); |
5109 } else { | 5226 } else { |
5110 throw jsonDecoder.missingKey(jsonPath, "edits"); | 5227 throw jsonDecoder.missingKey(jsonPath, "edits"); |
5111 } | 5228 } |
5112 int selectionOffset; | 5229 int selectionOffset; |
5113 if (json.containsKey("selectionOffset")) { | 5230 if (json.containsKey("selectionOffset")) { |
5114 selectionOffset = jsonDecoder._decodeInt(jsonPath + ".selectionOffset",
json["selectionOffset"]); | 5231 selectionOffset = jsonDecoder.decodeInt(jsonPath + ".selectionOffset", j
son["selectionOffset"]); |
5115 } else { | 5232 } else { |
5116 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); | 5233 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); |
5117 } | 5234 } |
5118 int selectionLength; | 5235 int selectionLength; |
5119 if (json.containsKey("selectionLength")) { | 5236 if (json.containsKey("selectionLength")) { |
5120 selectionLength = jsonDecoder._decodeInt(jsonPath + ".selectionLength",
json["selectionLength"]); | 5237 selectionLength = jsonDecoder.decodeInt(jsonPath + ".selectionLength", j
son["selectionLength"]); |
5121 } else { | 5238 } else { |
5122 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); | 5239 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); |
5123 } | 5240 } |
5124 return new EditFormatResult(edits, selectionOffset, selectionLength); | 5241 return new EditFormatResult(edits, selectionOffset, selectionLength); |
5125 } else { | 5242 } else { |
5126 throw jsonDecoder.mismatch(jsonPath, "edit.format result", json); | 5243 throw jsonDecoder.mismatch(jsonPath, "edit.format result", json); |
5127 } | 5244 } |
5128 } | 5245 } |
5129 | 5246 |
5130 factory EditFormatResult.fromResponse(Response response) { | 5247 factory EditFormatResult.fromResponse(Response response) { |
(...skipping 12 matching lines...) Expand all Loading... |
5143 Response toResponse(String id) { | 5260 Response toResponse(String id) { |
5144 return new Response(id, result: toJson()); | 5261 return new Response(id, result: toJson()); |
5145 } | 5262 } |
5146 | 5263 |
5147 @override | 5264 @override |
5148 String toString() => JSON.encode(toJson()); | 5265 String toString() => JSON.encode(toJson()); |
5149 | 5266 |
5150 @override | 5267 @override |
5151 bool operator==(other) { | 5268 bool operator==(other) { |
5152 if (other is EditFormatResult) { | 5269 if (other is EditFormatResult) { |
5153 return _listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a ==
b) && | 5270 return listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a ==
b) && |
5154 selectionOffset == other.selectionOffset && | 5271 selectionOffset == other.selectionOffset && |
5155 selectionLength == other.selectionLength; | 5272 selectionLength == other.selectionLength; |
5156 } | 5273 } |
5157 return false; | 5274 return false; |
5158 } | 5275 } |
5159 | 5276 |
5160 @override | 5277 @override |
5161 int get hashCode { | 5278 int get hashCode { |
5162 int hash = 0; | 5279 int hash = 0; |
5163 hash = _JenkinsSmiHash.combine(hash, edits.hashCode); | 5280 hash = JenkinsSmiHash.combine(hash, edits.hashCode); |
5164 hash = _JenkinsSmiHash.combine(hash, selectionOffset.hashCode); | 5281 hash = JenkinsSmiHash.combine(hash, selectionOffset.hashCode); |
5165 hash = _JenkinsSmiHash.combine(hash, selectionLength.hashCode); | 5282 hash = JenkinsSmiHash.combine(hash, selectionLength.hashCode); |
5166 return _JenkinsSmiHash.finish(hash); | 5283 return JenkinsSmiHash.finish(hash); |
5167 } | 5284 } |
5168 } | 5285 } |
5169 | 5286 |
5170 /** | 5287 /** |
5171 * edit.getAssists params | 5288 * edit.getAssists params |
5172 * | 5289 * |
5173 * { | 5290 * { |
5174 * "file": FilePath | 5291 * "file": FilePath |
5175 * "offset": int | 5292 * "offset": int |
5176 * "length": int | 5293 * "length": int |
5177 * } | 5294 * } |
| 5295 * |
| 5296 * Clients are not expected to subtype this class. |
5178 */ | 5297 */ |
5179 class EditGetAssistsParams implements HasToJson { | 5298 class EditGetAssistsParams implements HasToJson { |
5180 String _file; | 5299 String _file; |
5181 | 5300 |
5182 int _offset; | 5301 int _offset; |
5183 | 5302 |
5184 int _length; | 5303 int _length; |
5185 | 5304 |
5186 /** | 5305 /** |
5187 * The file containing the code for which assists are being requested. | 5306 * The file containing the code for which assists are being requested. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5228 this.length = length; | 5347 this.length = length; |
5229 } | 5348 } |
5230 | 5349 |
5231 factory EditGetAssistsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 5350 factory EditGetAssistsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
5232 if (json == null) { | 5351 if (json == null) { |
5233 json = {}; | 5352 json = {}; |
5234 } | 5353 } |
5235 if (json is Map) { | 5354 if (json is Map) { |
5236 String file; | 5355 String file; |
5237 if (json.containsKey("file")) { | 5356 if (json.containsKey("file")) { |
5238 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 5357 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
5239 } else { | 5358 } else { |
5240 throw jsonDecoder.missingKey(jsonPath, "file"); | 5359 throw jsonDecoder.missingKey(jsonPath, "file"); |
5241 } | 5360 } |
5242 int offset; | 5361 int offset; |
5243 if (json.containsKey("offset")) { | 5362 if (json.containsKey("offset")) { |
5244 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 5363 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
5245 } else { | 5364 } else { |
5246 throw jsonDecoder.missingKey(jsonPath, "offset"); | 5365 throw jsonDecoder.missingKey(jsonPath, "offset"); |
5247 } | 5366 } |
5248 int length; | 5367 int length; |
5249 if (json.containsKey("length")) { | 5368 if (json.containsKey("length")) { |
5250 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 5369 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
5251 } else { | 5370 } else { |
5252 throw jsonDecoder.missingKey(jsonPath, "length"); | 5371 throw jsonDecoder.missingKey(jsonPath, "length"); |
5253 } | 5372 } |
5254 return new EditGetAssistsParams(file, offset, length); | 5373 return new EditGetAssistsParams(file, offset, length); |
5255 } else { | 5374 } else { |
5256 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists params", json); | 5375 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists params", json); |
5257 } | 5376 } |
5258 } | 5377 } |
5259 | 5378 |
5260 factory EditGetAssistsParams.fromRequest(Request request) { | 5379 factory EditGetAssistsParams.fromRequest(Request request) { |
(...skipping 22 matching lines...) Expand all Loading... |
5283 return file == other.file && | 5402 return file == other.file && |
5284 offset == other.offset && | 5403 offset == other.offset && |
5285 length == other.length; | 5404 length == other.length; |
5286 } | 5405 } |
5287 return false; | 5406 return false; |
5288 } | 5407 } |
5289 | 5408 |
5290 @override | 5409 @override |
5291 int get hashCode { | 5410 int get hashCode { |
5292 int hash = 0; | 5411 int hash = 0; |
5293 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 5412 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
5294 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 5413 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
5295 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 5414 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
5296 return _JenkinsSmiHash.finish(hash); | 5415 return JenkinsSmiHash.finish(hash); |
5297 } | 5416 } |
5298 } | 5417 } |
5299 | 5418 |
5300 /** | 5419 /** |
5301 * edit.getAssists result | 5420 * edit.getAssists result |
5302 * | 5421 * |
5303 * { | 5422 * { |
5304 * "assists": List<SourceChange> | 5423 * "assists": List<SourceChange> |
5305 * } | 5424 * } |
| 5425 * |
| 5426 * Clients are not expected to subtype this class. |
5306 */ | 5427 */ |
5307 class EditGetAssistsResult implements HasToJson { | 5428 class EditGetAssistsResult implements HasToJson { |
5308 List<SourceChange> _assists; | 5429 List<SourceChange> _assists; |
5309 | 5430 |
5310 /** | 5431 /** |
5311 * The assists that are available at the given location. | 5432 * The assists that are available at the given location. |
5312 */ | 5433 */ |
5313 List<SourceChange> get assists => _assists; | 5434 List<SourceChange> get assists => _assists; |
5314 | 5435 |
5315 /** | 5436 /** |
5316 * The assists that are available at the given location. | 5437 * The assists that are available at the given location. |
5317 */ | 5438 */ |
5318 void set assists(List<SourceChange> value) { | 5439 void set assists(List<SourceChange> value) { |
5319 assert(value != null); | 5440 assert(value != null); |
5320 this._assists = value; | 5441 this._assists = value; |
5321 } | 5442 } |
5322 | 5443 |
5323 EditGetAssistsResult(List<SourceChange> assists) { | 5444 EditGetAssistsResult(List<SourceChange> assists) { |
5324 this.assists = assists; | 5445 this.assists = assists; |
5325 } | 5446 } |
5326 | 5447 |
5327 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 5448 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
5328 if (json == null) { | 5449 if (json == null) { |
5329 json = {}; | 5450 json = {}; |
5330 } | 5451 } |
5331 if (json is Map) { | 5452 if (json is Map) { |
5332 List<SourceChange> assists; | 5453 List<SourceChange> assists; |
5333 if (json.containsKey("assists")) { | 5454 if (json.containsKey("assists")) { |
5334 assists = jsonDecoder._decodeList(jsonPath + ".assists", json["assists"]
, (String jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonP
ath, json)); | 5455 assists = jsonDecoder.decodeList(jsonPath + ".assists", json["assists"],
(String jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonPa
th, json)); |
5335 } else { | 5456 } else { |
5336 throw jsonDecoder.missingKey(jsonPath, "assists"); | 5457 throw jsonDecoder.missingKey(jsonPath, "assists"); |
5337 } | 5458 } |
5338 return new EditGetAssistsResult(assists); | 5459 return new EditGetAssistsResult(assists); |
5339 } else { | 5460 } else { |
5340 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result", json); | 5461 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result", json); |
5341 } | 5462 } |
5342 } | 5463 } |
5343 | 5464 |
5344 factory EditGetAssistsResult.fromResponse(Response response) { | 5465 factory EditGetAssistsResult.fromResponse(Response response) { |
(...skipping 10 matching lines...) Expand all Loading... |
5355 Response toResponse(String id) { | 5476 Response toResponse(String id) { |
5356 return new Response(id, result: toJson()); | 5477 return new Response(id, result: toJson()); |
5357 } | 5478 } |
5358 | 5479 |
5359 @override | 5480 @override |
5360 String toString() => JSON.encode(toJson()); | 5481 String toString() => JSON.encode(toJson()); |
5361 | 5482 |
5362 @override | 5483 @override |
5363 bool operator==(other) { | 5484 bool operator==(other) { |
5364 if (other is EditGetAssistsResult) { | 5485 if (other is EditGetAssistsResult) { |
5365 return _listEqual(assists, other.assists, (SourceChange a, SourceChange b)
=> a == b); | 5486 return listEqual(assists, other.assists, (SourceChange a, SourceChange b)
=> a == b); |
5366 } | 5487 } |
5367 return false; | 5488 return false; |
5368 } | 5489 } |
5369 | 5490 |
5370 @override | 5491 @override |
5371 int get hashCode { | 5492 int get hashCode { |
5372 int hash = 0; | 5493 int hash = 0; |
5373 hash = _JenkinsSmiHash.combine(hash, assists.hashCode); | 5494 hash = JenkinsSmiHash.combine(hash, assists.hashCode); |
5374 return _JenkinsSmiHash.finish(hash); | 5495 return JenkinsSmiHash.finish(hash); |
5375 } | 5496 } |
5376 } | 5497 } |
5377 | 5498 |
5378 /** | 5499 /** |
5379 * edit.getAvailableRefactorings params | 5500 * edit.getAvailableRefactorings params |
5380 * | 5501 * |
5381 * { | 5502 * { |
5382 * "file": FilePath | 5503 * "file": FilePath |
5383 * "offset": int | 5504 * "offset": int |
5384 * "length": int | 5505 * "length": int |
5385 * } | 5506 * } |
| 5507 * |
| 5508 * Clients are not expected to subtype this class. |
5386 */ | 5509 */ |
5387 class EditGetAvailableRefactoringsParams implements HasToJson { | 5510 class EditGetAvailableRefactoringsParams implements HasToJson { |
5388 String _file; | 5511 String _file; |
5389 | 5512 |
5390 int _offset; | 5513 int _offset; |
5391 | 5514 |
5392 int _length; | 5515 int _length; |
5393 | 5516 |
5394 /** | 5517 /** |
5395 * The file containing the code on which the refactoring would be based. | 5518 * The file containing the code on which the refactoring would be based. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5436 this.length = length; | 5559 this.length = length; |
5437 } | 5560 } |
5438 | 5561 |
5439 factory EditGetAvailableRefactoringsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 5562 factory EditGetAvailableRefactoringsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
5440 if (json == null) { | 5563 if (json == null) { |
5441 json = {}; | 5564 json = {}; |
5442 } | 5565 } |
5443 if (json is Map) { | 5566 if (json is Map) { |
5444 String file; | 5567 String file; |
5445 if (json.containsKey("file")) { | 5568 if (json.containsKey("file")) { |
5446 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 5569 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
5447 } else { | 5570 } else { |
5448 throw jsonDecoder.missingKey(jsonPath, "file"); | 5571 throw jsonDecoder.missingKey(jsonPath, "file"); |
5449 } | 5572 } |
5450 int offset; | 5573 int offset; |
5451 if (json.containsKey("offset")) { | 5574 if (json.containsKey("offset")) { |
5452 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 5575 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
5453 } else { | 5576 } else { |
5454 throw jsonDecoder.missingKey(jsonPath, "offset"); | 5577 throw jsonDecoder.missingKey(jsonPath, "offset"); |
5455 } | 5578 } |
5456 int length; | 5579 int length; |
5457 if (json.containsKey("length")) { | 5580 if (json.containsKey("length")) { |
5458 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 5581 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
5459 } else { | 5582 } else { |
5460 throw jsonDecoder.missingKey(jsonPath, "length"); | 5583 throw jsonDecoder.missingKey(jsonPath, "length"); |
5461 } | 5584 } |
5462 return new EditGetAvailableRefactoringsParams(file, offset, length); | 5585 return new EditGetAvailableRefactoringsParams(file, offset, length); |
5463 } else { | 5586 } else { |
5464 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings params
", json); | 5587 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings params
", json); |
5465 } | 5588 } |
5466 } | 5589 } |
5467 | 5590 |
5468 factory EditGetAvailableRefactoringsParams.fromRequest(Request request) { | 5591 factory EditGetAvailableRefactoringsParams.fromRequest(Request request) { |
(...skipping 22 matching lines...) Expand all Loading... |
5491 return file == other.file && | 5614 return file == other.file && |
5492 offset == other.offset && | 5615 offset == other.offset && |
5493 length == other.length; | 5616 length == other.length; |
5494 } | 5617 } |
5495 return false; | 5618 return false; |
5496 } | 5619 } |
5497 | 5620 |
5498 @override | 5621 @override |
5499 int get hashCode { | 5622 int get hashCode { |
5500 int hash = 0; | 5623 int hash = 0; |
5501 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 5624 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
5502 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 5625 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
5503 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 5626 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
5504 return _JenkinsSmiHash.finish(hash); | 5627 return JenkinsSmiHash.finish(hash); |
5505 } | 5628 } |
5506 } | 5629 } |
5507 | 5630 |
5508 /** | 5631 /** |
5509 * edit.getAvailableRefactorings result | 5632 * edit.getAvailableRefactorings result |
5510 * | 5633 * |
5511 * { | 5634 * { |
5512 * "kinds": List<RefactoringKind> | 5635 * "kinds": List<RefactoringKind> |
5513 * } | 5636 * } |
| 5637 * |
| 5638 * Clients are not expected to subtype this class. |
5514 */ | 5639 */ |
5515 class EditGetAvailableRefactoringsResult implements HasToJson { | 5640 class EditGetAvailableRefactoringsResult implements HasToJson { |
5516 List<RefactoringKind> _kinds; | 5641 List<RefactoringKind> _kinds; |
5517 | 5642 |
5518 /** | 5643 /** |
5519 * The kinds of refactorings that are valid for the given selection. | 5644 * The kinds of refactorings that are valid for the given selection. |
5520 */ | 5645 */ |
5521 List<RefactoringKind> get kinds => _kinds; | 5646 List<RefactoringKind> get kinds => _kinds; |
5522 | 5647 |
5523 /** | 5648 /** |
5524 * The kinds of refactorings that are valid for the given selection. | 5649 * The kinds of refactorings that are valid for the given selection. |
5525 */ | 5650 */ |
5526 void set kinds(List<RefactoringKind> value) { | 5651 void set kinds(List<RefactoringKind> value) { |
5527 assert(value != null); | 5652 assert(value != null); |
5528 this._kinds = value; | 5653 this._kinds = value; |
5529 } | 5654 } |
5530 | 5655 |
5531 EditGetAvailableRefactoringsResult(List<RefactoringKind> kinds) { | 5656 EditGetAvailableRefactoringsResult(List<RefactoringKind> kinds) { |
5532 this.kinds = kinds; | 5657 this.kinds = kinds; |
5533 } | 5658 } |
5534 | 5659 |
5535 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 5660 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
5536 if (json == null) { | 5661 if (json == null) { |
5537 json = {}; | 5662 json = {}; |
5538 } | 5663 } |
5539 if (json is Map) { | 5664 if (json is Map) { |
5540 List<RefactoringKind> kinds; | 5665 List<RefactoringKind> kinds; |
5541 if (json.containsKey("kinds")) { | 5666 if (json.containsKey("kinds")) { |
5542 kinds = jsonDecoder._decodeList(jsonPath + ".kinds", json["kinds"], (Str
ing jsonPath, Object json) => new RefactoringKind.fromJson(jsonDecoder, jsonPath
, json)); | 5667 kinds = jsonDecoder.decodeList(jsonPath + ".kinds", json["kinds"], (Stri
ng jsonPath, Object json) => new RefactoringKind.fromJson(jsonDecoder, jsonPath,
json)); |
5543 } else { | 5668 } else { |
5544 throw jsonDecoder.missingKey(jsonPath, "kinds"); | 5669 throw jsonDecoder.missingKey(jsonPath, "kinds"); |
5545 } | 5670 } |
5546 return new EditGetAvailableRefactoringsResult(kinds); | 5671 return new EditGetAvailableRefactoringsResult(kinds); |
5547 } else { | 5672 } else { |
5548 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings result
", json); | 5673 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings result
", json); |
5549 } | 5674 } |
5550 } | 5675 } |
5551 | 5676 |
5552 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) { | 5677 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) { |
(...skipping 10 matching lines...) Expand all Loading... |
5563 Response toResponse(String id) { | 5688 Response toResponse(String id) { |
5564 return new Response(id, result: toJson()); | 5689 return new Response(id, result: toJson()); |
5565 } | 5690 } |
5566 | 5691 |
5567 @override | 5692 @override |
5568 String toString() => JSON.encode(toJson()); | 5693 String toString() => JSON.encode(toJson()); |
5569 | 5694 |
5570 @override | 5695 @override |
5571 bool operator==(other) { | 5696 bool operator==(other) { |
5572 if (other is EditGetAvailableRefactoringsResult) { | 5697 if (other is EditGetAvailableRefactoringsResult) { |
5573 return _listEqual(kinds, other.kinds, (RefactoringKind a, RefactoringKind
b) => a == b); | 5698 return listEqual(kinds, other.kinds, (RefactoringKind a, RefactoringKind b
) => a == b); |
5574 } | 5699 } |
5575 return false; | 5700 return false; |
5576 } | 5701 } |
5577 | 5702 |
5578 @override | 5703 @override |
5579 int get hashCode { | 5704 int get hashCode { |
5580 int hash = 0; | 5705 int hash = 0; |
5581 hash = _JenkinsSmiHash.combine(hash, kinds.hashCode); | 5706 hash = JenkinsSmiHash.combine(hash, kinds.hashCode); |
5582 return _JenkinsSmiHash.finish(hash); | 5707 return JenkinsSmiHash.finish(hash); |
5583 } | 5708 } |
5584 } | 5709 } |
5585 | 5710 |
5586 /** | 5711 /** |
5587 * edit.getFixes params | 5712 * edit.getFixes params |
5588 * | 5713 * |
5589 * { | 5714 * { |
5590 * "file": FilePath | 5715 * "file": FilePath |
5591 * "offset": int | 5716 * "offset": int |
5592 * } | 5717 * } |
| 5718 * |
| 5719 * Clients are not expected to subtype this class. |
5593 */ | 5720 */ |
5594 class EditGetFixesParams implements HasToJson { | 5721 class EditGetFixesParams implements HasToJson { |
5595 String _file; | 5722 String _file; |
5596 | 5723 |
5597 int _offset; | 5724 int _offset; |
5598 | 5725 |
5599 /** | 5726 /** |
5600 * The file containing the errors for which fixes are being requested. | 5727 * The file containing the errors for which fixes are being requested. |
5601 */ | 5728 */ |
5602 String get file => _file; | 5729 String get file => _file; |
(...skipping 24 matching lines...) Expand all Loading... |
5627 this.offset = offset; | 5754 this.offset = offset; |
5628 } | 5755 } |
5629 | 5756 |
5630 factory EditGetFixesParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 5757 factory EditGetFixesParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
5631 if (json == null) { | 5758 if (json == null) { |
5632 json = {}; | 5759 json = {}; |
5633 } | 5760 } |
5634 if (json is Map) { | 5761 if (json is Map) { |
5635 String file; | 5762 String file; |
5636 if (json.containsKey("file")) { | 5763 if (json.containsKey("file")) { |
5637 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 5764 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
5638 } else { | 5765 } else { |
5639 throw jsonDecoder.missingKey(jsonPath, "file"); | 5766 throw jsonDecoder.missingKey(jsonPath, "file"); |
5640 } | 5767 } |
5641 int offset; | 5768 int offset; |
5642 if (json.containsKey("offset")) { | 5769 if (json.containsKey("offset")) { |
5643 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 5770 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
5644 } else { | 5771 } else { |
5645 throw jsonDecoder.missingKey(jsonPath, "offset"); | 5772 throw jsonDecoder.missingKey(jsonPath, "offset"); |
5646 } | 5773 } |
5647 return new EditGetFixesParams(file, offset); | 5774 return new EditGetFixesParams(file, offset); |
5648 } else { | 5775 } else { |
5649 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes params", json); | 5776 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes params", json); |
5650 } | 5777 } |
5651 } | 5778 } |
5652 | 5779 |
5653 factory EditGetFixesParams.fromRequest(Request request) { | 5780 factory EditGetFixesParams.fromRequest(Request request) { |
(...skipping 20 matching lines...) Expand all Loading... |
5674 if (other is EditGetFixesParams) { | 5801 if (other is EditGetFixesParams) { |
5675 return file == other.file && | 5802 return file == other.file && |
5676 offset == other.offset; | 5803 offset == other.offset; |
5677 } | 5804 } |
5678 return false; | 5805 return false; |
5679 } | 5806 } |
5680 | 5807 |
5681 @override | 5808 @override |
5682 int get hashCode { | 5809 int get hashCode { |
5683 int hash = 0; | 5810 int hash = 0; |
5684 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 5811 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
5685 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 5812 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
5686 return _JenkinsSmiHash.finish(hash); | 5813 return JenkinsSmiHash.finish(hash); |
5687 } | 5814 } |
5688 } | 5815 } |
5689 | 5816 |
5690 /** | 5817 /** |
5691 * edit.getFixes result | 5818 * edit.getFixes result |
5692 * | 5819 * |
5693 * { | 5820 * { |
5694 * "fixes": List<AnalysisErrorFixes> | 5821 * "fixes": List<AnalysisErrorFixes> |
5695 * } | 5822 * } |
| 5823 * |
| 5824 * Clients are not expected to subtype this class. |
5696 */ | 5825 */ |
5697 class EditGetFixesResult implements HasToJson { | 5826 class EditGetFixesResult implements HasToJson { |
5698 List<AnalysisErrorFixes> _fixes; | 5827 List<AnalysisErrorFixes> _fixes; |
5699 | 5828 |
5700 /** | 5829 /** |
5701 * The fixes that are available for the errors at the given offset. | 5830 * The fixes that are available for the errors at the given offset. |
5702 */ | 5831 */ |
5703 List<AnalysisErrorFixes> get fixes => _fixes; | 5832 List<AnalysisErrorFixes> get fixes => _fixes; |
5704 | 5833 |
5705 /** | 5834 /** |
5706 * The fixes that are available for the errors at the given offset. | 5835 * The fixes that are available for the errors at the given offset. |
5707 */ | 5836 */ |
5708 void set fixes(List<AnalysisErrorFixes> value) { | 5837 void set fixes(List<AnalysisErrorFixes> value) { |
5709 assert(value != null); | 5838 assert(value != null); |
5710 this._fixes = value; | 5839 this._fixes = value; |
5711 } | 5840 } |
5712 | 5841 |
5713 EditGetFixesResult(List<AnalysisErrorFixes> fixes) { | 5842 EditGetFixesResult(List<AnalysisErrorFixes> fixes) { |
5714 this.fixes = fixes; | 5843 this.fixes = fixes; |
5715 } | 5844 } |
5716 | 5845 |
5717 factory EditGetFixesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 5846 factory EditGetFixesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
5718 if (json == null) { | 5847 if (json == null) { |
5719 json = {}; | 5848 json = {}; |
5720 } | 5849 } |
5721 if (json is Map) { | 5850 if (json is Map) { |
5722 List<AnalysisErrorFixes> fixes; | 5851 List<AnalysisErrorFixes> fixes; |
5723 if (json.containsKey("fixes")) { | 5852 if (json.containsKey("fixes")) { |
5724 fixes = jsonDecoder._decodeList(jsonPath + ".fixes", json["fixes"], (Str
ing jsonPath, Object json) => new AnalysisErrorFixes.fromJson(jsonDecoder, jsonP
ath, json)); | 5853 fixes = jsonDecoder.decodeList(jsonPath + ".fixes", json["fixes"], (Stri
ng jsonPath, Object json) => new AnalysisErrorFixes.fromJson(jsonDecoder, jsonPa
th, json)); |
5725 } else { | 5854 } else { |
5726 throw jsonDecoder.missingKey(jsonPath, "fixes"); | 5855 throw jsonDecoder.missingKey(jsonPath, "fixes"); |
5727 } | 5856 } |
5728 return new EditGetFixesResult(fixes); | 5857 return new EditGetFixesResult(fixes); |
5729 } else { | 5858 } else { |
5730 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result", json); | 5859 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result", json); |
5731 } | 5860 } |
5732 } | 5861 } |
5733 | 5862 |
5734 factory EditGetFixesResult.fromResponse(Response response) { | 5863 factory EditGetFixesResult.fromResponse(Response response) { |
(...skipping 10 matching lines...) Expand all Loading... |
5745 Response toResponse(String id) { | 5874 Response toResponse(String id) { |
5746 return new Response(id, result: toJson()); | 5875 return new Response(id, result: toJson()); |
5747 } | 5876 } |
5748 | 5877 |
5749 @override | 5878 @override |
5750 String toString() => JSON.encode(toJson()); | 5879 String toString() => JSON.encode(toJson()); |
5751 | 5880 |
5752 @override | 5881 @override |
5753 bool operator==(other) { | 5882 bool operator==(other) { |
5754 if (other is EditGetFixesResult) { | 5883 if (other is EditGetFixesResult) { |
5755 return _listEqual(fixes, other.fixes, (AnalysisErrorFixes a, AnalysisError
Fixes b) => a == b); | 5884 return listEqual(fixes, other.fixes, (AnalysisErrorFixes a, AnalysisErrorF
ixes b) => a == b); |
5756 } | 5885 } |
5757 return false; | 5886 return false; |
5758 } | 5887 } |
5759 | 5888 |
5760 @override | 5889 @override |
5761 int get hashCode { | 5890 int get hashCode { |
5762 int hash = 0; | 5891 int hash = 0; |
5763 hash = _JenkinsSmiHash.combine(hash, fixes.hashCode); | 5892 hash = JenkinsSmiHash.combine(hash, fixes.hashCode); |
5764 return _JenkinsSmiHash.finish(hash); | 5893 return JenkinsSmiHash.finish(hash); |
5765 } | 5894 } |
5766 } | 5895 } |
5767 | 5896 |
5768 /** | 5897 /** |
5769 * edit.getRefactoring params | 5898 * edit.getRefactoring params |
5770 * | 5899 * |
5771 * { | 5900 * { |
5772 * "kind": RefactoringKind | 5901 * "kind": RefactoringKind |
5773 * "file": FilePath | 5902 * "file": FilePath |
5774 * "offset": int | 5903 * "offset": int |
5775 * "length": int | 5904 * "length": int |
5776 * "validateOnly": bool | 5905 * "validateOnly": bool |
5777 * "options": optional RefactoringOptions | 5906 * "options": optional RefactoringOptions |
5778 * } | 5907 * } |
| 5908 * |
| 5909 * Clients are not expected to subtype this class. |
5779 */ | 5910 */ |
5780 class EditGetRefactoringParams implements HasToJson { | 5911 class EditGetRefactoringParams implements HasToJson { |
5781 RefactoringKind _kind; | 5912 RefactoringKind _kind; |
5782 | 5913 |
5783 String _file; | 5914 String _file; |
5784 | 5915 |
5785 int _offset; | 5916 int _offset; |
5786 | 5917 |
5787 int _length; | 5918 int _length; |
5788 | 5919 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5892 } | 6023 } |
5893 if (json is Map) { | 6024 if (json is Map) { |
5894 RefactoringKind kind; | 6025 RefactoringKind kind; |
5895 if (json.containsKey("kind")) { | 6026 if (json.containsKey("kind")) { |
5896 kind = new RefactoringKind.fromJson(jsonDecoder, jsonPath + ".kind", jso
n["kind"]); | 6027 kind = new RefactoringKind.fromJson(jsonDecoder, jsonPath + ".kind", jso
n["kind"]); |
5897 } else { | 6028 } else { |
5898 throw jsonDecoder.missingKey(jsonPath, "kind"); | 6029 throw jsonDecoder.missingKey(jsonPath, "kind"); |
5899 } | 6030 } |
5900 String file; | 6031 String file; |
5901 if (json.containsKey("file")) { | 6032 if (json.containsKey("file")) { |
5902 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 6033 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
5903 } else { | 6034 } else { |
5904 throw jsonDecoder.missingKey(jsonPath, "file"); | 6035 throw jsonDecoder.missingKey(jsonPath, "file"); |
5905 } | 6036 } |
5906 int offset; | 6037 int offset; |
5907 if (json.containsKey("offset")) { | 6038 if (json.containsKey("offset")) { |
5908 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 6039 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
5909 } else { | 6040 } else { |
5910 throw jsonDecoder.missingKey(jsonPath, "offset"); | 6041 throw jsonDecoder.missingKey(jsonPath, "offset"); |
5911 } | 6042 } |
5912 int length; | 6043 int length; |
5913 if (json.containsKey("length")) { | 6044 if (json.containsKey("length")) { |
5914 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 6045 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
5915 } else { | 6046 } else { |
5916 throw jsonDecoder.missingKey(jsonPath, "length"); | 6047 throw jsonDecoder.missingKey(jsonPath, "length"); |
5917 } | 6048 } |
5918 bool validateOnly; | 6049 bool validateOnly; |
5919 if (json.containsKey("validateOnly")) { | 6050 if (json.containsKey("validateOnly")) { |
5920 validateOnly = jsonDecoder._decodeBool(jsonPath + ".validateOnly", json[
"validateOnly"]); | 6051 validateOnly = jsonDecoder.decodeBool(jsonPath + ".validateOnly", json["
validateOnly"]); |
5921 } else { | 6052 } else { |
5922 throw jsonDecoder.missingKey(jsonPath, "validateOnly"); | 6053 throw jsonDecoder.missingKey(jsonPath, "validateOnly"); |
5923 } | 6054 } |
5924 RefactoringOptions options; | 6055 RefactoringOptions options; |
5925 if (json.containsKey("options")) { | 6056 if (json.containsKey("options")) { |
5926 options = new RefactoringOptions.fromJson(jsonDecoder, jsonPath + ".opti
ons", json["options"], kind); | 6057 options = new RefactoringOptions.fromJson(jsonDecoder, jsonPath + ".opti
ons", json["options"], kind); |
5927 } | 6058 } |
5928 return new EditGetRefactoringParams(kind, file, offset, length, validateOn
ly, options: options); | 6059 return new EditGetRefactoringParams(kind, file, offset, length, validateOn
ly, options: options); |
5929 } else { | 6060 } else { |
5930 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params", json); | 6061 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params", json); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5967 length == other.length && | 6098 length == other.length && |
5968 validateOnly == other.validateOnly && | 6099 validateOnly == other.validateOnly && |
5969 options == other.options; | 6100 options == other.options; |
5970 } | 6101 } |
5971 return false; | 6102 return false; |
5972 } | 6103 } |
5973 | 6104 |
5974 @override | 6105 @override |
5975 int get hashCode { | 6106 int get hashCode { |
5976 int hash = 0; | 6107 int hash = 0; |
5977 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 6108 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
5978 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 6109 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
5979 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 6110 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
5980 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 6111 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
5981 hash = _JenkinsSmiHash.combine(hash, validateOnly.hashCode); | 6112 hash = JenkinsSmiHash.combine(hash, validateOnly.hashCode); |
5982 hash = _JenkinsSmiHash.combine(hash, options.hashCode); | 6113 hash = JenkinsSmiHash.combine(hash, options.hashCode); |
5983 return _JenkinsSmiHash.finish(hash); | 6114 return JenkinsSmiHash.finish(hash); |
5984 } | 6115 } |
5985 } | 6116 } |
5986 | 6117 |
5987 /** | 6118 /** |
5988 * edit.getRefactoring result | 6119 * edit.getRefactoring result |
5989 * | 6120 * |
5990 * { | 6121 * { |
5991 * "initialProblems": List<RefactoringProblem> | 6122 * "initialProblems": List<RefactoringProblem> |
5992 * "optionsProblems": List<RefactoringProblem> | 6123 * "optionsProblems": List<RefactoringProblem> |
5993 * "finalProblems": List<RefactoringProblem> | 6124 * "finalProblems": List<RefactoringProblem> |
5994 * "feedback": optional RefactoringFeedback | 6125 * "feedback": optional RefactoringFeedback |
5995 * "change": optional SourceChange | 6126 * "change": optional SourceChange |
5996 * "potentialEdits": optional List<String> | 6127 * "potentialEdits": optional List<String> |
5997 * } | 6128 * } |
| 6129 * |
| 6130 * Clients are not expected to subtype this class. |
5998 */ | 6131 */ |
5999 class EditGetRefactoringResult implements HasToJson { | 6132 class EditGetRefactoringResult implements HasToJson { |
6000 List<RefactoringProblem> _initialProblems; | 6133 List<RefactoringProblem> _initialProblems; |
6001 | 6134 |
6002 List<RefactoringProblem> _optionsProblems; | 6135 List<RefactoringProblem> _optionsProblems; |
6003 | 6136 |
6004 List<RefactoringProblem> _finalProblems; | 6137 List<RefactoringProblem> _finalProblems; |
6005 | 6138 |
6006 RefactoringFeedback _feedback; | 6139 RefactoringFeedback _feedback; |
6007 | 6140 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6127 this.potentialEdits = potentialEdits; | 6260 this.potentialEdits = potentialEdits; |
6128 } | 6261 } |
6129 | 6262 |
6130 factory EditGetRefactoringResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 6263 factory EditGetRefactoringResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
6131 if (json == null) { | 6264 if (json == null) { |
6132 json = {}; | 6265 json = {}; |
6133 } | 6266 } |
6134 if (json is Map) { | 6267 if (json is Map) { |
6135 List<RefactoringProblem> initialProblems; | 6268 List<RefactoringProblem> initialProblems; |
6136 if (json.containsKey("initialProblems")) { | 6269 if (json.containsKey("initialProblems")) { |
6137 initialProblems = jsonDecoder._decodeList(jsonPath + ".initialProblems",
json["initialProblems"], (String jsonPath, Object json) => new RefactoringProbl
em.fromJson(jsonDecoder, jsonPath, json)); | 6270 initialProblems = jsonDecoder.decodeList(jsonPath + ".initialProblems",
json["initialProblems"], (String jsonPath, Object json) => new RefactoringProble
m.fromJson(jsonDecoder, jsonPath, json)); |
6138 } else { | 6271 } else { |
6139 throw jsonDecoder.missingKey(jsonPath, "initialProblems"); | 6272 throw jsonDecoder.missingKey(jsonPath, "initialProblems"); |
6140 } | 6273 } |
6141 List<RefactoringProblem> optionsProblems; | 6274 List<RefactoringProblem> optionsProblems; |
6142 if (json.containsKey("optionsProblems")) { | 6275 if (json.containsKey("optionsProblems")) { |
6143 optionsProblems = jsonDecoder._decodeList(jsonPath + ".optionsProblems",
json["optionsProblems"], (String jsonPath, Object json) => new RefactoringProbl
em.fromJson(jsonDecoder, jsonPath, json)); | 6276 optionsProblems = jsonDecoder.decodeList(jsonPath + ".optionsProblems",
json["optionsProblems"], (String jsonPath, Object json) => new RefactoringProble
m.fromJson(jsonDecoder, jsonPath, json)); |
6144 } else { | 6277 } else { |
6145 throw jsonDecoder.missingKey(jsonPath, "optionsProblems"); | 6278 throw jsonDecoder.missingKey(jsonPath, "optionsProblems"); |
6146 } | 6279 } |
6147 List<RefactoringProblem> finalProblems; | 6280 List<RefactoringProblem> finalProblems; |
6148 if (json.containsKey("finalProblems")) { | 6281 if (json.containsKey("finalProblems")) { |
6149 finalProblems = jsonDecoder._decodeList(jsonPath + ".finalProblems", jso
n["finalProblems"], (String jsonPath, Object json) => new RefactoringProblem.fro
mJson(jsonDecoder, jsonPath, json)); | 6282 finalProblems = jsonDecoder.decodeList(jsonPath + ".finalProblems", json
["finalProblems"], (String jsonPath, Object json) => new RefactoringProblem.from
Json(jsonDecoder, jsonPath, json)); |
6150 } else { | 6283 } else { |
6151 throw jsonDecoder.missingKey(jsonPath, "finalProblems"); | 6284 throw jsonDecoder.missingKey(jsonPath, "finalProblems"); |
6152 } | 6285 } |
6153 RefactoringFeedback feedback; | 6286 RefactoringFeedback feedback; |
6154 if (json.containsKey("feedback")) { | 6287 if (json.containsKey("feedback")) { |
6155 feedback = new RefactoringFeedback.fromJson(jsonDecoder, jsonPath + ".fe
edback", json["feedback"], json); | 6288 feedback = new RefactoringFeedback.fromJson(jsonDecoder, jsonPath + ".fe
edback", json["feedback"], json); |
6156 } | 6289 } |
6157 SourceChange change; | 6290 SourceChange change; |
6158 if (json.containsKey("change")) { | 6291 if (json.containsKey("change")) { |
6159 change = new SourceChange.fromJson(jsonDecoder, jsonPath + ".change", js
on["change"]); | 6292 change = new SourceChange.fromJson(jsonDecoder, jsonPath + ".change", js
on["change"]); |
6160 } | 6293 } |
6161 List<String> potentialEdits; | 6294 List<String> potentialEdits; |
6162 if (json.containsKey("potentialEdits")) { | 6295 if (json.containsKey("potentialEdits")) { |
6163 potentialEdits = jsonDecoder._decodeList(jsonPath + ".potentialEdits", j
son["potentialEdits"], jsonDecoder._decodeString); | 6296 potentialEdits = jsonDecoder.decodeList(jsonPath + ".potentialEdits", js
on["potentialEdits"], jsonDecoder.decodeString); |
6164 } | 6297 } |
6165 return new EditGetRefactoringResult(initialProblems, optionsProblems, fina
lProblems, feedback: feedback, change: change, potentialEdits: potentialEdits); | 6298 return new EditGetRefactoringResult(initialProblems, optionsProblems, fina
lProblems, feedback: feedback, change: change, potentialEdits: potentialEdits); |
6166 } else { | 6299 } else { |
6167 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result", json); | 6300 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result", json); |
6168 } | 6301 } |
6169 } | 6302 } |
6170 | 6303 |
6171 factory EditGetRefactoringResult.fromResponse(Response response) { | 6304 factory EditGetRefactoringResult.fromResponse(Response response) { |
6172 return new EditGetRefactoringResult.fromJson( | 6305 return new EditGetRefactoringResult.fromJson( |
6173 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 6306 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
(...skipping 19 matching lines...) Expand all Loading... |
6193 Response toResponse(String id) { | 6326 Response toResponse(String id) { |
6194 return new Response(id, result: toJson()); | 6327 return new Response(id, result: toJson()); |
6195 } | 6328 } |
6196 | 6329 |
6197 @override | 6330 @override |
6198 String toString() => JSON.encode(toJson()); | 6331 String toString() => JSON.encode(toJson()); |
6199 | 6332 |
6200 @override | 6333 @override |
6201 bool operator==(other) { | 6334 bool operator==(other) { |
6202 if (other is EditGetRefactoringResult) { | 6335 if (other is EditGetRefactoringResult) { |
6203 return _listEqual(initialProblems, other.initialProblems, (RefactoringProb
lem a, RefactoringProblem b) => a == b) && | 6336 return listEqual(initialProblems, other.initialProblems, (RefactoringProbl
em a, RefactoringProblem b) => a == b) && |
6204 _listEqual(optionsProblems, other.optionsProblems, (RefactoringProblem
a, RefactoringProblem b) => a == b) && | 6337 listEqual(optionsProblems, other.optionsProblems, (RefactoringProblem
a, RefactoringProblem b) => a == b) && |
6205 _listEqual(finalProblems, other.finalProblems, (RefactoringProblem a,
RefactoringProblem b) => a == b) && | 6338 listEqual(finalProblems, other.finalProblems, (RefactoringProblem a, R
efactoringProblem b) => a == b) && |
6206 feedback == other.feedback && | 6339 feedback == other.feedback && |
6207 change == other.change && | 6340 change == other.change && |
6208 _listEqual(potentialEdits, other.potentialEdits, (String a, String b)
=> a == b); | 6341 listEqual(potentialEdits, other.potentialEdits, (String a, String b) =
> a == b); |
6209 } | 6342 } |
6210 return false; | 6343 return false; |
6211 } | 6344 } |
6212 | 6345 |
6213 @override | 6346 @override |
6214 int get hashCode { | 6347 int get hashCode { |
6215 int hash = 0; | 6348 int hash = 0; |
6216 hash = _JenkinsSmiHash.combine(hash, initialProblems.hashCode); | 6349 hash = JenkinsSmiHash.combine(hash, initialProblems.hashCode); |
6217 hash = _JenkinsSmiHash.combine(hash, optionsProblems.hashCode); | 6350 hash = JenkinsSmiHash.combine(hash, optionsProblems.hashCode); |
6218 hash = _JenkinsSmiHash.combine(hash, finalProblems.hashCode); | 6351 hash = JenkinsSmiHash.combine(hash, finalProblems.hashCode); |
6219 hash = _JenkinsSmiHash.combine(hash, feedback.hashCode); | 6352 hash = JenkinsSmiHash.combine(hash, feedback.hashCode); |
6220 hash = _JenkinsSmiHash.combine(hash, change.hashCode); | 6353 hash = JenkinsSmiHash.combine(hash, change.hashCode); |
6221 hash = _JenkinsSmiHash.combine(hash, potentialEdits.hashCode); | 6354 hash = JenkinsSmiHash.combine(hash, potentialEdits.hashCode); |
6222 return _JenkinsSmiHash.finish(hash); | 6355 return JenkinsSmiHash.finish(hash); |
6223 } | 6356 } |
6224 } | 6357 } |
6225 | 6358 |
6226 /** | 6359 /** |
6227 * edit.sortMembers params | 6360 * edit.sortMembers params |
6228 * | 6361 * |
6229 * { | 6362 * { |
6230 * "file": FilePath | 6363 * "file": FilePath |
6231 * } | 6364 * } |
| 6365 * |
| 6366 * Clients are not expected to subtype this class. |
6232 */ | 6367 */ |
6233 class EditSortMembersParams implements HasToJson { | 6368 class EditSortMembersParams implements HasToJson { |
6234 String _file; | 6369 String _file; |
6235 | 6370 |
6236 /** | 6371 /** |
6237 * The Dart file to sort. | 6372 * The Dart file to sort. |
6238 */ | 6373 */ |
6239 String get file => _file; | 6374 String get file => _file; |
6240 | 6375 |
6241 /** | 6376 /** |
6242 * The Dart file to sort. | 6377 * The Dart file to sort. |
6243 */ | 6378 */ |
6244 void set file(String value) { | 6379 void set file(String value) { |
6245 assert(value != null); | 6380 assert(value != null); |
6246 this._file = value; | 6381 this._file = value; |
6247 } | 6382 } |
6248 | 6383 |
6249 EditSortMembersParams(String file) { | 6384 EditSortMembersParams(String file) { |
6250 this.file = file; | 6385 this.file = file; |
6251 } | 6386 } |
6252 | 6387 |
6253 factory EditSortMembersParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 6388 factory EditSortMembersParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
6254 if (json == null) { | 6389 if (json == null) { |
6255 json = {}; | 6390 json = {}; |
6256 } | 6391 } |
6257 if (json is Map) { | 6392 if (json is Map) { |
6258 String file; | 6393 String file; |
6259 if (json.containsKey("file")) { | 6394 if (json.containsKey("file")) { |
6260 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 6395 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
6261 } else { | 6396 } else { |
6262 throw jsonDecoder.missingKey(jsonPath, "file"); | 6397 throw jsonDecoder.missingKey(jsonPath, "file"); |
6263 } | 6398 } |
6264 return new EditSortMembersParams(file); | 6399 return new EditSortMembersParams(file); |
6265 } else { | 6400 } else { |
6266 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers params", json); | 6401 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers params", json); |
6267 } | 6402 } |
6268 } | 6403 } |
6269 | 6404 |
6270 factory EditSortMembersParams.fromRequest(Request request) { | 6405 factory EditSortMembersParams.fromRequest(Request request) { |
(...skipping 18 matching lines...) Expand all Loading... |
6289 bool operator==(other) { | 6424 bool operator==(other) { |
6290 if (other is EditSortMembersParams) { | 6425 if (other is EditSortMembersParams) { |
6291 return file == other.file; | 6426 return file == other.file; |
6292 } | 6427 } |
6293 return false; | 6428 return false; |
6294 } | 6429 } |
6295 | 6430 |
6296 @override | 6431 @override |
6297 int get hashCode { | 6432 int get hashCode { |
6298 int hash = 0; | 6433 int hash = 0; |
6299 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 6434 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
6300 return _JenkinsSmiHash.finish(hash); | 6435 return JenkinsSmiHash.finish(hash); |
6301 } | 6436 } |
6302 } | 6437 } |
6303 | 6438 |
6304 /** | 6439 /** |
6305 * edit.sortMembers result | 6440 * edit.sortMembers result |
6306 * | 6441 * |
6307 * { | 6442 * { |
6308 * "edit": SourceFileEdit | 6443 * "edit": SourceFileEdit |
6309 * } | 6444 * } |
| 6445 * |
| 6446 * Clients are not expected to subtype this class. |
6310 */ | 6447 */ |
6311 class EditSortMembersResult implements HasToJson { | 6448 class EditSortMembersResult implements HasToJson { |
6312 SourceFileEdit _edit; | 6449 SourceFileEdit _edit; |
6313 | 6450 |
6314 /** | 6451 /** |
6315 * The file edit that is to be applied to the given file to effect the | 6452 * The file edit that is to be applied to the given file to effect the |
6316 * sorting. | 6453 * sorting. |
6317 */ | 6454 */ |
6318 SourceFileEdit get edit => _edit; | 6455 SourceFileEdit get edit => _edit; |
6319 | 6456 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6369 bool operator==(other) { | 6506 bool operator==(other) { |
6370 if (other is EditSortMembersResult) { | 6507 if (other is EditSortMembersResult) { |
6371 return edit == other.edit; | 6508 return edit == other.edit; |
6372 } | 6509 } |
6373 return false; | 6510 return false; |
6374 } | 6511 } |
6375 | 6512 |
6376 @override | 6513 @override |
6377 int get hashCode { | 6514 int get hashCode { |
6378 int hash = 0; | 6515 int hash = 0; |
6379 hash = _JenkinsSmiHash.combine(hash, edit.hashCode); | 6516 hash = JenkinsSmiHash.combine(hash, edit.hashCode); |
6380 return _JenkinsSmiHash.finish(hash); | 6517 return JenkinsSmiHash.finish(hash); |
6381 } | 6518 } |
6382 } | 6519 } |
6383 | 6520 |
6384 /** | 6521 /** |
6385 * edit.organizeDirectives params | 6522 * edit.organizeDirectives params |
6386 * | 6523 * |
6387 * { | 6524 * { |
6388 * "file": FilePath | 6525 * "file": FilePath |
6389 * } | 6526 * } |
| 6527 * |
| 6528 * Clients are not expected to subtype this class. |
6390 */ | 6529 */ |
6391 class EditOrganizeDirectivesParams implements HasToJson { | 6530 class EditOrganizeDirectivesParams implements HasToJson { |
6392 String _file; | 6531 String _file; |
6393 | 6532 |
6394 /** | 6533 /** |
6395 * The Dart file to organize directives in. | 6534 * The Dart file to organize directives in. |
6396 */ | 6535 */ |
6397 String get file => _file; | 6536 String get file => _file; |
6398 | 6537 |
6399 /** | 6538 /** |
6400 * The Dart file to organize directives in. | 6539 * The Dart file to organize directives in. |
6401 */ | 6540 */ |
6402 void set file(String value) { | 6541 void set file(String value) { |
6403 assert(value != null); | 6542 assert(value != null); |
6404 this._file = value; | 6543 this._file = value; |
6405 } | 6544 } |
6406 | 6545 |
6407 EditOrganizeDirectivesParams(String file) { | 6546 EditOrganizeDirectivesParams(String file) { |
6408 this.file = file; | 6547 this.file = file; |
6409 } | 6548 } |
6410 | 6549 |
6411 factory EditOrganizeDirectivesParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 6550 factory EditOrganizeDirectivesParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
6412 if (json == null) { | 6551 if (json == null) { |
6413 json = {}; | 6552 json = {}; |
6414 } | 6553 } |
6415 if (json is Map) { | 6554 if (json is Map) { |
6416 String file; | 6555 String file; |
6417 if (json.containsKey("file")) { | 6556 if (json.containsKey("file")) { |
6418 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 6557 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
6419 } else { | 6558 } else { |
6420 throw jsonDecoder.missingKey(jsonPath, "file"); | 6559 throw jsonDecoder.missingKey(jsonPath, "file"); |
6421 } | 6560 } |
6422 return new EditOrganizeDirectivesParams(file); | 6561 return new EditOrganizeDirectivesParams(file); |
6423 } else { | 6562 } else { |
6424 throw jsonDecoder.mismatch(jsonPath, "edit.organizeDirectives params", jso
n); | 6563 throw jsonDecoder.mismatch(jsonPath, "edit.organizeDirectives params", jso
n); |
6425 } | 6564 } |
6426 } | 6565 } |
6427 | 6566 |
6428 factory EditOrganizeDirectivesParams.fromRequest(Request request) { | 6567 factory EditOrganizeDirectivesParams.fromRequest(Request request) { |
(...skipping 18 matching lines...) Expand all Loading... |
6447 bool operator==(other) { | 6586 bool operator==(other) { |
6448 if (other is EditOrganizeDirectivesParams) { | 6587 if (other is EditOrganizeDirectivesParams) { |
6449 return file == other.file; | 6588 return file == other.file; |
6450 } | 6589 } |
6451 return false; | 6590 return false; |
6452 } | 6591 } |
6453 | 6592 |
6454 @override | 6593 @override |
6455 int get hashCode { | 6594 int get hashCode { |
6456 int hash = 0; | 6595 int hash = 0; |
6457 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 6596 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
6458 return _JenkinsSmiHash.finish(hash); | 6597 return JenkinsSmiHash.finish(hash); |
6459 } | 6598 } |
6460 } | 6599 } |
6461 | 6600 |
6462 /** | 6601 /** |
6463 * edit.organizeDirectives result | 6602 * edit.organizeDirectives result |
6464 * | 6603 * |
6465 * { | 6604 * { |
6466 * "edit": SourceFileEdit | 6605 * "edit": SourceFileEdit |
6467 * } | 6606 * } |
| 6607 * |
| 6608 * Clients are not expected to subtype this class. |
6468 */ | 6609 */ |
6469 class EditOrganizeDirectivesResult implements HasToJson { | 6610 class EditOrganizeDirectivesResult implements HasToJson { |
6470 SourceFileEdit _edit; | 6611 SourceFileEdit _edit; |
6471 | 6612 |
6472 /** | 6613 /** |
6473 * The file edit that is to be applied to the given file to effect the | 6614 * The file edit that is to be applied to the given file to effect the |
6474 * organizing. | 6615 * organizing. |
6475 */ | 6616 */ |
6476 SourceFileEdit get edit => _edit; | 6617 SourceFileEdit get edit => _edit; |
6477 | 6618 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6527 bool operator==(other) { | 6668 bool operator==(other) { |
6528 if (other is EditOrganizeDirectivesResult) { | 6669 if (other is EditOrganizeDirectivesResult) { |
6529 return edit == other.edit; | 6670 return edit == other.edit; |
6530 } | 6671 } |
6531 return false; | 6672 return false; |
6532 } | 6673 } |
6533 | 6674 |
6534 @override | 6675 @override |
6535 int get hashCode { | 6676 int get hashCode { |
6536 int hash = 0; | 6677 int hash = 0; |
6537 hash = _JenkinsSmiHash.combine(hash, edit.hashCode); | 6678 hash = JenkinsSmiHash.combine(hash, edit.hashCode); |
6538 return _JenkinsSmiHash.finish(hash); | 6679 return JenkinsSmiHash.finish(hash); |
6539 } | 6680 } |
6540 } | 6681 } |
6541 | 6682 |
6542 /** | 6683 /** |
6543 * execution.createContext params | 6684 * execution.createContext params |
6544 * | 6685 * |
6545 * { | 6686 * { |
6546 * "contextRoot": FilePath | 6687 * "contextRoot": FilePath |
6547 * } | 6688 * } |
| 6689 * |
| 6690 * Clients are not expected to subtype this class. |
6548 */ | 6691 */ |
6549 class ExecutionCreateContextParams implements HasToJson { | 6692 class ExecutionCreateContextParams implements HasToJson { |
6550 String _contextRoot; | 6693 String _contextRoot; |
6551 | 6694 |
6552 /** | 6695 /** |
6553 * The path of the Dart or HTML file that will be launched, or the path of | 6696 * The path of the Dart or HTML file that will be launched, or the path of |
6554 * the directory containing the file. | 6697 * the directory containing the file. |
6555 */ | 6698 */ |
6556 String get contextRoot => _contextRoot; | 6699 String get contextRoot => _contextRoot; |
6557 | 6700 |
(...skipping 10 matching lines...) Expand all Loading... |
6568 this.contextRoot = contextRoot; | 6711 this.contextRoot = contextRoot; |
6569 } | 6712 } |
6570 | 6713 |
6571 factory ExecutionCreateContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 6714 factory ExecutionCreateContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
6572 if (json == null) { | 6715 if (json == null) { |
6573 json = {}; | 6716 json = {}; |
6574 } | 6717 } |
6575 if (json is Map) { | 6718 if (json is Map) { |
6576 String contextRoot; | 6719 String contextRoot; |
6577 if (json.containsKey("contextRoot")) { | 6720 if (json.containsKey("contextRoot")) { |
6578 contextRoot = jsonDecoder._decodeString(jsonPath + ".contextRoot", json[
"contextRoot"]); | 6721 contextRoot = jsonDecoder.decodeString(jsonPath + ".contextRoot", json["
contextRoot"]); |
6579 } else { | 6722 } else { |
6580 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); | 6723 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); |
6581 } | 6724 } |
6582 return new ExecutionCreateContextParams(contextRoot); | 6725 return new ExecutionCreateContextParams(contextRoot); |
6583 } else { | 6726 } else { |
6584 throw jsonDecoder.mismatch(jsonPath, "execution.createContext params", jso
n); | 6727 throw jsonDecoder.mismatch(jsonPath, "execution.createContext params", jso
n); |
6585 } | 6728 } |
6586 } | 6729 } |
6587 | 6730 |
6588 factory ExecutionCreateContextParams.fromRequest(Request request) { | 6731 factory ExecutionCreateContextParams.fromRequest(Request request) { |
(...skipping 18 matching lines...) Expand all Loading... |
6607 bool operator==(other) { | 6750 bool operator==(other) { |
6608 if (other is ExecutionCreateContextParams) { | 6751 if (other is ExecutionCreateContextParams) { |
6609 return contextRoot == other.contextRoot; | 6752 return contextRoot == other.contextRoot; |
6610 } | 6753 } |
6611 return false; | 6754 return false; |
6612 } | 6755 } |
6613 | 6756 |
6614 @override | 6757 @override |
6615 int get hashCode { | 6758 int get hashCode { |
6616 int hash = 0; | 6759 int hash = 0; |
6617 hash = _JenkinsSmiHash.combine(hash, contextRoot.hashCode); | 6760 hash = JenkinsSmiHash.combine(hash, contextRoot.hashCode); |
6618 return _JenkinsSmiHash.finish(hash); | 6761 return JenkinsSmiHash.finish(hash); |
6619 } | 6762 } |
6620 } | 6763 } |
6621 | 6764 |
6622 /** | 6765 /** |
6623 * execution.createContext result | 6766 * execution.createContext result |
6624 * | 6767 * |
6625 * { | 6768 * { |
6626 * "id": ExecutionContextId | 6769 * "id": ExecutionContextId |
6627 * } | 6770 * } |
| 6771 * |
| 6772 * Clients are not expected to subtype this class. |
6628 */ | 6773 */ |
6629 class ExecutionCreateContextResult implements HasToJson { | 6774 class ExecutionCreateContextResult implements HasToJson { |
6630 String _id; | 6775 String _id; |
6631 | 6776 |
6632 /** | 6777 /** |
6633 * The identifier used to refer to the execution context that was created. | 6778 * The identifier used to refer to the execution context that was created. |
6634 */ | 6779 */ |
6635 String get id => _id; | 6780 String get id => _id; |
6636 | 6781 |
6637 /** | 6782 /** |
6638 * The identifier used to refer to the execution context that was created. | 6783 * The identifier used to refer to the execution context that was created. |
6639 */ | 6784 */ |
6640 void set id(String value) { | 6785 void set id(String value) { |
6641 assert(value != null); | 6786 assert(value != null); |
6642 this._id = value; | 6787 this._id = value; |
6643 } | 6788 } |
6644 | 6789 |
6645 ExecutionCreateContextResult(String id) { | 6790 ExecutionCreateContextResult(String id) { |
6646 this.id = id; | 6791 this.id = id; |
6647 } | 6792 } |
6648 | 6793 |
6649 factory ExecutionCreateContextResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 6794 factory ExecutionCreateContextResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
6650 if (json == null) { | 6795 if (json == null) { |
6651 json = {}; | 6796 json = {}; |
6652 } | 6797 } |
6653 if (json is Map) { | 6798 if (json is Map) { |
6654 String id; | 6799 String id; |
6655 if (json.containsKey("id")) { | 6800 if (json.containsKey("id")) { |
6656 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 6801 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
6657 } else { | 6802 } else { |
6658 throw jsonDecoder.missingKey(jsonPath, "id"); | 6803 throw jsonDecoder.missingKey(jsonPath, "id"); |
6659 } | 6804 } |
6660 return new ExecutionCreateContextResult(id); | 6805 return new ExecutionCreateContextResult(id); |
6661 } else { | 6806 } else { |
6662 throw jsonDecoder.mismatch(jsonPath, "execution.createContext result", jso
n); | 6807 throw jsonDecoder.mismatch(jsonPath, "execution.createContext result", jso
n); |
6663 } | 6808 } |
6664 } | 6809 } |
6665 | 6810 |
6666 factory ExecutionCreateContextResult.fromResponse(Response response) { | 6811 factory ExecutionCreateContextResult.fromResponse(Response response) { |
(...skipping 18 matching lines...) Expand all Loading... |
6685 bool operator==(other) { | 6830 bool operator==(other) { |
6686 if (other is ExecutionCreateContextResult) { | 6831 if (other is ExecutionCreateContextResult) { |
6687 return id == other.id; | 6832 return id == other.id; |
6688 } | 6833 } |
6689 return false; | 6834 return false; |
6690 } | 6835 } |
6691 | 6836 |
6692 @override | 6837 @override |
6693 int get hashCode { | 6838 int get hashCode { |
6694 int hash = 0; | 6839 int hash = 0; |
6695 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 6840 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
6696 return _JenkinsSmiHash.finish(hash); | 6841 return JenkinsSmiHash.finish(hash); |
6697 } | 6842 } |
6698 } | 6843 } |
6699 | 6844 |
6700 /** | 6845 /** |
6701 * execution.deleteContext params | 6846 * execution.deleteContext params |
6702 * | 6847 * |
6703 * { | 6848 * { |
6704 * "id": ExecutionContextId | 6849 * "id": ExecutionContextId |
6705 * } | 6850 * } |
| 6851 * |
| 6852 * Clients are not expected to subtype this class. |
6706 */ | 6853 */ |
6707 class ExecutionDeleteContextParams implements HasToJson { | 6854 class ExecutionDeleteContextParams implements HasToJson { |
6708 String _id; | 6855 String _id; |
6709 | 6856 |
6710 /** | 6857 /** |
6711 * The identifier of the execution context that is to be deleted. | 6858 * The identifier of the execution context that is to be deleted. |
6712 */ | 6859 */ |
6713 String get id => _id; | 6860 String get id => _id; |
6714 | 6861 |
6715 /** | 6862 /** |
6716 * The identifier of the execution context that is to be deleted. | 6863 * The identifier of the execution context that is to be deleted. |
6717 */ | 6864 */ |
6718 void set id(String value) { | 6865 void set id(String value) { |
6719 assert(value != null); | 6866 assert(value != null); |
6720 this._id = value; | 6867 this._id = value; |
6721 } | 6868 } |
6722 | 6869 |
6723 ExecutionDeleteContextParams(String id) { | 6870 ExecutionDeleteContextParams(String id) { |
6724 this.id = id; | 6871 this.id = id; |
6725 } | 6872 } |
6726 | 6873 |
6727 factory ExecutionDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 6874 factory ExecutionDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
6728 if (json == null) { | 6875 if (json == null) { |
6729 json = {}; | 6876 json = {}; |
6730 } | 6877 } |
6731 if (json is Map) { | 6878 if (json is Map) { |
6732 String id; | 6879 String id; |
6733 if (json.containsKey("id")) { | 6880 if (json.containsKey("id")) { |
6734 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 6881 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
6735 } else { | 6882 } else { |
6736 throw jsonDecoder.missingKey(jsonPath, "id"); | 6883 throw jsonDecoder.missingKey(jsonPath, "id"); |
6737 } | 6884 } |
6738 return new ExecutionDeleteContextParams(id); | 6885 return new ExecutionDeleteContextParams(id); |
6739 } else { | 6886 } else { |
6740 throw jsonDecoder.mismatch(jsonPath, "execution.deleteContext params", jso
n); | 6887 throw jsonDecoder.mismatch(jsonPath, "execution.deleteContext params", jso
n); |
6741 } | 6888 } |
6742 } | 6889 } |
6743 | 6890 |
6744 factory ExecutionDeleteContextParams.fromRequest(Request request) { | 6891 factory ExecutionDeleteContextParams.fromRequest(Request request) { |
(...skipping 18 matching lines...) Expand all Loading... |
6763 bool operator==(other) { | 6910 bool operator==(other) { |
6764 if (other is ExecutionDeleteContextParams) { | 6911 if (other is ExecutionDeleteContextParams) { |
6765 return id == other.id; | 6912 return id == other.id; |
6766 } | 6913 } |
6767 return false; | 6914 return false; |
6768 } | 6915 } |
6769 | 6916 |
6770 @override | 6917 @override |
6771 int get hashCode { | 6918 int get hashCode { |
6772 int hash = 0; | 6919 int hash = 0; |
6773 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 6920 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
6774 return _JenkinsSmiHash.finish(hash); | 6921 return JenkinsSmiHash.finish(hash); |
6775 } | 6922 } |
6776 } | 6923 } |
6777 /** | 6924 /** |
6778 * execution.deleteContext result | 6925 * execution.deleteContext result |
| 6926 * |
| 6927 * Clients are not expected to subtype this class. |
6779 */ | 6928 */ |
6780 class ExecutionDeleteContextResult { | 6929 class ExecutionDeleteContextResult { |
6781 Response toResponse(String id) { | 6930 Response toResponse(String id) { |
6782 return new Response(id, result: null); | 6931 return new Response(id, result: null); |
6783 } | 6932 } |
6784 | 6933 |
6785 @override | 6934 @override |
6786 bool operator==(other) { | 6935 bool operator==(other) { |
6787 if (other is ExecutionDeleteContextResult) { | 6936 if (other is ExecutionDeleteContextResult) { |
6788 return true; | 6937 return true; |
6789 } | 6938 } |
6790 return false; | 6939 return false; |
6791 } | 6940 } |
6792 | 6941 |
6793 @override | 6942 @override |
6794 int get hashCode { | 6943 int get hashCode { |
6795 return 479954425; | 6944 return 479954425; |
6796 } | 6945 } |
6797 } | 6946 } |
6798 | 6947 |
6799 /** | 6948 /** |
6800 * execution.mapUri params | 6949 * execution.mapUri params |
6801 * | 6950 * |
6802 * { | 6951 * { |
6803 * "id": ExecutionContextId | 6952 * "id": ExecutionContextId |
6804 * "file": optional FilePath | 6953 * "file": optional FilePath |
6805 * "uri": optional String | 6954 * "uri": optional String |
6806 * } | 6955 * } |
| 6956 * |
| 6957 * Clients are not expected to subtype this class. |
6807 */ | 6958 */ |
6808 class ExecutionMapUriParams implements HasToJson { | 6959 class ExecutionMapUriParams implements HasToJson { |
6809 String _id; | 6960 String _id; |
6810 | 6961 |
6811 String _file; | 6962 String _file; |
6812 | 6963 |
6813 String _uri; | 6964 String _uri; |
6814 | 6965 |
6815 /** | 6966 /** |
6816 * The identifier of the execution context in which the URI is to be mapped. | 6967 * The identifier of the execution context in which the URI is to be mapped. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6855 this.uri = uri; | 7006 this.uri = uri; |
6856 } | 7007 } |
6857 | 7008 |
6858 factory ExecutionMapUriParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 7009 factory ExecutionMapUriParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
6859 if (json == null) { | 7010 if (json == null) { |
6860 json = {}; | 7011 json = {}; |
6861 } | 7012 } |
6862 if (json is Map) { | 7013 if (json is Map) { |
6863 String id; | 7014 String id; |
6864 if (json.containsKey("id")) { | 7015 if (json.containsKey("id")) { |
6865 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 7016 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
6866 } else { | 7017 } else { |
6867 throw jsonDecoder.missingKey(jsonPath, "id"); | 7018 throw jsonDecoder.missingKey(jsonPath, "id"); |
6868 } | 7019 } |
6869 String file; | 7020 String file; |
6870 if (json.containsKey("file")) { | 7021 if (json.containsKey("file")) { |
6871 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 7022 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
6872 } | 7023 } |
6873 String uri; | 7024 String uri; |
6874 if (json.containsKey("uri")) { | 7025 if (json.containsKey("uri")) { |
6875 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); | 7026 uri = jsonDecoder.decodeString(jsonPath + ".uri", json["uri"]); |
6876 } | 7027 } |
6877 return new ExecutionMapUriParams(id, file: file, uri: uri); | 7028 return new ExecutionMapUriParams(id, file: file, uri: uri); |
6878 } else { | 7029 } else { |
6879 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri params", json); | 7030 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri params", json); |
6880 } | 7031 } |
6881 } | 7032 } |
6882 | 7033 |
6883 factory ExecutionMapUriParams.fromRequest(Request request) { | 7034 factory ExecutionMapUriParams.fromRequest(Request request) { |
6884 return new ExecutionMapUriParams.fromJson( | 7035 return new ExecutionMapUriParams.fromJson( |
6885 new RequestDecoder(request), "params", request._params); | 7036 new RequestDecoder(request), "params", request._params); |
(...skipping 24 matching lines...) Expand all Loading... |
6910 return id == other.id && | 7061 return id == other.id && |
6911 file == other.file && | 7062 file == other.file && |
6912 uri == other.uri; | 7063 uri == other.uri; |
6913 } | 7064 } |
6914 return false; | 7065 return false; |
6915 } | 7066 } |
6916 | 7067 |
6917 @override | 7068 @override |
6918 int get hashCode { | 7069 int get hashCode { |
6919 int hash = 0; | 7070 int hash = 0; |
6920 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 7071 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
6921 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 7072 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
6922 hash = _JenkinsSmiHash.combine(hash, uri.hashCode); | 7073 hash = JenkinsSmiHash.combine(hash, uri.hashCode); |
6923 return _JenkinsSmiHash.finish(hash); | 7074 return JenkinsSmiHash.finish(hash); |
6924 } | 7075 } |
6925 } | 7076 } |
6926 | 7077 |
6927 /** | 7078 /** |
6928 * execution.mapUri result | 7079 * execution.mapUri result |
6929 * | 7080 * |
6930 * { | 7081 * { |
6931 * "file": optional FilePath | 7082 * "file": optional FilePath |
6932 * "uri": optional String | 7083 * "uri": optional String |
6933 * } | 7084 * } |
| 7085 * |
| 7086 * Clients are not expected to subtype this class. |
6934 */ | 7087 */ |
6935 class ExecutionMapUriResult implements HasToJson { | 7088 class ExecutionMapUriResult implements HasToJson { |
6936 String _file; | 7089 String _file; |
6937 | 7090 |
6938 String _uri; | 7091 String _uri; |
6939 | 7092 |
6940 /** | 7093 /** |
6941 * The file to which the URI was mapped. This field is omitted if the uri | 7094 * The file to which the URI was mapped. This field is omitted if the uri |
6942 * field was not given in the request. | 7095 * field was not given in the request. |
6943 */ | 7096 */ |
(...skipping 26 matching lines...) Expand all Loading... |
6970 this.uri = uri; | 7123 this.uri = uri; |
6971 } | 7124 } |
6972 | 7125 |
6973 factory ExecutionMapUriResult.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 7126 factory ExecutionMapUriResult.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
6974 if (json == null) { | 7127 if (json == null) { |
6975 json = {}; | 7128 json = {}; |
6976 } | 7129 } |
6977 if (json is Map) { | 7130 if (json is Map) { |
6978 String file; | 7131 String file; |
6979 if (json.containsKey("file")) { | 7132 if (json.containsKey("file")) { |
6980 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 7133 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
6981 } | 7134 } |
6982 String uri; | 7135 String uri; |
6983 if (json.containsKey("uri")) { | 7136 if (json.containsKey("uri")) { |
6984 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); | 7137 uri = jsonDecoder.decodeString(jsonPath + ".uri", json["uri"]); |
6985 } | 7138 } |
6986 return new ExecutionMapUriResult(file: file, uri: uri); | 7139 return new ExecutionMapUriResult(file: file, uri: uri); |
6987 } else { | 7140 } else { |
6988 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri result", json); | 7141 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri result", json); |
6989 } | 7142 } |
6990 } | 7143 } |
6991 | 7144 |
6992 factory ExecutionMapUriResult.fromResponse(Response response) { | 7145 factory ExecutionMapUriResult.fromResponse(Response response) { |
6993 return new ExecutionMapUriResult.fromJson( | 7146 return new ExecutionMapUriResult.fromJson( |
6994 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 7147 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); |
(...skipping 22 matching lines...) Expand all Loading... |
7017 if (other is ExecutionMapUriResult) { | 7170 if (other is ExecutionMapUriResult) { |
7018 return file == other.file && | 7171 return file == other.file && |
7019 uri == other.uri; | 7172 uri == other.uri; |
7020 } | 7173 } |
7021 return false; | 7174 return false; |
7022 } | 7175 } |
7023 | 7176 |
7024 @override | 7177 @override |
7025 int get hashCode { | 7178 int get hashCode { |
7026 int hash = 0; | 7179 int hash = 0; |
7027 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 7180 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
7028 hash = _JenkinsSmiHash.combine(hash, uri.hashCode); | 7181 hash = JenkinsSmiHash.combine(hash, uri.hashCode); |
7029 return _JenkinsSmiHash.finish(hash); | 7182 return JenkinsSmiHash.finish(hash); |
7030 } | 7183 } |
7031 } | 7184 } |
7032 | 7185 |
7033 /** | 7186 /** |
7034 * execution.setSubscriptions params | 7187 * execution.setSubscriptions params |
7035 * | 7188 * |
7036 * { | 7189 * { |
7037 * "subscriptions": List<ExecutionService> | 7190 * "subscriptions": List<ExecutionService> |
7038 * } | 7191 * } |
| 7192 * |
| 7193 * Clients are not expected to subtype this class. |
7039 */ | 7194 */ |
7040 class ExecutionSetSubscriptionsParams implements HasToJson { | 7195 class ExecutionSetSubscriptionsParams implements HasToJson { |
7041 List<ExecutionService> _subscriptions; | 7196 List<ExecutionService> _subscriptions; |
7042 | 7197 |
7043 /** | 7198 /** |
7044 * A list of the services being subscribed to. | 7199 * A list of the services being subscribed to. |
7045 */ | 7200 */ |
7046 List<ExecutionService> get subscriptions => _subscriptions; | 7201 List<ExecutionService> get subscriptions => _subscriptions; |
7047 | 7202 |
7048 /** | 7203 /** |
7049 * A list of the services being subscribed to. | 7204 * A list of the services being subscribed to. |
7050 */ | 7205 */ |
7051 void set subscriptions(List<ExecutionService> value) { | 7206 void set subscriptions(List<ExecutionService> value) { |
7052 assert(value != null); | 7207 assert(value != null); |
7053 this._subscriptions = value; | 7208 this._subscriptions = value; |
7054 } | 7209 } |
7055 | 7210 |
7056 ExecutionSetSubscriptionsParams(List<ExecutionService> subscriptions) { | 7211 ExecutionSetSubscriptionsParams(List<ExecutionService> subscriptions) { |
7057 this.subscriptions = subscriptions; | 7212 this.subscriptions = subscriptions; |
7058 } | 7213 } |
7059 | 7214 |
7060 factory ExecutionSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Stri
ng jsonPath, Object json) { | 7215 factory ExecutionSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Stri
ng jsonPath, Object json) { |
7061 if (json == null) { | 7216 if (json == null) { |
7062 json = {}; | 7217 json = {}; |
7063 } | 7218 } |
7064 if (json is Map) { | 7219 if (json is Map) { |
7065 List<ExecutionService> subscriptions; | 7220 List<ExecutionService> subscriptions; |
7066 if (json.containsKey("subscriptions")) { | 7221 if (json.containsKey("subscriptions")) { |
7067 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new ExecutionService.fromJ
son(jsonDecoder, jsonPath, json)); | 7222 subscriptions = jsonDecoder.decodeList(jsonPath + ".subscriptions", json
["subscriptions"], (String jsonPath, Object json) => new ExecutionService.fromJs
on(jsonDecoder, jsonPath, json)); |
7068 } else { | 7223 } else { |
7069 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 7224 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
7070 } | 7225 } |
7071 return new ExecutionSetSubscriptionsParams(subscriptions); | 7226 return new ExecutionSetSubscriptionsParams(subscriptions); |
7072 } else { | 7227 } else { |
7073 throw jsonDecoder.mismatch(jsonPath, "execution.setSubscriptions params",
json); | 7228 throw jsonDecoder.mismatch(jsonPath, "execution.setSubscriptions params",
json); |
7074 } | 7229 } |
7075 } | 7230 } |
7076 | 7231 |
7077 factory ExecutionSetSubscriptionsParams.fromRequest(Request request) { | 7232 factory ExecutionSetSubscriptionsParams.fromRequest(Request request) { |
(...skipping 10 matching lines...) Expand all Loading... |
7088 Request toRequest(String id) { | 7243 Request toRequest(String id) { |
7089 return new Request(id, "execution.setSubscriptions", toJson()); | 7244 return new Request(id, "execution.setSubscriptions", toJson()); |
7090 } | 7245 } |
7091 | 7246 |
7092 @override | 7247 @override |
7093 String toString() => JSON.encode(toJson()); | 7248 String toString() => JSON.encode(toJson()); |
7094 | 7249 |
7095 @override | 7250 @override |
7096 bool operator==(other) { | 7251 bool operator==(other) { |
7097 if (other is ExecutionSetSubscriptionsParams) { | 7252 if (other is ExecutionSetSubscriptionsParams) { |
7098 return _listEqual(subscriptions, other.subscriptions, (ExecutionService a,
ExecutionService b) => a == b); | 7253 return listEqual(subscriptions, other.subscriptions, (ExecutionService a,
ExecutionService b) => a == b); |
7099 } | 7254 } |
7100 return false; | 7255 return false; |
7101 } | 7256 } |
7102 | 7257 |
7103 @override | 7258 @override |
7104 int get hashCode { | 7259 int get hashCode { |
7105 int hash = 0; | 7260 int hash = 0; |
7106 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 7261 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
7107 return _JenkinsSmiHash.finish(hash); | 7262 return JenkinsSmiHash.finish(hash); |
7108 } | 7263 } |
7109 } | 7264 } |
7110 /** | 7265 /** |
7111 * execution.setSubscriptions result | 7266 * execution.setSubscriptions result |
| 7267 * |
| 7268 * Clients are not expected to subtype this class. |
7112 */ | 7269 */ |
7113 class ExecutionSetSubscriptionsResult { | 7270 class ExecutionSetSubscriptionsResult { |
7114 Response toResponse(String id) { | 7271 Response toResponse(String id) { |
7115 return new Response(id, result: null); | 7272 return new Response(id, result: null); |
7116 } | 7273 } |
7117 | 7274 |
7118 @override | 7275 @override |
7119 bool operator==(other) { | 7276 bool operator==(other) { |
7120 if (other is ExecutionSetSubscriptionsResult) { | 7277 if (other is ExecutionSetSubscriptionsResult) { |
7121 return true; | 7278 return true; |
7122 } | 7279 } |
7123 return false; | 7280 return false; |
7124 } | 7281 } |
7125 | 7282 |
7126 @override | 7283 @override |
7127 int get hashCode { | 7284 int get hashCode { |
7128 return 287678780; | 7285 return 287678780; |
7129 } | 7286 } |
7130 } | 7287 } |
7131 | 7288 |
7132 /** | 7289 /** |
7133 * execution.launchData params | 7290 * execution.launchData params |
7134 * | 7291 * |
7135 * { | 7292 * { |
7136 * "file": FilePath | 7293 * "file": FilePath |
7137 * "kind": optional ExecutableKind | 7294 * "kind": optional ExecutableKind |
7138 * "referencedFiles": optional List<FilePath> | 7295 * "referencedFiles": optional List<FilePath> |
7139 * } | 7296 * } |
| 7297 * |
| 7298 * Clients are not expected to subtype this class. |
7140 */ | 7299 */ |
7141 class ExecutionLaunchDataParams implements HasToJson { | 7300 class ExecutionLaunchDataParams implements HasToJson { |
7142 String _file; | 7301 String _file; |
7143 | 7302 |
7144 ExecutableKind _kind; | 7303 ExecutableKind _kind; |
7145 | 7304 |
7146 List<String> _referencedFiles; | 7305 List<String> _referencedFiles; |
7147 | 7306 |
7148 /** | 7307 /** |
7149 * The file for which launch data is being provided. This will either be a | 7308 * The file for which launch data is being provided. This will either be a |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7194 this.referencedFiles = referencedFiles; | 7353 this.referencedFiles = referencedFiles; |
7195 } | 7354 } |
7196 | 7355 |
7197 factory ExecutionLaunchDataParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { | 7356 factory ExecutionLaunchDataParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { |
7198 if (json == null) { | 7357 if (json == null) { |
7199 json = {}; | 7358 json = {}; |
7200 } | 7359 } |
7201 if (json is Map) { | 7360 if (json is Map) { |
7202 String file; | 7361 String file; |
7203 if (json.containsKey("file")) { | 7362 if (json.containsKey("file")) { |
7204 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 7363 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
7205 } else { | 7364 } else { |
7206 throw jsonDecoder.missingKey(jsonPath, "file"); | 7365 throw jsonDecoder.missingKey(jsonPath, "file"); |
7207 } | 7366 } |
7208 ExecutableKind kind; | 7367 ExecutableKind kind; |
7209 if (json.containsKey("kind")) { | 7368 if (json.containsKey("kind")) { |
7210 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); | 7369 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); |
7211 } | 7370 } |
7212 List<String> referencedFiles; | 7371 List<String> referencedFiles; |
7213 if (json.containsKey("referencedFiles")) { | 7372 if (json.containsKey("referencedFiles")) { |
7214 referencedFiles = jsonDecoder._decodeList(jsonPath + ".referencedFiles",
json["referencedFiles"], jsonDecoder._decodeString); | 7373 referencedFiles = jsonDecoder.decodeList(jsonPath + ".referencedFiles",
json["referencedFiles"], jsonDecoder.decodeString); |
7215 } | 7374 } |
7216 return new ExecutionLaunchDataParams(file, kind: kind, referencedFiles: re
ferencedFiles); | 7375 return new ExecutionLaunchDataParams(file, kind: kind, referencedFiles: re
ferencedFiles); |
7217 } else { | 7376 } else { |
7218 throw jsonDecoder.mismatch(jsonPath, "execution.launchData params", json); | 7377 throw jsonDecoder.mismatch(jsonPath, "execution.launchData params", json); |
7219 } | 7378 } |
7220 } | 7379 } |
7221 | 7380 |
7222 factory ExecutionLaunchDataParams.fromNotification(Notification notification)
{ | 7381 factory ExecutionLaunchDataParams.fromNotification(Notification notification)
{ |
7223 return new ExecutionLaunchDataParams.fromJson( | 7382 return new ExecutionLaunchDataParams.fromJson( |
7224 new ResponseDecoder(null), "params", notification._params); | 7383 new ResponseDecoder(null), "params", notification._params); |
(...skipping 16 matching lines...) Expand all Loading... |
7241 } | 7400 } |
7242 | 7401 |
7243 @override | 7402 @override |
7244 String toString() => JSON.encode(toJson()); | 7403 String toString() => JSON.encode(toJson()); |
7245 | 7404 |
7246 @override | 7405 @override |
7247 bool operator==(other) { | 7406 bool operator==(other) { |
7248 if (other is ExecutionLaunchDataParams) { | 7407 if (other is ExecutionLaunchDataParams) { |
7249 return file == other.file && | 7408 return file == other.file && |
7250 kind == other.kind && | 7409 kind == other.kind && |
7251 _listEqual(referencedFiles, other.referencedFiles, (String a, String b
) => a == b); | 7410 listEqual(referencedFiles, other.referencedFiles, (String a, String b)
=> a == b); |
7252 } | 7411 } |
7253 return false; | 7412 return false; |
7254 } | 7413 } |
7255 | 7414 |
7256 @override | 7415 @override |
7257 int get hashCode { | 7416 int get hashCode { |
7258 int hash = 0; | 7417 int hash = 0; |
7259 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 7418 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
7260 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 7419 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
7261 hash = _JenkinsSmiHash.combine(hash, referencedFiles.hashCode); | 7420 hash = JenkinsSmiHash.combine(hash, referencedFiles.hashCode); |
7262 return _JenkinsSmiHash.finish(hash); | 7421 return JenkinsSmiHash.finish(hash); |
7263 } | 7422 } |
7264 } | 7423 } |
7265 | 7424 |
7266 /** | 7425 /** |
7267 * AddContentOverlay | 7426 * AddContentOverlay |
7268 * | 7427 * |
7269 * { | 7428 * { |
7270 * "type": "add" | 7429 * "type": "add" |
7271 * "content": String | 7430 * "content": String |
7272 * } | 7431 * } |
| 7432 * |
| 7433 * Clients are not expected to subtype this class. |
7273 */ | 7434 */ |
7274 class AddContentOverlay implements HasToJson { | 7435 class AddContentOverlay implements HasToJson { |
7275 String _content; | 7436 String _content; |
7276 | 7437 |
7277 /** | 7438 /** |
7278 * The new content of the file. | 7439 * The new content of the file. |
7279 */ | 7440 */ |
7280 String get content => _content; | 7441 String get content => _content; |
7281 | 7442 |
7282 /** | 7443 /** |
(...skipping 11 matching lines...) Expand all Loading... |
7294 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 7455 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
7295 if (json == null) { | 7456 if (json == null) { |
7296 json = {}; | 7457 json = {}; |
7297 } | 7458 } |
7298 if (json is Map) { | 7459 if (json is Map) { |
7299 if (json["type"] != "add") { | 7460 if (json["type"] != "add") { |
7300 throw jsonDecoder.mismatch(jsonPath, "equal " + "add", json); | 7461 throw jsonDecoder.mismatch(jsonPath, "equal " + "add", json); |
7301 } | 7462 } |
7302 String content; | 7463 String content; |
7303 if (json.containsKey("content")) { | 7464 if (json.containsKey("content")) { |
7304 content = jsonDecoder._decodeString(jsonPath + ".content", json["content
"]); | 7465 content = jsonDecoder.decodeString(jsonPath + ".content", json["content"
]); |
7305 } else { | 7466 } else { |
7306 throw jsonDecoder.missingKey(jsonPath, "content"); | 7467 throw jsonDecoder.missingKey(jsonPath, "content"); |
7307 } | 7468 } |
7308 return new AddContentOverlay(content); | 7469 return new AddContentOverlay(content); |
7309 } else { | 7470 } else { |
7310 throw jsonDecoder.mismatch(jsonPath, "AddContentOverlay", json); | 7471 throw jsonDecoder.mismatch(jsonPath, "AddContentOverlay", json); |
7311 } | 7472 } |
7312 } | 7473 } |
7313 | 7474 |
7314 Map<String, dynamic> toJson() { | 7475 Map<String, dynamic> toJson() { |
(...skipping 10 matching lines...) Expand all Loading... |
7325 bool operator==(other) { | 7486 bool operator==(other) { |
7326 if (other is AddContentOverlay) { | 7487 if (other is AddContentOverlay) { |
7327 return content == other.content; | 7488 return content == other.content; |
7328 } | 7489 } |
7329 return false; | 7490 return false; |
7330 } | 7491 } |
7331 | 7492 |
7332 @override | 7493 @override |
7333 int get hashCode { | 7494 int get hashCode { |
7334 int hash = 0; | 7495 int hash = 0; |
7335 hash = _JenkinsSmiHash.combine(hash, 704418402); | 7496 hash = JenkinsSmiHash.combine(hash, 704418402); |
7336 hash = _JenkinsSmiHash.combine(hash, content.hashCode); | 7497 hash = JenkinsSmiHash.combine(hash, content.hashCode); |
7337 return _JenkinsSmiHash.finish(hash); | 7498 return JenkinsSmiHash.finish(hash); |
7338 } | 7499 } |
7339 } | 7500 } |
7340 | 7501 |
7341 /** | 7502 /** |
7342 * AnalysisError | 7503 * AnalysisError |
7343 * | 7504 * |
7344 * { | 7505 * { |
7345 * "severity": AnalysisErrorSeverity | 7506 * "severity": AnalysisErrorSeverity |
7346 * "type": AnalysisErrorType | 7507 * "type": AnalysisErrorType |
7347 * "location": Location | 7508 * "location": Location |
7348 * "message": String | 7509 * "message": String |
7349 * "correction": optional String | 7510 * "correction": optional String |
7350 * "hasFix": optional bool | 7511 * "hasFix": optional bool |
7351 * } | 7512 * } |
| 7513 * |
| 7514 * Clients are not expected to subtype this class. |
7352 */ | 7515 */ |
7353 class AnalysisError implements HasToJson { | 7516 class AnalysisError implements HasToJson { |
7354 AnalysisErrorSeverity _severity; | 7517 AnalysisErrorSeverity _severity; |
7355 | 7518 |
7356 AnalysisErrorType _type; | 7519 AnalysisErrorType _type; |
7357 | 7520 |
7358 Location _location; | 7521 Location _location; |
7359 | 7522 |
7360 String _message; | 7523 String _message; |
7361 | 7524 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7486 throw jsonDecoder.missingKey(jsonPath, "type"); | 7649 throw jsonDecoder.missingKey(jsonPath, "type"); |
7487 } | 7650 } |
7488 Location location; | 7651 Location location; |
7489 if (json.containsKey("location")) { | 7652 if (json.containsKey("location")) { |
7490 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); | 7653 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); |
7491 } else { | 7654 } else { |
7492 throw jsonDecoder.missingKey(jsonPath, "location"); | 7655 throw jsonDecoder.missingKey(jsonPath, "location"); |
7493 } | 7656 } |
7494 String message; | 7657 String message; |
7495 if (json.containsKey("message")) { | 7658 if (json.containsKey("message")) { |
7496 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); | 7659 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); |
7497 } else { | 7660 } else { |
7498 throw jsonDecoder.missingKey(jsonPath, "message"); | 7661 throw jsonDecoder.missingKey(jsonPath, "message"); |
7499 } | 7662 } |
7500 String correction; | 7663 String correction; |
7501 if (json.containsKey("correction")) { | 7664 if (json.containsKey("correction")) { |
7502 correction = jsonDecoder._decodeString(jsonPath + ".correction", json["c
orrection"]); | 7665 correction = jsonDecoder.decodeString(jsonPath + ".correction", json["co
rrection"]); |
7503 } | 7666 } |
7504 bool hasFix; | 7667 bool hasFix; |
7505 if (json.containsKey("hasFix")) { | 7668 if (json.containsKey("hasFix")) { |
7506 hasFix = jsonDecoder._decodeBool(jsonPath + ".hasFix", json["hasFix"]); | 7669 hasFix = jsonDecoder.decodeBool(jsonPath + ".hasFix", json["hasFix"]); |
7507 } | 7670 } |
7508 return new AnalysisError(severity, type, location, message, correction: co
rrection, hasFix: hasFix); | 7671 return new AnalysisError(severity, type, location, message, correction: co
rrection, hasFix: hasFix); |
7509 } else { | 7672 } else { |
7510 throw jsonDecoder.mismatch(jsonPath, "AnalysisError", json); | 7673 throw jsonDecoder.mismatch(jsonPath, "AnalysisError", json); |
7511 } | 7674 } |
7512 } | 7675 } |
7513 | 7676 |
7514 Map<String, dynamic> toJson() { | 7677 Map<String, dynamic> toJson() { |
7515 Map<String, dynamic> result = {}; | 7678 Map<String, dynamic> result = {}; |
7516 result["severity"] = severity.toJson(); | 7679 result["severity"] = severity.toJson(); |
(...skipping 21 matching lines...) Expand all Loading... |
7538 message == other.message && | 7701 message == other.message && |
7539 correction == other.correction && | 7702 correction == other.correction && |
7540 hasFix == other.hasFix; | 7703 hasFix == other.hasFix; |
7541 } | 7704 } |
7542 return false; | 7705 return false; |
7543 } | 7706 } |
7544 | 7707 |
7545 @override | 7708 @override |
7546 int get hashCode { | 7709 int get hashCode { |
7547 int hash = 0; | 7710 int hash = 0; |
7548 hash = _JenkinsSmiHash.combine(hash, severity.hashCode); | 7711 hash = JenkinsSmiHash.combine(hash, severity.hashCode); |
7549 hash = _JenkinsSmiHash.combine(hash, type.hashCode); | 7712 hash = JenkinsSmiHash.combine(hash, type.hashCode); |
7550 hash = _JenkinsSmiHash.combine(hash, location.hashCode); | 7713 hash = JenkinsSmiHash.combine(hash, location.hashCode); |
7551 hash = _JenkinsSmiHash.combine(hash, message.hashCode); | 7714 hash = JenkinsSmiHash.combine(hash, message.hashCode); |
7552 hash = _JenkinsSmiHash.combine(hash, correction.hashCode); | 7715 hash = JenkinsSmiHash.combine(hash, correction.hashCode); |
7553 hash = _JenkinsSmiHash.combine(hash, hasFix.hashCode); | 7716 hash = JenkinsSmiHash.combine(hash, hasFix.hashCode); |
7554 return _JenkinsSmiHash.finish(hash); | 7717 return JenkinsSmiHash.finish(hash); |
7555 } | 7718 } |
7556 } | 7719 } |
7557 | 7720 |
7558 /** | 7721 /** |
7559 * AnalysisErrorFixes | 7722 * AnalysisErrorFixes |
7560 * | 7723 * |
7561 * { | 7724 * { |
7562 * "error": AnalysisError | 7725 * "error": AnalysisError |
7563 * "fixes": List<SourceChange> | 7726 * "fixes": List<SourceChange> |
7564 * } | 7727 * } |
| 7728 * |
| 7729 * Clients are not expected to subtype this class. |
7565 */ | 7730 */ |
7566 class AnalysisErrorFixes implements HasToJson { | 7731 class AnalysisErrorFixes implements HasToJson { |
7567 AnalysisError _error; | 7732 AnalysisError _error; |
7568 | 7733 |
7569 List<SourceChange> _fixes; | 7734 List<SourceChange> _fixes; |
7570 | 7735 |
7571 /** | 7736 /** |
7572 * The error with which the fixes are associated. | 7737 * The error with which the fixes are associated. |
7573 */ | 7738 */ |
7574 AnalysisError get error => _error; | 7739 AnalysisError get error => _error; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7609 } | 7774 } |
7610 if (json is Map) { | 7775 if (json is Map) { |
7611 AnalysisError error; | 7776 AnalysisError error; |
7612 if (json.containsKey("error")) { | 7777 if (json.containsKey("error")) { |
7613 error = new AnalysisError.fromJson(jsonDecoder, jsonPath + ".error", jso
n["error"]); | 7778 error = new AnalysisError.fromJson(jsonDecoder, jsonPath + ".error", jso
n["error"]); |
7614 } else { | 7779 } else { |
7615 throw jsonDecoder.missingKey(jsonPath, "error"); | 7780 throw jsonDecoder.missingKey(jsonPath, "error"); |
7616 } | 7781 } |
7617 List<SourceChange> fixes; | 7782 List<SourceChange> fixes; |
7618 if (json.containsKey("fixes")) { | 7783 if (json.containsKey("fixes")) { |
7619 fixes = jsonDecoder._decodeList(jsonPath + ".fixes", json["fixes"], (Str
ing jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonPath, j
son)); | 7784 fixes = jsonDecoder.decodeList(jsonPath + ".fixes", json["fixes"], (Stri
ng jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonPath, js
on)); |
7620 } else { | 7785 } else { |
7621 throw jsonDecoder.missingKey(jsonPath, "fixes"); | 7786 throw jsonDecoder.missingKey(jsonPath, "fixes"); |
7622 } | 7787 } |
7623 return new AnalysisErrorFixes(error, fixes: fixes); | 7788 return new AnalysisErrorFixes(error, fixes: fixes); |
7624 } else { | 7789 } else { |
7625 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorFixes", json); | 7790 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorFixes", json); |
7626 } | 7791 } |
7627 } | 7792 } |
7628 | 7793 |
7629 Map<String, dynamic> toJson() { | 7794 Map<String, dynamic> toJson() { |
7630 Map<String, dynamic> result = {}; | 7795 Map<String, dynamic> result = {}; |
7631 result["error"] = error.toJson(); | 7796 result["error"] = error.toJson(); |
7632 result["fixes"] = fixes.map((SourceChange value) => value.toJson()).toList()
; | 7797 result["fixes"] = fixes.map((SourceChange value) => value.toJson()).toList()
; |
7633 return result; | 7798 return result; |
7634 } | 7799 } |
7635 | 7800 |
7636 @override | 7801 @override |
7637 String toString() => JSON.encode(toJson()); | 7802 String toString() => JSON.encode(toJson()); |
7638 | 7803 |
7639 @override | 7804 @override |
7640 bool operator==(other) { | 7805 bool operator==(other) { |
7641 if (other is AnalysisErrorFixes) { | 7806 if (other is AnalysisErrorFixes) { |
7642 return error == other.error && | 7807 return error == other.error && |
7643 _listEqual(fixes, other.fixes, (SourceChange a, SourceChange b) => a =
= b); | 7808 listEqual(fixes, other.fixes, (SourceChange a, SourceChange b) => a ==
b); |
7644 } | 7809 } |
7645 return false; | 7810 return false; |
7646 } | 7811 } |
7647 | 7812 |
7648 @override | 7813 @override |
7649 int get hashCode { | 7814 int get hashCode { |
7650 int hash = 0; | 7815 int hash = 0; |
7651 hash = _JenkinsSmiHash.combine(hash, error.hashCode); | 7816 hash = JenkinsSmiHash.combine(hash, error.hashCode); |
7652 hash = _JenkinsSmiHash.combine(hash, fixes.hashCode); | 7817 hash = JenkinsSmiHash.combine(hash, fixes.hashCode); |
7653 return _JenkinsSmiHash.finish(hash); | 7818 return JenkinsSmiHash.finish(hash); |
7654 } | 7819 } |
7655 } | 7820 } |
7656 | 7821 |
7657 /** | 7822 /** |
7658 * AnalysisErrorSeverity | 7823 * AnalysisErrorSeverity |
7659 * | 7824 * |
7660 * enum { | 7825 * enum { |
7661 * INFO | 7826 * INFO |
7662 * WARNING | 7827 * WARNING |
7663 * ERROR | 7828 * ERROR |
7664 * } | 7829 * } |
| 7830 * |
| 7831 * Clients are not expected to subtype this class. |
7665 */ | 7832 */ |
7666 class AnalysisErrorSeverity implements Enum { | 7833 class AnalysisErrorSeverity implements Enum { |
7667 static const INFO = const AnalysisErrorSeverity._("INFO"); | 7834 static const INFO = const AnalysisErrorSeverity._("INFO"); |
7668 | 7835 |
7669 static const WARNING = const AnalysisErrorSeverity._("WARNING"); | 7836 static const WARNING = const AnalysisErrorSeverity._("WARNING"); |
7670 | 7837 |
7671 static const ERROR = const AnalysisErrorSeverity._("ERROR"); | 7838 static const ERROR = const AnalysisErrorSeverity._("ERROR"); |
7672 | 7839 |
7673 /** | 7840 /** |
7674 * A list containing all of the enum values that are defined. | 7841 * A list containing all of the enum values that are defined. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7714 * enum { | 7881 * enum { |
7715 * CHECKED_MODE_COMPILE_TIME_ERROR | 7882 * CHECKED_MODE_COMPILE_TIME_ERROR |
7716 * COMPILE_TIME_ERROR | 7883 * COMPILE_TIME_ERROR |
7717 * HINT | 7884 * HINT |
7718 * LINT | 7885 * LINT |
7719 * STATIC_TYPE_WARNING | 7886 * STATIC_TYPE_WARNING |
7720 * STATIC_WARNING | 7887 * STATIC_WARNING |
7721 * SYNTACTIC_ERROR | 7888 * SYNTACTIC_ERROR |
7722 * TODO | 7889 * TODO |
7723 * } | 7890 * } |
| 7891 * |
| 7892 * Clients are not expected to subtype this class. |
7724 */ | 7893 */ |
7725 class AnalysisErrorType implements Enum { | 7894 class AnalysisErrorType implements Enum { |
7726 static const CHECKED_MODE_COMPILE_TIME_ERROR = const AnalysisErrorType._("CHEC
KED_MODE_COMPILE_TIME_ERROR"); | 7895 static const CHECKED_MODE_COMPILE_TIME_ERROR = const AnalysisErrorType._("CHEC
KED_MODE_COMPILE_TIME_ERROR"); |
7727 | 7896 |
7728 static const COMPILE_TIME_ERROR = const AnalysisErrorType._("COMPILE_TIME_ERRO
R"); | 7897 static const COMPILE_TIME_ERROR = const AnalysisErrorType._("COMPILE_TIME_ERRO
R"); |
7729 | 7898 |
7730 static const HINT = const AnalysisErrorType._("HINT"); | 7899 static const HINT = const AnalysisErrorType._("HINT"); |
7731 | 7900 |
7732 static const LINT = const AnalysisErrorType._("LINT"); | 7901 static const LINT = const AnalysisErrorType._("LINT"); |
7733 | 7902 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7793 * { | 7962 * { |
7794 * "enableAsync": optional bool | 7963 * "enableAsync": optional bool |
7795 * "enableDeferredLoading": optional bool | 7964 * "enableDeferredLoading": optional bool |
7796 * "enableEnums": optional bool | 7965 * "enableEnums": optional bool |
7797 * "enableNullAwareOperators": optional bool | 7966 * "enableNullAwareOperators": optional bool |
7798 * "enableSuperMixins": optional bool | 7967 * "enableSuperMixins": optional bool |
7799 * "generateDart2jsHints": optional bool | 7968 * "generateDart2jsHints": optional bool |
7800 * "generateHints": optional bool | 7969 * "generateHints": optional bool |
7801 * "generateLints": optional bool | 7970 * "generateLints": optional bool |
7802 * } | 7971 * } |
| 7972 * |
| 7973 * Clients are not expected to subtype this class. |
7803 */ | 7974 */ |
7804 class AnalysisOptions implements HasToJson { | 7975 class AnalysisOptions implements HasToJson { |
7805 bool _enableAsync; | 7976 bool _enableAsync; |
7806 | 7977 |
7807 bool _enableDeferredLoading; | 7978 bool _enableDeferredLoading; |
7808 | 7979 |
7809 bool _enableEnums; | 7980 bool _enableEnums; |
7810 | 7981 |
7811 bool _enableNullAwareOperators; | 7982 bool _enableNullAwareOperators; |
7812 | 7983 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7953 this.generateLints = generateLints; | 8124 this.generateLints = generateLints; |
7954 } | 8125 } |
7955 | 8126 |
7956 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 8127 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
7957 if (json == null) { | 8128 if (json == null) { |
7958 json = {}; | 8129 json = {}; |
7959 } | 8130 } |
7960 if (json is Map) { | 8131 if (json is Map) { |
7961 bool enableAsync; | 8132 bool enableAsync; |
7962 if (json.containsKey("enableAsync")) { | 8133 if (json.containsKey("enableAsync")) { |
7963 enableAsync = jsonDecoder._decodeBool(jsonPath + ".enableAsync", json["e
nableAsync"]); | 8134 enableAsync = jsonDecoder.decodeBool(jsonPath + ".enableAsync", json["en
ableAsync"]); |
7964 } | 8135 } |
7965 bool enableDeferredLoading; | 8136 bool enableDeferredLoading; |
7966 if (json.containsKey("enableDeferredLoading")) { | 8137 if (json.containsKey("enableDeferredLoading")) { |
7967 enableDeferredLoading = jsonDecoder._decodeBool(jsonPath + ".enableDefer
redLoading", json["enableDeferredLoading"]); | 8138 enableDeferredLoading = jsonDecoder.decodeBool(jsonPath + ".enableDeferr
edLoading", json["enableDeferredLoading"]); |
7968 } | 8139 } |
7969 bool enableEnums; | 8140 bool enableEnums; |
7970 if (json.containsKey("enableEnums")) { | 8141 if (json.containsKey("enableEnums")) { |
7971 enableEnums = jsonDecoder._decodeBool(jsonPath + ".enableEnums", json["e
nableEnums"]); | 8142 enableEnums = jsonDecoder.decodeBool(jsonPath + ".enableEnums", json["en
ableEnums"]); |
7972 } | 8143 } |
7973 bool enableNullAwareOperators; | 8144 bool enableNullAwareOperators; |
7974 if (json.containsKey("enableNullAwareOperators")) { | 8145 if (json.containsKey("enableNullAwareOperators")) { |
7975 enableNullAwareOperators = jsonDecoder._decodeBool(jsonPath + ".enableNu
llAwareOperators", json["enableNullAwareOperators"]); | 8146 enableNullAwareOperators = jsonDecoder.decodeBool(jsonPath + ".enableNul
lAwareOperators", json["enableNullAwareOperators"]); |
7976 } | 8147 } |
7977 bool enableSuperMixins; | 8148 bool enableSuperMixins; |
7978 if (json.containsKey("enableSuperMixins")) { | 8149 if (json.containsKey("enableSuperMixins")) { |
7979 enableSuperMixins = jsonDecoder._decodeBool(jsonPath + ".enableSuperMixi
ns", json["enableSuperMixins"]); | 8150 enableSuperMixins = jsonDecoder.decodeBool(jsonPath + ".enableSuperMixin
s", json["enableSuperMixins"]); |
7980 } | 8151 } |
7981 bool generateDart2jsHints; | 8152 bool generateDart2jsHints; |
7982 if (json.containsKey("generateDart2jsHints")) { | 8153 if (json.containsKey("generateDart2jsHints")) { |
7983 generateDart2jsHints = jsonDecoder._decodeBool(jsonPath + ".generateDart
2jsHints", json["generateDart2jsHints"]); | 8154 generateDart2jsHints = jsonDecoder.decodeBool(jsonPath + ".generateDart2
jsHints", json["generateDart2jsHints"]); |
7984 } | 8155 } |
7985 bool generateHints; | 8156 bool generateHints; |
7986 if (json.containsKey("generateHints")) { | 8157 if (json.containsKey("generateHints")) { |
7987 generateHints = jsonDecoder._decodeBool(jsonPath + ".generateHints", jso
n["generateHints"]); | 8158 generateHints = jsonDecoder.decodeBool(jsonPath + ".generateHints", json
["generateHints"]); |
7988 } | 8159 } |
7989 bool generateLints; | 8160 bool generateLints; |
7990 if (json.containsKey("generateLints")) { | 8161 if (json.containsKey("generateLints")) { |
7991 generateLints = jsonDecoder._decodeBool(jsonPath + ".generateLints", jso
n["generateLints"]); | 8162 generateLints = jsonDecoder.decodeBool(jsonPath + ".generateLints", json
["generateLints"]); |
7992 } | 8163 } |
7993 return new AnalysisOptions(enableAsync: enableAsync, enableDeferredLoading
: enableDeferredLoading, enableEnums: enableEnums, enableNullAwareOperators: ena
bleNullAwareOperators, enableSuperMixins: enableSuperMixins, generateDart2jsHint
s: generateDart2jsHints, generateHints: generateHints, generateLints: generateLi
nts); | 8164 return new AnalysisOptions(enableAsync: enableAsync, enableDeferredLoading
: enableDeferredLoading, enableEnums: enableEnums, enableNullAwareOperators: ena
bleNullAwareOperators, enableSuperMixins: enableSuperMixins, generateDart2jsHint
s: generateDart2jsHints, generateHints: generateHints, generateLints: generateLi
nts); |
7994 } else { | 8165 } else { |
7995 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions", json); | 8166 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions", json); |
7996 } | 8167 } |
7997 } | 8168 } |
7998 | 8169 |
7999 Map<String, dynamic> toJson() { | 8170 Map<String, dynamic> toJson() { |
8000 Map<String, dynamic> result = {}; | 8171 Map<String, dynamic> result = {}; |
8001 if (enableAsync != null) { | 8172 if (enableAsync != null) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8039 generateDart2jsHints == other.generateDart2jsHints && | 8210 generateDart2jsHints == other.generateDart2jsHints && |
8040 generateHints == other.generateHints && | 8211 generateHints == other.generateHints && |
8041 generateLints == other.generateLints; | 8212 generateLints == other.generateLints; |
8042 } | 8213 } |
8043 return false; | 8214 return false; |
8044 } | 8215 } |
8045 | 8216 |
8046 @override | 8217 @override |
8047 int get hashCode { | 8218 int get hashCode { |
8048 int hash = 0; | 8219 int hash = 0; |
8049 hash = _JenkinsSmiHash.combine(hash, enableAsync.hashCode); | 8220 hash = JenkinsSmiHash.combine(hash, enableAsync.hashCode); |
8050 hash = _JenkinsSmiHash.combine(hash, enableDeferredLoading.hashCode); | 8221 hash = JenkinsSmiHash.combine(hash, enableDeferredLoading.hashCode); |
8051 hash = _JenkinsSmiHash.combine(hash, enableEnums.hashCode); | 8222 hash = JenkinsSmiHash.combine(hash, enableEnums.hashCode); |
8052 hash = _JenkinsSmiHash.combine(hash, enableNullAwareOperators.hashCode); | 8223 hash = JenkinsSmiHash.combine(hash, enableNullAwareOperators.hashCode); |
8053 hash = _JenkinsSmiHash.combine(hash, enableSuperMixins.hashCode); | 8224 hash = JenkinsSmiHash.combine(hash, enableSuperMixins.hashCode); |
8054 hash = _JenkinsSmiHash.combine(hash, generateDart2jsHints.hashCode); | 8225 hash = JenkinsSmiHash.combine(hash, generateDart2jsHints.hashCode); |
8055 hash = _JenkinsSmiHash.combine(hash, generateHints.hashCode); | 8226 hash = JenkinsSmiHash.combine(hash, generateHints.hashCode); |
8056 hash = _JenkinsSmiHash.combine(hash, generateLints.hashCode); | 8227 hash = JenkinsSmiHash.combine(hash, generateLints.hashCode); |
8057 return _JenkinsSmiHash.finish(hash); | 8228 return JenkinsSmiHash.finish(hash); |
8058 } | 8229 } |
8059 } | 8230 } |
8060 | 8231 |
8061 /** | 8232 /** |
8062 * AnalysisService | 8233 * AnalysisService |
8063 * | 8234 * |
8064 * enum { | 8235 * enum { |
8065 * FOLDING | 8236 * FOLDING |
8066 * HIGHLIGHTS | 8237 * HIGHLIGHTS |
8067 * IMPLEMENTED | 8238 * IMPLEMENTED |
8068 * INVALIDATE | 8239 * INVALIDATE |
8069 * NAVIGATION | 8240 * NAVIGATION |
8070 * OCCURRENCES | 8241 * OCCURRENCES |
8071 * OUTLINE | 8242 * OUTLINE |
8072 * OVERRIDES | 8243 * OVERRIDES |
8073 * } | 8244 * } |
| 8245 * |
| 8246 * Clients are not expected to subtype this class. |
8074 */ | 8247 */ |
8075 class AnalysisService implements Enum { | 8248 class AnalysisService implements Enum { |
8076 static const FOLDING = const AnalysisService._("FOLDING"); | 8249 static const FOLDING = const AnalysisService._("FOLDING"); |
8077 | 8250 |
8078 static const HIGHLIGHTS = const AnalysisService._("HIGHLIGHTS"); | 8251 static const HIGHLIGHTS = const AnalysisService._("HIGHLIGHTS"); |
8079 | 8252 |
8080 static const IMPLEMENTED = const AnalysisService._("IMPLEMENTED"); | 8253 static const IMPLEMENTED = const AnalysisService._("IMPLEMENTED"); |
8081 | 8254 |
8082 /** | 8255 /** |
8083 * This service is not currently implemented and will become a | 8256 * This service is not currently implemented and will become a |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8141 String toJson() => name; | 8314 String toJson() => name; |
8142 } | 8315 } |
8143 | 8316 |
8144 /** | 8317 /** |
8145 * AnalysisStatus | 8318 * AnalysisStatus |
8146 * | 8319 * |
8147 * { | 8320 * { |
8148 * "isAnalyzing": bool | 8321 * "isAnalyzing": bool |
8149 * "analysisTarget": optional String | 8322 * "analysisTarget": optional String |
8150 * } | 8323 * } |
| 8324 * |
| 8325 * Clients are not expected to subtype this class. |
8151 */ | 8326 */ |
8152 class AnalysisStatus implements HasToJson { | 8327 class AnalysisStatus implements HasToJson { |
8153 bool _isAnalyzing; | 8328 bool _isAnalyzing; |
8154 | 8329 |
8155 String _analysisTarget; | 8330 String _analysisTarget; |
8156 | 8331 |
8157 /** | 8332 /** |
8158 * True if analysis is currently being performed. | 8333 * True if analysis is currently being performed. |
8159 */ | 8334 */ |
8160 bool get isAnalyzing => _isAnalyzing; | 8335 bool get isAnalyzing => _isAnalyzing; |
(...skipping 25 matching lines...) Expand all Loading... |
8186 this.analysisTarget = analysisTarget; | 8361 this.analysisTarget = analysisTarget; |
8187 } | 8362 } |
8188 | 8363 |
8189 factory AnalysisStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 8364 factory AnalysisStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { |
8190 if (json == null) { | 8365 if (json == null) { |
8191 json = {}; | 8366 json = {}; |
8192 } | 8367 } |
8193 if (json is Map) { | 8368 if (json is Map) { |
8194 bool isAnalyzing; | 8369 bool isAnalyzing; |
8195 if (json.containsKey("isAnalyzing")) { | 8370 if (json.containsKey("isAnalyzing")) { |
8196 isAnalyzing = jsonDecoder._decodeBool(jsonPath + ".isAnalyzing", json["i
sAnalyzing"]); | 8371 isAnalyzing = jsonDecoder.decodeBool(jsonPath + ".isAnalyzing", json["is
Analyzing"]); |
8197 } else { | 8372 } else { |
8198 throw jsonDecoder.missingKey(jsonPath, "isAnalyzing"); | 8373 throw jsonDecoder.missingKey(jsonPath, "isAnalyzing"); |
8199 } | 8374 } |
8200 String analysisTarget; | 8375 String analysisTarget; |
8201 if (json.containsKey("analysisTarget")) { | 8376 if (json.containsKey("analysisTarget")) { |
8202 analysisTarget = jsonDecoder._decodeString(jsonPath + ".analysisTarget",
json["analysisTarget"]); | 8377 analysisTarget = jsonDecoder.decodeString(jsonPath + ".analysisTarget",
json["analysisTarget"]); |
8203 } | 8378 } |
8204 return new AnalysisStatus(isAnalyzing, analysisTarget: analysisTarget); | 8379 return new AnalysisStatus(isAnalyzing, analysisTarget: analysisTarget); |
8205 } else { | 8380 } else { |
8206 throw jsonDecoder.mismatch(jsonPath, "AnalysisStatus", json); | 8381 throw jsonDecoder.mismatch(jsonPath, "AnalysisStatus", json); |
8207 } | 8382 } |
8208 } | 8383 } |
8209 | 8384 |
8210 Map<String, dynamic> toJson() { | 8385 Map<String, dynamic> toJson() { |
8211 Map<String, dynamic> result = {}; | 8386 Map<String, dynamic> result = {}; |
8212 result["isAnalyzing"] = isAnalyzing; | 8387 result["isAnalyzing"] = isAnalyzing; |
(...skipping 11 matching lines...) Expand all Loading... |
8224 if (other is AnalysisStatus) { | 8399 if (other is AnalysisStatus) { |
8225 return isAnalyzing == other.isAnalyzing && | 8400 return isAnalyzing == other.isAnalyzing && |
8226 analysisTarget == other.analysisTarget; | 8401 analysisTarget == other.analysisTarget; |
8227 } | 8402 } |
8228 return false; | 8403 return false; |
8229 } | 8404 } |
8230 | 8405 |
8231 @override | 8406 @override |
8232 int get hashCode { | 8407 int get hashCode { |
8233 int hash = 0; | 8408 int hash = 0; |
8234 hash = _JenkinsSmiHash.combine(hash, isAnalyzing.hashCode); | 8409 hash = JenkinsSmiHash.combine(hash, isAnalyzing.hashCode); |
8235 hash = _JenkinsSmiHash.combine(hash, analysisTarget.hashCode); | 8410 hash = JenkinsSmiHash.combine(hash, analysisTarget.hashCode); |
8236 return _JenkinsSmiHash.finish(hash); | 8411 return JenkinsSmiHash.finish(hash); |
8237 } | 8412 } |
8238 } | 8413 } |
8239 | 8414 |
8240 /** | 8415 /** |
8241 * ChangeContentOverlay | 8416 * ChangeContentOverlay |
8242 * | 8417 * |
8243 * { | 8418 * { |
8244 * "type": "change" | 8419 * "type": "change" |
8245 * "edits": List<SourceEdit> | 8420 * "edits": List<SourceEdit> |
8246 * } | 8421 * } |
| 8422 * |
| 8423 * Clients are not expected to subtype this class. |
8247 */ | 8424 */ |
8248 class ChangeContentOverlay implements HasToJson { | 8425 class ChangeContentOverlay implements HasToJson { |
8249 List<SourceEdit> _edits; | 8426 List<SourceEdit> _edits; |
8250 | 8427 |
8251 /** | 8428 /** |
8252 * The edits to be applied to the file. | 8429 * The edits to be applied to the file. |
8253 */ | 8430 */ |
8254 List<SourceEdit> get edits => _edits; | 8431 List<SourceEdit> get edits => _edits; |
8255 | 8432 |
8256 /** | 8433 /** |
(...skipping 11 matching lines...) Expand all Loading... |
8268 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 8445 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
8269 if (json == null) { | 8446 if (json == null) { |
8270 json = {}; | 8447 json = {}; |
8271 } | 8448 } |
8272 if (json is Map) { | 8449 if (json is Map) { |
8273 if (json["type"] != "change") { | 8450 if (json["type"] != "change") { |
8274 throw jsonDecoder.mismatch(jsonPath, "equal " + "change", json); | 8451 throw jsonDecoder.mismatch(jsonPath, "equal " + "change", json); |
8275 } | 8452 } |
8276 List<SourceEdit> edits; | 8453 List<SourceEdit> edits; |
8277 if (json.containsKey("edits")) { | 8454 if (json.containsKey("edits")) { |
8278 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str
ing jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, jso
n)); | 8455 edits = jsonDecoder.decodeList(jsonPath + ".edits", json["edits"], (Stri
ng jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, json
)); |
8279 } else { | 8456 } else { |
8280 throw jsonDecoder.missingKey(jsonPath, "edits"); | 8457 throw jsonDecoder.missingKey(jsonPath, "edits"); |
8281 } | 8458 } |
8282 return new ChangeContentOverlay(edits); | 8459 return new ChangeContentOverlay(edits); |
8283 } else { | 8460 } else { |
8284 throw jsonDecoder.mismatch(jsonPath, "ChangeContentOverlay", json); | 8461 throw jsonDecoder.mismatch(jsonPath, "ChangeContentOverlay", json); |
8285 } | 8462 } |
8286 } | 8463 } |
8287 | 8464 |
8288 Map<String, dynamic> toJson() { | 8465 Map<String, dynamic> toJson() { |
8289 Map<String, dynamic> result = {}; | 8466 Map<String, dynamic> result = {}; |
8290 result["type"] = "change"; | 8467 result["type"] = "change"; |
8291 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); | 8468 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); |
8292 return result; | 8469 return result; |
8293 } | 8470 } |
8294 | 8471 |
8295 @override | 8472 @override |
8296 String toString() => JSON.encode(toJson()); | 8473 String toString() => JSON.encode(toJson()); |
8297 | 8474 |
8298 @override | 8475 @override |
8299 bool operator==(other) { | 8476 bool operator==(other) { |
8300 if (other is ChangeContentOverlay) { | 8477 if (other is ChangeContentOverlay) { |
8301 return _listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a ==
b); | 8478 return listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a ==
b); |
8302 } | 8479 } |
8303 return false; | 8480 return false; |
8304 } | 8481 } |
8305 | 8482 |
8306 @override | 8483 @override |
8307 int get hashCode { | 8484 int get hashCode { |
8308 int hash = 0; | 8485 int hash = 0; |
8309 hash = _JenkinsSmiHash.combine(hash, 873118866); | 8486 hash = JenkinsSmiHash.combine(hash, 873118866); |
8310 hash = _JenkinsSmiHash.combine(hash, edits.hashCode); | 8487 hash = JenkinsSmiHash.combine(hash, edits.hashCode); |
8311 return _JenkinsSmiHash.finish(hash); | 8488 return JenkinsSmiHash.finish(hash); |
8312 } | 8489 } |
8313 } | 8490 } |
8314 | 8491 |
8315 /** | 8492 /** |
8316 * CompletionSuggestion | 8493 * CompletionSuggestion |
8317 * | 8494 * |
8318 * { | 8495 * { |
8319 * "kind": CompletionSuggestionKind | 8496 * "kind": CompletionSuggestionKind |
8320 * "relevance": int | 8497 * "relevance": int |
8321 * "completion": String | 8498 * "completion": String |
8322 * "selectionOffset": int | 8499 * "selectionOffset": int |
8323 * "selectionLength": int | 8500 * "selectionLength": int |
8324 * "isDeprecated": bool | 8501 * "isDeprecated": bool |
8325 * "isPotential": bool | 8502 * "isPotential": bool |
8326 * "docSummary": optional String | 8503 * "docSummary": optional String |
8327 * "docComplete": optional String | 8504 * "docComplete": optional String |
8328 * "declaringType": optional String | 8505 * "declaringType": optional String |
8329 * "element": optional Element | 8506 * "element": optional Element |
8330 * "returnType": optional String | 8507 * "returnType": optional String |
8331 * "parameterNames": optional List<String> | 8508 * "parameterNames": optional List<String> |
8332 * "parameterTypes": optional List<String> | 8509 * "parameterTypes": optional List<String> |
8333 * "requiredParameterCount": optional int | 8510 * "requiredParameterCount": optional int |
8334 * "hasNamedParameters": optional bool | 8511 * "hasNamedParameters": optional bool |
8335 * "parameterName": optional String | 8512 * "parameterName": optional String |
8336 * "parameterType": optional String | 8513 * "parameterType": optional String |
8337 * "importUri": optional String | 8514 * "importUri": optional String |
8338 * } | 8515 * } |
| 8516 * |
| 8517 * Clients are not expected to subtype this class. |
8339 */ | 8518 */ |
8340 class CompletionSuggestion implements HasToJson { | 8519 class CompletionSuggestion implements HasToJson { |
8341 CompletionSuggestionKind _kind; | 8520 CompletionSuggestionKind _kind; |
8342 | 8521 |
8343 int _relevance; | 8522 int _relevance; |
8344 | 8523 |
8345 String _completion; | 8524 String _completion; |
8346 | 8525 |
8347 int _selectionOffset; | 8526 int _selectionOffset; |
8348 | 8527 |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8681 } | 8860 } |
8682 if (json is Map) { | 8861 if (json is Map) { |
8683 CompletionSuggestionKind kind; | 8862 CompletionSuggestionKind kind; |
8684 if (json.containsKey("kind")) { | 8863 if (json.containsKey("kind")) { |
8685 kind = new CompletionSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k
ind", json["kind"]); | 8864 kind = new CompletionSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k
ind", json["kind"]); |
8686 } else { | 8865 } else { |
8687 throw jsonDecoder.missingKey(jsonPath, "kind"); | 8866 throw jsonDecoder.missingKey(jsonPath, "kind"); |
8688 } | 8867 } |
8689 int relevance; | 8868 int relevance; |
8690 if (json.containsKey("relevance")) { | 8869 if (json.containsKey("relevance")) { |
8691 relevance = jsonDecoder._decodeInt(jsonPath + ".relevance", json["releva
nce"]); | 8870 relevance = jsonDecoder.decodeInt(jsonPath + ".relevance", json["relevan
ce"]); |
8692 } else { | 8871 } else { |
8693 throw jsonDecoder.missingKey(jsonPath, "relevance"); | 8872 throw jsonDecoder.missingKey(jsonPath, "relevance"); |
8694 } | 8873 } |
8695 String completion; | 8874 String completion; |
8696 if (json.containsKey("completion")) { | 8875 if (json.containsKey("completion")) { |
8697 completion = jsonDecoder._decodeString(jsonPath + ".completion", json["c
ompletion"]); | 8876 completion = jsonDecoder.decodeString(jsonPath + ".completion", json["co
mpletion"]); |
8698 } else { | 8877 } else { |
8699 throw jsonDecoder.missingKey(jsonPath, "completion"); | 8878 throw jsonDecoder.missingKey(jsonPath, "completion"); |
8700 } | 8879 } |
8701 int selectionOffset; | 8880 int selectionOffset; |
8702 if (json.containsKey("selectionOffset")) { | 8881 if (json.containsKey("selectionOffset")) { |
8703 selectionOffset = jsonDecoder._decodeInt(jsonPath + ".selectionOffset",
json["selectionOffset"]); | 8882 selectionOffset = jsonDecoder.decodeInt(jsonPath + ".selectionOffset", j
son["selectionOffset"]); |
8704 } else { | 8883 } else { |
8705 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); | 8884 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); |
8706 } | 8885 } |
8707 int selectionLength; | 8886 int selectionLength; |
8708 if (json.containsKey("selectionLength")) { | 8887 if (json.containsKey("selectionLength")) { |
8709 selectionLength = jsonDecoder._decodeInt(jsonPath + ".selectionLength",
json["selectionLength"]); | 8888 selectionLength = jsonDecoder.decodeInt(jsonPath + ".selectionLength", j
son["selectionLength"]); |
8710 } else { | 8889 } else { |
8711 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); | 8890 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); |
8712 } | 8891 } |
8713 bool isDeprecated; | 8892 bool isDeprecated; |
8714 if (json.containsKey("isDeprecated")) { | 8893 if (json.containsKey("isDeprecated")) { |
8715 isDeprecated = jsonDecoder._decodeBool(jsonPath + ".isDeprecated", json[
"isDeprecated"]); | 8894 isDeprecated = jsonDecoder.decodeBool(jsonPath + ".isDeprecated", json["
isDeprecated"]); |
8716 } else { | 8895 } else { |
8717 throw jsonDecoder.missingKey(jsonPath, "isDeprecated"); | 8896 throw jsonDecoder.missingKey(jsonPath, "isDeprecated"); |
8718 } | 8897 } |
8719 bool isPotential; | 8898 bool isPotential; |
8720 if (json.containsKey("isPotential")) { | 8899 if (json.containsKey("isPotential")) { |
8721 isPotential = jsonDecoder._decodeBool(jsonPath + ".isPotential", json["i
sPotential"]); | 8900 isPotential = jsonDecoder.decodeBool(jsonPath + ".isPotential", json["is
Potential"]); |
8722 } else { | 8901 } else { |
8723 throw jsonDecoder.missingKey(jsonPath, "isPotential"); | 8902 throw jsonDecoder.missingKey(jsonPath, "isPotential"); |
8724 } | 8903 } |
8725 String docSummary; | 8904 String docSummary; |
8726 if (json.containsKey("docSummary")) { | 8905 if (json.containsKey("docSummary")) { |
8727 docSummary = jsonDecoder._decodeString(jsonPath + ".docSummary", json["d
ocSummary"]); | 8906 docSummary = jsonDecoder.decodeString(jsonPath + ".docSummary", json["do
cSummary"]); |
8728 } | 8907 } |
8729 String docComplete; | 8908 String docComplete; |
8730 if (json.containsKey("docComplete")) { | 8909 if (json.containsKey("docComplete")) { |
8731 docComplete = jsonDecoder._decodeString(jsonPath + ".docComplete", json[
"docComplete"]); | 8910 docComplete = jsonDecoder.decodeString(jsonPath + ".docComplete", json["
docComplete"]); |
8732 } | 8911 } |
8733 String declaringType; | 8912 String declaringType; |
8734 if (json.containsKey("declaringType")) { | 8913 if (json.containsKey("declaringType")) { |
8735 declaringType = jsonDecoder._decodeString(jsonPath + ".declaringType", j
son["declaringType"]); | 8914 declaringType = jsonDecoder.decodeString(jsonPath + ".declaringType", js
on["declaringType"]); |
8736 } | 8915 } |
8737 Element element; | 8916 Element element; |
8738 if (json.containsKey("element")) { | 8917 if (json.containsKey("element")) { |
8739 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 8918 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); |
8740 } | 8919 } |
8741 String returnType; | 8920 String returnType; |
8742 if (json.containsKey("returnType")) { | 8921 if (json.containsKey("returnType")) { |
8743 returnType = jsonDecoder._decodeString(jsonPath + ".returnType", json["r
eturnType"]); | 8922 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); |
8744 } | 8923 } |
8745 List<String> parameterNames; | 8924 List<String> parameterNames; |
8746 if (json.containsKey("parameterNames")) { | 8925 if (json.containsKey("parameterNames")) { |
8747 parameterNames = jsonDecoder._decodeList(jsonPath + ".parameterNames", j
son["parameterNames"], jsonDecoder._decodeString); | 8926 parameterNames = jsonDecoder.decodeList(jsonPath + ".parameterNames", js
on["parameterNames"], jsonDecoder.decodeString); |
8748 } | 8927 } |
8749 List<String> parameterTypes; | 8928 List<String> parameterTypes; |
8750 if (json.containsKey("parameterTypes")) { | 8929 if (json.containsKey("parameterTypes")) { |
8751 parameterTypes = jsonDecoder._decodeList(jsonPath + ".parameterTypes", j
son["parameterTypes"], jsonDecoder._decodeString); | 8930 parameterTypes = jsonDecoder.decodeList(jsonPath + ".parameterTypes", js
on["parameterTypes"], jsonDecoder.decodeString); |
8752 } | 8931 } |
8753 int requiredParameterCount; | 8932 int requiredParameterCount; |
8754 if (json.containsKey("requiredParameterCount")) { | 8933 if (json.containsKey("requiredParameterCount")) { |
8755 requiredParameterCount = jsonDecoder._decodeInt(jsonPath + ".requiredPar
ameterCount", json["requiredParameterCount"]); | 8934 requiredParameterCount = jsonDecoder.decodeInt(jsonPath + ".requiredPara
meterCount", json["requiredParameterCount"]); |
8756 } | 8935 } |
8757 bool hasNamedParameters; | 8936 bool hasNamedParameters; |
8758 if (json.containsKey("hasNamedParameters")) { | 8937 if (json.containsKey("hasNamedParameters")) { |
8759 hasNamedParameters = jsonDecoder._decodeBool(jsonPath + ".hasNamedParame
ters", json["hasNamedParameters"]); | 8938 hasNamedParameters = jsonDecoder.decodeBool(jsonPath + ".hasNamedParamet
ers", json["hasNamedParameters"]); |
8760 } | 8939 } |
8761 String parameterName; | 8940 String parameterName; |
8762 if (json.containsKey("parameterName")) { | 8941 if (json.containsKey("parameterName")) { |
8763 parameterName = jsonDecoder._decodeString(jsonPath + ".parameterName", j
son["parameterName"]); | 8942 parameterName = jsonDecoder.decodeString(jsonPath + ".parameterName", js
on["parameterName"]); |
8764 } | 8943 } |
8765 String parameterType; | 8944 String parameterType; |
8766 if (json.containsKey("parameterType")) { | 8945 if (json.containsKey("parameterType")) { |
8767 parameterType = jsonDecoder._decodeString(jsonPath + ".parameterType", j
son["parameterType"]); | 8946 parameterType = jsonDecoder.decodeString(jsonPath + ".parameterType", js
on["parameterType"]); |
8768 } | 8947 } |
8769 String importUri; | 8948 String importUri; |
8770 if (json.containsKey("importUri")) { | 8949 if (json.containsKey("importUri")) { |
8771 importUri = jsonDecoder._decodeString(jsonPath + ".importUri", json["imp
ortUri"]); | 8950 importUri = jsonDecoder.decodeString(jsonPath + ".importUri", json["impo
rtUri"]); |
8772 } | 8951 } |
8773 return new CompletionSuggestion(kind, relevance, completion, selectionOffs
et, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docCompl
ete: docComplete, declaringType: declaringType, element: element, returnType: re
turnType, parameterNames: parameterNames, parameterTypes: parameterTypes, requir
edParameterCount: requiredParameterCount, hasNamedParameters: hasNamedParameters
, parameterName: parameterName, parameterType: parameterType, importUri: importU
ri); | 8952 return new CompletionSuggestion(kind, relevance, completion, selectionOffs
et, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docCompl
ete: docComplete, declaringType: declaringType, element: element, returnType: re
turnType, parameterNames: parameterNames, parameterTypes: parameterTypes, requir
edParameterCount: requiredParameterCount, hasNamedParameters: hasNamedParameters
, parameterName: parameterName, parameterType: parameterType, importUri: importU
ri); |
8774 } else { | 8953 } else { |
8775 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json); | 8954 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json); |
8776 } | 8955 } |
8777 } | 8956 } |
8778 | 8957 |
8779 Map<String, dynamic> toJson() { | 8958 Map<String, dynamic> toJson() { |
8780 Map<String, dynamic> result = {}; | 8959 Map<String, dynamic> result = {}; |
8781 result["kind"] = kind.toJson(); | 8960 result["kind"] = kind.toJson(); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8835 completion == other.completion && | 9014 completion == other.completion && |
8836 selectionOffset == other.selectionOffset && | 9015 selectionOffset == other.selectionOffset && |
8837 selectionLength == other.selectionLength && | 9016 selectionLength == other.selectionLength && |
8838 isDeprecated == other.isDeprecated && | 9017 isDeprecated == other.isDeprecated && |
8839 isPotential == other.isPotential && | 9018 isPotential == other.isPotential && |
8840 docSummary == other.docSummary && | 9019 docSummary == other.docSummary && |
8841 docComplete == other.docComplete && | 9020 docComplete == other.docComplete && |
8842 declaringType == other.declaringType && | 9021 declaringType == other.declaringType && |
8843 element == other.element && | 9022 element == other.element && |
8844 returnType == other.returnType && | 9023 returnType == other.returnType && |
8845 _listEqual(parameterNames, other.parameterNames, (String a, String b)
=> a == b) && | 9024 listEqual(parameterNames, other.parameterNames, (String a, String b) =
> a == b) && |
8846 _listEqual(parameterTypes, other.parameterTypes, (String a, String b)
=> a == b) && | 9025 listEqual(parameterTypes, other.parameterTypes, (String a, String b) =
> a == b) && |
8847 requiredParameterCount == other.requiredParameterCount && | 9026 requiredParameterCount == other.requiredParameterCount && |
8848 hasNamedParameters == other.hasNamedParameters && | 9027 hasNamedParameters == other.hasNamedParameters && |
8849 parameterName == other.parameterName && | 9028 parameterName == other.parameterName && |
8850 parameterType == other.parameterType && | 9029 parameterType == other.parameterType && |
8851 importUri == other.importUri; | 9030 importUri == other.importUri; |
8852 } | 9031 } |
8853 return false; | 9032 return false; |
8854 } | 9033 } |
8855 | 9034 |
8856 @override | 9035 @override |
8857 int get hashCode { | 9036 int get hashCode { |
8858 int hash = 0; | 9037 int hash = 0; |
8859 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 9038 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
8860 hash = _JenkinsSmiHash.combine(hash, relevance.hashCode); | 9039 hash = JenkinsSmiHash.combine(hash, relevance.hashCode); |
8861 hash = _JenkinsSmiHash.combine(hash, completion.hashCode); | 9040 hash = JenkinsSmiHash.combine(hash, completion.hashCode); |
8862 hash = _JenkinsSmiHash.combine(hash, selectionOffset.hashCode); | 9041 hash = JenkinsSmiHash.combine(hash, selectionOffset.hashCode); |
8863 hash = _JenkinsSmiHash.combine(hash, selectionLength.hashCode); | 9042 hash = JenkinsSmiHash.combine(hash, selectionLength.hashCode); |
8864 hash = _JenkinsSmiHash.combine(hash, isDeprecated.hashCode); | 9043 hash = JenkinsSmiHash.combine(hash, isDeprecated.hashCode); |
8865 hash = _JenkinsSmiHash.combine(hash, isPotential.hashCode); | 9044 hash = JenkinsSmiHash.combine(hash, isPotential.hashCode); |
8866 hash = _JenkinsSmiHash.combine(hash, docSummary.hashCode); | 9045 hash = JenkinsSmiHash.combine(hash, docSummary.hashCode); |
8867 hash = _JenkinsSmiHash.combine(hash, docComplete.hashCode); | 9046 hash = JenkinsSmiHash.combine(hash, docComplete.hashCode); |
8868 hash = _JenkinsSmiHash.combine(hash, declaringType.hashCode); | 9047 hash = JenkinsSmiHash.combine(hash, declaringType.hashCode); |
8869 hash = _JenkinsSmiHash.combine(hash, element.hashCode); | 9048 hash = JenkinsSmiHash.combine(hash, element.hashCode); |
8870 hash = _JenkinsSmiHash.combine(hash, returnType.hashCode); | 9049 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); |
8871 hash = _JenkinsSmiHash.combine(hash, parameterNames.hashCode); | 9050 hash = JenkinsSmiHash.combine(hash, parameterNames.hashCode); |
8872 hash = _JenkinsSmiHash.combine(hash, parameterTypes.hashCode); | 9051 hash = JenkinsSmiHash.combine(hash, parameterTypes.hashCode); |
8873 hash = _JenkinsSmiHash.combine(hash, requiredParameterCount.hashCode); | 9052 hash = JenkinsSmiHash.combine(hash, requiredParameterCount.hashCode); |
8874 hash = _JenkinsSmiHash.combine(hash, hasNamedParameters.hashCode); | 9053 hash = JenkinsSmiHash.combine(hash, hasNamedParameters.hashCode); |
8875 hash = _JenkinsSmiHash.combine(hash, parameterName.hashCode); | 9054 hash = JenkinsSmiHash.combine(hash, parameterName.hashCode); |
8876 hash = _JenkinsSmiHash.combine(hash, parameterType.hashCode); | 9055 hash = JenkinsSmiHash.combine(hash, parameterType.hashCode); |
8877 hash = _JenkinsSmiHash.combine(hash, importUri.hashCode); | 9056 hash = JenkinsSmiHash.combine(hash, importUri.hashCode); |
8878 return _JenkinsSmiHash.finish(hash); | 9057 return JenkinsSmiHash.finish(hash); |
8879 } | 9058 } |
8880 } | 9059 } |
8881 | 9060 |
8882 /** | 9061 /** |
8883 * CompletionSuggestionKind | 9062 * CompletionSuggestionKind |
8884 * | 9063 * |
8885 * enum { | 9064 * enum { |
8886 * ARGUMENT_LIST | 9065 * ARGUMENT_LIST |
8887 * IMPORT | 9066 * IMPORT |
8888 * IDENTIFIER | 9067 * IDENTIFIER |
8889 * INVOCATION | 9068 * INVOCATION |
8890 * KEYWORD | 9069 * KEYWORD |
8891 * NAMED_ARGUMENT | 9070 * NAMED_ARGUMENT |
8892 * OPTIONAL_ARGUMENT | 9071 * OPTIONAL_ARGUMENT |
8893 * PARAMETER | 9072 * PARAMETER |
8894 * } | 9073 * } |
| 9074 * |
| 9075 * Clients are not expected to subtype this class. |
8895 */ | 9076 */ |
8896 class CompletionSuggestionKind implements Enum { | 9077 class CompletionSuggestionKind implements Enum { |
8897 /** | 9078 /** |
8898 * A list of arguments for the method or function that is being invoked. For | 9079 * A list of arguments for the method or function that is being invoked. For |
8899 * this suggestion kind, the completion field is a textual representation of | 9080 * this suggestion kind, the completion field is a textual representation of |
8900 * the invocation and the parameterNames, parameterTypes, and | 9081 * the invocation and the parameterNames, parameterTypes, and |
8901 * requiredParameterCount attributes are defined. | 9082 * requiredParameterCount attributes are defined. |
8902 */ | 9083 */ |
8903 static const ARGUMENT_LIST = const CompletionSuggestionKind._("ARGUMENT_LIST")
; | 9084 static const ARGUMENT_LIST = const CompletionSuggestionKind._("ARGUMENT_LIST")
; |
8904 | 9085 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8990 * | 9171 * |
8991 * { | 9172 * { |
8992 * "kind": ElementKind | 9173 * "kind": ElementKind |
8993 * "name": String | 9174 * "name": String |
8994 * "location": optional Location | 9175 * "location": optional Location |
8995 * "flags": int | 9176 * "flags": int |
8996 * "parameters": optional String | 9177 * "parameters": optional String |
8997 * "returnType": optional String | 9178 * "returnType": optional String |
8998 * "typeParameters": optional String | 9179 * "typeParameters": optional String |
8999 * } | 9180 * } |
| 9181 * |
| 9182 * Clients are not expected to subtype this class. |
9000 */ | 9183 */ |
9001 class Element implements HasToJson { | 9184 class Element implements HasToJson { |
9002 static const int FLAG_ABSTRACT = 0x01; | 9185 static const int FLAG_ABSTRACT = 0x01; |
9003 static const int FLAG_CONST = 0x02; | 9186 static const int FLAG_CONST = 0x02; |
9004 static const int FLAG_FINAL = 0x04; | 9187 static const int FLAG_FINAL = 0x04; |
9005 static const int FLAG_STATIC = 0x08; | 9188 static const int FLAG_STATIC = 0x08; |
9006 static const int FLAG_PRIVATE = 0x10; | 9189 static const int FLAG_PRIVATE = 0x10; |
9007 static const int FLAG_DEPRECATED = 0x20; | 9190 static const int FLAG_DEPRECATED = 0x20; |
9008 | 9191 |
9009 static int makeFlags({isAbstract: false, isConst: false, isFinal: false, isSta
tic: false, isPrivate: false, isDeprecated: false}) { | 9192 static int makeFlags({isAbstract: false, isConst: false, isFinal: false, isSta
tic: false, isPrivate: false, isDeprecated: false}) { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9164 } | 9347 } |
9165 if (json is Map) { | 9348 if (json is Map) { |
9166 ElementKind kind; | 9349 ElementKind kind; |
9167 if (json.containsKey("kind")) { | 9350 if (json.containsKey("kind")) { |
9168 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k
ind"]); | 9351 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k
ind"]); |
9169 } else { | 9352 } else { |
9170 throw jsonDecoder.missingKey(jsonPath, "kind"); | 9353 throw jsonDecoder.missingKey(jsonPath, "kind"); |
9171 } | 9354 } |
9172 String name; | 9355 String name; |
9173 if (json.containsKey("name")) { | 9356 if (json.containsKey("name")) { |
9174 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 9357 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
9175 } else { | 9358 } else { |
9176 throw jsonDecoder.missingKey(jsonPath, "name"); | 9359 throw jsonDecoder.missingKey(jsonPath, "name"); |
9177 } | 9360 } |
9178 Location location; | 9361 Location location; |
9179 if (json.containsKey("location")) { | 9362 if (json.containsKey("location")) { |
9180 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); | 9363 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); |
9181 } | 9364 } |
9182 int flags; | 9365 int flags; |
9183 if (json.containsKey("flags")) { | 9366 if (json.containsKey("flags")) { |
9184 flags = jsonDecoder._decodeInt(jsonPath + ".flags", json["flags"]); | 9367 flags = jsonDecoder.decodeInt(jsonPath + ".flags", json["flags"]); |
9185 } else { | 9368 } else { |
9186 throw jsonDecoder.missingKey(jsonPath, "flags"); | 9369 throw jsonDecoder.missingKey(jsonPath, "flags"); |
9187 } | 9370 } |
9188 String parameters; | 9371 String parameters; |
9189 if (json.containsKey("parameters")) { | 9372 if (json.containsKey("parameters")) { |
9190 parameters = jsonDecoder._decodeString(jsonPath + ".parameters", json["p
arameters"]); | 9373 parameters = jsonDecoder.decodeString(jsonPath + ".parameters", json["pa
rameters"]); |
9191 } | 9374 } |
9192 String returnType; | 9375 String returnType; |
9193 if (json.containsKey("returnType")) { | 9376 if (json.containsKey("returnType")) { |
9194 returnType = jsonDecoder._decodeString(jsonPath + ".returnType", json["r
eturnType"]); | 9377 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); |
9195 } | 9378 } |
9196 String typeParameters; | 9379 String typeParameters; |
9197 if (json.containsKey("typeParameters")) { | 9380 if (json.containsKey("typeParameters")) { |
9198 typeParameters = jsonDecoder._decodeString(jsonPath + ".typeParameters",
json["typeParameters"]); | 9381 typeParameters = jsonDecoder.decodeString(jsonPath + ".typeParameters",
json["typeParameters"]); |
9199 } | 9382 } |
9200 return new Element(kind, name, flags, location: location, parameters: para
meters, returnType: returnType, typeParameters: typeParameters); | 9383 return new Element(kind, name, flags, location: location, parameters: para
meters, returnType: returnType, typeParameters: typeParameters); |
9201 } else { | 9384 } else { |
9202 throw jsonDecoder.mismatch(jsonPath, "Element", json); | 9385 throw jsonDecoder.mismatch(jsonPath, "Element", json); |
9203 } | 9386 } |
9204 } | 9387 } |
9205 | 9388 |
9206 bool get isAbstract => (flags & FLAG_ABSTRACT) != 0; | 9389 bool get isAbstract => (flags & FLAG_ABSTRACT) != 0; |
9207 bool get isConst => (flags & FLAG_CONST) != 0; | 9390 bool get isConst => (flags & FLAG_CONST) != 0; |
9208 bool get isFinal => (flags & FLAG_FINAL) != 0; | 9391 bool get isFinal => (flags & FLAG_FINAL) != 0; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9243 parameters == other.parameters && | 9426 parameters == other.parameters && |
9244 returnType == other.returnType && | 9427 returnType == other.returnType && |
9245 typeParameters == other.typeParameters; | 9428 typeParameters == other.typeParameters; |
9246 } | 9429 } |
9247 return false; | 9430 return false; |
9248 } | 9431 } |
9249 | 9432 |
9250 @override | 9433 @override |
9251 int get hashCode { | 9434 int get hashCode { |
9252 int hash = 0; | 9435 int hash = 0; |
9253 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 9436 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
9254 hash = _JenkinsSmiHash.combine(hash, name.hashCode); | 9437 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
9255 hash = _JenkinsSmiHash.combine(hash, location.hashCode); | 9438 hash = JenkinsSmiHash.combine(hash, location.hashCode); |
9256 hash = _JenkinsSmiHash.combine(hash, flags.hashCode); | 9439 hash = JenkinsSmiHash.combine(hash, flags.hashCode); |
9257 hash = _JenkinsSmiHash.combine(hash, parameters.hashCode); | 9440 hash = JenkinsSmiHash.combine(hash, parameters.hashCode); |
9258 hash = _JenkinsSmiHash.combine(hash, returnType.hashCode); | 9441 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); |
9259 hash = _JenkinsSmiHash.combine(hash, typeParameters.hashCode); | 9442 hash = JenkinsSmiHash.combine(hash, typeParameters.hashCode); |
9260 return _JenkinsSmiHash.finish(hash); | 9443 return JenkinsSmiHash.finish(hash); |
9261 } | 9444 } |
9262 } | 9445 } |
9263 | 9446 |
9264 /** | 9447 /** |
9265 * ElementKind | 9448 * ElementKind |
9266 * | 9449 * |
9267 * enum { | 9450 * enum { |
9268 * CLASS | 9451 * CLASS |
9269 * CLASS_TYPE_ALIAS | 9452 * CLASS_TYPE_ALIAS |
9270 * COMPILATION_UNIT | 9453 * COMPILATION_UNIT |
(...skipping 10 matching lines...) Expand all Loading... |
9281 * METHOD | 9464 * METHOD |
9282 * PARAMETER | 9465 * PARAMETER |
9283 * PREFIX | 9466 * PREFIX |
9284 * SETTER | 9467 * SETTER |
9285 * TOP_LEVEL_VARIABLE | 9468 * TOP_LEVEL_VARIABLE |
9286 * TYPE_PARAMETER | 9469 * TYPE_PARAMETER |
9287 * UNIT_TEST_GROUP | 9470 * UNIT_TEST_GROUP |
9288 * UNIT_TEST_TEST | 9471 * UNIT_TEST_TEST |
9289 * UNKNOWN | 9472 * UNKNOWN |
9290 * } | 9473 * } |
| 9474 * |
| 9475 * Clients are not expected to subtype this class. |
9291 */ | 9476 */ |
9292 class ElementKind implements Enum { | 9477 class ElementKind implements Enum { |
9293 static const CLASS = const ElementKind._("CLASS"); | 9478 static const CLASS = const ElementKind._("CLASS"); |
9294 | 9479 |
9295 static const CLASS_TYPE_ALIAS = const ElementKind._("CLASS_TYPE_ALIAS"); | 9480 static const CLASS_TYPE_ALIAS = const ElementKind._("CLASS_TYPE_ALIAS"); |
9296 | 9481 |
9297 static const COMPILATION_UNIT = const ElementKind._("COMPILATION_UNIT"); | 9482 static const COMPILATION_UNIT = const ElementKind._("COMPILATION_UNIT"); |
9298 | 9483 |
9299 static const CONSTRUCTOR = const ElementKind._("CONSTRUCTOR"); | 9484 static const CONSTRUCTOR = const ElementKind._("CONSTRUCTOR"); |
9300 | 9485 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9410 String toJson() => name; | 9595 String toJson() => name; |
9411 } | 9596 } |
9412 | 9597 |
9413 /** | 9598 /** |
9414 * ExecutableFile | 9599 * ExecutableFile |
9415 * | 9600 * |
9416 * { | 9601 * { |
9417 * "file": FilePath | 9602 * "file": FilePath |
9418 * "kind": ExecutableKind | 9603 * "kind": ExecutableKind |
9419 * } | 9604 * } |
| 9605 * |
| 9606 * Clients are not expected to subtype this class. |
9420 */ | 9607 */ |
9421 class ExecutableFile implements HasToJson { | 9608 class ExecutableFile implements HasToJson { |
9422 String _file; | 9609 String _file; |
9423 | 9610 |
9424 ExecutableKind _kind; | 9611 ExecutableKind _kind; |
9425 | 9612 |
9426 /** | 9613 /** |
9427 * The path of the executable file. | 9614 * The path of the executable file. |
9428 */ | 9615 */ |
9429 String get file => _file; | 9616 String get file => _file; |
(...skipping 24 matching lines...) Expand all Loading... |
9454 this.kind = kind; | 9641 this.kind = kind; |
9455 } | 9642 } |
9456 | 9643 |
9457 factory ExecutableFile.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 9644 factory ExecutableFile.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { |
9458 if (json == null) { | 9645 if (json == null) { |
9459 json = {}; | 9646 json = {}; |
9460 } | 9647 } |
9461 if (json is Map) { | 9648 if (json is Map) { |
9462 String file; | 9649 String file; |
9463 if (json.containsKey("file")) { | 9650 if (json.containsKey("file")) { |
9464 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 9651 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
9465 } else { | 9652 } else { |
9466 throw jsonDecoder.missingKey(jsonPath, "file"); | 9653 throw jsonDecoder.missingKey(jsonPath, "file"); |
9467 } | 9654 } |
9468 ExecutableKind kind; | 9655 ExecutableKind kind; |
9469 if (json.containsKey("kind")) { | 9656 if (json.containsKey("kind")) { |
9470 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); | 9657 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); |
9471 } else { | 9658 } else { |
9472 throw jsonDecoder.missingKey(jsonPath, "kind"); | 9659 throw jsonDecoder.missingKey(jsonPath, "kind"); |
9473 } | 9660 } |
9474 return new ExecutableFile(file, kind); | 9661 return new ExecutableFile(file, kind); |
(...skipping 17 matching lines...) Expand all Loading... |
9492 if (other is ExecutableFile) { | 9679 if (other is ExecutableFile) { |
9493 return file == other.file && | 9680 return file == other.file && |
9494 kind == other.kind; | 9681 kind == other.kind; |
9495 } | 9682 } |
9496 return false; | 9683 return false; |
9497 } | 9684 } |
9498 | 9685 |
9499 @override | 9686 @override |
9500 int get hashCode { | 9687 int get hashCode { |
9501 int hash = 0; | 9688 int hash = 0; |
9502 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 9689 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
9503 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 9690 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
9504 return _JenkinsSmiHash.finish(hash); | 9691 return JenkinsSmiHash.finish(hash); |
9505 } | 9692 } |
9506 } | 9693 } |
9507 | 9694 |
9508 /** | 9695 /** |
9509 * ExecutableKind | 9696 * ExecutableKind |
9510 * | 9697 * |
9511 * enum { | 9698 * enum { |
9512 * CLIENT | 9699 * CLIENT |
9513 * EITHER | 9700 * EITHER |
9514 * NOT_EXECUTABLE | 9701 * NOT_EXECUTABLE |
9515 * SERVER | 9702 * SERVER |
9516 * } | 9703 * } |
| 9704 * |
| 9705 * Clients are not expected to subtype this class. |
9517 */ | 9706 */ |
9518 class ExecutableKind implements Enum { | 9707 class ExecutableKind implements Enum { |
9519 static const CLIENT = const ExecutableKind._("CLIENT"); | 9708 static const CLIENT = const ExecutableKind._("CLIENT"); |
9520 | 9709 |
9521 static const EITHER = const ExecutableKind._("EITHER"); | 9710 static const EITHER = const ExecutableKind._("EITHER"); |
9522 | 9711 |
9523 static const NOT_EXECUTABLE = const ExecutableKind._("NOT_EXECUTABLE"); | 9712 static const NOT_EXECUTABLE = const ExecutableKind._("NOT_EXECUTABLE"); |
9524 | 9713 |
9525 static const SERVER = const ExecutableKind._("SERVER"); | 9714 static const SERVER = const ExecutableKind._("SERVER"); |
9526 | 9715 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9563 | 9752 |
9564 String toJson() => name; | 9753 String toJson() => name; |
9565 } | 9754 } |
9566 | 9755 |
9567 /** | 9756 /** |
9568 * ExecutionService | 9757 * ExecutionService |
9569 * | 9758 * |
9570 * enum { | 9759 * enum { |
9571 * LAUNCH_DATA | 9760 * LAUNCH_DATA |
9572 * } | 9761 * } |
| 9762 * |
| 9763 * Clients are not expected to subtype this class. |
9573 */ | 9764 */ |
9574 class ExecutionService implements Enum { | 9765 class ExecutionService implements Enum { |
9575 static const LAUNCH_DATA = const ExecutionService._("LAUNCH_DATA"); | 9766 static const LAUNCH_DATA = const ExecutionService._("LAUNCH_DATA"); |
9576 | 9767 |
9577 /** | 9768 /** |
9578 * A list containing all of the enum values that are defined. | 9769 * A list containing all of the enum values that are defined. |
9579 */ | 9770 */ |
9580 static const List<ExecutionService> VALUES = const <ExecutionService>[LAUNCH_D
ATA]; | 9771 static const List<ExecutionService> VALUES = const <ExecutionService>[LAUNCH_D
ATA]; |
9581 | 9772 |
9582 final String name; | 9773 final String name; |
(...skipping 25 matching lines...) Expand all Loading... |
9608 String toJson() => name; | 9799 String toJson() => name; |
9609 } | 9800 } |
9610 | 9801 |
9611 /** | 9802 /** |
9612 * FileKind | 9803 * FileKind |
9613 * | 9804 * |
9614 * enum { | 9805 * enum { |
9615 * LIBRARY | 9806 * LIBRARY |
9616 * PART | 9807 * PART |
9617 * } | 9808 * } |
| 9809 * |
| 9810 * Clients are not expected to subtype this class. |
9618 */ | 9811 */ |
9619 class FileKind implements Enum { | 9812 class FileKind implements Enum { |
9620 static const LIBRARY = const FileKind._("LIBRARY"); | 9813 static const LIBRARY = const FileKind._("LIBRARY"); |
9621 | 9814 |
9622 static const PART = const FileKind._("PART"); | 9815 static const PART = const FileKind._("PART"); |
9623 | 9816 |
9624 /** | 9817 /** |
9625 * A list containing all of the enum values that are defined. | 9818 * A list containing all of the enum values that are defined. |
9626 */ | 9819 */ |
9627 static const List<FileKind> VALUES = const <FileKind>[LIBRARY, PART]; | 9820 static const List<FileKind> VALUES = const <FileKind>[LIBRARY, PART]; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9660 /** | 9853 /** |
9661 * FoldingKind | 9854 * FoldingKind |
9662 * | 9855 * |
9663 * enum { | 9856 * enum { |
9664 * COMMENT | 9857 * COMMENT |
9665 * CLASS_MEMBER | 9858 * CLASS_MEMBER |
9666 * DIRECTIVES | 9859 * DIRECTIVES |
9667 * DOCUMENTATION_COMMENT | 9860 * DOCUMENTATION_COMMENT |
9668 * TOP_LEVEL_DECLARATION | 9861 * TOP_LEVEL_DECLARATION |
9669 * } | 9862 * } |
| 9863 * |
| 9864 * Clients are not expected to subtype this class. |
9670 */ | 9865 */ |
9671 class FoldingKind implements Enum { | 9866 class FoldingKind implements Enum { |
9672 static const COMMENT = const FoldingKind._("COMMENT"); | 9867 static const COMMENT = const FoldingKind._("COMMENT"); |
9673 | 9868 |
9674 static const CLASS_MEMBER = const FoldingKind._("CLASS_MEMBER"); | 9869 static const CLASS_MEMBER = const FoldingKind._("CLASS_MEMBER"); |
9675 | 9870 |
9676 static const DIRECTIVES = const FoldingKind._("DIRECTIVES"); | 9871 static const DIRECTIVES = const FoldingKind._("DIRECTIVES"); |
9677 | 9872 |
9678 static const DOCUMENTATION_COMMENT = const FoldingKind._("DOCUMENTATION_COMMEN
T"); | 9873 static const DOCUMENTATION_COMMENT = const FoldingKind._("DOCUMENTATION_COMMEN
T"); |
9679 | 9874 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9722 } | 9917 } |
9723 | 9918 |
9724 /** | 9919 /** |
9725 * FoldingRegion | 9920 * FoldingRegion |
9726 * | 9921 * |
9727 * { | 9922 * { |
9728 * "kind": FoldingKind | 9923 * "kind": FoldingKind |
9729 * "offset": int | 9924 * "offset": int |
9730 * "length": int | 9925 * "length": int |
9731 * } | 9926 * } |
| 9927 * |
| 9928 * Clients are not expected to subtype this class. |
9732 */ | 9929 */ |
9733 class FoldingRegion implements HasToJson { | 9930 class FoldingRegion implements HasToJson { |
9734 FoldingKind _kind; | 9931 FoldingKind _kind; |
9735 | 9932 |
9736 int _offset; | 9933 int _offset; |
9737 | 9934 |
9738 int _length; | 9935 int _length; |
9739 | 9936 |
9740 /** | 9937 /** |
9741 * The kind of the region. | 9938 * The kind of the region. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9788 } | 9985 } |
9789 if (json is Map) { | 9986 if (json is Map) { |
9790 FoldingKind kind; | 9987 FoldingKind kind; |
9791 if (json.containsKey("kind")) { | 9988 if (json.containsKey("kind")) { |
9792 kind = new FoldingKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k
ind"]); | 9989 kind = new FoldingKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k
ind"]); |
9793 } else { | 9990 } else { |
9794 throw jsonDecoder.missingKey(jsonPath, "kind"); | 9991 throw jsonDecoder.missingKey(jsonPath, "kind"); |
9795 } | 9992 } |
9796 int offset; | 9993 int offset; |
9797 if (json.containsKey("offset")) { | 9994 if (json.containsKey("offset")) { |
9798 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 9995 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
9799 } else { | 9996 } else { |
9800 throw jsonDecoder.missingKey(jsonPath, "offset"); | 9997 throw jsonDecoder.missingKey(jsonPath, "offset"); |
9801 } | 9998 } |
9802 int length; | 9999 int length; |
9803 if (json.containsKey("length")) { | 10000 if (json.containsKey("length")) { |
9804 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 10001 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
9805 } else { | 10002 } else { |
9806 throw jsonDecoder.missingKey(jsonPath, "length"); | 10003 throw jsonDecoder.missingKey(jsonPath, "length"); |
9807 } | 10004 } |
9808 return new FoldingRegion(kind, offset, length); | 10005 return new FoldingRegion(kind, offset, length); |
9809 } else { | 10006 } else { |
9810 throw jsonDecoder.mismatch(jsonPath, "FoldingRegion", json); | 10007 throw jsonDecoder.mismatch(jsonPath, "FoldingRegion", json); |
9811 } | 10008 } |
9812 } | 10009 } |
9813 | 10010 |
9814 Map<String, dynamic> toJson() { | 10011 Map<String, dynamic> toJson() { |
(...skipping 13 matching lines...) Expand all Loading... |
9828 return kind == other.kind && | 10025 return kind == other.kind && |
9829 offset == other.offset && | 10026 offset == other.offset && |
9830 length == other.length; | 10027 length == other.length; |
9831 } | 10028 } |
9832 return false; | 10029 return false; |
9833 } | 10030 } |
9834 | 10031 |
9835 @override | 10032 @override |
9836 int get hashCode { | 10033 int get hashCode { |
9837 int hash = 0; | 10034 int hash = 0; |
9838 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 10035 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
9839 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 10036 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
9840 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 10037 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
9841 return _JenkinsSmiHash.finish(hash); | 10038 return JenkinsSmiHash.finish(hash); |
9842 } | 10039 } |
9843 } | 10040 } |
9844 | 10041 |
9845 /** | 10042 /** |
9846 * GeneralAnalysisService | 10043 * GeneralAnalysisService |
9847 * | 10044 * |
9848 * enum { | 10045 * enum { |
9849 * ANALYZED_FILES | 10046 * ANALYZED_FILES |
9850 * } | 10047 * } |
| 10048 * |
| 10049 * Clients are not expected to subtype this class. |
9851 */ | 10050 */ |
9852 class GeneralAnalysisService implements Enum { | 10051 class GeneralAnalysisService implements Enum { |
9853 static const ANALYZED_FILES = const GeneralAnalysisService._("ANALYZED_FILES")
; | 10052 static const ANALYZED_FILES = const GeneralAnalysisService._("ANALYZED_FILES")
; |
9854 | 10053 |
9855 /** | 10054 /** |
9856 * A list containing all of the enum values that are defined. | 10055 * A list containing all of the enum values that are defined. |
9857 */ | 10056 */ |
9858 static const List<GeneralAnalysisService> VALUES = const <GeneralAnalysisServi
ce>[ANALYZED_FILES]; | 10057 static const List<GeneralAnalysisService> VALUES = const <GeneralAnalysisServi
ce>[ANALYZED_FILES]; |
9859 | 10058 |
9860 final String name; | 10059 final String name; |
(...skipping 26 matching lines...) Expand all Loading... |
9887 } | 10086 } |
9888 | 10087 |
9889 /** | 10088 /** |
9890 * HighlightRegion | 10089 * HighlightRegion |
9891 * | 10090 * |
9892 * { | 10091 * { |
9893 * "type": HighlightRegionType | 10092 * "type": HighlightRegionType |
9894 * "offset": int | 10093 * "offset": int |
9895 * "length": int | 10094 * "length": int |
9896 * } | 10095 * } |
| 10096 * |
| 10097 * Clients are not expected to subtype this class. |
9897 */ | 10098 */ |
9898 class HighlightRegion implements HasToJson { | 10099 class HighlightRegion implements HasToJson { |
9899 HighlightRegionType _type; | 10100 HighlightRegionType _type; |
9900 | 10101 |
9901 int _offset; | 10102 int _offset; |
9902 | 10103 |
9903 int _length; | 10104 int _length; |
9904 | 10105 |
9905 /** | 10106 /** |
9906 * The type of highlight associated with the region. | 10107 * The type of highlight associated with the region. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9953 } | 10154 } |
9954 if (json is Map) { | 10155 if (json is Map) { |
9955 HighlightRegionType type; | 10156 HighlightRegionType type; |
9956 if (json.containsKey("type")) { | 10157 if (json.containsKey("type")) { |
9957 type = new HighlightRegionType.fromJson(jsonDecoder, jsonPath + ".type",
json["type"]); | 10158 type = new HighlightRegionType.fromJson(jsonDecoder, jsonPath + ".type",
json["type"]); |
9958 } else { | 10159 } else { |
9959 throw jsonDecoder.missingKey(jsonPath, "type"); | 10160 throw jsonDecoder.missingKey(jsonPath, "type"); |
9960 } | 10161 } |
9961 int offset; | 10162 int offset; |
9962 if (json.containsKey("offset")) { | 10163 if (json.containsKey("offset")) { |
9963 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 10164 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
9964 } else { | 10165 } else { |
9965 throw jsonDecoder.missingKey(jsonPath, "offset"); | 10166 throw jsonDecoder.missingKey(jsonPath, "offset"); |
9966 } | 10167 } |
9967 int length; | 10168 int length; |
9968 if (json.containsKey("length")) { | 10169 if (json.containsKey("length")) { |
9969 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 10170 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
9970 } else { | 10171 } else { |
9971 throw jsonDecoder.missingKey(jsonPath, "length"); | 10172 throw jsonDecoder.missingKey(jsonPath, "length"); |
9972 } | 10173 } |
9973 return new HighlightRegion(type, offset, length); | 10174 return new HighlightRegion(type, offset, length); |
9974 } else { | 10175 } else { |
9975 throw jsonDecoder.mismatch(jsonPath, "HighlightRegion", json); | 10176 throw jsonDecoder.mismatch(jsonPath, "HighlightRegion", json); |
9976 } | 10177 } |
9977 } | 10178 } |
9978 | 10179 |
9979 Map<String, dynamic> toJson() { | 10180 Map<String, dynamic> toJson() { |
(...skipping 13 matching lines...) Expand all Loading... |
9993 return type == other.type && | 10194 return type == other.type && |
9994 offset == other.offset && | 10195 offset == other.offset && |
9995 length == other.length; | 10196 length == other.length; |
9996 } | 10197 } |
9997 return false; | 10198 return false; |
9998 } | 10199 } |
9999 | 10200 |
10000 @override | 10201 @override |
10001 int get hashCode { | 10202 int get hashCode { |
10002 int hash = 0; | 10203 int hash = 0; |
10003 hash = _JenkinsSmiHash.combine(hash, type.hashCode); | 10204 hash = JenkinsSmiHash.combine(hash, type.hashCode); |
10004 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 10205 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
10005 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 10206 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
10006 return _JenkinsSmiHash.finish(hash); | 10207 return JenkinsSmiHash.finish(hash); |
10007 } | 10208 } |
10008 } | 10209 } |
10009 | 10210 |
10010 /** | 10211 /** |
10011 * HighlightRegionType | 10212 * HighlightRegionType |
10012 * | 10213 * |
10013 * enum { | 10214 * enum { |
10014 * ANNOTATION | 10215 * ANNOTATION |
10015 * BUILT_IN | 10216 * BUILT_IN |
10016 * CLASS | 10217 * CLASS |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10078 * TOP_LEVEL_GETTER_DECLARATION | 10279 * TOP_LEVEL_GETTER_DECLARATION |
10079 * TOP_LEVEL_GETTER_REFERENCE | 10280 * TOP_LEVEL_GETTER_REFERENCE |
10080 * TOP_LEVEL_SETTER_DECLARATION | 10281 * TOP_LEVEL_SETTER_DECLARATION |
10081 * TOP_LEVEL_SETTER_REFERENCE | 10282 * TOP_LEVEL_SETTER_REFERENCE |
10082 * TOP_LEVEL_VARIABLE_DECLARATION | 10283 * TOP_LEVEL_VARIABLE_DECLARATION |
10083 * TYPE_NAME_DYNAMIC | 10284 * TYPE_NAME_DYNAMIC |
10084 * TYPE_PARAMETER | 10285 * TYPE_PARAMETER |
10085 * UNRESOLVED_INSTANCE_MEMBER_REFERENCE | 10286 * UNRESOLVED_INSTANCE_MEMBER_REFERENCE |
10086 * VALID_STRING_ESCAPE | 10287 * VALID_STRING_ESCAPE |
10087 * } | 10288 * } |
| 10289 * |
| 10290 * Clients are not expected to subtype this class. |
10088 */ | 10291 */ |
10089 class HighlightRegionType implements Enum { | 10292 class HighlightRegionType implements Enum { |
10090 static const ANNOTATION = const HighlightRegionType._("ANNOTATION"); | 10293 static const ANNOTATION = const HighlightRegionType._("ANNOTATION"); |
10091 | 10294 |
10092 static const BUILT_IN = const HighlightRegionType._("BUILT_IN"); | 10295 static const BUILT_IN = const HighlightRegionType._("BUILT_IN"); |
10093 | 10296 |
10094 static const CLASS = const HighlightRegionType._("CLASS"); | 10297 static const CLASS = const HighlightRegionType._("CLASS"); |
10095 | 10298 |
10096 static const COMMENT_BLOCK = const HighlightRegionType._("COMMENT_BLOCK"); | 10299 static const COMMENT_BLOCK = const HighlightRegionType._("COMMENT_BLOCK"); |
10097 | 10300 |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10567 * "containingLibraryPath": optional String | 10770 * "containingLibraryPath": optional String |
10568 * "containingLibraryName": optional String | 10771 * "containingLibraryName": optional String |
10569 * "containingClassDescription": optional String | 10772 * "containingClassDescription": optional String |
10570 * "dartdoc": optional String | 10773 * "dartdoc": optional String |
10571 * "elementDescription": optional String | 10774 * "elementDescription": optional String |
10572 * "elementKind": optional String | 10775 * "elementKind": optional String |
10573 * "parameter": optional String | 10776 * "parameter": optional String |
10574 * "propagatedType": optional String | 10777 * "propagatedType": optional String |
10575 * "staticType": optional String | 10778 * "staticType": optional String |
10576 * } | 10779 * } |
| 10780 * |
| 10781 * Clients are not expected to subtype this class. |
10577 */ | 10782 */ |
10578 class HoverInformation implements HasToJson { | 10783 class HoverInformation implements HasToJson { |
10579 int _offset; | 10784 int _offset; |
10580 | 10785 |
10581 int _length; | 10786 int _length; |
10582 | 10787 |
10583 String _containingLibraryPath; | 10788 String _containingLibraryPath; |
10584 | 10789 |
10585 String _containingLibraryName; | 10790 String _containingLibraryName; |
10586 | 10791 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10784 this.staticType = staticType; | 10989 this.staticType = staticType; |
10785 } | 10990 } |
10786 | 10991 |
10787 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 10992 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
10788 if (json == null) { | 10993 if (json == null) { |
10789 json = {}; | 10994 json = {}; |
10790 } | 10995 } |
10791 if (json is Map) { | 10996 if (json is Map) { |
10792 int offset; | 10997 int offset; |
10793 if (json.containsKey("offset")) { | 10998 if (json.containsKey("offset")) { |
10794 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 10999 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
10795 } else { | 11000 } else { |
10796 throw jsonDecoder.missingKey(jsonPath, "offset"); | 11001 throw jsonDecoder.missingKey(jsonPath, "offset"); |
10797 } | 11002 } |
10798 int length; | 11003 int length; |
10799 if (json.containsKey("length")) { | 11004 if (json.containsKey("length")) { |
10800 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 11005 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
10801 } else { | 11006 } else { |
10802 throw jsonDecoder.missingKey(jsonPath, "length"); | 11007 throw jsonDecoder.missingKey(jsonPath, "length"); |
10803 } | 11008 } |
10804 String containingLibraryPath; | 11009 String containingLibraryPath; |
10805 if (json.containsKey("containingLibraryPath")) { | 11010 if (json.containsKey("containingLibraryPath")) { |
10806 containingLibraryPath = jsonDecoder._decodeString(jsonPath + ".containin
gLibraryPath", json["containingLibraryPath"]); | 11011 containingLibraryPath = jsonDecoder.decodeString(jsonPath + ".containing
LibraryPath", json["containingLibraryPath"]); |
10807 } | 11012 } |
10808 String containingLibraryName; | 11013 String containingLibraryName; |
10809 if (json.containsKey("containingLibraryName")) { | 11014 if (json.containsKey("containingLibraryName")) { |
10810 containingLibraryName = jsonDecoder._decodeString(jsonPath + ".containin
gLibraryName", json["containingLibraryName"]); | 11015 containingLibraryName = jsonDecoder.decodeString(jsonPath + ".containing
LibraryName", json["containingLibraryName"]); |
10811 } | 11016 } |
10812 String containingClassDescription; | 11017 String containingClassDescription; |
10813 if (json.containsKey("containingClassDescription")) { | 11018 if (json.containsKey("containingClassDescription")) { |
10814 containingClassDescription = jsonDecoder._decodeString(jsonPath + ".cont
ainingClassDescription", json["containingClassDescription"]); | 11019 containingClassDescription = jsonDecoder.decodeString(jsonPath + ".conta
iningClassDescription", json["containingClassDescription"]); |
10815 } | 11020 } |
10816 String dartdoc; | 11021 String dartdoc; |
10817 if (json.containsKey("dartdoc")) { | 11022 if (json.containsKey("dartdoc")) { |
10818 dartdoc = jsonDecoder._decodeString(jsonPath + ".dartdoc", json["dartdoc
"]); | 11023 dartdoc = jsonDecoder.decodeString(jsonPath + ".dartdoc", json["dartdoc"
]); |
10819 } | 11024 } |
10820 String elementDescription; | 11025 String elementDescription; |
10821 if (json.containsKey("elementDescription")) { | 11026 if (json.containsKey("elementDescription")) { |
10822 elementDescription = jsonDecoder._decodeString(jsonPath + ".elementDescr
iption", json["elementDescription"]); | 11027 elementDescription = jsonDecoder.decodeString(jsonPath + ".elementDescri
ption", json["elementDescription"]); |
10823 } | 11028 } |
10824 String elementKind; | 11029 String elementKind; |
10825 if (json.containsKey("elementKind")) { | 11030 if (json.containsKey("elementKind")) { |
10826 elementKind = jsonDecoder._decodeString(jsonPath + ".elementKind", json[
"elementKind"]); | 11031 elementKind = jsonDecoder.decodeString(jsonPath + ".elementKind", json["
elementKind"]); |
10827 } | 11032 } |
10828 String parameter; | 11033 String parameter; |
10829 if (json.containsKey("parameter")) { | 11034 if (json.containsKey("parameter")) { |
10830 parameter = jsonDecoder._decodeString(jsonPath + ".parameter", json["par
ameter"]); | 11035 parameter = jsonDecoder.decodeString(jsonPath + ".parameter", json["para
meter"]); |
10831 } | 11036 } |
10832 String propagatedType; | 11037 String propagatedType; |
10833 if (json.containsKey("propagatedType")) { | 11038 if (json.containsKey("propagatedType")) { |
10834 propagatedType = jsonDecoder._decodeString(jsonPath + ".propagatedType",
json["propagatedType"]); | 11039 propagatedType = jsonDecoder.decodeString(jsonPath + ".propagatedType",
json["propagatedType"]); |
10835 } | 11040 } |
10836 String staticType; | 11041 String staticType; |
10837 if (json.containsKey("staticType")) { | 11042 if (json.containsKey("staticType")) { |
10838 staticType = jsonDecoder._decodeString(jsonPath + ".staticType", json["s
taticType"]); | 11043 staticType = jsonDecoder.decodeString(jsonPath + ".staticType", json["st
aticType"]); |
10839 } | 11044 } |
10840 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); | 11045 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); |
10841 } else { | 11046 } else { |
10842 throw jsonDecoder.mismatch(jsonPath, "HoverInformation", json); | 11047 throw jsonDecoder.mismatch(jsonPath, "HoverInformation", json); |
10843 } | 11048 } |
10844 } | 11049 } |
10845 | 11050 |
10846 Map<String, dynamic> toJson() { | 11051 Map<String, dynamic> toJson() { |
10847 Map<String, dynamic> result = {}; | 11052 Map<String, dynamic> result = {}; |
10848 result["offset"] = offset; | 11053 result["offset"] = offset; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10894 parameter == other.parameter && | 11099 parameter == other.parameter && |
10895 propagatedType == other.propagatedType && | 11100 propagatedType == other.propagatedType && |
10896 staticType == other.staticType; | 11101 staticType == other.staticType; |
10897 } | 11102 } |
10898 return false; | 11103 return false; |
10899 } | 11104 } |
10900 | 11105 |
10901 @override | 11106 @override |
10902 int get hashCode { | 11107 int get hashCode { |
10903 int hash = 0; | 11108 int hash = 0; |
10904 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 11109 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
10905 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 11110 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
10906 hash = _JenkinsSmiHash.combine(hash, containingLibraryPath.hashCode); | 11111 hash = JenkinsSmiHash.combine(hash, containingLibraryPath.hashCode); |
10907 hash = _JenkinsSmiHash.combine(hash, containingLibraryName.hashCode); | 11112 hash = JenkinsSmiHash.combine(hash, containingLibraryName.hashCode); |
10908 hash = _JenkinsSmiHash.combine(hash, containingClassDescription.hashCode); | 11113 hash = JenkinsSmiHash.combine(hash, containingClassDescription.hashCode); |
10909 hash = _JenkinsSmiHash.combine(hash, dartdoc.hashCode); | 11114 hash = JenkinsSmiHash.combine(hash, dartdoc.hashCode); |
10910 hash = _JenkinsSmiHash.combine(hash, elementDescription.hashCode); | 11115 hash = JenkinsSmiHash.combine(hash, elementDescription.hashCode); |
10911 hash = _JenkinsSmiHash.combine(hash, elementKind.hashCode); | 11116 hash = JenkinsSmiHash.combine(hash, elementKind.hashCode); |
10912 hash = _JenkinsSmiHash.combine(hash, parameter.hashCode); | 11117 hash = JenkinsSmiHash.combine(hash, parameter.hashCode); |
10913 hash = _JenkinsSmiHash.combine(hash, propagatedType.hashCode); | 11118 hash = JenkinsSmiHash.combine(hash, propagatedType.hashCode); |
10914 hash = _JenkinsSmiHash.combine(hash, staticType.hashCode); | 11119 hash = JenkinsSmiHash.combine(hash, staticType.hashCode); |
10915 return _JenkinsSmiHash.finish(hash); | 11120 return JenkinsSmiHash.finish(hash); |
10916 } | 11121 } |
10917 } | 11122 } |
10918 | 11123 |
10919 /** | 11124 /** |
10920 * ImplementedClass | 11125 * ImplementedClass |
10921 * | 11126 * |
10922 * { | 11127 * { |
10923 * "offset": int | 11128 * "offset": int |
10924 * "length": int | 11129 * "length": int |
10925 * } | 11130 * } |
| 11131 * |
| 11132 * Clients are not expected to subtype this class. |
10926 */ | 11133 */ |
10927 class ImplementedClass implements HasToJson { | 11134 class ImplementedClass implements HasToJson { |
10928 int _offset; | 11135 int _offset; |
10929 | 11136 |
10930 int _length; | 11137 int _length; |
10931 | 11138 |
10932 /** | 11139 /** |
10933 * The offset of the name of the implemented class. | 11140 * The offset of the name of the implemented class. |
10934 */ | 11141 */ |
10935 int get offset => _offset; | 11142 int get offset => _offset; |
(...skipping 24 matching lines...) Expand all Loading... |
10960 this.length = length; | 11167 this.length = length; |
10961 } | 11168 } |
10962 | 11169 |
10963 factory ImplementedClass.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 11170 factory ImplementedClass.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
10964 if (json == null) { | 11171 if (json == null) { |
10965 json = {}; | 11172 json = {}; |
10966 } | 11173 } |
10967 if (json is Map) { | 11174 if (json is Map) { |
10968 int offset; | 11175 int offset; |
10969 if (json.containsKey("offset")) { | 11176 if (json.containsKey("offset")) { |
10970 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 11177 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
10971 } else { | 11178 } else { |
10972 throw jsonDecoder.missingKey(jsonPath, "offset"); | 11179 throw jsonDecoder.missingKey(jsonPath, "offset"); |
10973 } | 11180 } |
10974 int length; | 11181 int length; |
10975 if (json.containsKey("length")) { | 11182 if (json.containsKey("length")) { |
10976 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 11183 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
10977 } else { | 11184 } else { |
10978 throw jsonDecoder.missingKey(jsonPath, "length"); | 11185 throw jsonDecoder.missingKey(jsonPath, "length"); |
10979 } | 11186 } |
10980 return new ImplementedClass(offset, length); | 11187 return new ImplementedClass(offset, length); |
10981 } else { | 11188 } else { |
10982 throw jsonDecoder.mismatch(jsonPath, "ImplementedClass", json); | 11189 throw jsonDecoder.mismatch(jsonPath, "ImplementedClass", json); |
10983 } | 11190 } |
10984 } | 11191 } |
10985 | 11192 |
10986 Map<String, dynamic> toJson() { | 11193 Map<String, dynamic> toJson() { |
(...skipping 11 matching lines...) Expand all Loading... |
10998 if (other is ImplementedClass) { | 11205 if (other is ImplementedClass) { |
10999 return offset == other.offset && | 11206 return offset == other.offset && |
11000 length == other.length; | 11207 length == other.length; |
11001 } | 11208 } |
11002 return false; | 11209 return false; |
11003 } | 11210 } |
11004 | 11211 |
11005 @override | 11212 @override |
11006 int get hashCode { | 11213 int get hashCode { |
11007 int hash = 0; | 11214 int hash = 0; |
11008 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 11215 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
11009 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 11216 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
11010 return _JenkinsSmiHash.finish(hash); | 11217 return JenkinsSmiHash.finish(hash); |
11011 } | 11218 } |
11012 } | 11219 } |
11013 | 11220 |
11014 /** | 11221 /** |
11015 * ImplementedMember | 11222 * ImplementedMember |
11016 * | 11223 * |
11017 * { | 11224 * { |
11018 * "offset": int | 11225 * "offset": int |
11019 * "length": int | 11226 * "length": int |
11020 * } | 11227 * } |
| 11228 * |
| 11229 * Clients are not expected to subtype this class. |
11021 */ | 11230 */ |
11022 class ImplementedMember implements HasToJson { | 11231 class ImplementedMember implements HasToJson { |
11023 int _offset; | 11232 int _offset; |
11024 | 11233 |
11025 int _length; | 11234 int _length; |
11026 | 11235 |
11027 /** | 11236 /** |
11028 * The offset of the name of the implemented member. | 11237 * The offset of the name of the implemented member. |
11029 */ | 11238 */ |
11030 int get offset => _offset; | 11239 int get offset => _offset; |
(...skipping 24 matching lines...) Expand all Loading... |
11055 this.length = length; | 11264 this.length = length; |
11056 } | 11265 } |
11057 | 11266 |
11058 factory ImplementedMember.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 11267 factory ImplementedMember.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
11059 if (json == null) { | 11268 if (json == null) { |
11060 json = {}; | 11269 json = {}; |
11061 } | 11270 } |
11062 if (json is Map) { | 11271 if (json is Map) { |
11063 int offset; | 11272 int offset; |
11064 if (json.containsKey("offset")) { | 11273 if (json.containsKey("offset")) { |
11065 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 11274 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
11066 } else { | 11275 } else { |
11067 throw jsonDecoder.missingKey(jsonPath, "offset"); | 11276 throw jsonDecoder.missingKey(jsonPath, "offset"); |
11068 } | 11277 } |
11069 int length; | 11278 int length; |
11070 if (json.containsKey("length")) { | 11279 if (json.containsKey("length")) { |
11071 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 11280 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
11072 } else { | 11281 } else { |
11073 throw jsonDecoder.missingKey(jsonPath, "length"); | 11282 throw jsonDecoder.missingKey(jsonPath, "length"); |
11074 } | 11283 } |
11075 return new ImplementedMember(offset, length); | 11284 return new ImplementedMember(offset, length); |
11076 } else { | 11285 } else { |
11077 throw jsonDecoder.mismatch(jsonPath, "ImplementedMember", json); | 11286 throw jsonDecoder.mismatch(jsonPath, "ImplementedMember", json); |
11078 } | 11287 } |
11079 } | 11288 } |
11080 | 11289 |
11081 Map<String, dynamic> toJson() { | 11290 Map<String, dynamic> toJson() { |
(...skipping 11 matching lines...) Expand all Loading... |
11093 if (other is ImplementedMember) { | 11302 if (other is ImplementedMember) { |
11094 return offset == other.offset && | 11303 return offset == other.offset && |
11095 length == other.length; | 11304 length == other.length; |
11096 } | 11305 } |
11097 return false; | 11306 return false; |
11098 } | 11307 } |
11099 | 11308 |
11100 @override | 11309 @override |
11101 int get hashCode { | 11310 int get hashCode { |
11102 int hash = 0; | 11311 int hash = 0; |
11103 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 11312 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
11104 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 11313 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
11105 return _JenkinsSmiHash.finish(hash); | 11314 return JenkinsSmiHash.finish(hash); |
11106 } | 11315 } |
11107 } | 11316 } |
11108 | 11317 |
11109 /** | 11318 /** |
11110 * LinkedEditGroup | 11319 * LinkedEditGroup |
11111 * | 11320 * |
11112 * { | 11321 * { |
11113 * "positions": List<Position> | 11322 * "positions": List<Position> |
11114 * "length": int | 11323 * "length": int |
11115 * "suggestions": List<LinkedEditSuggestion> | 11324 * "suggestions": List<LinkedEditSuggestion> |
11116 * } | 11325 * } |
| 11326 * |
| 11327 * Clients are not expected to subtype this class. |
11117 */ | 11328 */ |
11118 class LinkedEditGroup implements HasToJson { | 11329 class LinkedEditGroup implements HasToJson { |
11119 List<Position> _positions; | 11330 List<Position> _positions; |
11120 | 11331 |
11121 int _length; | 11332 int _length; |
11122 | 11333 |
11123 List<LinkedEditSuggestion> _suggestions; | 11334 List<LinkedEditSuggestion> _suggestions; |
11124 | 11335 |
11125 /** | 11336 /** |
11126 * The positions of the regions that should be edited simultaneously. | 11337 * The positions of the regions that should be edited simultaneously. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11169 this.suggestions = suggestions; | 11380 this.suggestions = suggestions; |
11170 } | 11381 } |
11171 | 11382 |
11172 factory LinkedEditGroup.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 11383 factory LinkedEditGroup.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
11173 if (json == null) { | 11384 if (json == null) { |
11174 json = {}; | 11385 json = {}; |
11175 } | 11386 } |
11176 if (json is Map) { | 11387 if (json is Map) { |
11177 List<Position> positions; | 11388 List<Position> positions; |
11178 if (json.containsKey("positions")) { | 11389 if (json.containsKey("positions")) { |
11179 positions = jsonDecoder._decodeList(jsonPath + ".positions", json["posit
ions"], (String jsonPath, Object json) => new Position.fromJson(jsonDecoder, jso
nPath, json)); | 11390 positions = jsonDecoder.decodeList(jsonPath + ".positions", json["positi
ons"], (String jsonPath, Object json) => new Position.fromJson(jsonDecoder, json
Path, json)); |
11180 } else { | 11391 } else { |
11181 throw jsonDecoder.missingKey(jsonPath, "positions"); | 11392 throw jsonDecoder.missingKey(jsonPath, "positions"); |
11182 } | 11393 } |
11183 int length; | 11394 int length; |
11184 if (json.containsKey("length")) { | 11395 if (json.containsKey("length")) { |
11185 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 11396 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
11186 } else { | 11397 } else { |
11187 throw jsonDecoder.missingKey(jsonPath, "length"); | 11398 throw jsonDecoder.missingKey(jsonPath, "length"); |
11188 } | 11399 } |
11189 List<LinkedEditSuggestion> suggestions; | 11400 List<LinkedEditSuggestion> suggestions; |
11190 if (json.containsKey("suggestions")) { | 11401 if (json.containsKey("suggestions")) { |
11191 suggestions = jsonDecoder._decodeList(jsonPath + ".suggestions", json["s
uggestions"], (String jsonPath, Object json) => new LinkedEditSuggestion.fromJso
n(jsonDecoder, jsonPath, json)); | 11402 suggestions = jsonDecoder.decodeList(jsonPath + ".suggestions", json["su
ggestions"], (String jsonPath, Object json) => new LinkedEditSuggestion.fromJson
(jsonDecoder, jsonPath, json)); |
11192 } else { | 11403 } else { |
11193 throw jsonDecoder.missingKey(jsonPath, "suggestions"); | 11404 throw jsonDecoder.missingKey(jsonPath, "suggestions"); |
11194 } | 11405 } |
11195 return new LinkedEditGroup(positions, length, suggestions); | 11406 return new LinkedEditGroup(positions, length, suggestions); |
11196 } else { | 11407 } else { |
11197 throw jsonDecoder.mismatch(jsonPath, "LinkedEditGroup", json); | 11408 throw jsonDecoder.mismatch(jsonPath, "LinkedEditGroup", json); |
11198 } | 11409 } |
11199 } | 11410 } |
11200 | 11411 |
11201 /** | 11412 /** |
(...skipping 23 matching lines...) Expand all Loading... |
11225 void addSuggestion(LinkedEditSuggestion suggestion) { | 11436 void addSuggestion(LinkedEditSuggestion suggestion) { |
11226 suggestions.add(suggestion); | 11437 suggestions.add(suggestion); |
11227 } | 11438 } |
11228 | 11439 |
11229 @override | 11440 @override |
11230 String toString() => JSON.encode(toJson()); | 11441 String toString() => JSON.encode(toJson()); |
11231 | 11442 |
11232 @override | 11443 @override |
11233 bool operator==(other) { | 11444 bool operator==(other) { |
11234 if (other is LinkedEditGroup) { | 11445 if (other is LinkedEditGroup) { |
11235 return _listEqual(positions, other.positions, (Position a, Position b) =>
a == b) && | 11446 return listEqual(positions, other.positions, (Position a, Position b) => a
== b) && |
11236 length == other.length && | 11447 length == other.length && |
11237 _listEqual(suggestions, other.suggestions, (LinkedEditSuggestion a, Li
nkedEditSuggestion b) => a == b); | 11448 listEqual(suggestions, other.suggestions, (LinkedEditSuggestion a, Lin
kedEditSuggestion b) => a == b); |
11238 } | 11449 } |
11239 return false; | 11450 return false; |
11240 } | 11451 } |
11241 | 11452 |
11242 @override | 11453 @override |
11243 int get hashCode { | 11454 int get hashCode { |
11244 int hash = 0; | 11455 int hash = 0; |
11245 hash = _JenkinsSmiHash.combine(hash, positions.hashCode); | 11456 hash = JenkinsSmiHash.combine(hash, positions.hashCode); |
11246 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 11457 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
11247 hash = _JenkinsSmiHash.combine(hash, suggestions.hashCode); | 11458 hash = JenkinsSmiHash.combine(hash, suggestions.hashCode); |
11248 return _JenkinsSmiHash.finish(hash); | 11459 return JenkinsSmiHash.finish(hash); |
11249 } | 11460 } |
11250 } | 11461 } |
11251 | 11462 |
11252 /** | 11463 /** |
11253 * LinkedEditSuggestion | 11464 * LinkedEditSuggestion |
11254 * | 11465 * |
11255 * { | 11466 * { |
11256 * "value": String | 11467 * "value": String |
11257 * "kind": LinkedEditSuggestionKind | 11468 * "kind": LinkedEditSuggestionKind |
11258 * } | 11469 * } |
| 11470 * |
| 11471 * Clients are not expected to subtype this class. |
11259 */ | 11472 */ |
11260 class LinkedEditSuggestion implements HasToJson { | 11473 class LinkedEditSuggestion implements HasToJson { |
11261 String _value; | 11474 String _value; |
11262 | 11475 |
11263 LinkedEditSuggestionKind _kind; | 11476 LinkedEditSuggestionKind _kind; |
11264 | 11477 |
11265 /** | 11478 /** |
11266 * The value that could be used to replace all of the linked edit regions. | 11479 * The value that could be used to replace all of the linked edit regions. |
11267 */ | 11480 */ |
11268 String get value => _value; | 11481 String get value => _value; |
(...skipping 24 matching lines...) Expand all Loading... |
11293 this.kind = kind; | 11506 this.kind = kind; |
11294 } | 11507 } |
11295 | 11508 |
11296 factory LinkedEditSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 11509 factory LinkedEditSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
11297 if (json == null) { | 11510 if (json == null) { |
11298 json = {}; | 11511 json = {}; |
11299 } | 11512 } |
11300 if (json is Map) { | 11513 if (json is Map) { |
11301 String value; | 11514 String value; |
11302 if (json.containsKey("value")) { | 11515 if (json.containsKey("value")) { |
11303 value = jsonDecoder._decodeString(jsonPath + ".value", json["value"]); | 11516 value = jsonDecoder.decodeString(jsonPath + ".value", json["value"]); |
11304 } else { | 11517 } else { |
11305 throw jsonDecoder.missingKey(jsonPath, "value"); | 11518 throw jsonDecoder.missingKey(jsonPath, "value"); |
11306 } | 11519 } |
11307 LinkedEditSuggestionKind kind; | 11520 LinkedEditSuggestionKind kind; |
11308 if (json.containsKey("kind")) { | 11521 if (json.containsKey("kind")) { |
11309 kind = new LinkedEditSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k
ind", json["kind"]); | 11522 kind = new LinkedEditSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k
ind", json["kind"]); |
11310 } else { | 11523 } else { |
11311 throw jsonDecoder.missingKey(jsonPath, "kind"); | 11524 throw jsonDecoder.missingKey(jsonPath, "kind"); |
11312 } | 11525 } |
11313 return new LinkedEditSuggestion(value, kind); | 11526 return new LinkedEditSuggestion(value, kind); |
(...skipping 17 matching lines...) Expand all Loading... |
11331 if (other is LinkedEditSuggestion) { | 11544 if (other is LinkedEditSuggestion) { |
11332 return value == other.value && | 11545 return value == other.value && |
11333 kind == other.kind; | 11546 kind == other.kind; |
11334 } | 11547 } |
11335 return false; | 11548 return false; |
11336 } | 11549 } |
11337 | 11550 |
11338 @override | 11551 @override |
11339 int get hashCode { | 11552 int get hashCode { |
11340 int hash = 0; | 11553 int hash = 0; |
11341 hash = _JenkinsSmiHash.combine(hash, value.hashCode); | 11554 hash = JenkinsSmiHash.combine(hash, value.hashCode); |
11342 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 11555 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
11343 return _JenkinsSmiHash.finish(hash); | 11556 return JenkinsSmiHash.finish(hash); |
11344 } | 11557 } |
11345 } | 11558 } |
11346 | 11559 |
11347 /** | 11560 /** |
11348 * LinkedEditSuggestionKind | 11561 * LinkedEditSuggestionKind |
11349 * | 11562 * |
11350 * enum { | 11563 * enum { |
11351 * METHOD | 11564 * METHOD |
11352 * PARAMETER | 11565 * PARAMETER |
11353 * TYPE | 11566 * TYPE |
11354 * VARIABLE | 11567 * VARIABLE |
11355 * } | 11568 * } |
| 11569 * |
| 11570 * Clients are not expected to subtype this class. |
11356 */ | 11571 */ |
11357 class LinkedEditSuggestionKind implements Enum { | 11572 class LinkedEditSuggestionKind implements Enum { |
11358 static const METHOD = const LinkedEditSuggestionKind._("METHOD"); | 11573 static const METHOD = const LinkedEditSuggestionKind._("METHOD"); |
11359 | 11574 |
11360 static const PARAMETER = const LinkedEditSuggestionKind._("PARAMETER"); | 11575 static const PARAMETER = const LinkedEditSuggestionKind._("PARAMETER"); |
11361 | 11576 |
11362 static const TYPE = const LinkedEditSuggestionKind._("TYPE"); | 11577 static const TYPE = const LinkedEditSuggestionKind._("TYPE"); |
11363 | 11578 |
11364 static const VARIABLE = const LinkedEditSuggestionKind._("VARIABLE"); | 11579 static const VARIABLE = const LinkedEditSuggestionKind._("VARIABLE"); |
11365 | 11580 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11406 /** | 11621 /** |
11407 * Location | 11622 * Location |
11408 * | 11623 * |
11409 * { | 11624 * { |
11410 * "file": FilePath | 11625 * "file": FilePath |
11411 * "offset": int | 11626 * "offset": int |
11412 * "length": int | 11627 * "length": int |
11413 * "startLine": int | 11628 * "startLine": int |
11414 * "startColumn": int | 11629 * "startColumn": int |
11415 * } | 11630 * } |
| 11631 * |
| 11632 * Clients are not expected to subtype this class. |
11416 */ | 11633 */ |
11417 class Location implements HasToJson { | 11634 class Location implements HasToJson { |
11418 String _file; | 11635 String _file; |
11419 | 11636 |
11420 int _offset; | 11637 int _offset; |
11421 | 11638 |
11422 int _length; | 11639 int _length; |
11423 | 11640 |
11424 int _startLine; | 11641 int _startLine; |
11425 | 11642 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11502 this.startColumn = startColumn; | 11719 this.startColumn = startColumn; |
11503 } | 11720 } |
11504 | 11721 |
11505 factory Location.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 11722 factory Location.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { |
11506 if (json == null) { | 11723 if (json == null) { |
11507 json = {}; | 11724 json = {}; |
11508 } | 11725 } |
11509 if (json is Map) { | 11726 if (json is Map) { |
11510 String file; | 11727 String file; |
11511 if (json.containsKey("file")) { | 11728 if (json.containsKey("file")) { |
11512 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 11729 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
11513 } else { | 11730 } else { |
11514 throw jsonDecoder.missingKey(jsonPath, "file"); | 11731 throw jsonDecoder.missingKey(jsonPath, "file"); |
11515 } | 11732 } |
11516 int offset; | 11733 int offset; |
11517 if (json.containsKey("offset")) { | 11734 if (json.containsKey("offset")) { |
11518 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 11735 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
11519 } else { | 11736 } else { |
11520 throw jsonDecoder.missingKey(jsonPath, "offset"); | 11737 throw jsonDecoder.missingKey(jsonPath, "offset"); |
11521 } | 11738 } |
11522 int length; | 11739 int length; |
11523 if (json.containsKey("length")) { | 11740 if (json.containsKey("length")) { |
11524 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 11741 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
11525 } else { | 11742 } else { |
11526 throw jsonDecoder.missingKey(jsonPath, "length"); | 11743 throw jsonDecoder.missingKey(jsonPath, "length"); |
11527 } | 11744 } |
11528 int startLine; | 11745 int startLine; |
11529 if (json.containsKey("startLine")) { | 11746 if (json.containsKey("startLine")) { |
11530 startLine = jsonDecoder._decodeInt(jsonPath + ".startLine", json["startL
ine"]); | 11747 startLine = jsonDecoder.decodeInt(jsonPath + ".startLine", json["startLi
ne"]); |
11531 } else { | 11748 } else { |
11532 throw jsonDecoder.missingKey(jsonPath, "startLine"); | 11749 throw jsonDecoder.missingKey(jsonPath, "startLine"); |
11533 } | 11750 } |
11534 int startColumn; | 11751 int startColumn; |
11535 if (json.containsKey("startColumn")) { | 11752 if (json.containsKey("startColumn")) { |
11536 startColumn = jsonDecoder._decodeInt(jsonPath + ".startColumn", json["st
artColumn"]); | 11753 startColumn = jsonDecoder.decodeInt(jsonPath + ".startColumn", json["sta
rtColumn"]); |
11537 } else { | 11754 } else { |
11538 throw jsonDecoder.missingKey(jsonPath, "startColumn"); | 11755 throw jsonDecoder.missingKey(jsonPath, "startColumn"); |
11539 } | 11756 } |
11540 return new Location(file, offset, length, startLine, startColumn); | 11757 return new Location(file, offset, length, startLine, startColumn); |
11541 } else { | 11758 } else { |
11542 throw jsonDecoder.mismatch(jsonPath, "Location", json); | 11759 throw jsonDecoder.mismatch(jsonPath, "Location", json); |
11543 } | 11760 } |
11544 } | 11761 } |
11545 | 11762 |
11546 Map<String, dynamic> toJson() { | 11763 Map<String, dynamic> toJson() { |
(...skipping 17 matching lines...) Expand all Loading... |
11564 length == other.length && | 11781 length == other.length && |
11565 startLine == other.startLine && | 11782 startLine == other.startLine && |
11566 startColumn == other.startColumn; | 11783 startColumn == other.startColumn; |
11567 } | 11784 } |
11568 return false; | 11785 return false; |
11569 } | 11786 } |
11570 | 11787 |
11571 @override | 11788 @override |
11572 int get hashCode { | 11789 int get hashCode { |
11573 int hash = 0; | 11790 int hash = 0; |
11574 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 11791 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
11575 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 11792 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
11576 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 11793 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
11577 hash = _JenkinsSmiHash.combine(hash, startLine.hashCode); | 11794 hash = JenkinsSmiHash.combine(hash, startLine.hashCode); |
11578 hash = _JenkinsSmiHash.combine(hash, startColumn.hashCode); | 11795 hash = JenkinsSmiHash.combine(hash, startColumn.hashCode); |
11579 return _JenkinsSmiHash.finish(hash); | 11796 return JenkinsSmiHash.finish(hash); |
11580 } | 11797 } |
11581 } | 11798 } |
11582 | 11799 |
11583 /** | 11800 /** |
11584 * NavigationRegion | 11801 * NavigationRegion |
11585 * | 11802 * |
11586 * { | 11803 * { |
11587 * "offset": int | 11804 * "offset": int |
11588 * "length": int | 11805 * "length": int |
11589 * "targets": List<int> | 11806 * "targets": List<int> |
11590 * } | 11807 * } |
| 11808 * |
| 11809 * Clients are not expected to subtype this class. |
11591 */ | 11810 */ |
11592 class NavigationRegion implements HasToJson { | 11811 class NavigationRegion implements HasToJson { |
11593 int _offset; | 11812 int _offset; |
11594 | 11813 |
11595 int _length; | 11814 int _length; |
11596 | 11815 |
11597 List<int> _targets; | 11816 List<int> _targets; |
11598 | 11817 |
11599 /** | 11818 /** |
11600 * The offset of the region from which the user can navigate. | 11819 * The offset of the region from which the user can navigate. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11645 this.targets = targets; | 11864 this.targets = targets; |
11646 } | 11865 } |
11647 | 11866 |
11648 factory NavigationRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 11867 factory NavigationRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
11649 if (json == null) { | 11868 if (json == null) { |
11650 json = {}; | 11869 json = {}; |
11651 } | 11870 } |
11652 if (json is Map) { | 11871 if (json is Map) { |
11653 int offset; | 11872 int offset; |
11654 if (json.containsKey("offset")) { | 11873 if (json.containsKey("offset")) { |
11655 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 11874 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
11656 } else { | 11875 } else { |
11657 throw jsonDecoder.missingKey(jsonPath, "offset"); | 11876 throw jsonDecoder.missingKey(jsonPath, "offset"); |
11658 } | 11877 } |
11659 int length; | 11878 int length; |
11660 if (json.containsKey("length")) { | 11879 if (json.containsKey("length")) { |
11661 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 11880 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
11662 } else { | 11881 } else { |
11663 throw jsonDecoder.missingKey(jsonPath, "length"); | 11882 throw jsonDecoder.missingKey(jsonPath, "length"); |
11664 } | 11883 } |
11665 List<int> targets; | 11884 List<int> targets; |
11666 if (json.containsKey("targets")) { | 11885 if (json.containsKey("targets")) { |
11667 targets = jsonDecoder._decodeList(jsonPath + ".targets", json["targets"]
, jsonDecoder._decodeInt); | 11886 targets = jsonDecoder.decodeList(jsonPath + ".targets", json["targets"],
jsonDecoder.decodeInt); |
11668 } else { | 11887 } else { |
11669 throw jsonDecoder.missingKey(jsonPath, "targets"); | 11888 throw jsonDecoder.missingKey(jsonPath, "targets"); |
11670 } | 11889 } |
11671 return new NavigationRegion(offset, length, targets); | 11890 return new NavigationRegion(offset, length, targets); |
11672 } else { | 11891 } else { |
11673 throw jsonDecoder.mismatch(jsonPath, "NavigationRegion", json); | 11892 throw jsonDecoder.mismatch(jsonPath, "NavigationRegion", json); |
11674 } | 11893 } |
11675 } | 11894 } |
11676 | 11895 |
11677 Map<String, dynamic> toJson() { | 11896 Map<String, dynamic> toJson() { |
11678 Map<String, dynamic> result = {}; | 11897 Map<String, dynamic> result = {}; |
11679 result["offset"] = offset; | 11898 result["offset"] = offset; |
11680 result["length"] = length; | 11899 result["length"] = length; |
11681 result["targets"] = targets; | 11900 result["targets"] = targets; |
11682 return result; | 11901 return result; |
11683 } | 11902 } |
11684 | 11903 |
11685 @override | 11904 @override |
11686 String toString() => JSON.encode(toJson()); | 11905 String toString() => JSON.encode(toJson()); |
11687 | 11906 |
11688 @override | 11907 @override |
11689 bool operator==(other) { | 11908 bool operator==(other) { |
11690 if (other is NavigationRegion) { | 11909 if (other is NavigationRegion) { |
11691 return offset == other.offset && | 11910 return offset == other.offset && |
11692 length == other.length && | 11911 length == other.length && |
11693 _listEqual(targets, other.targets, (int a, int b) => a == b); | 11912 listEqual(targets, other.targets, (int a, int b) => a == b); |
11694 } | 11913 } |
11695 return false; | 11914 return false; |
11696 } | 11915 } |
11697 | 11916 |
11698 @override | 11917 @override |
11699 int get hashCode { | 11918 int get hashCode { |
11700 int hash = 0; | 11919 int hash = 0; |
11701 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 11920 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
11702 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 11921 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
11703 hash = _JenkinsSmiHash.combine(hash, targets.hashCode); | 11922 hash = JenkinsSmiHash.combine(hash, targets.hashCode); |
11704 return _JenkinsSmiHash.finish(hash); | 11923 return JenkinsSmiHash.finish(hash); |
11705 } | 11924 } |
11706 } | 11925 } |
11707 | 11926 |
11708 /** | 11927 /** |
11709 * NavigationTarget | 11928 * NavigationTarget |
11710 * | 11929 * |
11711 * { | 11930 * { |
11712 * "kind": ElementKind | 11931 * "kind": ElementKind |
11713 * "fileIndex": int | 11932 * "fileIndex": int |
11714 * "offset": int | 11933 * "offset": int |
11715 * "length": int | 11934 * "length": int |
11716 * "startLine": int | 11935 * "startLine": int |
11717 * "startColumn": int | 11936 * "startColumn": int |
11718 * } | 11937 * } |
| 11938 * |
| 11939 * Clients are not expected to subtype this class. |
11719 */ | 11940 */ |
11720 class NavigationTarget implements HasToJson { | 11941 class NavigationTarget implements HasToJson { |
11721 ElementKind _kind; | 11942 ElementKind _kind; |
11722 | 11943 |
11723 int _fileIndex; | 11944 int _fileIndex; |
11724 | 11945 |
11725 int _offset; | 11946 int _offset; |
11726 | 11947 |
11727 int _length; | 11948 int _length; |
11728 | 11949 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11829 } | 12050 } |
11830 if (json is Map) { | 12051 if (json is Map) { |
11831 ElementKind kind; | 12052 ElementKind kind; |
11832 if (json.containsKey("kind")) { | 12053 if (json.containsKey("kind")) { |
11833 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k
ind"]); | 12054 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k
ind"]); |
11834 } else { | 12055 } else { |
11835 throw jsonDecoder.missingKey(jsonPath, "kind"); | 12056 throw jsonDecoder.missingKey(jsonPath, "kind"); |
11836 } | 12057 } |
11837 int fileIndex; | 12058 int fileIndex; |
11838 if (json.containsKey("fileIndex")) { | 12059 if (json.containsKey("fileIndex")) { |
11839 fileIndex = jsonDecoder._decodeInt(jsonPath + ".fileIndex", json["fileIn
dex"]); | 12060 fileIndex = jsonDecoder.decodeInt(jsonPath + ".fileIndex", json["fileInd
ex"]); |
11840 } else { | 12061 } else { |
11841 throw jsonDecoder.missingKey(jsonPath, "fileIndex"); | 12062 throw jsonDecoder.missingKey(jsonPath, "fileIndex"); |
11842 } | 12063 } |
11843 int offset; | 12064 int offset; |
11844 if (json.containsKey("offset")) { | 12065 if (json.containsKey("offset")) { |
11845 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 12066 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
11846 } else { | 12067 } else { |
11847 throw jsonDecoder.missingKey(jsonPath, "offset"); | 12068 throw jsonDecoder.missingKey(jsonPath, "offset"); |
11848 } | 12069 } |
11849 int length; | 12070 int length; |
11850 if (json.containsKey("length")) { | 12071 if (json.containsKey("length")) { |
11851 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 12072 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
11852 } else { | 12073 } else { |
11853 throw jsonDecoder.missingKey(jsonPath, "length"); | 12074 throw jsonDecoder.missingKey(jsonPath, "length"); |
11854 } | 12075 } |
11855 int startLine; | 12076 int startLine; |
11856 if (json.containsKey("startLine")) { | 12077 if (json.containsKey("startLine")) { |
11857 startLine = jsonDecoder._decodeInt(jsonPath + ".startLine", json["startL
ine"]); | 12078 startLine = jsonDecoder.decodeInt(jsonPath + ".startLine", json["startLi
ne"]); |
11858 } else { | 12079 } else { |
11859 throw jsonDecoder.missingKey(jsonPath, "startLine"); | 12080 throw jsonDecoder.missingKey(jsonPath, "startLine"); |
11860 } | 12081 } |
11861 int startColumn; | 12082 int startColumn; |
11862 if (json.containsKey("startColumn")) { | 12083 if (json.containsKey("startColumn")) { |
11863 startColumn = jsonDecoder._decodeInt(jsonPath + ".startColumn", json["st
artColumn"]); | 12084 startColumn = jsonDecoder.decodeInt(jsonPath + ".startColumn", json["sta
rtColumn"]); |
11864 } else { | 12085 } else { |
11865 throw jsonDecoder.missingKey(jsonPath, "startColumn"); | 12086 throw jsonDecoder.missingKey(jsonPath, "startColumn"); |
11866 } | 12087 } |
11867 return new NavigationTarget(kind, fileIndex, offset, length, startLine, st
artColumn); | 12088 return new NavigationTarget(kind, fileIndex, offset, length, startLine, st
artColumn); |
11868 } else { | 12089 } else { |
11869 throw jsonDecoder.mismatch(jsonPath, "NavigationTarget", json); | 12090 throw jsonDecoder.mismatch(jsonPath, "NavigationTarget", json); |
11870 } | 12091 } |
11871 } | 12092 } |
11872 | 12093 |
11873 Map<String, dynamic> toJson() { | 12094 Map<String, dynamic> toJson() { |
(...skipping 19 matching lines...) Expand all Loading... |
11893 length == other.length && | 12114 length == other.length && |
11894 startLine == other.startLine && | 12115 startLine == other.startLine && |
11895 startColumn == other.startColumn; | 12116 startColumn == other.startColumn; |
11896 } | 12117 } |
11897 return false; | 12118 return false; |
11898 } | 12119 } |
11899 | 12120 |
11900 @override | 12121 @override |
11901 int get hashCode { | 12122 int get hashCode { |
11902 int hash = 0; | 12123 int hash = 0; |
11903 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 12124 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
11904 hash = _JenkinsSmiHash.combine(hash, fileIndex.hashCode); | 12125 hash = JenkinsSmiHash.combine(hash, fileIndex.hashCode); |
11905 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 12126 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
11906 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 12127 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
11907 hash = _JenkinsSmiHash.combine(hash, startLine.hashCode); | 12128 hash = JenkinsSmiHash.combine(hash, startLine.hashCode); |
11908 hash = _JenkinsSmiHash.combine(hash, startColumn.hashCode); | 12129 hash = JenkinsSmiHash.combine(hash, startColumn.hashCode); |
11909 return _JenkinsSmiHash.finish(hash); | 12130 return JenkinsSmiHash.finish(hash); |
11910 } | 12131 } |
11911 } | 12132 } |
11912 | 12133 |
11913 /** | 12134 /** |
11914 * Occurrences | 12135 * Occurrences |
11915 * | 12136 * |
11916 * { | 12137 * { |
11917 * "element": Element | 12138 * "element": Element |
11918 * "offsets": List<int> | 12139 * "offsets": List<int> |
11919 * "length": int | 12140 * "length": int |
11920 * } | 12141 * } |
| 12142 * |
| 12143 * Clients are not expected to subtype this class. |
11921 */ | 12144 */ |
11922 class Occurrences implements HasToJson { | 12145 class Occurrences implements HasToJson { |
11923 Element _element; | 12146 Element _element; |
11924 | 12147 |
11925 List<int> _offsets; | 12148 List<int> _offsets; |
11926 | 12149 |
11927 int _length; | 12150 int _length; |
11928 | 12151 |
11929 /** | 12152 /** |
11930 * The element that was referenced. | 12153 * The element that was referenced. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11977 } | 12200 } |
11978 if (json is Map) { | 12201 if (json is Map) { |
11979 Element element; | 12202 Element element; |
11980 if (json.containsKey("element")) { | 12203 if (json.containsKey("element")) { |
11981 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 12204 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); |
11982 } else { | 12205 } else { |
11983 throw jsonDecoder.missingKey(jsonPath, "element"); | 12206 throw jsonDecoder.missingKey(jsonPath, "element"); |
11984 } | 12207 } |
11985 List<int> offsets; | 12208 List<int> offsets; |
11986 if (json.containsKey("offsets")) { | 12209 if (json.containsKey("offsets")) { |
11987 offsets = jsonDecoder._decodeList(jsonPath + ".offsets", json["offsets"]
, jsonDecoder._decodeInt); | 12210 offsets = jsonDecoder.decodeList(jsonPath + ".offsets", json["offsets"],
jsonDecoder.decodeInt); |
11988 } else { | 12211 } else { |
11989 throw jsonDecoder.missingKey(jsonPath, "offsets"); | 12212 throw jsonDecoder.missingKey(jsonPath, "offsets"); |
11990 } | 12213 } |
11991 int length; | 12214 int length; |
11992 if (json.containsKey("length")) { | 12215 if (json.containsKey("length")) { |
11993 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 12216 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
11994 } else { | 12217 } else { |
11995 throw jsonDecoder.missingKey(jsonPath, "length"); | 12218 throw jsonDecoder.missingKey(jsonPath, "length"); |
11996 } | 12219 } |
11997 return new Occurrences(element, offsets, length); | 12220 return new Occurrences(element, offsets, length); |
11998 } else { | 12221 } else { |
11999 throw jsonDecoder.mismatch(jsonPath, "Occurrences", json); | 12222 throw jsonDecoder.mismatch(jsonPath, "Occurrences", json); |
12000 } | 12223 } |
12001 } | 12224 } |
12002 | 12225 |
12003 Map<String, dynamic> toJson() { | 12226 Map<String, dynamic> toJson() { |
12004 Map<String, dynamic> result = {}; | 12227 Map<String, dynamic> result = {}; |
12005 result["element"] = element.toJson(); | 12228 result["element"] = element.toJson(); |
12006 result["offsets"] = offsets; | 12229 result["offsets"] = offsets; |
12007 result["length"] = length; | 12230 result["length"] = length; |
12008 return result; | 12231 return result; |
12009 } | 12232 } |
12010 | 12233 |
12011 @override | 12234 @override |
12012 String toString() => JSON.encode(toJson()); | 12235 String toString() => JSON.encode(toJson()); |
12013 | 12236 |
12014 @override | 12237 @override |
12015 bool operator==(other) { | 12238 bool operator==(other) { |
12016 if (other is Occurrences) { | 12239 if (other is Occurrences) { |
12017 return element == other.element && | 12240 return element == other.element && |
12018 _listEqual(offsets, other.offsets, (int a, int b) => a == b) && | 12241 listEqual(offsets, other.offsets, (int a, int b) => a == b) && |
12019 length == other.length; | 12242 length == other.length; |
12020 } | 12243 } |
12021 return false; | 12244 return false; |
12022 } | 12245 } |
12023 | 12246 |
12024 @override | 12247 @override |
12025 int get hashCode { | 12248 int get hashCode { |
12026 int hash = 0; | 12249 int hash = 0; |
12027 hash = _JenkinsSmiHash.combine(hash, element.hashCode); | 12250 hash = JenkinsSmiHash.combine(hash, element.hashCode); |
12028 hash = _JenkinsSmiHash.combine(hash, offsets.hashCode); | 12251 hash = JenkinsSmiHash.combine(hash, offsets.hashCode); |
12029 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 12252 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
12030 return _JenkinsSmiHash.finish(hash); | 12253 return JenkinsSmiHash.finish(hash); |
12031 } | 12254 } |
12032 } | 12255 } |
12033 | 12256 |
12034 /** | 12257 /** |
12035 * Outline | 12258 * Outline |
12036 * | 12259 * |
12037 * { | 12260 * { |
12038 * "element": Element | 12261 * "element": Element |
12039 * "offset": int | 12262 * "offset": int |
12040 * "length": int | 12263 * "length": int |
12041 * "children": optional List<Outline> | 12264 * "children": optional List<Outline> |
12042 * } | 12265 * } |
| 12266 * |
| 12267 * Clients are not expected to subtype this class. |
12043 */ | 12268 */ |
12044 class Outline implements HasToJson { | 12269 class Outline implements HasToJson { |
12045 Element _element; | 12270 Element _element; |
12046 | 12271 |
12047 int _offset; | 12272 int _offset; |
12048 | 12273 |
12049 int _length; | 12274 int _length; |
12050 | 12275 |
12051 List<Outline> _children; | 12276 List<Outline> _children; |
12052 | 12277 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12122 } | 12347 } |
12123 if (json is Map) { | 12348 if (json is Map) { |
12124 Element element; | 12349 Element element; |
12125 if (json.containsKey("element")) { | 12350 if (json.containsKey("element")) { |
12126 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 12351 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); |
12127 } else { | 12352 } else { |
12128 throw jsonDecoder.missingKey(jsonPath, "element"); | 12353 throw jsonDecoder.missingKey(jsonPath, "element"); |
12129 } | 12354 } |
12130 int offset; | 12355 int offset; |
12131 if (json.containsKey("offset")) { | 12356 if (json.containsKey("offset")) { |
12132 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 12357 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
12133 } else { | 12358 } else { |
12134 throw jsonDecoder.missingKey(jsonPath, "offset"); | 12359 throw jsonDecoder.missingKey(jsonPath, "offset"); |
12135 } | 12360 } |
12136 int length; | 12361 int length; |
12137 if (json.containsKey("length")) { | 12362 if (json.containsKey("length")) { |
12138 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 12363 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
12139 } else { | 12364 } else { |
12140 throw jsonDecoder.missingKey(jsonPath, "length"); | 12365 throw jsonDecoder.missingKey(jsonPath, "length"); |
12141 } | 12366 } |
12142 List<Outline> children; | 12367 List<Outline> children; |
12143 if (json.containsKey("children")) { | 12368 if (json.containsKey("children")) { |
12144 children = jsonDecoder._decodeList(jsonPath + ".children", json["childre
n"], (String jsonPath, Object json) => new Outline.fromJson(jsonDecoder, jsonPat
h, json)); | 12369 children = jsonDecoder.decodeList(jsonPath + ".children", json["children
"], (String jsonPath, Object json) => new Outline.fromJson(jsonDecoder, jsonPath
, json)); |
12145 } | 12370 } |
12146 return new Outline(element, offset, length, children: children); | 12371 return new Outline(element, offset, length, children: children); |
12147 } else { | 12372 } else { |
12148 throw jsonDecoder.mismatch(jsonPath, "Outline", json); | 12373 throw jsonDecoder.mismatch(jsonPath, "Outline", json); |
12149 } | 12374 } |
12150 } | 12375 } |
12151 | 12376 |
12152 Map<String, dynamic> toJson() { | 12377 Map<String, dynamic> toJson() { |
12153 Map<String, dynamic> result = {}; | 12378 Map<String, dynamic> result = {}; |
12154 result["element"] = element.toJson(); | 12379 result["element"] = element.toJson(); |
12155 result["offset"] = offset; | 12380 result["offset"] = offset; |
12156 result["length"] = length; | 12381 result["length"] = length; |
12157 if (children != null) { | 12382 if (children != null) { |
12158 result["children"] = children.map((Outline value) => value.toJson()).toLis
t(); | 12383 result["children"] = children.map((Outline value) => value.toJson()).toLis
t(); |
12159 } | 12384 } |
12160 return result; | 12385 return result; |
12161 } | 12386 } |
12162 | 12387 |
12163 @override | 12388 @override |
12164 String toString() => JSON.encode(toJson()); | 12389 String toString() => JSON.encode(toJson()); |
12165 | 12390 |
12166 @override | 12391 @override |
12167 bool operator==(other) { | 12392 bool operator==(other) { |
12168 if (other is Outline) { | 12393 if (other is Outline) { |
12169 return element == other.element && | 12394 return element == other.element && |
12170 offset == other.offset && | 12395 offset == other.offset && |
12171 length == other.length && | 12396 length == other.length && |
12172 _listEqual(children, other.children, (Outline a, Outline b) => a == b)
; | 12397 listEqual(children, other.children, (Outline a, Outline b) => a == b); |
12173 } | 12398 } |
12174 return false; | 12399 return false; |
12175 } | 12400 } |
12176 | 12401 |
12177 @override | 12402 @override |
12178 int get hashCode { | 12403 int get hashCode { |
12179 int hash = 0; | 12404 int hash = 0; |
12180 hash = _JenkinsSmiHash.combine(hash, element.hashCode); | 12405 hash = JenkinsSmiHash.combine(hash, element.hashCode); |
12181 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 12406 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
12182 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 12407 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
12183 hash = _JenkinsSmiHash.combine(hash, children.hashCode); | 12408 hash = JenkinsSmiHash.combine(hash, children.hashCode); |
12184 return _JenkinsSmiHash.finish(hash); | 12409 return JenkinsSmiHash.finish(hash); |
12185 } | 12410 } |
12186 } | 12411 } |
12187 | 12412 |
12188 /** | 12413 /** |
12189 * Override | 12414 * Override |
12190 * | 12415 * |
12191 * { | 12416 * { |
12192 * "offset": int | 12417 * "offset": int |
12193 * "length": int | 12418 * "length": int |
12194 * "superclassMember": optional OverriddenMember | 12419 * "superclassMember": optional OverriddenMember |
12195 * "interfaceMembers": optional List<OverriddenMember> | 12420 * "interfaceMembers": optional List<OverriddenMember> |
12196 * } | 12421 * } |
| 12422 * |
| 12423 * Clients are not expected to subtype this class. |
12197 */ | 12424 */ |
12198 class Override implements HasToJson { | 12425 class Override implements HasToJson { |
12199 int _offset; | 12426 int _offset; |
12200 | 12427 |
12201 int _length; | 12428 int _length; |
12202 | 12429 |
12203 OverriddenMember _superclassMember; | 12430 OverriddenMember _superclassMember; |
12204 | 12431 |
12205 List<OverriddenMember> _interfaceMembers; | 12432 List<OverriddenMember> _interfaceMembers; |
12206 | 12433 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12269 this.interfaceMembers = interfaceMembers; | 12496 this.interfaceMembers = interfaceMembers; |
12270 } | 12497 } |
12271 | 12498 |
12272 factory Override.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 12499 factory Override.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { |
12273 if (json == null) { | 12500 if (json == null) { |
12274 json = {}; | 12501 json = {}; |
12275 } | 12502 } |
12276 if (json is Map) { | 12503 if (json is Map) { |
12277 int offset; | 12504 int offset; |
12278 if (json.containsKey("offset")) { | 12505 if (json.containsKey("offset")) { |
12279 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 12506 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
12280 } else { | 12507 } else { |
12281 throw jsonDecoder.missingKey(jsonPath, "offset"); | 12508 throw jsonDecoder.missingKey(jsonPath, "offset"); |
12282 } | 12509 } |
12283 int length; | 12510 int length; |
12284 if (json.containsKey("length")) { | 12511 if (json.containsKey("length")) { |
12285 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 12512 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
12286 } else { | 12513 } else { |
12287 throw jsonDecoder.missingKey(jsonPath, "length"); | 12514 throw jsonDecoder.missingKey(jsonPath, "length"); |
12288 } | 12515 } |
12289 OverriddenMember superclassMember; | 12516 OverriddenMember superclassMember; |
12290 if (json.containsKey("superclassMember")) { | 12517 if (json.containsKey("superclassMember")) { |
12291 superclassMember = new OverriddenMember.fromJson(jsonDecoder, jsonPath +
".superclassMember", json["superclassMember"]); | 12518 superclassMember = new OverriddenMember.fromJson(jsonDecoder, jsonPath +
".superclassMember", json["superclassMember"]); |
12292 } | 12519 } |
12293 List<OverriddenMember> interfaceMembers; | 12520 List<OverriddenMember> interfaceMembers; |
12294 if (json.containsKey("interfaceMembers")) { | 12521 if (json.containsKey("interfaceMembers")) { |
12295 interfaceMembers = jsonDecoder._decodeList(jsonPath + ".interfaceMembers
", json["interfaceMembers"], (String jsonPath, Object json) => new OverriddenMem
ber.fromJson(jsonDecoder, jsonPath, json)); | 12522 interfaceMembers = jsonDecoder.decodeList(jsonPath + ".interfaceMembers"
, json["interfaceMembers"], (String jsonPath, Object json) => new OverriddenMemb
er.fromJson(jsonDecoder, jsonPath, json)); |
12296 } | 12523 } |
12297 return new Override(offset, length, superclassMember: superclassMember, in
terfaceMembers: interfaceMembers); | 12524 return new Override(offset, length, superclassMember: superclassMember, in
terfaceMembers: interfaceMembers); |
12298 } else { | 12525 } else { |
12299 throw jsonDecoder.mismatch(jsonPath, "Override", json); | 12526 throw jsonDecoder.mismatch(jsonPath, "Override", json); |
12300 } | 12527 } |
12301 } | 12528 } |
12302 | 12529 |
12303 Map<String, dynamic> toJson() { | 12530 Map<String, dynamic> toJson() { |
12304 Map<String, dynamic> result = {}; | 12531 Map<String, dynamic> result = {}; |
12305 result["offset"] = offset; | 12532 result["offset"] = offset; |
12306 result["length"] = length; | 12533 result["length"] = length; |
12307 if (superclassMember != null) { | 12534 if (superclassMember != null) { |
12308 result["superclassMember"] = superclassMember.toJson(); | 12535 result["superclassMember"] = superclassMember.toJson(); |
12309 } | 12536 } |
12310 if (interfaceMembers != null) { | 12537 if (interfaceMembers != null) { |
12311 result["interfaceMembers"] = interfaceMembers.map((OverriddenMember value)
=> value.toJson()).toList(); | 12538 result["interfaceMembers"] = interfaceMembers.map((OverriddenMember value)
=> value.toJson()).toList(); |
12312 } | 12539 } |
12313 return result; | 12540 return result; |
12314 } | 12541 } |
12315 | 12542 |
12316 @override | 12543 @override |
12317 String toString() => JSON.encode(toJson()); | 12544 String toString() => JSON.encode(toJson()); |
12318 | 12545 |
12319 @override | 12546 @override |
12320 bool operator==(other) { | 12547 bool operator==(other) { |
12321 if (other is Override) { | 12548 if (other is Override) { |
12322 return offset == other.offset && | 12549 return offset == other.offset && |
12323 length == other.length && | 12550 length == other.length && |
12324 superclassMember == other.superclassMember && | 12551 superclassMember == other.superclassMember && |
12325 _listEqual(interfaceMembers, other.interfaceMembers, (OverriddenMember
a, OverriddenMember b) => a == b); | 12552 listEqual(interfaceMembers, other.interfaceMembers, (OverriddenMember
a, OverriddenMember b) => a == b); |
12326 } | 12553 } |
12327 return false; | 12554 return false; |
12328 } | 12555 } |
12329 | 12556 |
12330 @override | 12557 @override |
12331 int get hashCode { | 12558 int get hashCode { |
12332 int hash = 0; | 12559 int hash = 0; |
12333 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 12560 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
12334 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 12561 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
12335 hash = _JenkinsSmiHash.combine(hash, superclassMember.hashCode); | 12562 hash = JenkinsSmiHash.combine(hash, superclassMember.hashCode); |
12336 hash = _JenkinsSmiHash.combine(hash, interfaceMembers.hashCode); | 12563 hash = JenkinsSmiHash.combine(hash, interfaceMembers.hashCode); |
12337 return _JenkinsSmiHash.finish(hash); | 12564 return JenkinsSmiHash.finish(hash); |
12338 } | 12565 } |
12339 } | 12566 } |
12340 | 12567 |
12341 /** | 12568 /** |
12342 * OverriddenMember | 12569 * OverriddenMember |
12343 * | 12570 * |
12344 * { | 12571 * { |
12345 * "element": Element | 12572 * "element": Element |
12346 * "className": String | 12573 * "className": String |
12347 * } | 12574 * } |
| 12575 * |
| 12576 * Clients are not expected to subtype this class. |
12348 */ | 12577 */ |
12349 class OverriddenMember implements HasToJson { | 12578 class OverriddenMember implements HasToJson { |
12350 Element _element; | 12579 Element _element; |
12351 | 12580 |
12352 String _className; | 12581 String _className; |
12353 | 12582 |
12354 /** | 12583 /** |
12355 * The element that is being overridden. | 12584 * The element that is being overridden. |
12356 */ | 12585 */ |
12357 Element get element => _element; | 12586 Element get element => _element; |
(...skipping 30 matching lines...) Expand all Loading... |
12388 } | 12617 } |
12389 if (json is Map) { | 12618 if (json is Map) { |
12390 Element element; | 12619 Element element; |
12391 if (json.containsKey("element")) { | 12620 if (json.containsKey("element")) { |
12392 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 12621 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); |
12393 } else { | 12622 } else { |
12394 throw jsonDecoder.missingKey(jsonPath, "element"); | 12623 throw jsonDecoder.missingKey(jsonPath, "element"); |
12395 } | 12624 } |
12396 String className; | 12625 String className; |
12397 if (json.containsKey("className")) { | 12626 if (json.containsKey("className")) { |
12398 className = jsonDecoder._decodeString(jsonPath + ".className", json["cla
ssName"]); | 12627 className = jsonDecoder.decodeString(jsonPath + ".className", json["clas
sName"]); |
12399 } else { | 12628 } else { |
12400 throw jsonDecoder.missingKey(jsonPath, "className"); | 12629 throw jsonDecoder.missingKey(jsonPath, "className"); |
12401 } | 12630 } |
12402 return new OverriddenMember(element, className); | 12631 return new OverriddenMember(element, className); |
12403 } else { | 12632 } else { |
12404 throw jsonDecoder.mismatch(jsonPath, "OverriddenMember", json); | 12633 throw jsonDecoder.mismatch(jsonPath, "OverriddenMember", json); |
12405 } | 12634 } |
12406 } | 12635 } |
12407 | 12636 |
12408 Map<String, dynamic> toJson() { | 12637 Map<String, dynamic> toJson() { |
(...skipping 11 matching lines...) Expand all Loading... |
12420 if (other is OverriddenMember) { | 12649 if (other is OverriddenMember) { |
12421 return element == other.element && | 12650 return element == other.element && |
12422 className == other.className; | 12651 className == other.className; |
12423 } | 12652 } |
12424 return false; | 12653 return false; |
12425 } | 12654 } |
12426 | 12655 |
12427 @override | 12656 @override |
12428 int get hashCode { | 12657 int get hashCode { |
12429 int hash = 0; | 12658 int hash = 0; |
12430 hash = _JenkinsSmiHash.combine(hash, element.hashCode); | 12659 hash = JenkinsSmiHash.combine(hash, element.hashCode); |
12431 hash = _JenkinsSmiHash.combine(hash, className.hashCode); | 12660 hash = JenkinsSmiHash.combine(hash, className.hashCode); |
12432 return _JenkinsSmiHash.finish(hash); | 12661 return JenkinsSmiHash.finish(hash); |
12433 } | 12662 } |
12434 } | 12663 } |
12435 | 12664 |
12436 /** | 12665 /** |
12437 * Position | 12666 * Position |
12438 * | 12667 * |
12439 * { | 12668 * { |
12440 * "file": FilePath | 12669 * "file": FilePath |
12441 * "offset": int | 12670 * "offset": int |
12442 * } | 12671 * } |
| 12672 * |
| 12673 * Clients are not expected to subtype this class. |
12443 */ | 12674 */ |
12444 class Position implements HasToJson { | 12675 class Position implements HasToJson { |
12445 String _file; | 12676 String _file; |
12446 | 12677 |
12447 int _offset; | 12678 int _offset; |
12448 | 12679 |
12449 /** | 12680 /** |
12450 * The file containing the position. | 12681 * The file containing the position. |
12451 */ | 12682 */ |
12452 String get file => _file; | 12683 String get file => _file; |
(...skipping 24 matching lines...) Expand all Loading... |
12477 this.offset = offset; | 12708 this.offset = offset; |
12478 } | 12709 } |
12479 | 12710 |
12480 factory Position.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 12711 factory Position.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { |
12481 if (json == null) { | 12712 if (json == null) { |
12482 json = {}; | 12713 json = {}; |
12483 } | 12714 } |
12484 if (json is Map) { | 12715 if (json is Map) { |
12485 String file; | 12716 String file; |
12486 if (json.containsKey("file")) { | 12717 if (json.containsKey("file")) { |
12487 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 12718 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
12488 } else { | 12719 } else { |
12489 throw jsonDecoder.missingKey(jsonPath, "file"); | 12720 throw jsonDecoder.missingKey(jsonPath, "file"); |
12490 } | 12721 } |
12491 int offset; | 12722 int offset; |
12492 if (json.containsKey("offset")) { | 12723 if (json.containsKey("offset")) { |
12493 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 12724 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
12494 } else { | 12725 } else { |
12495 throw jsonDecoder.missingKey(jsonPath, "offset"); | 12726 throw jsonDecoder.missingKey(jsonPath, "offset"); |
12496 } | 12727 } |
12497 return new Position(file, offset); | 12728 return new Position(file, offset); |
12498 } else { | 12729 } else { |
12499 throw jsonDecoder.mismatch(jsonPath, "Position", json); | 12730 throw jsonDecoder.mismatch(jsonPath, "Position", json); |
12500 } | 12731 } |
12501 } | 12732 } |
12502 | 12733 |
12503 Map<String, dynamic> toJson() { | 12734 Map<String, dynamic> toJson() { |
(...skipping 11 matching lines...) Expand all Loading... |
12515 if (other is Position) { | 12746 if (other is Position) { |
12516 return file == other.file && | 12747 return file == other.file && |
12517 offset == other.offset; | 12748 offset == other.offset; |
12518 } | 12749 } |
12519 return false; | 12750 return false; |
12520 } | 12751 } |
12521 | 12752 |
12522 @override | 12753 @override |
12523 int get hashCode { | 12754 int get hashCode { |
12524 int hash = 0; | 12755 int hash = 0; |
12525 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 12756 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
12526 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 12757 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
12527 return _JenkinsSmiHash.finish(hash); | 12758 return JenkinsSmiHash.finish(hash); |
12528 } | 12759 } |
12529 } | 12760 } |
12530 | 12761 |
12531 /** | 12762 /** |
12532 * PubStatus | 12763 * PubStatus |
12533 * | 12764 * |
12534 * { | 12765 * { |
12535 * "isListingPackageDirs": bool | 12766 * "isListingPackageDirs": bool |
12536 * } | 12767 * } |
| 12768 * |
| 12769 * Clients are not expected to subtype this class. |
12537 */ | 12770 */ |
12538 class PubStatus implements HasToJson { | 12771 class PubStatus implements HasToJson { |
12539 bool _isListingPackageDirs; | 12772 bool _isListingPackageDirs; |
12540 | 12773 |
12541 /** | 12774 /** |
12542 * True if the server is currently running pub to produce a list of package | 12775 * True if the server is currently running pub to produce a list of package |
12543 * directories. | 12776 * directories. |
12544 */ | 12777 */ |
12545 bool get isListingPackageDirs => _isListingPackageDirs; | 12778 bool get isListingPackageDirs => _isListingPackageDirs; |
12546 | 12779 |
(...skipping 10 matching lines...) Expand all Loading... |
12557 this.isListingPackageDirs = isListingPackageDirs; | 12790 this.isListingPackageDirs = isListingPackageDirs; |
12558 } | 12791 } |
12559 | 12792 |
12560 factory PubStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object js
on) { | 12793 factory PubStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object js
on) { |
12561 if (json == null) { | 12794 if (json == null) { |
12562 json = {}; | 12795 json = {}; |
12563 } | 12796 } |
12564 if (json is Map) { | 12797 if (json is Map) { |
12565 bool isListingPackageDirs; | 12798 bool isListingPackageDirs; |
12566 if (json.containsKey("isListingPackageDirs")) { | 12799 if (json.containsKey("isListingPackageDirs")) { |
12567 isListingPackageDirs = jsonDecoder._decodeBool(jsonPath + ".isListingPac
kageDirs", json["isListingPackageDirs"]); | 12800 isListingPackageDirs = jsonDecoder.decodeBool(jsonPath + ".isListingPack
ageDirs", json["isListingPackageDirs"]); |
12568 } else { | 12801 } else { |
12569 throw jsonDecoder.missingKey(jsonPath, "isListingPackageDirs"); | 12802 throw jsonDecoder.missingKey(jsonPath, "isListingPackageDirs"); |
12570 } | 12803 } |
12571 return new PubStatus(isListingPackageDirs); | 12804 return new PubStatus(isListingPackageDirs); |
12572 } else { | 12805 } else { |
12573 throw jsonDecoder.mismatch(jsonPath, "PubStatus", json); | 12806 throw jsonDecoder.mismatch(jsonPath, "PubStatus", json); |
12574 } | 12807 } |
12575 } | 12808 } |
12576 | 12809 |
12577 Map<String, dynamic> toJson() { | 12810 Map<String, dynamic> toJson() { |
12578 Map<String, dynamic> result = {}; | 12811 Map<String, dynamic> result = {}; |
12579 result["isListingPackageDirs"] = isListingPackageDirs; | 12812 result["isListingPackageDirs"] = isListingPackageDirs; |
12580 return result; | 12813 return result; |
12581 } | 12814 } |
12582 | 12815 |
12583 @override | 12816 @override |
12584 String toString() => JSON.encode(toJson()); | 12817 String toString() => JSON.encode(toJson()); |
12585 | 12818 |
12586 @override | 12819 @override |
12587 bool operator==(other) { | 12820 bool operator==(other) { |
12588 if (other is PubStatus) { | 12821 if (other is PubStatus) { |
12589 return isListingPackageDirs == other.isListingPackageDirs; | 12822 return isListingPackageDirs == other.isListingPackageDirs; |
12590 } | 12823 } |
12591 return false; | 12824 return false; |
12592 } | 12825 } |
12593 | 12826 |
12594 @override | 12827 @override |
12595 int get hashCode { | 12828 int get hashCode { |
12596 int hash = 0; | 12829 int hash = 0; |
12597 hash = _JenkinsSmiHash.combine(hash, isListingPackageDirs.hashCode); | 12830 hash = JenkinsSmiHash.combine(hash, isListingPackageDirs.hashCode); |
12598 return _JenkinsSmiHash.finish(hash); | 12831 return JenkinsSmiHash.finish(hash); |
12599 } | 12832 } |
12600 } | 12833 } |
12601 | 12834 |
12602 /** | 12835 /** |
12603 * RefactoringKind | 12836 * RefactoringKind |
12604 * | 12837 * |
12605 * enum { | 12838 * enum { |
12606 * CONVERT_GETTER_TO_METHOD | 12839 * CONVERT_GETTER_TO_METHOD |
12607 * CONVERT_METHOD_TO_GETTER | 12840 * CONVERT_METHOD_TO_GETTER |
12608 * EXTRACT_LOCAL_VARIABLE | 12841 * EXTRACT_LOCAL_VARIABLE |
12609 * EXTRACT_METHOD | 12842 * EXTRACT_METHOD |
12610 * INLINE_LOCAL_VARIABLE | 12843 * INLINE_LOCAL_VARIABLE |
12611 * INLINE_METHOD | 12844 * INLINE_METHOD |
12612 * MOVE_FILE | 12845 * MOVE_FILE |
12613 * RENAME | 12846 * RENAME |
12614 * SORT_MEMBERS | 12847 * SORT_MEMBERS |
12615 * } | 12848 * } |
| 12849 * |
| 12850 * Clients are not expected to subtype this class. |
12616 */ | 12851 */ |
12617 class RefactoringKind implements Enum { | 12852 class RefactoringKind implements Enum { |
12618 static const CONVERT_GETTER_TO_METHOD = const RefactoringKind._("CONVERT_GETTE
R_TO_METHOD"); | 12853 static const CONVERT_GETTER_TO_METHOD = const RefactoringKind._("CONVERT_GETTE
R_TO_METHOD"); |
12619 | 12854 |
12620 static const CONVERT_METHOD_TO_GETTER = const RefactoringKind._("CONVERT_METHO
D_TO_GETTER"); | 12855 static const CONVERT_METHOD_TO_GETTER = const RefactoringKind._("CONVERT_METHO
D_TO_GETTER"); |
12621 | 12856 |
12622 static const EXTRACT_LOCAL_VARIABLE = const RefactoringKind._("EXTRACT_LOCAL_V
ARIABLE"); | 12857 static const EXTRACT_LOCAL_VARIABLE = const RefactoringKind._("EXTRACT_LOCAL_V
ARIABLE"); |
12623 | 12858 |
12624 static const EXTRACT_METHOD = const RefactoringKind._("EXTRACT_METHOD"); | 12859 static const EXTRACT_METHOD = const RefactoringKind._("EXTRACT_METHOD"); |
12625 | 12860 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12686 /** | 12921 /** |
12687 * RefactoringMethodParameter | 12922 * RefactoringMethodParameter |
12688 * | 12923 * |
12689 * { | 12924 * { |
12690 * "id": optional String | 12925 * "id": optional String |
12691 * "kind": RefactoringMethodParameterKind | 12926 * "kind": RefactoringMethodParameterKind |
12692 * "type": String | 12927 * "type": String |
12693 * "name": String | 12928 * "name": String |
12694 * "parameters": optional String | 12929 * "parameters": optional String |
12695 * } | 12930 * } |
| 12931 * |
| 12932 * Clients are not expected to subtype this class. |
12696 */ | 12933 */ |
12697 class RefactoringMethodParameter implements HasToJson { | 12934 class RefactoringMethodParameter implements HasToJson { |
12698 String _id; | 12935 String _id; |
12699 | 12936 |
12700 RefactoringMethodParameterKind _kind; | 12937 RefactoringMethodParameterKind _kind; |
12701 | 12938 |
12702 String _type; | 12939 String _type; |
12703 | 12940 |
12704 String _name; | 12941 String _name; |
12705 | 12942 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12784 this.parameters = parameters; | 13021 this.parameters = parameters; |
12785 } | 13022 } |
12786 | 13023 |
12787 factory RefactoringMethodParameter.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 13024 factory RefactoringMethodParameter.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { |
12788 if (json == null) { | 13025 if (json == null) { |
12789 json = {}; | 13026 json = {}; |
12790 } | 13027 } |
12791 if (json is Map) { | 13028 if (json is Map) { |
12792 String id; | 13029 String id; |
12793 if (json.containsKey("id")) { | 13030 if (json.containsKey("id")) { |
12794 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 13031 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
12795 } | 13032 } |
12796 RefactoringMethodParameterKind kind; | 13033 RefactoringMethodParameterKind kind; |
12797 if (json.containsKey("kind")) { | 13034 if (json.containsKey("kind")) { |
12798 kind = new RefactoringMethodParameterKind.fromJson(jsonDecoder, jsonPath
+ ".kind", json["kind"]); | 13035 kind = new RefactoringMethodParameterKind.fromJson(jsonDecoder, jsonPath
+ ".kind", json["kind"]); |
12799 } else { | 13036 } else { |
12800 throw jsonDecoder.missingKey(jsonPath, "kind"); | 13037 throw jsonDecoder.missingKey(jsonPath, "kind"); |
12801 } | 13038 } |
12802 String type; | 13039 String type; |
12803 if (json.containsKey("type")) { | 13040 if (json.containsKey("type")) { |
12804 type = jsonDecoder._decodeString(jsonPath + ".type", json["type"]); | 13041 type = jsonDecoder.decodeString(jsonPath + ".type", json["type"]); |
12805 } else { | 13042 } else { |
12806 throw jsonDecoder.missingKey(jsonPath, "type"); | 13043 throw jsonDecoder.missingKey(jsonPath, "type"); |
12807 } | 13044 } |
12808 String name; | 13045 String name; |
12809 if (json.containsKey("name")) { | 13046 if (json.containsKey("name")) { |
12810 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 13047 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
12811 } else { | 13048 } else { |
12812 throw jsonDecoder.missingKey(jsonPath, "name"); | 13049 throw jsonDecoder.missingKey(jsonPath, "name"); |
12813 } | 13050 } |
12814 String parameters; | 13051 String parameters; |
12815 if (json.containsKey("parameters")) { | 13052 if (json.containsKey("parameters")) { |
12816 parameters = jsonDecoder._decodeString(jsonPath + ".parameters", json["p
arameters"]); | 13053 parameters = jsonDecoder.decodeString(jsonPath + ".parameters", json["pa
rameters"]); |
12817 } | 13054 } |
12818 return new RefactoringMethodParameter(kind, type, name, id: id, parameters
: parameters); | 13055 return new RefactoringMethodParameter(kind, type, name, id: id, parameters
: parameters); |
12819 } else { | 13056 } else { |
12820 throw jsonDecoder.mismatch(jsonPath, "RefactoringMethodParameter", json); | 13057 throw jsonDecoder.mismatch(jsonPath, "RefactoringMethodParameter", json); |
12821 } | 13058 } |
12822 } | 13059 } |
12823 | 13060 |
12824 Map<String, dynamic> toJson() { | 13061 Map<String, dynamic> toJson() { |
12825 Map<String, dynamic> result = {}; | 13062 Map<String, dynamic> result = {}; |
12826 if (id != null) { | 13063 if (id != null) { |
(...skipping 19 matching lines...) Expand all Loading... |
12846 type == other.type && | 13083 type == other.type && |
12847 name == other.name && | 13084 name == other.name && |
12848 parameters == other.parameters; | 13085 parameters == other.parameters; |
12849 } | 13086 } |
12850 return false; | 13087 return false; |
12851 } | 13088 } |
12852 | 13089 |
12853 @override | 13090 @override |
12854 int get hashCode { | 13091 int get hashCode { |
12855 int hash = 0; | 13092 int hash = 0; |
12856 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 13093 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
12857 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 13094 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
12858 hash = _JenkinsSmiHash.combine(hash, type.hashCode); | 13095 hash = JenkinsSmiHash.combine(hash, type.hashCode); |
12859 hash = _JenkinsSmiHash.combine(hash, name.hashCode); | 13096 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
12860 hash = _JenkinsSmiHash.combine(hash, parameters.hashCode); | 13097 hash = JenkinsSmiHash.combine(hash, parameters.hashCode); |
12861 return _JenkinsSmiHash.finish(hash); | 13098 return JenkinsSmiHash.finish(hash); |
12862 } | 13099 } |
12863 } | 13100 } |
12864 | 13101 |
12865 /** | 13102 /** |
12866 * RefactoringFeedback | 13103 * RefactoringFeedback |
12867 * | 13104 * |
12868 * { | 13105 * { |
12869 * } | 13106 * } |
| 13107 * |
| 13108 * Clients are not expected to subtype this class. |
12870 */ | 13109 */ |
12871 class RefactoringFeedback implements HasToJson { | 13110 class RefactoringFeedback implements HasToJson { |
12872 RefactoringFeedback(); | 13111 RefactoringFeedback(); |
12873 | 13112 |
12874 factory RefactoringFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json, Map responseJson) { | 13113 factory RefactoringFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json, Map responseJson) { |
12875 return _refactoringFeedbackFromJson(jsonDecoder, jsonPath, json, responseJso
n); | 13114 return refactoringFeedbackFromJson(jsonDecoder, jsonPath, json, responseJson
); |
12876 } | 13115 } |
12877 | 13116 |
12878 Map<String, dynamic> toJson() { | 13117 Map<String, dynamic> toJson() { |
12879 Map<String, dynamic> result = {}; | 13118 Map<String, dynamic> result = {}; |
12880 return result; | 13119 return result; |
12881 } | 13120 } |
12882 | 13121 |
12883 @override | 13122 @override |
12884 String toString() => JSON.encode(toJson()); | 13123 String toString() => JSON.encode(toJson()); |
12885 | 13124 |
12886 @override | 13125 @override |
12887 bool operator==(other) { | 13126 bool operator==(other) { |
12888 if (other is RefactoringFeedback) { | 13127 if (other is RefactoringFeedback) { |
12889 return true; | 13128 return true; |
12890 } | 13129 } |
12891 return false; | 13130 return false; |
12892 } | 13131 } |
12893 | 13132 |
12894 @override | 13133 @override |
12895 int get hashCode { | 13134 int get hashCode { |
12896 int hash = 0; | 13135 int hash = 0; |
12897 return _JenkinsSmiHash.finish(hash); | 13136 return JenkinsSmiHash.finish(hash); |
12898 } | 13137 } |
12899 } | 13138 } |
12900 | 13139 |
12901 /** | 13140 /** |
12902 * RefactoringOptions | 13141 * RefactoringOptions |
12903 * | 13142 * |
12904 * { | 13143 * { |
12905 * } | 13144 * } |
| 13145 * |
| 13146 * Clients are not expected to subtype this class. |
12906 */ | 13147 */ |
12907 class RefactoringOptions implements HasToJson { | 13148 class RefactoringOptions implements HasToJson { |
12908 RefactoringOptions(); | 13149 RefactoringOptions(); |
12909 | 13150 |
12910 factory RefactoringOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json, RefactoringKind kind) { | 13151 factory RefactoringOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json, RefactoringKind kind) { |
12911 return _refactoringOptionsFromJson(jsonDecoder, jsonPath, json, kind); | 13152 return refactoringOptionsFromJson(jsonDecoder, jsonPath, json, kind); |
12912 } | 13153 } |
12913 | 13154 |
12914 Map<String, dynamic> toJson() { | 13155 Map<String, dynamic> toJson() { |
12915 Map<String, dynamic> result = {}; | 13156 Map<String, dynamic> result = {}; |
12916 return result; | 13157 return result; |
12917 } | 13158 } |
12918 | 13159 |
12919 @override | 13160 @override |
12920 String toString() => JSON.encode(toJson()); | 13161 String toString() => JSON.encode(toJson()); |
12921 | 13162 |
12922 @override | 13163 @override |
12923 bool operator==(other) { | 13164 bool operator==(other) { |
12924 if (other is RefactoringOptions) { | 13165 if (other is RefactoringOptions) { |
12925 return true; | 13166 return true; |
12926 } | 13167 } |
12927 return false; | 13168 return false; |
12928 } | 13169 } |
12929 | 13170 |
12930 @override | 13171 @override |
12931 int get hashCode { | 13172 int get hashCode { |
12932 int hash = 0; | 13173 int hash = 0; |
12933 return _JenkinsSmiHash.finish(hash); | 13174 return JenkinsSmiHash.finish(hash); |
12934 } | 13175 } |
12935 } | 13176 } |
12936 | 13177 |
12937 /** | 13178 /** |
12938 * RefactoringMethodParameterKind | 13179 * RefactoringMethodParameterKind |
12939 * | 13180 * |
12940 * enum { | 13181 * enum { |
12941 * REQUIRED | 13182 * REQUIRED |
12942 * POSITIONAL | 13183 * POSITIONAL |
12943 * NAMED | 13184 * NAMED |
12944 * } | 13185 * } |
| 13186 * |
| 13187 * Clients are not expected to subtype this class. |
12945 */ | 13188 */ |
12946 class RefactoringMethodParameterKind implements Enum { | 13189 class RefactoringMethodParameterKind implements Enum { |
12947 static const REQUIRED = const RefactoringMethodParameterKind._("REQUIRED"); | 13190 static const REQUIRED = const RefactoringMethodParameterKind._("REQUIRED"); |
12948 | 13191 |
12949 static const POSITIONAL = const RefactoringMethodParameterKind._("POSITIONAL")
; | 13192 static const POSITIONAL = const RefactoringMethodParameterKind._("POSITIONAL")
; |
12950 | 13193 |
12951 static const NAMED = const RefactoringMethodParameterKind._("NAMED"); | 13194 static const NAMED = const RefactoringMethodParameterKind._("NAMED"); |
12952 | 13195 |
12953 /** | 13196 /** |
12954 * A list containing all of the enum values that are defined. | 13197 * A list containing all of the enum values that are defined. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12989 } | 13232 } |
12990 | 13233 |
12991 /** | 13234 /** |
12992 * RefactoringProblem | 13235 * RefactoringProblem |
12993 * | 13236 * |
12994 * { | 13237 * { |
12995 * "severity": RefactoringProblemSeverity | 13238 * "severity": RefactoringProblemSeverity |
12996 * "message": String | 13239 * "message": String |
12997 * "location": optional Location | 13240 * "location": optional Location |
12998 * } | 13241 * } |
| 13242 * |
| 13243 * Clients are not expected to subtype this class. |
12999 */ | 13244 */ |
13000 class RefactoringProblem implements HasToJson { | 13245 class RefactoringProblem implements HasToJson { |
13001 RefactoringProblemSeverity _severity; | 13246 RefactoringProblemSeverity _severity; |
13002 | 13247 |
13003 String _message; | 13248 String _message; |
13004 | 13249 |
13005 Location _location; | 13250 Location _location; |
13006 | 13251 |
13007 /** | 13252 /** |
13008 * The severity of the problem being represented. | 13253 * The severity of the problem being represented. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13058 } | 13303 } |
13059 if (json is Map) { | 13304 if (json is Map) { |
13060 RefactoringProblemSeverity severity; | 13305 RefactoringProblemSeverity severity; |
13061 if (json.containsKey("severity")) { | 13306 if (json.containsKey("severity")) { |
13062 severity = new RefactoringProblemSeverity.fromJson(jsonDecoder, jsonPath
+ ".severity", json["severity"]); | 13307 severity = new RefactoringProblemSeverity.fromJson(jsonDecoder, jsonPath
+ ".severity", json["severity"]); |
13063 } else { | 13308 } else { |
13064 throw jsonDecoder.missingKey(jsonPath, "severity"); | 13309 throw jsonDecoder.missingKey(jsonPath, "severity"); |
13065 } | 13310 } |
13066 String message; | 13311 String message; |
13067 if (json.containsKey("message")) { | 13312 if (json.containsKey("message")) { |
13068 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); | 13313 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); |
13069 } else { | 13314 } else { |
13070 throw jsonDecoder.missingKey(jsonPath, "message"); | 13315 throw jsonDecoder.missingKey(jsonPath, "message"); |
13071 } | 13316 } |
13072 Location location; | 13317 Location location; |
13073 if (json.containsKey("location")) { | 13318 if (json.containsKey("location")) { |
13074 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); | 13319 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); |
13075 } | 13320 } |
13076 return new RefactoringProblem(severity, message, location: location); | 13321 return new RefactoringProblem(severity, message, location: location); |
13077 } else { | 13322 } else { |
13078 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblem", json); | 13323 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblem", json); |
(...skipping 19 matching lines...) Expand all Loading... |
13098 return severity == other.severity && | 13343 return severity == other.severity && |
13099 message == other.message && | 13344 message == other.message && |
13100 location == other.location; | 13345 location == other.location; |
13101 } | 13346 } |
13102 return false; | 13347 return false; |
13103 } | 13348 } |
13104 | 13349 |
13105 @override | 13350 @override |
13106 int get hashCode { | 13351 int get hashCode { |
13107 int hash = 0; | 13352 int hash = 0; |
13108 hash = _JenkinsSmiHash.combine(hash, severity.hashCode); | 13353 hash = JenkinsSmiHash.combine(hash, severity.hashCode); |
13109 hash = _JenkinsSmiHash.combine(hash, message.hashCode); | 13354 hash = JenkinsSmiHash.combine(hash, message.hashCode); |
13110 hash = _JenkinsSmiHash.combine(hash, location.hashCode); | 13355 hash = JenkinsSmiHash.combine(hash, location.hashCode); |
13111 return _JenkinsSmiHash.finish(hash); | 13356 return JenkinsSmiHash.finish(hash); |
13112 } | 13357 } |
13113 } | 13358 } |
13114 | 13359 |
13115 /** | 13360 /** |
13116 * RefactoringProblemSeverity | 13361 * RefactoringProblemSeverity |
13117 * | 13362 * |
13118 * enum { | 13363 * enum { |
13119 * INFO | 13364 * INFO |
13120 * WARNING | 13365 * WARNING |
13121 * ERROR | 13366 * ERROR |
13122 * FATAL | 13367 * FATAL |
13123 * } | 13368 * } |
| 13369 * |
| 13370 * Clients are not expected to subtype this class. |
13124 */ | 13371 */ |
13125 class RefactoringProblemSeverity implements Enum { | 13372 class RefactoringProblemSeverity implements Enum { |
13126 static const INFO = const RefactoringProblemSeverity._("INFO"); | 13373 static const INFO = const RefactoringProblemSeverity._("INFO"); |
13127 | 13374 |
13128 static const WARNING = const RefactoringProblemSeverity._("WARNING"); | 13375 static const WARNING = const RefactoringProblemSeverity._("WARNING"); |
13129 | 13376 |
13130 static const ERROR = const RefactoringProblemSeverity._("ERROR"); | 13377 static const ERROR = const RefactoringProblemSeverity._("ERROR"); |
13131 | 13378 |
13132 static const FATAL = const RefactoringProblemSeverity._("FATAL"); | 13379 static const FATAL = const RefactoringProblemSeverity._("FATAL"); |
13133 | 13380 |
(...skipping 28 matching lines...) Expand all Loading... |
13162 // Fall through | 13409 // Fall through |
13163 } | 13410 } |
13164 } | 13411 } |
13165 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblemSeverity", json); | 13412 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblemSeverity", json); |
13166 } | 13413 } |
13167 | 13414 |
13168 /** | 13415 /** |
13169 * Returns the [RefactoringProblemSeverity] with the maximal severity. | 13416 * Returns the [RefactoringProblemSeverity] with the maximal severity. |
13170 */ | 13417 */ |
13171 static RefactoringProblemSeverity max(RefactoringProblemSeverity a, Refactorin
gProblemSeverity b) => | 13418 static RefactoringProblemSeverity max(RefactoringProblemSeverity a, Refactorin
gProblemSeverity b) => |
13172 _maxRefactoringProblemSeverity(a, b); | 13419 maxRefactoringProblemSeverity(a, b); |
13173 | 13420 |
13174 @override | 13421 @override |
13175 String toString() => "RefactoringProblemSeverity.$name"; | 13422 String toString() => "RefactoringProblemSeverity.$name"; |
13176 | 13423 |
13177 String toJson() => name; | 13424 String toJson() => name; |
13178 } | 13425 } |
13179 | 13426 |
13180 /** | 13427 /** |
13181 * RemoveContentOverlay | 13428 * RemoveContentOverlay |
13182 * | 13429 * |
13183 * { | 13430 * { |
13184 * "type": "remove" | 13431 * "type": "remove" |
13185 * } | 13432 * } |
| 13433 * |
| 13434 * Clients are not expected to subtype this class. |
13186 */ | 13435 */ |
13187 class RemoveContentOverlay implements HasToJson { | 13436 class RemoveContentOverlay implements HasToJson { |
13188 RemoveContentOverlay(); | 13437 RemoveContentOverlay(); |
13189 | 13438 |
13190 factory RemoveContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 13439 factory RemoveContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
13191 if (json == null) { | 13440 if (json == null) { |
13192 json = {}; | 13441 json = {}; |
13193 } | 13442 } |
13194 if (json is Map) { | 13443 if (json is Map) { |
13195 if (json["type"] != "remove") { | 13444 if (json["type"] != "remove") { |
(...skipping 18 matching lines...) Expand all Loading... |
13214 bool operator==(other) { | 13463 bool operator==(other) { |
13215 if (other is RemoveContentOverlay) { | 13464 if (other is RemoveContentOverlay) { |
13216 return true; | 13465 return true; |
13217 } | 13466 } |
13218 return false; | 13467 return false; |
13219 } | 13468 } |
13220 | 13469 |
13221 @override | 13470 @override |
13222 int get hashCode { | 13471 int get hashCode { |
13223 int hash = 0; | 13472 int hash = 0; |
13224 hash = _JenkinsSmiHash.combine(hash, 114870849); | 13473 hash = JenkinsSmiHash.combine(hash, 114870849); |
13225 return _JenkinsSmiHash.finish(hash); | 13474 return JenkinsSmiHash.finish(hash); |
13226 } | 13475 } |
13227 } | 13476 } |
13228 | 13477 |
13229 /** | 13478 /** |
13230 * RequestError | 13479 * RequestError |
13231 * | 13480 * |
13232 * { | 13481 * { |
13233 * "code": RequestErrorCode | 13482 * "code": RequestErrorCode |
13234 * "message": String | 13483 * "message": String |
13235 * "stackTrace": optional String | 13484 * "stackTrace": optional String |
13236 * } | 13485 * } |
| 13486 * |
| 13487 * Clients are not expected to subtype this class. |
13237 */ | 13488 */ |
13238 class RequestError implements HasToJson { | 13489 class RequestError implements HasToJson { |
13239 RequestErrorCode _code; | 13490 RequestErrorCode _code; |
13240 | 13491 |
13241 String _message; | 13492 String _message; |
13242 | 13493 |
13243 String _stackTrace; | 13494 String _stackTrace; |
13244 | 13495 |
13245 /** | 13496 /** |
13246 * A code that uniquely identifies the error that occurred. | 13497 * A code that uniquely identifies the error that occurred. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13294 } | 13545 } |
13295 if (json is Map) { | 13546 if (json is Map) { |
13296 RequestErrorCode code; | 13547 RequestErrorCode code; |
13297 if (json.containsKey("code")) { | 13548 if (json.containsKey("code")) { |
13298 code = new RequestErrorCode.fromJson(jsonDecoder, jsonPath + ".code", js
on["code"]); | 13549 code = new RequestErrorCode.fromJson(jsonDecoder, jsonPath + ".code", js
on["code"]); |
13299 } else { | 13550 } else { |
13300 throw jsonDecoder.missingKey(jsonPath, "code"); | 13551 throw jsonDecoder.missingKey(jsonPath, "code"); |
13301 } | 13552 } |
13302 String message; | 13553 String message; |
13303 if (json.containsKey("message")) { | 13554 if (json.containsKey("message")) { |
13304 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); | 13555 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); |
13305 } else { | 13556 } else { |
13306 throw jsonDecoder.missingKey(jsonPath, "message"); | 13557 throw jsonDecoder.missingKey(jsonPath, "message"); |
13307 } | 13558 } |
13308 String stackTrace; | 13559 String stackTrace; |
13309 if (json.containsKey("stackTrace")) { | 13560 if (json.containsKey("stackTrace")) { |
13310 stackTrace = jsonDecoder._decodeString(jsonPath + ".stackTrace", json["s
tackTrace"]); | 13561 stackTrace = jsonDecoder.decodeString(jsonPath + ".stackTrace", json["st
ackTrace"]); |
13311 } | 13562 } |
13312 return new RequestError(code, message, stackTrace: stackTrace); | 13563 return new RequestError(code, message, stackTrace: stackTrace); |
13313 } else { | 13564 } else { |
13314 throw jsonDecoder.mismatch(jsonPath, "RequestError", json); | 13565 throw jsonDecoder.mismatch(jsonPath, "RequestError", json); |
13315 } | 13566 } |
13316 } | 13567 } |
13317 | 13568 |
13318 Map<String, dynamic> toJson() { | 13569 Map<String, dynamic> toJson() { |
13319 Map<String, dynamic> result = {}; | 13570 Map<String, dynamic> result = {}; |
13320 result["code"] = code.toJson(); | 13571 result["code"] = code.toJson(); |
(...skipping 13 matching lines...) Expand all Loading... |
13334 return code == other.code && | 13585 return code == other.code && |
13335 message == other.message && | 13586 message == other.message && |
13336 stackTrace == other.stackTrace; | 13587 stackTrace == other.stackTrace; |
13337 } | 13588 } |
13338 return false; | 13589 return false; |
13339 } | 13590 } |
13340 | 13591 |
13341 @override | 13592 @override |
13342 int get hashCode { | 13593 int get hashCode { |
13343 int hash = 0; | 13594 int hash = 0; |
13344 hash = _JenkinsSmiHash.combine(hash, code.hashCode); | 13595 hash = JenkinsSmiHash.combine(hash, code.hashCode); |
13345 hash = _JenkinsSmiHash.combine(hash, message.hashCode); | 13596 hash = JenkinsSmiHash.combine(hash, message.hashCode); |
13346 hash = _JenkinsSmiHash.combine(hash, stackTrace.hashCode); | 13597 hash = JenkinsSmiHash.combine(hash, stackTrace.hashCode); |
13347 return _JenkinsSmiHash.finish(hash); | 13598 return JenkinsSmiHash.finish(hash); |
13348 } | 13599 } |
13349 } | 13600 } |
13350 | 13601 |
13351 /** | 13602 /** |
13352 * RequestErrorCode | 13603 * RequestErrorCode |
13353 * | 13604 * |
13354 * enum { | 13605 * enum { |
13355 * CONTENT_MODIFIED | 13606 * CONTENT_MODIFIED |
13356 * FILE_NOT_ANALYZED | 13607 * FILE_NOT_ANALYZED |
13357 * FORMAT_INVALID_FILE | 13608 * FORMAT_INVALID_FILE |
(...skipping 10 matching lines...) Expand all Loading... |
13368 * REFACTORING_REQUEST_CANCELLED | 13619 * REFACTORING_REQUEST_CANCELLED |
13369 * SERVER_ALREADY_STARTED | 13620 * SERVER_ALREADY_STARTED |
13370 * SERVER_ERROR | 13621 * SERVER_ERROR |
13371 * SORT_MEMBERS_INVALID_FILE | 13622 * SORT_MEMBERS_INVALID_FILE |
13372 * SORT_MEMBERS_PARSE_ERRORS | 13623 * SORT_MEMBERS_PARSE_ERRORS |
13373 * UNANALYZED_PRIORITY_FILES | 13624 * UNANALYZED_PRIORITY_FILES |
13374 * UNKNOWN_REQUEST | 13625 * UNKNOWN_REQUEST |
13375 * UNKNOWN_SOURCE | 13626 * UNKNOWN_SOURCE |
13376 * UNSUPPORTED_FEATURE | 13627 * UNSUPPORTED_FEATURE |
13377 * } | 13628 * } |
| 13629 * |
| 13630 * Clients are not expected to subtype this class. |
13378 */ | 13631 */ |
13379 class RequestErrorCode implements Enum { | 13632 class RequestErrorCode implements Enum { |
13380 /** | 13633 /** |
13381 * An "analysis.getErrors" or "analysis.getNavigation" request could not be | 13634 * An "analysis.getErrors" or "analysis.getNavigation" request could not be |
13382 * satisfied because the content of the file changed before the requested | 13635 * satisfied because the content of the file changed before the requested |
13383 * results could be computed. | 13636 * results could be computed. |
13384 */ | 13637 */ |
13385 static const CONTENT_MODIFIED = const RequestErrorCode._("CONTENT_MODIFIED"); | 13638 static const CONTENT_MODIFIED = const RequestErrorCode._("CONTENT_MODIFIED"); |
13386 | 13639 |
13387 /** | 13640 /** |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13594 | 13847 |
13595 /** | 13848 /** |
13596 * SearchResult | 13849 * SearchResult |
13597 * | 13850 * |
13598 * { | 13851 * { |
13599 * "location": Location | 13852 * "location": Location |
13600 * "kind": SearchResultKind | 13853 * "kind": SearchResultKind |
13601 * "isPotential": bool | 13854 * "isPotential": bool |
13602 * "path": List<Element> | 13855 * "path": List<Element> |
13603 * } | 13856 * } |
| 13857 * |
| 13858 * Clients are not expected to subtype this class. |
13604 */ | 13859 */ |
13605 class SearchResult implements HasToJson { | 13860 class SearchResult implements HasToJson { |
13606 Location _location; | 13861 Location _location; |
13607 | 13862 |
13608 SearchResultKind _kind; | 13863 SearchResultKind _kind; |
13609 | 13864 |
13610 bool _isPotential; | 13865 bool _isPotential; |
13611 | 13866 |
13612 List<Element> _path; | 13867 List<Element> _path; |
13613 | 13868 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13692 throw jsonDecoder.missingKey(jsonPath, "location"); | 13947 throw jsonDecoder.missingKey(jsonPath, "location"); |
13693 } | 13948 } |
13694 SearchResultKind kind; | 13949 SearchResultKind kind; |
13695 if (json.containsKey("kind")) { | 13950 if (json.containsKey("kind")) { |
13696 kind = new SearchResultKind.fromJson(jsonDecoder, jsonPath + ".kind", js
on["kind"]); | 13951 kind = new SearchResultKind.fromJson(jsonDecoder, jsonPath + ".kind", js
on["kind"]); |
13697 } else { | 13952 } else { |
13698 throw jsonDecoder.missingKey(jsonPath, "kind"); | 13953 throw jsonDecoder.missingKey(jsonPath, "kind"); |
13699 } | 13954 } |
13700 bool isPotential; | 13955 bool isPotential; |
13701 if (json.containsKey("isPotential")) { | 13956 if (json.containsKey("isPotential")) { |
13702 isPotential = jsonDecoder._decodeBool(jsonPath + ".isPotential", json["i
sPotential"]); | 13957 isPotential = jsonDecoder.decodeBool(jsonPath + ".isPotential", json["is
Potential"]); |
13703 } else { | 13958 } else { |
13704 throw jsonDecoder.missingKey(jsonPath, "isPotential"); | 13959 throw jsonDecoder.missingKey(jsonPath, "isPotential"); |
13705 } | 13960 } |
13706 List<Element> path; | 13961 List<Element> path; |
13707 if (json.containsKey("path")) { | 13962 if (json.containsKey("path")) { |
13708 path = jsonDecoder._decodeList(jsonPath + ".path", json["path"], (String
jsonPath, Object json) => new Element.fromJson(jsonDecoder, jsonPath, json)); | 13963 path = jsonDecoder.decodeList(jsonPath + ".path", json["path"], (String
jsonPath, Object json) => new Element.fromJson(jsonDecoder, jsonPath, json)); |
13709 } else { | 13964 } else { |
13710 throw jsonDecoder.missingKey(jsonPath, "path"); | 13965 throw jsonDecoder.missingKey(jsonPath, "path"); |
13711 } | 13966 } |
13712 return new SearchResult(location, kind, isPotential, path); | 13967 return new SearchResult(location, kind, isPotential, path); |
13713 } else { | 13968 } else { |
13714 throw jsonDecoder.mismatch(jsonPath, "SearchResult", json); | 13969 throw jsonDecoder.mismatch(jsonPath, "SearchResult", json); |
13715 } | 13970 } |
13716 } | 13971 } |
13717 | 13972 |
13718 Map<String, dynamic> toJson() { | 13973 Map<String, dynamic> toJson() { |
13719 Map<String, dynamic> result = {}; | 13974 Map<String, dynamic> result = {}; |
13720 result["location"] = location.toJson(); | 13975 result["location"] = location.toJson(); |
13721 result["kind"] = kind.toJson(); | 13976 result["kind"] = kind.toJson(); |
13722 result["isPotential"] = isPotential; | 13977 result["isPotential"] = isPotential; |
13723 result["path"] = path.map((Element value) => value.toJson()).toList(); | 13978 result["path"] = path.map((Element value) => value.toJson()).toList(); |
13724 return result; | 13979 return result; |
13725 } | 13980 } |
13726 | 13981 |
13727 @override | 13982 @override |
13728 String toString() => JSON.encode(toJson()); | 13983 String toString() => JSON.encode(toJson()); |
13729 | 13984 |
13730 @override | 13985 @override |
13731 bool operator==(other) { | 13986 bool operator==(other) { |
13732 if (other is SearchResult) { | 13987 if (other is SearchResult) { |
13733 return location == other.location && | 13988 return location == other.location && |
13734 kind == other.kind && | 13989 kind == other.kind && |
13735 isPotential == other.isPotential && | 13990 isPotential == other.isPotential && |
13736 _listEqual(path, other.path, (Element a, Element b) => a == b); | 13991 listEqual(path, other.path, (Element a, Element b) => a == b); |
13737 } | 13992 } |
13738 return false; | 13993 return false; |
13739 } | 13994 } |
13740 | 13995 |
13741 @override | 13996 @override |
13742 int get hashCode { | 13997 int get hashCode { |
13743 int hash = 0; | 13998 int hash = 0; |
13744 hash = _JenkinsSmiHash.combine(hash, location.hashCode); | 13999 hash = JenkinsSmiHash.combine(hash, location.hashCode); |
13745 hash = _JenkinsSmiHash.combine(hash, kind.hashCode); | 14000 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
13746 hash = _JenkinsSmiHash.combine(hash, isPotential.hashCode); | 14001 hash = JenkinsSmiHash.combine(hash, isPotential.hashCode); |
13747 hash = _JenkinsSmiHash.combine(hash, path.hashCode); | 14002 hash = JenkinsSmiHash.combine(hash, path.hashCode); |
13748 return _JenkinsSmiHash.finish(hash); | 14003 return JenkinsSmiHash.finish(hash); |
13749 } | 14004 } |
13750 } | 14005 } |
13751 | 14006 |
13752 /** | 14007 /** |
13753 * SearchResultKind | 14008 * SearchResultKind |
13754 * | 14009 * |
13755 * enum { | 14010 * enum { |
13756 * DECLARATION | 14011 * DECLARATION |
13757 * INVOCATION | 14012 * INVOCATION |
13758 * READ | 14013 * READ |
13759 * READ_WRITE | 14014 * READ_WRITE |
13760 * REFERENCE | 14015 * REFERENCE |
13761 * UNKNOWN | 14016 * UNKNOWN |
13762 * WRITE | 14017 * WRITE |
13763 * } | 14018 * } |
| 14019 * |
| 14020 * Clients are not expected to subtype this class. |
13764 */ | 14021 */ |
13765 class SearchResultKind implements Enum { | 14022 class SearchResultKind implements Enum { |
13766 /** | 14023 /** |
13767 * The declaration of an element. | 14024 * The declaration of an element. |
13768 */ | 14025 */ |
13769 static const DECLARATION = const SearchResultKind._("DECLARATION"); | 14026 static const DECLARATION = const SearchResultKind._("DECLARATION"); |
13770 | 14027 |
13771 /** | 14028 /** |
13772 * The invocation of a function or method. | 14029 * The invocation of a function or method. |
13773 */ | 14030 */ |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13844 | 14101 |
13845 String toJson() => name; | 14102 String toJson() => name; |
13846 } | 14103 } |
13847 | 14104 |
13848 /** | 14105 /** |
13849 * ServerService | 14106 * ServerService |
13850 * | 14107 * |
13851 * enum { | 14108 * enum { |
13852 * STATUS | 14109 * STATUS |
13853 * } | 14110 * } |
| 14111 * |
| 14112 * Clients are not expected to subtype this class. |
13854 */ | 14113 */ |
13855 class ServerService implements Enum { | 14114 class ServerService implements Enum { |
13856 static const STATUS = const ServerService._("STATUS"); | 14115 static const STATUS = const ServerService._("STATUS"); |
13857 | 14116 |
13858 /** | 14117 /** |
13859 * A list containing all of the enum values that are defined. | 14118 * A list containing all of the enum values that are defined. |
13860 */ | 14119 */ |
13861 static const List<ServerService> VALUES = const <ServerService>[STATUS]; | 14120 static const List<ServerService> VALUES = const <ServerService>[STATUS]; |
13862 | 14121 |
13863 final String name; | 14122 final String name; |
(...skipping 27 matching lines...) Expand all Loading... |
13891 | 14150 |
13892 /** | 14151 /** |
13893 * SourceChange | 14152 * SourceChange |
13894 * | 14153 * |
13895 * { | 14154 * { |
13896 * "message": String | 14155 * "message": String |
13897 * "edits": List<SourceFileEdit> | 14156 * "edits": List<SourceFileEdit> |
13898 * "linkedEditGroups": List<LinkedEditGroup> | 14157 * "linkedEditGroups": List<LinkedEditGroup> |
13899 * "selection": optional Position | 14158 * "selection": optional Position |
13900 * } | 14159 * } |
| 14160 * |
| 14161 * Clients are not expected to subtype this class. |
13901 */ | 14162 */ |
13902 class SourceChange implements HasToJson { | 14163 class SourceChange implements HasToJson { |
13903 String _message; | 14164 String _message; |
13904 | 14165 |
13905 List<SourceFileEdit> _edits; | 14166 List<SourceFileEdit> _edits; |
13906 | 14167 |
13907 List<LinkedEditGroup> _linkedEditGroups; | 14168 List<LinkedEditGroup> _linkedEditGroups; |
13908 | 14169 |
13909 Position _selection; | 14170 Position _selection; |
13910 | 14171 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13976 this.selection = selection; | 14237 this.selection = selection; |
13977 } | 14238 } |
13978 | 14239 |
13979 factory SourceChange.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 14240 factory SourceChange.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { |
13980 if (json == null) { | 14241 if (json == null) { |
13981 json = {}; | 14242 json = {}; |
13982 } | 14243 } |
13983 if (json is Map) { | 14244 if (json is Map) { |
13984 String message; | 14245 String message; |
13985 if (json.containsKey("message")) { | 14246 if (json.containsKey("message")) { |
13986 message = jsonDecoder._decodeString(jsonPath + ".message", json["message
"]); | 14247 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); |
13987 } else { | 14248 } else { |
13988 throw jsonDecoder.missingKey(jsonPath, "message"); | 14249 throw jsonDecoder.missingKey(jsonPath, "message"); |
13989 } | 14250 } |
13990 List<SourceFileEdit> edits; | 14251 List<SourceFileEdit> edits; |
13991 if (json.containsKey("edits")) { | 14252 if (json.containsKey("edits")) { |
13992 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str
ing jsonPath, Object json) => new SourceFileEdit.fromJson(jsonDecoder, jsonPath,
json)); | 14253 edits = jsonDecoder.decodeList(jsonPath + ".edits", json["edits"], (Stri
ng jsonPath, Object json) => new SourceFileEdit.fromJson(jsonDecoder, jsonPath,
json)); |
13993 } else { | 14254 } else { |
13994 throw jsonDecoder.missingKey(jsonPath, "edits"); | 14255 throw jsonDecoder.missingKey(jsonPath, "edits"); |
13995 } | 14256 } |
13996 List<LinkedEditGroup> linkedEditGroups; | 14257 List<LinkedEditGroup> linkedEditGroups; |
13997 if (json.containsKey("linkedEditGroups")) { | 14258 if (json.containsKey("linkedEditGroups")) { |
13998 linkedEditGroups = jsonDecoder._decodeList(jsonPath + ".linkedEditGroups
", json["linkedEditGroups"], (String jsonPath, Object json) => new LinkedEditGro
up.fromJson(jsonDecoder, jsonPath, json)); | 14259 linkedEditGroups = jsonDecoder.decodeList(jsonPath + ".linkedEditGroups"
, json["linkedEditGroups"], (String jsonPath, Object json) => new LinkedEditGrou
p.fromJson(jsonDecoder, jsonPath, json)); |
13999 } else { | 14260 } else { |
14000 throw jsonDecoder.missingKey(jsonPath, "linkedEditGroups"); | 14261 throw jsonDecoder.missingKey(jsonPath, "linkedEditGroups"); |
14001 } | 14262 } |
14002 Position selection; | 14263 Position selection; |
14003 if (json.containsKey("selection")) { | 14264 if (json.containsKey("selection")) { |
14004 selection = new Position.fromJson(jsonDecoder, jsonPath + ".selection",
json["selection"]); | 14265 selection = new Position.fromJson(jsonDecoder, jsonPath + ".selection",
json["selection"]); |
14005 } | 14266 } |
14006 return new SourceChange(message, edits: edits, linkedEditGroups: linkedEdi
tGroups, selection: selection); | 14267 return new SourceChange(message, edits: edits, linkedEditGroups: linkedEdi
tGroups, selection: selection); |
14007 } else { | 14268 } else { |
14008 throw jsonDecoder.mismatch(jsonPath, "SourceChange", json); | 14269 throw jsonDecoder.mismatch(jsonPath, "SourceChange", json); |
14009 } | 14270 } |
14010 } | 14271 } |
14011 | 14272 |
14012 Map<String, dynamic> toJson() { | 14273 Map<String, dynamic> toJson() { |
14013 Map<String, dynamic> result = {}; | 14274 Map<String, dynamic> result = {}; |
14014 result["message"] = message; | 14275 result["message"] = message; |
14015 result["edits"] = edits.map((SourceFileEdit value) => value.toJson()).toList
(); | 14276 result["edits"] = edits.map((SourceFileEdit value) => value.toJson()).toList
(); |
14016 result["linkedEditGroups"] = linkedEditGroups.map((LinkedEditGroup value) =>
value.toJson()).toList(); | 14277 result["linkedEditGroups"] = linkedEditGroups.map((LinkedEditGroup value) =>
value.toJson()).toList(); |
14017 if (selection != null) { | 14278 if (selection != null) { |
14018 result["selection"] = selection.toJson(); | 14279 result["selection"] = selection.toJson(); |
14019 } | 14280 } |
14020 return result; | 14281 return result; |
14021 } | 14282 } |
14022 | 14283 |
14023 /** | 14284 /** |
14024 * Adds [edit] to the [FileEdit] for the given [file]. | 14285 * Adds [edit] to the [FileEdit] for the given [file]. |
14025 */ | 14286 */ |
14026 void addEdit(String file, int fileStamp, SourceEdit edit) => | 14287 void addEdit(String file, int fileStamp, SourceEdit edit) => |
14027 _addEditToSourceChange(this, file, fileStamp, edit); | 14288 addEditToSourceChange(this, file, fileStamp, edit); |
14028 | 14289 |
14029 /** | 14290 /** |
14030 * Adds the given [FileEdit]. | 14291 * Adds the given [FileEdit]. |
14031 */ | 14292 */ |
14032 void addFileEdit(SourceFileEdit edit) { | 14293 void addFileEdit(SourceFileEdit edit) { |
14033 edits.add(edit); | 14294 edits.add(edit); |
14034 } | 14295 } |
14035 | 14296 |
14036 /** | 14297 /** |
14037 * Adds the given [LinkedEditGroup]. | 14298 * Adds the given [LinkedEditGroup]. |
14038 */ | 14299 */ |
14039 void addLinkedEditGroup(LinkedEditGroup linkedEditGroup) { | 14300 void addLinkedEditGroup(LinkedEditGroup linkedEditGroup) { |
14040 linkedEditGroups.add(linkedEditGroup); | 14301 linkedEditGroups.add(linkedEditGroup); |
14041 } | 14302 } |
14042 | 14303 |
14043 /** | 14304 /** |
14044 * Returns the [FileEdit] for the given [file], maybe `null`. | 14305 * Returns the [FileEdit] for the given [file], maybe `null`. |
14045 */ | 14306 */ |
14046 SourceFileEdit getFileEdit(String file) => | 14307 SourceFileEdit getFileEdit(String file) => |
14047 _getChangeFileEdit(this, file); | 14308 getChangeFileEdit(this, file); |
14048 | 14309 |
14049 @override | 14310 @override |
14050 String toString() => JSON.encode(toJson()); | 14311 String toString() => JSON.encode(toJson()); |
14051 | 14312 |
14052 @override | 14313 @override |
14053 bool operator==(other) { | 14314 bool operator==(other) { |
14054 if (other is SourceChange) { | 14315 if (other is SourceChange) { |
14055 return message == other.message && | 14316 return message == other.message && |
14056 _listEqual(edits, other.edits, (SourceFileEdit a, SourceFileEdit b) =>
a == b) && | 14317 listEqual(edits, other.edits, (SourceFileEdit a, SourceFileEdit b) =>
a == b) && |
14057 _listEqual(linkedEditGroups, other.linkedEditGroups, (LinkedEditGroup
a, LinkedEditGroup b) => a == b) && | 14318 listEqual(linkedEditGroups, other.linkedEditGroups, (LinkedEditGroup a
, LinkedEditGroup b) => a == b) && |
14058 selection == other.selection; | 14319 selection == other.selection; |
14059 } | 14320 } |
14060 return false; | 14321 return false; |
14061 } | 14322 } |
14062 | 14323 |
14063 @override | 14324 @override |
14064 int get hashCode { | 14325 int get hashCode { |
14065 int hash = 0; | 14326 int hash = 0; |
14066 hash = _JenkinsSmiHash.combine(hash, message.hashCode); | 14327 hash = JenkinsSmiHash.combine(hash, message.hashCode); |
14067 hash = _JenkinsSmiHash.combine(hash, edits.hashCode); | 14328 hash = JenkinsSmiHash.combine(hash, edits.hashCode); |
14068 hash = _JenkinsSmiHash.combine(hash, linkedEditGroups.hashCode); | 14329 hash = JenkinsSmiHash.combine(hash, linkedEditGroups.hashCode); |
14069 hash = _JenkinsSmiHash.combine(hash, selection.hashCode); | 14330 hash = JenkinsSmiHash.combine(hash, selection.hashCode); |
14070 return _JenkinsSmiHash.finish(hash); | 14331 return JenkinsSmiHash.finish(hash); |
14071 } | 14332 } |
14072 } | 14333 } |
14073 | 14334 |
14074 /** | 14335 /** |
14075 * SourceEdit | 14336 * SourceEdit |
14076 * | 14337 * |
14077 * { | 14338 * { |
14078 * "offset": int | 14339 * "offset": int |
14079 * "length": int | 14340 * "length": int |
14080 * "replacement": String | 14341 * "replacement": String |
14081 * "id": optional String | 14342 * "id": optional String |
14082 * } | 14343 * } |
| 14344 * |
| 14345 * Clients are not expected to subtype this class. |
14083 */ | 14346 */ |
14084 class SourceEdit implements HasToJson { | 14347 class SourceEdit implements HasToJson { |
14085 /** | 14348 /** |
14086 * Get the result of applying a set of [edits] to the given [code]. Edits are | 14349 * Get the result of applying a set of [edits] to the given [code]. Edits are |
14087 * applied in the order they appear in [edits]. | 14350 * applied in the order they appear in [edits]. |
14088 */ | 14351 */ |
14089 static String applySequence(String code, Iterable<SourceEdit> edits) => | 14352 static String applySequence(String code, Iterable<SourceEdit> edits) => |
14090 _applySequence(code, edits); | 14353 applySequenceOfEdits(code, edits); |
14091 | 14354 |
14092 int _offset; | 14355 int _offset; |
14093 | 14356 |
14094 int _length; | 14357 int _length; |
14095 | 14358 |
14096 String _replacement; | 14359 String _replacement; |
14097 | 14360 |
14098 String _id; | 14361 String _id; |
14099 | 14362 |
14100 /** | 14363 /** |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14169 this.id = id; | 14432 this.id = id; |
14170 } | 14433 } |
14171 | 14434 |
14172 factory SourceEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object j
son) { | 14435 factory SourceEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object j
son) { |
14173 if (json == null) { | 14436 if (json == null) { |
14174 json = {}; | 14437 json = {}; |
14175 } | 14438 } |
14176 if (json is Map) { | 14439 if (json is Map) { |
14177 int offset; | 14440 int offset; |
14178 if (json.containsKey("offset")) { | 14441 if (json.containsKey("offset")) { |
14179 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 14442 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
14180 } else { | 14443 } else { |
14181 throw jsonDecoder.missingKey(jsonPath, "offset"); | 14444 throw jsonDecoder.missingKey(jsonPath, "offset"); |
14182 } | 14445 } |
14183 int length; | 14446 int length; |
14184 if (json.containsKey("length")) { | 14447 if (json.containsKey("length")) { |
14185 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 14448 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
14186 } else { | 14449 } else { |
14187 throw jsonDecoder.missingKey(jsonPath, "length"); | 14450 throw jsonDecoder.missingKey(jsonPath, "length"); |
14188 } | 14451 } |
14189 String replacement; | 14452 String replacement; |
14190 if (json.containsKey("replacement")) { | 14453 if (json.containsKey("replacement")) { |
14191 replacement = jsonDecoder._decodeString(jsonPath + ".replacement", json[
"replacement"]); | 14454 replacement = jsonDecoder.decodeString(jsonPath + ".replacement", json["
replacement"]); |
14192 } else { | 14455 } else { |
14193 throw jsonDecoder.missingKey(jsonPath, "replacement"); | 14456 throw jsonDecoder.missingKey(jsonPath, "replacement"); |
14194 } | 14457 } |
14195 String id; | 14458 String id; |
14196 if (json.containsKey("id")) { | 14459 if (json.containsKey("id")) { |
14197 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 14460 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
14198 } | 14461 } |
14199 return new SourceEdit(offset, length, replacement, id: id); | 14462 return new SourceEdit(offset, length, replacement, id: id); |
14200 } else { | 14463 } else { |
14201 throw jsonDecoder.mismatch(jsonPath, "SourceEdit", json); | 14464 throw jsonDecoder.mismatch(jsonPath, "SourceEdit", json); |
14202 } | 14465 } |
14203 } | 14466 } |
14204 | 14467 |
14205 /** | 14468 /** |
14206 * The end of the region to be modified. | 14469 * The end of the region to be modified. |
14207 */ | 14470 */ |
14208 int get end => offset + length; | 14471 int get end => offset + length; |
14209 | 14472 |
14210 Map<String, dynamic> toJson() { | 14473 Map<String, dynamic> toJson() { |
14211 Map<String, dynamic> result = {}; | 14474 Map<String, dynamic> result = {}; |
14212 result["offset"] = offset; | 14475 result["offset"] = offset; |
14213 result["length"] = length; | 14476 result["length"] = length; |
14214 result["replacement"] = replacement; | 14477 result["replacement"] = replacement; |
14215 if (id != null) { | 14478 if (id != null) { |
14216 result["id"] = id; | 14479 result["id"] = id; |
14217 } | 14480 } |
14218 return result; | 14481 return result; |
14219 } | 14482 } |
14220 | 14483 |
14221 /** | 14484 /** |
14222 * Get the result of applying the edit to the given [code]. | 14485 * Get the result of applying the edit to the given [code]. |
14223 */ | 14486 */ |
14224 String apply(String code) => _applyEdit(code, this); | 14487 String apply(String code) => applyEdit(code, this); |
14225 | 14488 |
14226 @override | 14489 @override |
14227 String toString() => JSON.encode(toJson()); | 14490 String toString() => JSON.encode(toJson()); |
14228 | 14491 |
14229 @override | 14492 @override |
14230 bool operator==(other) { | 14493 bool operator==(other) { |
14231 if (other is SourceEdit) { | 14494 if (other is SourceEdit) { |
14232 return offset == other.offset && | 14495 return offset == other.offset && |
14233 length == other.length && | 14496 length == other.length && |
14234 replacement == other.replacement && | 14497 replacement == other.replacement && |
14235 id == other.id; | 14498 id == other.id; |
14236 } | 14499 } |
14237 return false; | 14500 return false; |
14238 } | 14501 } |
14239 | 14502 |
14240 @override | 14503 @override |
14241 int get hashCode { | 14504 int get hashCode { |
14242 int hash = 0; | 14505 int hash = 0; |
14243 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 14506 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
14244 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 14507 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
14245 hash = _JenkinsSmiHash.combine(hash, replacement.hashCode); | 14508 hash = JenkinsSmiHash.combine(hash, replacement.hashCode); |
14246 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 14509 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
14247 return _JenkinsSmiHash.finish(hash); | 14510 return JenkinsSmiHash.finish(hash); |
14248 } | 14511 } |
14249 } | 14512 } |
14250 | 14513 |
14251 /** | 14514 /** |
14252 * SourceFileEdit | 14515 * SourceFileEdit |
14253 * | 14516 * |
14254 * { | 14517 * { |
14255 * "file": FilePath | 14518 * "file": FilePath |
14256 * "fileStamp": long | 14519 * "fileStamp": long |
14257 * "edits": List<SourceEdit> | 14520 * "edits": List<SourceEdit> |
14258 * } | 14521 * } |
| 14522 * |
| 14523 * Clients are not expected to subtype this class. |
14259 */ | 14524 */ |
14260 class SourceFileEdit implements HasToJson { | 14525 class SourceFileEdit implements HasToJson { |
14261 String _file; | 14526 String _file; |
14262 | 14527 |
14263 int _fileStamp; | 14528 int _fileStamp; |
14264 | 14529 |
14265 List<SourceEdit> _edits; | 14530 List<SourceEdit> _edits; |
14266 | 14531 |
14267 /** | 14532 /** |
14268 * The file containing the code to be modified. | 14533 * The file containing the code to be modified. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14321 } | 14586 } |
14322 } | 14587 } |
14323 | 14588 |
14324 factory SourceFileEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 14589 factory SourceFileEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { |
14325 if (json == null) { | 14590 if (json == null) { |
14326 json = {}; | 14591 json = {}; |
14327 } | 14592 } |
14328 if (json is Map) { | 14593 if (json is Map) { |
14329 String file; | 14594 String file; |
14330 if (json.containsKey("file")) { | 14595 if (json.containsKey("file")) { |
14331 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 14596 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
14332 } else { | 14597 } else { |
14333 throw jsonDecoder.missingKey(jsonPath, "file"); | 14598 throw jsonDecoder.missingKey(jsonPath, "file"); |
14334 } | 14599 } |
14335 int fileStamp; | 14600 int fileStamp; |
14336 if (json.containsKey("fileStamp")) { | 14601 if (json.containsKey("fileStamp")) { |
14337 fileStamp = jsonDecoder._decodeInt(jsonPath + ".fileStamp", json["fileSt
amp"]); | 14602 fileStamp = jsonDecoder.decodeInt(jsonPath + ".fileStamp", json["fileSta
mp"]); |
14338 } else { | 14603 } else { |
14339 throw jsonDecoder.missingKey(jsonPath, "fileStamp"); | 14604 throw jsonDecoder.missingKey(jsonPath, "fileStamp"); |
14340 } | 14605 } |
14341 List<SourceEdit> edits; | 14606 List<SourceEdit> edits; |
14342 if (json.containsKey("edits")) { | 14607 if (json.containsKey("edits")) { |
14343 edits = jsonDecoder._decodeList(jsonPath + ".edits", json["edits"], (Str
ing jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, jso
n)); | 14608 edits = jsonDecoder.decodeList(jsonPath + ".edits", json["edits"], (Stri
ng jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, json
)); |
14344 } else { | 14609 } else { |
14345 throw jsonDecoder.missingKey(jsonPath, "edits"); | 14610 throw jsonDecoder.missingKey(jsonPath, "edits"); |
14346 } | 14611 } |
14347 return new SourceFileEdit(file, fileStamp, edits: edits); | 14612 return new SourceFileEdit(file, fileStamp, edits: edits); |
14348 } else { | 14613 } else { |
14349 throw jsonDecoder.mismatch(jsonPath, "SourceFileEdit", json); | 14614 throw jsonDecoder.mismatch(jsonPath, "SourceFileEdit", json); |
14350 } | 14615 } |
14351 } | 14616 } |
14352 | 14617 |
14353 Map<String, dynamic> toJson() { | 14618 Map<String, dynamic> toJson() { |
14354 Map<String, dynamic> result = {}; | 14619 Map<String, dynamic> result = {}; |
14355 result["file"] = file; | 14620 result["file"] = file; |
14356 result["fileStamp"] = fileStamp; | 14621 result["fileStamp"] = fileStamp; |
14357 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); | 14622 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); |
14358 return result; | 14623 return result; |
14359 } | 14624 } |
14360 | 14625 |
14361 /** | 14626 /** |
14362 * Adds the given [Edit] to the list. | 14627 * Adds the given [Edit] to the list. |
14363 */ | 14628 */ |
14364 void add(SourceEdit edit) => _addEditForSource(this, edit); | 14629 void add(SourceEdit edit) => addEditForSource(this, edit); |
14365 | 14630 |
14366 /** | 14631 /** |
14367 * Adds the given [Edit]s. | 14632 * Adds the given [Edit]s. |
14368 */ | 14633 */ |
14369 void addAll(Iterable<SourceEdit> edits) => | 14634 void addAll(Iterable<SourceEdit> edits) => |
14370 _addAllEditsForSource(this, edits); | 14635 addAllEditsForSource(this, edits); |
14371 | 14636 |
14372 @override | 14637 @override |
14373 String toString() => JSON.encode(toJson()); | 14638 String toString() => JSON.encode(toJson()); |
14374 | 14639 |
14375 @override | 14640 @override |
14376 bool operator==(other) { | 14641 bool operator==(other) { |
14377 if (other is SourceFileEdit) { | 14642 if (other is SourceFileEdit) { |
14378 return file == other.file && | 14643 return file == other.file && |
14379 fileStamp == other.fileStamp && | 14644 fileStamp == other.fileStamp && |
14380 _listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a == b)
; | 14645 listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a == b); |
14381 } | 14646 } |
14382 return false; | 14647 return false; |
14383 } | 14648 } |
14384 | 14649 |
14385 @override | 14650 @override |
14386 int get hashCode { | 14651 int get hashCode { |
14387 int hash = 0; | 14652 int hash = 0; |
14388 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 14653 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
14389 hash = _JenkinsSmiHash.combine(hash, fileStamp.hashCode); | 14654 hash = JenkinsSmiHash.combine(hash, fileStamp.hashCode); |
14390 hash = _JenkinsSmiHash.combine(hash, edits.hashCode); | 14655 hash = JenkinsSmiHash.combine(hash, edits.hashCode); |
14391 return _JenkinsSmiHash.finish(hash); | 14656 return JenkinsSmiHash.finish(hash); |
14392 } | 14657 } |
14393 } | 14658 } |
14394 | 14659 |
14395 /** | 14660 /** |
14396 * TypeHierarchyItem | 14661 * TypeHierarchyItem |
14397 * | 14662 * |
14398 * { | 14663 * { |
14399 * "classElement": Element | 14664 * "classElement": Element |
14400 * "displayName": optional String | 14665 * "displayName": optional String |
14401 * "memberElement": optional Element | 14666 * "memberElement": optional Element |
14402 * "superclass": optional int | 14667 * "superclass": optional int |
14403 * "interfaces": List<int> | 14668 * "interfaces": List<int> |
14404 * "mixins": List<int> | 14669 * "mixins": List<int> |
14405 * "subclasses": List<int> | 14670 * "subclasses": List<int> |
14406 * } | 14671 * } |
| 14672 * |
| 14673 * Clients are not expected to subtype this class. |
14407 */ | 14674 */ |
14408 class TypeHierarchyItem implements HasToJson { | 14675 class TypeHierarchyItem implements HasToJson { |
14409 Element _classElement; | 14676 Element _classElement; |
14410 | 14677 |
14411 String _displayName; | 14678 String _displayName; |
14412 | 14679 |
14413 Element _memberElement; | 14680 Element _memberElement; |
14414 | 14681 |
14415 int _superclass; | 14682 int _superclass; |
14416 | 14683 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14558 } | 14825 } |
14559 if (json is Map) { | 14826 if (json is Map) { |
14560 Element classElement; | 14827 Element classElement; |
14561 if (json.containsKey("classElement")) { | 14828 if (json.containsKey("classElement")) { |
14562 classElement = new Element.fromJson(jsonDecoder, jsonPath + ".classEleme
nt", json["classElement"]); | 14829 classElement = new Element.fromJson(jsonDecoder, jsonPath + ".classEleme
nt", json["classElement"]); |
14563 } else { | 14830 } else { |
14564 throw jsonDecoder.missingKey(jsonPath, "classElement"); | 14831 throw jsonDecoder.missingKey(jsonPath, "classElement"); |
14565 } | 14832 } |
14566 String displayName; | 14833 String displayName; |
14567 if (json.containsKey("displayName")) { | 14834 if (json.containsKey("displayName")) { |
14568 displayName = jsonDecoder._decodeString(jsonPath + ".displayName", json[
"displayName"]); | 14835 displayName = jsonDecoder.decodeString(jsonPath + ".displayName", json["
displayName"]); |
14569 } | 14836 } |
14570 Element memberElement; | 14837 Element memberElement; |
14571 if (json.containsKey("memberElement")) { | 14838 if (json.containsKey("memberElement")) { |
14572 memberElement = new Element.fromJson(jsonDecoder, jsonPath + ".memberEle
ment", json["memberElement"]); | 14839 memberElement = new Element.fromJson(jsonDecoder, jsonPath + ".memberEle
ment", json["memberElement"]); |
14573 } | 14840 } |
14574 int superclass; | 14841 int superclass; |
14575 if (json.containsKey("superclass")) { | 14842 if (json.containsKey("superclass")) { |
14576 superclass = jsonDecoder._decodeInt(jsonPath + ".superclass", json["supe
rclass"]); | 14843 superclass = jsonDecoder.decodeInt(jsonPath + ".superclass", json["super
class"]); |
14577 } | 14844 } |
14578 List<int> interfaces; | 14845 List<int> interfaces; |
14579 if (json.containsKey("interfaces")) { | 14846 if (json.containsKey("interfaces")) { |
14580 interfaces = jsonDecoder._decodeList(jsonPath + ".interfaces", json["int
erfaces"], jsonDecoder._decodeInt); | 14847 interfaces = jsonDecoder.decodeList(jsonPath + ".interfaces", json["inte
rfaces"], jsonDecoder.decodeInt); |
14581 } else { | 14848 } else { |
14582 throw jsonDecoder.missingKey(jsonPath, "interfaces"); | 14849 throw jsonDecoder.missingKey(jsonPath, "interfaces"); |
14583 } | 14850 } |
14584 List<int> mixins; | 14851 List<int> mixins; |
14585 if (json.containsKey("mixins")) { | 14852 if (json.containsKey("mixins")) { |
14586 mixins = jsonDecoder._decodeList(jsonPath + ".mixins", json["mixins"], j
sonDecoder._decodeInt); | 14853 mixins = jsonDecoder.decodeList(jsonPath + ".mixins", json["mixins"], js
onDecoder.decodeInt); |
14587 } else { | 14854 } else { |
14588 throw jsonDecoder.missingKey(jsonPath, "mixins"); | 14855 throw jsonDecoder.missingKey(jsonPath, "mixins"); |
14589 } | 14856 } |
14590 List<int> subclasses; | 14857 List<int> subclasses; |
14591 if (json.containsKey("subclasses")) { | 14858 if (json.containsKey("subclasses")) { |
14592 subclasses = jsonDecoder._decodeList(jsonPath + ".subclasses", json["sub
classes"], jsonDecoder._decodeInt); | 14859 subclasses = jsonDecoder.decodeList(jsonPath + ".subclasses", json["subc
lasses"], jsonDecoder.decodeInt); |
14593 } else { | 14860 } else { |
14594 throw jsonDecoder.missingKey(jsonPath, "subclasses"); | 14861 throw jsonDecoder.missingKey(jsonPath, "subclasses"); |
14595 } | 14862 } |
14596 return new TypeHierarchyItem(classElement, displayName: displayName, membe
rElement: memberElement, superclass: superclass, interfaces: interfaces, mixins:
mixins, subclasses: subclasses); | 14863 return new TypeHierarchyItem(classElement, displayName: displayName, membe
rElement: memberElement, superclass: superclass, interfaces: interfaces, mixins:
mixins, subclasses: subclasses); |
14597 } else { | 14864 } else { |
14598 throw jsonDecoder.mismatch(jsonPath, "TypeHierarchyItem", json); | 14865 throw jsonDecoder.mismatch(jsonPath, "TypeHierarchyItem", json); |
14599 } | 14866 } |
14600 } | 14867 } |
14601 | 14868 |
14602 Map<String, dynamic> toJson() { | 14869 Map<String, dynamic> toJson() { |
(...skipping 17 matching lines...) Expand all Loading... |
14620 @override | 14887 @override |
14621 String toString() => JSON.encode(toJson()); | 14888 String toString() => JSON.encode(toJson()); |
14622 | 14889 |
14623 @override | 14890 @override |
14624 bool operator==(other) { | 14891 bool operator==(other) { |
14625 if (other is TypeHierarchyItem) { | 14892 if (other is TypeHierarchyItem) { |
14626 return classElement == other.classElement && | 14893 return classElement == other.classElement && |
14627 displayName == other.displayName && | 14894 displayName == other.displayName && |
14628 memberElement == other.memberElement && | 14895 memberElement == other.memberElement && |
14629 superclass == other.superclass && | 14896 superclass == other.superclass && |
14630 _listEqual(interfaces, other.interfaces, (int a, int b) => a == b) && | 14897 listEqual(interfaces, other.interfaces, (int a, int b) => a == b) && |
14631 _listEqual(mixins, other.mixins, (int a, int b) => a == b) && | 14898 listEqual(mixins, other.mixins, (int a, int b) => a == b) && |
14632 _listEqual(subclasses, other.subclasses, (int a, int b) => a == b); | 14899 listEqual(subclasses, other.subclasses, (int a, int b) => a == b); |
14633 } | 14900 } |
14634 return false; | 14901 return false; |
14635 } | 14902 } |
14636 | 14903 |
14637 @override | 14904 @override |
14638 int get hashCode { | 14905 int get hashCode { |
14639 int hash = 0; | 14906 int hash = 0; |
14640 hash = _JenkinsSmiHash.combine(hash, classElement.hashCode); | 14907 hash = JenkinsSmiHash.combine(hash, classElement.hashCode); |
14641 hash = _JenkinsSmiHash.combine(hash, displayName.hashCode); | 14908 hash = JenkinsSmiHash.combine(hash, displayName.hashCode); |
14642 hash = _JenkinsSmiHash.combine(hash, memberElement.hashCode); | 14909 hash = JenkinsSmiHash.combine(hash, memberElement.hashCode); |
14643 hash = _JenkinsSmiHash.combine(hash, superclass.hashCode); | 14910 hash = JenkinsSmiHash.combine(hash, superclass.hashCode); |
14644 hash = _JenkinsSmiHash.combine(hash, interfaces.hashCode); | 14911 hash = JenkinsSmiHash.combine(hash, interfaces.hashCode); |
14645 hash = _JenkinsSmiHash.combine(hash, mixins.hashCode); | 14912 hash = JenkinsSmiHash.combine(hash, mixins.hashCode); |
14646 hash = _JenkinsSmiHash.combine(hash, subclasses.hashCode); | 14913 hash = JenkinsSmiHash.combine(hash, subclasses.hashCode); |
14647 return _JenkinsSmiHash.finish(hash); | 14914 return JenkinsSmiHash.finish(hash); |
14648 } | 14915 } |
14649 } | 14916 } |
14650 /** | 14917 /** |
14651 * convertGetterToMethod feedback | 14918 * convertGetterToMethod feedback |
| 14919 * |
| 14920 * Clients are not expected to subtype this class. |
14652 */ | 14921 */ |
14653 class ConvertGetterToMethodFeedback { | 14922 class ConvertGetterToMethodFeedback { |
14654 @override | 14923 @override |
14655 bool operator==(other) { | 14924 bool operator==(other) { |
14656 if (other is ConvertGetterToMethodFeedback) { | 14925 if (other is ConvertGetterToMethodFeedback) { |
14657 return true; | 14926 return true; |
14658 } | 14927 } |
14659 return false; | 14928 return false; |
14660 } | 14929 } |
14661 | 14930 |
14662 @override | 14931 @override |
14663 int get hashCode { | 14932 int get hashCode { |
14664 return 616032599; | 14933 return 616032599; |
14665 } | 14934 } |
14666 } | 14935 } |
14667 /** | 14936 /** |
14668 * convertGetterToMethod options | 14937 * convertGetterToMethod options |
| 14938 * |
| 14939 * Clients are not expected to subtype this class. |
14669 */ | 14940 */ |
14670 class ConvertGetterToMethodOptions { | 14941 class ConvertGetterToMethodOptions { |
14671 @override | 14942 @override |
14672 bool operator==(other) { | 14943 bool operator==(other) { |
14673 if (other is ConvertGetterToMethodOptions) { | 14944 if (other is ConvertGetterToMethodOptions) { |
14674 return true; | 14945 return true; |
14675 } | 14946 } |
14676 return false; | 14947 return false; |
14677 } | 14948 } |
14678 | 14949 |
14679 @override | 14950 @override |
14680 int get hashCode { | 14951 int get hashCode { |
14681 return 488848400; | 14952 return 488848400; |
14682 } | 14953 } |
14683 } | 14954 } |
14684 /** | 14955 /** |
14685 * convertMethodToGetter feedback | 14956 * convertMethodToGetter feedback |
| 14957 * |
| 14958 * Clients are not expected to subtype this class. |
14686 */ | 14959 */ |
14687 class ConvertMethodToGetterFeedback { | 14960 class ConvertMethodToGetterFeedback { |
14688 @override | 14961 @override |
14689 bool operator==(other) { | 14962 bool operator==(other) { |
14690 if (other is ConvertMethodToGetterFeedback) { | 14963 if (other is ConvertMethodToGetterFeedback) { |
14691 return true; | 14964 return true; |
14692 } | 14965 } |
14693 return false; | 14966 return false; |
14694 } | 14967 } |
14695 | 14968 |
14696 @override | 14969 @override |
14697 int get hashCode { | 14970 int get hashCode { |
14698 return 165291526; | 14971 return 165291526; |
14699 } | 14972 } |
14700 } | 14973 } |
14701 /** | 14974 /** |
14702 * convertMethodToGetter options | 14975 * convertMethodToGetter options |
| 14976 * |
| 14977 * Clients are not expected to subtype this class. |
14703 */ | 14978 */ |
14704 class ConvertMethodToGetterOptions { | 14979 class ConvertMethodToGetterOptions { |
14705 @override | 14980 @override |
14706 bool operator==(other) { | 14981 bool operator==(other) { |
14707 if (other is ConvertMethodToGetterOptions) { | 14982 if (other is ConvertMethodToGetterOptions) { |
14708 return true; | 14983 return true; |
14709 } | 14984 } |
14710 return false; | 14985 return false; |
14711 } | 14986 } |
14712 | 14987 |
14713 @override | 14988 @override |
14714 int get hashCode { | 14989 int get hashCode { |
14715 return 27952290; | 14990 return 27952290; |
14716 } | 14991 } |
14717 } | 14992 } |
14718 | 14993 |
14719 /** | 14994 /** |
14720 * extractLocalVariable feedback | 14995 * extractLocalVariable feedback |
14721 * | 14996 * |
14722 * { | 14997 * { |
14723 * "coveringExpressionOffsets": List<int> | 14998 * "coveringExpressionOffsets": List<int> |
14724 * "coveringExpressionLengths": List<int> | 14999 * "coveringExpressionLengths": List<int> |
14725 * "names": List<String> | 15000 * "names": List<String> |
14726 * "offsets": List<int> | 15001 * "offsets": List<int> |
14727 * "lengths": List<int> | 15002 * "lengths": List<int> |
14728 * } | 15003 * } |
| 15004 * |
| 15005 * Clients are not expected to subtype this class. |
14729 */ | 15006 */ |
14730 class ExtractLocalVariableFeedback extends RefactoringFeedback implements HasToJ
son { | 15007 class ExtractLocalVariableFeedback extends RefactoringFeedback implements HasToJ
son { |
14731 List<int> _coveringExpressionOffsets; | 15008 List<int> _coveringExpressionOffsets; |
14732 | 15009 |
14733 List<int> _coveringExpressionLengths; | 15010 List<int> _coveringExpressionLengths; |
14734 | 15011 |
14735 List<String> _names; | 15012 List<String> _names; |
14736 | 15013 |
14737 List<int> _offsets; | 15014 List<int> _offsets; |
14738 | 15015 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14823 this.lengths = lengths; | 15100 this.lengths = lengths; |
14824 } | 15101 } |
14825 | 15102 |
14826 factory ExtractLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 15103 factory ExtractLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
14827 if (json == null) { | 15104 if (json == null) { |
14828 json = {}; | 15105 json = {}; |
14829 } | 15106 } |
14830 if (json is Map) { | 15107 if (json is Map) { |
14831 List<int> coveringExpressionOffsets; | 15108 List<int> coveringExpressionOffsets; |
14832 if (json.containsKey("coveringExpressionOffsets")) { | 15109 if (json.containsKey("coveringExpressionOffsets")) { |
14833 coveringExpressionOffsets = jsonDecoder._decodeList(jsonPath + ".coverin
gExpressionOffsets", json["coveringExpressionOffsets"], jsonDecoder._decodeInt); | 15110 coveringExpressionOffsets = jsonDecoder.decodeList(jsonPath + ".covering
ExpressionOffsets", json["coveringExpressionOffsets"], jsonDecoder.decodeInt); |
14834 } else { | 15111 } else { |
14835 throw jsonDecoder.missingKey(jsonPath, "coveringExpressionOffsets"); | 15112 throw jsonDecoder.missingKey(jsonPath, "coveringExpressionOffsets"); |
14836 } | 15113 } |
14837 List<int> coveringExpressionLengths; | 15114 List<int> coveringExpressionLengths; |
14838 if (json.containsKey("coveringExpressionLengths")) { | 15115 if (json.containsKey("coveringExpressionLengths")) { |
14839 coveringExpressionLengths = jsonDecoder._decodeList(jsonPath + ".coverin
gExpressionLengths", json["coveringExpressionLengths"], jsonDecoder._decodeInt); | 15116 coveringExpressionLengths = jsonDecoder.decodeList(jsonPath + ".covering
ExpressionLengths", json["coveringExpressionLengths"], jsonDecoder.decodeInt); |
14840 } else { | 15117 } else { |
14841 throw jsonDecoder.missingKey(jsonPath, "coveringExpressionLengths"); | 15118 throw jsonDecoder.missingKey(jsonPath, "coveringExpressionLengths"); |
14842 } | 15119 } |
14843 List<String> names; | 15120 List<String> names; |
14844 if (json.containsKey("names")) { | 15121 if (json.containsKey("names")) { |
14845 names = jsonDecoder._decodeList(jsonPath + ".names", json["names"], json
Decoder._decodeString); | 15122 names = jsonDecoder.decodeList(jsonPath + ".names", json["names"], jsonD
ecoder.decodeString); |
14846 } else { | 15123 } else { |
14847 throw jsonDecoder.missingKey(jsonPath, "names"); | 15124 throw jsonDecoder.missingKey(jsonPath, "names"); |
14848 } | 15125 } |
14849 List<int> offsets; | 15126 List<int> offsets; |
14850 if (json.containsKey("offsets")) { | 15127 if (json.containsKey("offsets")) { |
14851 offsets = jsonDecoder._decodeList(jsonPath + ".offsets", json["offsets"]
, jsonDecoder._decodeInt); | 15128 offsets = jsonDecoder.decodeList(jsonPath + ".offsets", json["offsets"],
jsonDecoder.decodeInt); |
14852 } else { | 15129 } else { |
14853 throw jsonDecoder.missingKey(jsonPath, "offsets"); | 15130 throw jsonDecoder.missingKey(jsonPath, "offsets"); |
14854 } | 15131 } |
14855 List<int> lengths; | 15132 List<int> lengths; |
14856 if (json.containsKey("lengths")) { | 15133 if (json.containsKey("lengths")) { |
14857 lengths = jsonDecoder._decodeList(jsonPath + ".lengths", json["lengths"]
, jsonDecoder._decodeInt); | 15134 lengths = jsonDecoder.decodeList(jsonPath + ".lengths", json["lengths"],
jsonDecoder.decodeInt); |
14858 } else { | 15135 } else { |
14859 throw jsonDecoder.missingKey(jsonPath, "lengths"); | 15136 throw jsonDecoder.missingKey(jsonPath, "lengths"); |
14860 } | 15137 } |
14861 return new ExtractLocalVariableFeedback(coveringExpressionOffsets, coverin
gExpressionLengths, names, offsets, lengths); | 15138 return new ExtractLocalVariableFeedback(coveringExpressionOffsets, coverin
gExpressionLengths, names, offsets, lengths); |
14862 } else { | 15139 } else { |
14863 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable feedback", json
); | 15140 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable feedback", json
); |
14864 } | 15141 } |
14865 } | 15142 } |
14866 | 15143 |
14867 Map<String, dynamic> toJson() { | 15144 Map<String, dynamic> toJson() { |
14868 Map<String, dynamic> result = {}; | 15145 Map<String, dynamic> result = {}; |
14869 result["coveringExpressionOffsets"] = coveringExpressionOffsets; | 15146 result["coveringExpressionOffsets"] = coveringExpressionOffsets; |
14870 result["coveringExpressionLengths"] = coveringExpressionLengths; | 15147 result["coveringExpressionLengths"] = coveringExpressionLengths; |
14871 result["names"] = names; | 15148 result["names"] = names; |
14872 result["offsets"] = offsets; | 15149 result["offsets"] = offsets; |
14873 result["lengths"] = lengths; | 15150 result["lengths"] = lengths; |
14874 return result; | 15151 return result; |
14875 } | 15152 } |
14876 | 15153 |
14877 @override | 15154 @override |
14878 String toString() => JSON.encode(toJson()); | 15155 String toString() => JSON.encode(toJson()); |
14879 | 15156 |
14880 @override | 15157 @override |
14881 bool operator==(other) { | 15158 bool operator==(other) { |
14882 if (other is ExtractLocalVariableFeedback) { | 15159 if (other is ExtractLocalVariableFeedback) { |
14883 return _listEqual(coveringExpressionOffsets, other.coveringExpressionOffse
ts, (int a, int b) => a == b) && | 15160 return listEqual(coveringExpressionOffsets, other.coveringExpressionOffset
s, (int a, int b) => a == b) && |
14884 _listEqual(coveringExpressionLengths, other.coveringExpressionLengths,
(int a, int b) => a == b) && | 15161 listEqual(coveringExpressionLengths, other.coveringExpressionLengths,
(int a, int b) => a == b) && |
14885 _listEqual(names, other.names, (String a, String b) => a == b) && | 15162 listEqual(names, other.names, (String a, String b) => a == b) && |
14886 _listEqual(offsets, other.offsets, (int a, int b) => a == b) && | 15163 listEqual(offsets, other.offsets, (int a, int b) => a == b) && |
14887 _listEqual(lengths, other.lengths, (int a, int b) => a == b); | 15164 listEqual(lengths, other.lengths, (int a, int b) => a == b); |
14888 } | 15165 } |
14889 return false; | 15166 return false; |
14890 } | 15167 } |
14891 | 15168 |
14892 @override | 15169 @override |
14893 int get hashCode { | 15170 int get hashCode { |
14894 int hash = 0; | 15171 int hash = 0; |
14895 hash = _JenkinsSmiHash.combine(hash, coveringExpressionOffsets.hashCode); | 15172 hash = JenkinsSmiHash.combine(hash, coveringExpressionOffsets.hashCode); |
14896 hash = _JenkinsSmiHash.combine(hash, coveringExpressionLengths.hashCode); | 15173 hash = JenkinsSmiHash.combine(hash, coveringExpressionLengths.hashCode); |
14897 hash = _JenkinsSmiHash.combine(hash, names.hashCode); | 15174 hash = JenkinsSmiHash.combine(hash, names.hashCode); |
14898 hash = _JenkinsSmiHash.combine(hash, offsets.hashCode); | 15175 hash = JenkinsSmiHash.combine(hash, offsets.hashCode); |
14899 hash = _JenkinsSmiHash.combine(hash, lengths.hashCode); | 15176 hash = JenkinsSmiHash.combine(hash, lengths.hashCode); |
14900 return _JenkinsSmiHash.finish(hash); | 15177 return JenkinsSmiHash.finish(hash); |
14901 } | 15178 } |
14902 } | 15179 } |
14903 | 15180 |
14904 /** | 15181 /** |
14905 * extractLocalVariable options | 15182 * extractLocalVariable options |
14906 * | 15183 * |
14907 * { | 15184 * { |
14908 * "name": String | 15185 * "name": String |
14909 * "extractAll": bool | 15186 * "extractAll": bool |
14910 * } | 15187 * } |
| 15188 * |
| 15189 * Clients are not expected to subtype this class. |
14911 */ | 15190 */ |
14912 class ExtractLocalVariableOptions extends RefactoringOptions implements HasToJso
n { | 15191 class ExtractLocalVariableOptions extends RefactoringOptions implements HasToJso
n { |
14913 String _name; | 15192 String _name; |
14914 | 15193 |
14915 bool _extractAll; | 15194 bool _extractAll; |
14916 | 15195 |
14917 /** | 15196 /** |
14918 * The name that the local variable should be given. | 15197 * The name that the local variable should be given. |
14919 */ | 15198 */ |
14920 String get name => _name; | 15199 String get name => _name; |
(...skipping 30 matching lines...) Expand all Loading... |
14951 this.extractAll = extractAll; | 15230 this.extractAll = extractAll; |
14952 } | 15231 } |
14953 | 15232 |
14954 factory ExtractLocalVariableOptions.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 15233 factory ExtractLocalVariableOptions.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
14955 if (json == null) { | 15234 if (json == null) { |
14956 json = {}; | 15235 json = {}; |
14957 } | 15236 } |
14958 if (json is Map) { | 15237 if (json is Map) { |
14959 String name; | 15238 String name; |
14960 if (json.containsKey("name")) { | 15239 if (json.containsKey("name")) { |
14961 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 15240 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
14962 } else { | 15241 } else { |
14963 throw jsonDecoder.missingKey(jsonPath, "name"); | 15242 throw jsonDecoder.missingKey(jsonPath, "name"); |
14964 } | 15243 } |
14965 bool extractAll; | 15244 bool extractAll; |
14966 if (json.containsKey("extractAll")) { | 15245 if (json.containsKey("extractAll")) { |
14967 extractAll = jsonDecoder._decodeBool(jsonPath + ".extractAll", json["ext
ractAll"]); | 15246 extractAll = jsonDecoder.decodeBool(jsonPath + ".extractAll", json["extr
actAll"]); |
14968 } else { | 15247 } else { |
14969 throw jsonDecoder.missingKey(jsonPath, "extractAll"); | 15248 throw jsonDecoder.missingKey(jsonPath, "extractAll"); |
14970 } | 15249 } |
14971 return new ExtractLocalVariableOptions(name, extractAll); | 15250 return new ExtractLocalVariableOptions(name, extractAll); |
14972 } else { | 15251 } else { |
14973 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable options", json)
; | 15252 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable options", json)
; |
14974 } | 15253 } |
14975 } | 15254 } |
14976 | 15255 |
14977 factory ExtractLocalVariableOptions.fromRefactoringParams(EditGetRefactoringPa
rams refactoringParams, Request request) { | 15256 factory ExtractLocalVariableOptions.fromRefactoringParams(EditGetRefactoringPa
rams refactoringParams, Request request) { |
(...skipping 16 matching lines...) Expand all Loading... |
14994 if (other is ExtractLocalVariableOptions) { | 15273 if (other is ExtractLocalVariableOptions) { |
14995 return name == other.name && | 15274 return name == other.name && |
14996 extractAll == other.extractAll; | 15275 extractAll == other.extractAll; |
14997 } | 15276 } |
14998 return false; | 15277 return false; |
14999 } | 15278 } |
15000 | 15279 |
15001 @override | 15280 @override |
15002 int get hashCode { | 15281 int get hashCode { |
15003 int hash = 0; | 15282 int hash = 0; |
15004 hash = _JenkinsSmiHash.combine(hash, name.hashCode); | 15283 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
15005 hash = _JenkinsSmiHash.combine(hash, extractAll.hashCode); | 15284 hash = JenkinsSmiHash.combine(hash, extractAll.hashCode); |
15006 return _JenkinsSmiHash.finish(hash); | 15285 return JenkinsSmiHash.finish(hash); |
15007 } | 15286 } |
15008 } | 15287 } |
15009 | 15288 |
15010 /** | 15289 /** |
15011 * extractMethod feedback | 15290 * extractMethod feedback |
15012 * | 15291 * |
15013 * { | 15292 * { |
15014 * "offset": int | 15293 * "offset": int |
15015 * "length": int | 15294 * "length": int |
15016 * "returnType": String | 15295 * "returnType": String |
15017 * "names": List<String> | 15296 * "names": List<String> |
15018 * "canCreateGetter": bool | 15297 * "canCreateGetter": bool |
15019 * "parameters": List<RefactoringMethodParameter> | 15298 * "parameters": List<RefactoringMethodParameter> |
15020 * "offsets": List<int> | 15299 * "offsets": List<int> |
15021 * "lengths": List<int> | 15300 * "lengths": List<int> |
15022 * } | 15301 * } |
| 15302 * |
| 15303 * Clients are not expected to subtype this class. |
15023 */ | 15304 */ |
15024 class ExtractMethodFeedback extends RefactoringFeedback implements HasToJson { | 15305 class ExtractMethodFeedback extends RefactoringFeedback implements HasToJson { |
15025 int _offset; | 15306 int _offset; |
15026 | 15307 |
15027 int _length; | 15308 int _length; |
15028 | 15309 |
15029 String _returnType; | 15310 String _returnType; |
15030 | 15311 |
15031 List<String> _names; | 15312 List<String> _names; |
15032 | 15313 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15167 this.lengths = lengths; | 15448 this.lengths = lengths; |
15168 } | 15449 } |
15169 | 15450 |
15170 factory ExtractMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 15451 factory ExtractMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
15171 if (json == null) { | 15452 if (json == null) { |
15172 json = {}; | 15453 json = {}; |
15173 } | 15454 } |
15174 if (json is Map) { | 15455 if (json is Map) { |
15175 int offset; | 15456 int offset; |
15176 if (json.containsKey("offset")) { | 15457 if (json.containsKey("offset")) { |
15177 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 15458 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
15178 } else { | 15459 } else { |
15179 throw jsonDecoder.missingKey(jsonPath, "offset"); | 15460 throw jsonDecoder.missingKey(jsonPath, "offset"); |
15180 } | 15461 } |
15181 int length; | 15462 int length; |
15182 if (json.containsKey("length")) { | 15463 if (json.containsKey("length")) { |
15183 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 15464 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
15184 } else { | 15465 } else { |
15185 throw jsonDecoder.missingKey(jsonPath, "length"); | 15466 throw jsonDecoder.missingKey(jsonPath, "length"); |
15186 } | 15467 } |
15187 String returnType; | 15468 String returnType; |
15188 if (json.containsKey("returnType")) { | 15469 if (json.containsKey("returnType")) { |
15189 returnType = jsonDecoder._decodeString(jsonPath + ".returnType", json["r
eturnType"]); | 15470 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); |
15190 } else { | 15471 } else { |
15191 throw jsonDecoder.missingKey(jsonPath, "returnType"); | 15472 throw jsonDecoder.missingKey(jsonPath, "returnType"); |
15192 } | 15473 } |
15193 List<String> names; | 15474 List<String> names; |
15194 if (json.containsKey("names")) { | 15475 if (json.containsKey("names")) { |
15195 names = jsonDecoder._decodeList(jsonPath + ".names", json["names"], json
Decoder._decodeString); | 15476 names = jsonDecoder.decodeList(jsonPath + ".names", json["names"], jsonD
ecoder.decodeString); |
15196 } else { | 15477 } else { |
15197 throw jsonDecoder.missingKey(jsonPath, "names"); | 15478 throw jsonDecoder.missingKey(jsonPath, "names"); |
15198 } | 15479 } |
15199 bool canCreateGetter; | 15480 bool canCreateGetter; |
15200 if (json.containsKey("canCreateGetter")) { | 15481 if (json.containsKey("canCreateGetter")) { |
15201 canCreateGetter = jsonDecoder._decodeBool(jsonPath + ".canCreateGetter",
json["canCreateGetter"]); | 15482 canCreateGetter = jsonDecoder.decodeBool(jsonPath + ".canCreateGetter",
json["canCreateGetter"]); |
15202 } else { | 15483 } else { |
15203 throw jsonDecoder.missingKey(jsonPath, "canCreateGetter"); | 15484 throw jsonDecoder.missingKey(jsonPath, "canCreateGetter"); |
15204 } | 15485 } |
15205 List<RefactoringMethodParameter> parameters; | 15486 List<RefactoringMethodParameter> parameters; |
15206 if (json.containsKey("parameters")) { | 15487 if (json.containsKey("parameters")) { |
15207 parameters = jsonDecoder._decodeList(jsonPath + ".parameters", json["par
ameters"], (String jsonPath, Object json) => new RefactoringMethodParameter.from
Json(jsonDecoder, jsonPath, json)); | 15488 parameters = jsonDecoder.decodeList(jsonPath + ".parameters", json["para
meters"], (String jsonPath, Object json) => new RefactoringMethodParameter.fromJ
son(jsonDecoder, jsonPath, json)); |
15208 } else { | 15489 } else { |
15209 throw jsonDecoder.missingKey(jsonPath, "parameters"); | 15490 throw jsonDecoder.missingKey(jsonPath, "parameters"); |
15210 } | 15491 } |
15211 List<int> offsets; | 15492 List<int> offsets; |
15212 if (json.containsKey("offsets")) { | 15493 if (json.containsKey("offsets")) { |
15213 offsets = jsonDecoder._decodeList(jsonPath + ".offsets", json["offsets"]
, jsonDecoder._decodeInt); | 15494 offsets = jsonDecoder.decodeList(jsonPath + ".offsets", json["offsets"],
jsonDecoder.decodeInt); |
15214 } else { | 15495 } else { |
15215 throw jsonDecoder.missingKey(jsonPath, "offsets"); | 15496 throw jsonDecoder.missingKey(jsonPath, "offsets"); |
15216 } | 15497 } |
15217 List<int> lengths; | 15498 List<int> lengths; |
15218 if (json.containsKey("lengths")) { | 15499 if (json.containsKey("lengths")) { |
15219 lengths = jsonDecoder._decodeList(jsonPath + ".lengths", json["lengths"]
, jsonDecoder._decodeInt); | 15500 lengths = jsonDecoder.decodeList(jsonPath + ".lengths", json["lengths"],
jsonDecoder.decodeInt); |
15220 } else { | 15501 } else { |
15221 throw jsonDecoder.missingKey(jsonPath, "lengths"); | 15502 throw jsonDecoder.missingKey(jsonPath, "lengths"); |
15222 } | 15503 } |
15223 return new ExtractMethodFeedback(offset, length, returnType, names, canCre
ateGetter, parameters, offsets, lengths); | 15504 return new ExtractMethodFeedback(offset, length, returnType, names, canCre
ateGetter, parameters, offsets, lengths); |
15224 } else { | 15505 } else { |
15225 throw jsonDecoder.mismatch(jsonPath, "extractMethod feedback", json); | 15506 throw jsonDecoder.mismatch(jsonPath, "extractMethod feedback", json); |
15226 } | 15507 } |
15227 } | 15508 } |
15228 | 15509 |
15229 Map<String, dynamic> toJson() { | 15510 Map<String, dynamic> toJson() { |
(...skipping 11 matching lines...) Expand all Loading... |
15241 | 15522 |
15242 @override | 15523 @override |
15243 String toString() => JSON.encode(toJson()); | 15524 String toString() => JSON.encode(toJson()); |
15244 | 15525 |
15245 @override | 15526 @override |
15246 bool operator==(other) { | 15527 bool operator==(other) { |
15247 if (other is ExtractMethodFeedback) { | 15528 if (other is ExtractMethodFeedback) { |
15248 return offset == other.offset && | 15529 return offset == other.offset && |
15249 length == other.length && | 15530 length == other.length && |
15250 returnType == other.returnType && | 15531 returnType == other.returnType && |
15251 _listEqual(names, other.names, (String a, String b) => a == b) && | 15532 listEqual(names, other.names, (String a, String b) => a == b) && |
15252 canCreateGetter == other.canCreateGetter && | 15533 canCreateGetter == other.canCreateGetter && |
15253 _listEqual(parameters, other.parameters, (RefactoringMethodParameter a
, RefactoringMethodParameter b) => a == b) && | 15534 listEqual(parameters, other.parameters, (RefactoringMethodParameter a,
RefactoringMethodParameter b) => a == b) && |
15254 _listEqual(offsets, other.offsets, (int a, int b) => a == b) && | 15535 listEqual(offsets, other.offsets, (int a, int b) => a == b) && |
15255 _listEqual(lengths, other.lengths, (int a, int b) => a == b); | 15536 listEqual(lengths, other.lengths, (int a, int b) => a == b); |
15256 } | 15537 } |
15257 return false; | 15538 return false; |
15258 } | 15539 } |
15259 | 15540 |
15260 @override | 15541 @override |
15261 int get hashCode { | 15542 int get hashCode { |
15262 int hash = 0; | 15543 int hash = 0; |
15263 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 15544 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
15264 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 15545 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
15265 hash = _JenkinsSmiHash.combine(hash, returnType.hashCode); | 15546 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); |
15266 hash = _JenkinsSmiHash.combine(hash, names.hashCode); | 15547 hash = JenkinsSmiHash.combine(hash, names.hashCode); |
15267 hash = _JenkinsSmiHash.combine(hash, canCreateGetter.hashCode); | 15548 hash = JenkinsSmiHash.combine(hash, canCreateGetter.hashCode); |
15268 hash = _JenkinsSmiHash.combine(hash, parameters.hashCode); | 15549 hash = JenkinsSmiHash.combine(hash, parameters.hashCode); |
15269 hash = _JenkinsSmiHash.combine(hash, offsets.hashCode); | 15550 hash = JenkinsSmiHash.combine(hash, offsets.hashCode); |
15270 hash = _JenkinsSmiHash.combine(hash, lengths.hashCode); | 15551 hash = JenkinsSmiHash.combine(hash, lengths.hashCode); |
15271 return _JenkinsSmiHash.finish(hash); | 15552 return JenkinsSmiHash.finish(hash); |
15272 } | 15553 } |
15273 } | 15554 } |
15274 | 15555 |
15275 /** | 15556 /** |
15276 * extractMethod options | 15557 * extractMethod options |
15277 * | 15558 * |
15278 * { | 15559 * { |
15279 * "returnType": String | 15560 * "returnType": String |
15280 * "createGetter": bool | 15561 * "createGetter": bool |
15281 * "name": String | 15562 * "name": String |
15282 * "parameters": List<RefactoringMethodParameter> | 15563 * "parameters": List<RefactoringMethodParameter> |
15283 * "extractAll": bool | 15564 * "extractAll": bool |
15284 * } | 15565 * } |
| 15566 * |
| 15567 * Clients are not expected to subtype this class. |
15285 */ | 15568 */ |
15286 class ExtractMethodOptions extends RefactoringOptions implements HasToJson { | 15569 class ExtractMethodOptions extends RefactoringOptions implements HasToJson { |
15287 String _returnType; | 15570 String _returnType; |
15288 | 15571 |
15289 bool _createGetter; | 15572 bool _createGetter; |
15290 | 15573 |
15291 String _name; | 15574 String _name; |
15292 | 15575 |
15293 List<RefactoringMethodParameter> _parameters; | 15576 List<RefactoringMethodParameter> _parameters; |
15294 | 15577 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15391 this.extractAll = extractAll; | 15674 this.extractAll = extractAll; |
15392 } | 15675 } |
15393 | 15676 |
15394 factory ExtractMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 15677 factory ExtractMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
15395 if (json == null) { | 15678 if (json == null) { |
15396 json = {}; | 15679 json = {}; |
15397 } | 15680 } |
15398 if (json is Map) { | 15681 if (json is Map) { |
15399 String returnType; | 15682 String returnType; |
15400 if (json.containsKey("returnType")) { | 15683 if (json.containsKey("returnType")) { |
15401 returnType = jsonDecoder._decodeString(jsonPath + ".returnType", json["r
eturnType"]); | 15684 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); |
15402 } else { | 15685 } else { |
15403 throw jsonDecoder.missingKey(jsonPath, "returnType"); | 15686 throw jsonDecoder.missingKey(jsonPath, "returnType"); |
15404 } | 15687 } |
15405 bool createGetter; | 15688 bool createGetter; |
15406 if (json.containsKey("createGetter")) { | 15689 if (json.containsKey("createGetter")) { |
15407 createGetter = jsonDecoder._decodeBool(jsonPath + ".createGetter", json[
"createGetter"]); | 15690 createGetter = jsonDecoder.decodeBool(jsonPath + ".createGetter", json["
createGetter"]); |
15408 } else { | 15691 } else { |
15409 throw jsonDecoder.missingKey(jsonPath, "createGetter"); | 15692 throw jsonDecoder.missingKey(jsonPath, "createGetter"); |
15410 } | 15693 } |
15411 String name; | 15694 String name; |
15412 if (json.containsKey("name")) { | 15695 if (json.containsKey("name")) { |
15413 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 15696 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
15414 } else { | 15697 } else { |
15415 throw jsonDecoder.missingKey(jsonPath, "name"); | 15698 throw jsonDecoder.missingKey(jsonPath, "name"); |
15416 } | 15699 } |
15417 List<RefactoringMethodParameter> parameters; | 15700 List<RefactoringMethodParameter> parameters; |
15418 if (json.containsKey("parameters")) { | 15701 if (json.containsKey("parameters")) { |
15419 parameters = jsonDecoder._decodeList(jsonPath + ".parameters", json["par
ameters"], (String jsonPath, Object json) => new RefactoringMethodParameter.from
Json(jsonDecoder, jsonPath, json)); | 15702 parameters = jsonDecoder.decodeList(jsonPath + ".parameters", json["para
meters"], (String jsonPath, Object json) => new RefactoringMethodParameter.fromJ
son(jsonDecoder, jsonPath, json)); |
15420 } else { | 15703 } else { |
15421 throw jsonDecoder.missingKey(jsonPath, "parameters"); | 15704 throw jsonDecoder.missingKey(jsonPath, "parameters"); |
15422 } | 15705 } |
15423 bool extractAll; | 15706 bool extractAll; |
15424 if (json.containsKey("extractAll")) { | 15707 if (json.containsKey("extractAll")) { |
15425 extractAll = jsonDecoder._decodeBool(jsonPath + ".extractAll", json["ext
ractAll"]); | 15708 extractAll = jsonDecoder.decodeBool(jsonPath + ".extractAll", json["extr
actAll"]); |
15426 } else { | 15709 } else { |
15427 throw jsonDecoder.missingKey(jsonPath, "extractAll"); | 15710 throw jsonDecoder.missingKey(jsonPath, "extractAll"); |
15428 } | 15711 } |
15429 return new ExtractMethodOptions(returnType, createGetter, name, parameters
, extractAll); | 15712 return new ExtractMethodOptions(returnType, createGetter, name, parameters
, extractAll); |
15430 } else { | 15713 } else { |
15431 throw jsonDecoder.mismatch(jsonPath, "extractMethod options", json); | 15714 throw jsonDecoder.mismatch(jsonPath, "extractMethod options", json); |
15432 } | 15715 } |
15433 } | 15716 } |
15434 | 15717 |
15435 factory ExtractMethodOptions.fromRefactoringParams(EditGetRefactoringParams re
factoringParams, Request request) { | 15718 factory ExtractMethodOptions.fromRefactoringParams(EditGetRefactoringParams re
factoringParams, Request request) { |
(...skipping 13 matching lines...) Expand all Loading... |
15449 | 15732 |
15450 @override | 15733 @override |
15451 String toString() => JSON.encode(toJson()); | 15734 String toString() => JSON.encode(toJson()); |
15452 | 15735 |
15453 @override | 15736 @override |
15454 bool operator==(other) { | 15737 bool operator==(other) { |
15455 if (other is ExtractMethodOptions) { | 15738 if (other is ExtractMethodOptions) { |
15456 return returnType == other.returnType && | 15739 return returnType == other.returnType && |
15457 createGetter == other.createGetter && | 15740 createGetter == other.createGetter && |
15458 name == other.name && | 15741 name == other.name && |
15459 _listEqual(parameters, other.parameters, (RefactoringMethodParameter a
, RefactoringMethodParameter b) => a == b) && | 15742 listEqual(parameters, other.parameters, (RefactoringMethodParameter a,
RefactoringMethodParameter b) => a == b) && |
15460 extractAll == other.extractAll; | 15743 extractAll == other.extractAll; |
15461 } | 15744 } |
15462 return false; | 15745 return false; |
15463 } | 15746 } |
15464 | 15747 |
15465 @override | 15748 @override |
15466 int get hashCode { | 15749 int get hashCode { |
15467 int hash = 0; | 15750 int hash = 0; |
15468 hash = _JenkinsSmiHash.combine(hash, returnType.hashCode); | 15751 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); |
15469 hash = _JenkinsSmiHash.combine(hash, createGetter.hashCode); | 15752 hash = JenkinsSmiHash.combine(hash, createGetter.hashCode); |
15470 hash = _JenkinsSmiHash.combine(hash, name.hashCode); | 15753 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
15471 hash = _JenkinsSmiHash.combine(hash, parameters.hashCode); | 15754 hash = JenkinsSmiHash.combine(hash, parameters.hashCode); |
15472 hash = _JenkinsSmiHash.combine(hash, extractAll.hashCode); | 15755 hash = JenkinsSmiHash.combine(hash, extractAll.hashCode); |
15473 return _JenkinsSmiHash.finish(hash); | 15756 return JenkinsSmiHash.finish(hash); |
15474 } | 15757 } |
15475 } | 15758 } |
15476 | 15759 |
15477 /** | 15760 /** |
15478 * inlineLocalVariable feedback | 15761 * inlineLocalVariable feedback |
15479 * | 15762 * |
15480 * { | 15763 * { |
15481 * "name": String | 15764 * "name": String |
15482 * "occurrences": int | 15765 * "occurrences": int |
15483 * } | 15766 * } |
| 15767 * |
| 15768 * Clients are not expected to subtype this class. |
15484 */ | 15769 */ |
15485 class InlineLocalVariableFeedback extends RefactoringFeedback implements HasToJs
on { | 15770 class InlineLocalVariableFeedback extends RefactoringFeedback implements HasToJs
on { |
15486 String _name; | 15771 String _name; |
15487 | 15772 |
15488 int _occurrences; | 15773 int _occurrences; |
15489 | 15774 |
15490 /** | 15775 /** |
15491 * The name of the variable being inlined. | 15776 * The name of the variable being inlined. |
15492 */ | 15777 */ |
15493 String get name => _name; | 15778 String get name => _name; |
(...skipping 24 matching lines...) Expand all Loading... |
15518 this.occurrences = occurrences; | 15803 this.occurrences = occurrences; |
15519 } | 15804 } |
15520 | 15805 |
15521 factory InlineLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 15806 factory InlineLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
15522 if (json == null) { | 15807 if (json == null) { |
15523 json = {}; | 15808 json = {}; |
15524 } | 15809 } |
15525 if (json is Map) { | 15810 if (json is Map) { |
15526 String name; | 15811 String name; |
15527 if (json.containsKey("name")) { | 15812 if (json.containsKey("name")) { |
15528 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 15813 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
15529 } else { | 15814 } else { |
15530 throw jsonDecoder.missingKey(jsonPath, "name"); | 15815 throw jsonDecoder.missingKey(jsonPath, "name"); |
15531 } | 15816 } |
15532 int occurrences; | 15817 int occurrences; |
15533 if (json.containsKey("occurrences")) { | 15818 if (json.containsKey("occurrences")) { |
15534 occurrences = jsonDecoder._decodeInt(jsonPath + ".occurrences", json["oc
currences"]); | 15819 occurrences = jsonDecoder.decodeInt(jsonPath + ".occurrences", json["occ
urrences"]); |
15535 } else { | 15820 } else { |
15536 throw jsonDecoder.missingKey(jsonPath, "occurrences"); | 15821 throw jsonDecoder.missingKey(jsonPath, "occurrences"); |
15537 } | 15822 } |
15538 return new InlineLocalVariableFeedback(name, occurrences); | 15823 return new InlineLocalVariableFeedback(name, occurrences); |
15539 } else { | 15824 } else { |
15540 throw jsonDecoder.mismatch(jsonPath, "inlineLocalVariable feedback", json)
; | 15825 throw jsonDecoder.mismatch(jsonPath, "inlineLocalVariable feedback", json)
; |
15541 } | 15826 } |
15542 } | 15827 } |
15543 | 15828 |
15544 Map<String, dynamic> toJson() { | 15829 Map<String, dynamic> toJson() { |
(...skipping 11 matching lines...) Expand all Loading... |
15556 if (other is InlineLocalVariableFeedback) { | 15841 if (other is InlineLocalVariableFeedback) { |
15557 return name == other.name && | 15842 return name == other.name && |
15558 occurrences == other.occurrences; | 15843 occurrences == other.occurrences; |
15559 } | 15844 } |
15560 return false; | 15845 return false; |
15561 } | 15846 } |
15562 | 15847 |
15563 @override | 15848 @override |
15564 int get hashCode { | 15849 int get hashCode { |
15565 int hash = 0; | 15850 int hash = 0; |
15566 hash = _JenkinsSmiHash.combine(hash, name.hashCode); | 15851 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
15567 hash = _JenkinsSmiHash.combine(hash, occurrences.hashCode); | 15852 hash = JenkinsSmiHash.combine(hash, occurrences.hashCode); |
15568 return _JenkinsSmiHash.finish(hash); | 15853 return JenkinsSmiHash.finish(hash); |
15569 } | 15854 } |
15570 } | 15855 } |
15571 /** | 15856 /** |
15572 * inlineLocalVariable options | 15857 * inlineLocalVariable options |
| 15858 * |
| 15859 * Clients are not expected to subtype this class. |
15573 */ | 15860 */ |
15574 class InlineLocalVariableOptions { | 15861 class InlineLocalVariableOptions { |
15575 @override | 15862 @override |
15576 bool operator==(other) { | 15863 bool operator==(other) { |
15577 if (other is InlineLocalVariableOptions) { | 15864 if (other is InlineLocalVariableOptions) { |
15578 return true; | 15865 return true; |
15579 } | 15866 } |
15580 return false; | 15867 return false; |
15581 } | 15868 } |
15582 | 15869 |
15583 @override | 15870 @override |
15584 int get hashCode { | 15871 int get hashCode { |
15585 return 540364977; | 15872 return 540364977; |
15586 } | 15873 } |
15587 } | 15874 } |
15588 | 15875 |
15589 /** | 15876 /** |
15590 * inlineMethod feedback | 15877 * inlineMethod feedback |
15591 * | 15878 * |
15592 * { | 15879 * { |
15593 * "className": optional String | 15880 * "className": optional String |
15594 * "methodName": String | 15881 * "methodName": String |
15595 * "isDeclaration": bool | 15882 * "isDeclaration": bool |
15596 * } | 15883 * } |
| 15884 * |
| 15885 * Clients are not expected to subtype this class. |
15597 */ | 15886 */ |
15598 class InlineMethodFeedback extends RefactoringFeedback implements HasToJson { | 15887 class InlineMethodFeedback extends RefactoringFeedback implements HasToJson { |
15599 String _className; | 15888 String _className; |
15600 | 15889 |
15601 String _methodName; | 15890 String _methodName; |
15602 | 15891 |
15603 bool _isDeclaration; | 15892 bool _isDeclaration; |
15604 | 15893 |
15605 /** | 15894 /** |
15606 * The name of the class enclosing the method being inlined. If not a class | 15895 * The name of the class enclosing the method being inlined. If not a class |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15650 this.isDeclaration = isDeclaration; | 15939 this.isDeclaration = isDeclaration; |
15651 } | 15940 } |
15652 | 15941 |
15653 factory InlineMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 15942 factory InlineMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
15654 if (json == null) { | 15943 if (json == null) { |
15655 json = {}; | 15944 json = {}; |
15656 } | 15945 } |
15657 if (json is Map) { | 15946 if (json is Map) { |
15658 String className; | 15947 String className; |
15659 if (json.containsKey("className")) { | 15948 if (json.containsKey("className")) { |
15660 className = jsonDecoder._decodeString(jsonPath + ".className", json["cla
ssName"]); | 15949 className = jsonDecoder.decodeString(jsonPath + ".className", json["clas
sName"]); |
15661 } | 15950 } |
15662 String methodName; | 15951 String methodName; |
15663 if (json.containsKey("methodName")) { | 15952 if (json.containsKey("methodName")) { |
15664 methodName = jsonDecoder._decodeString(jsonPath + ".methodName", json["m
ethodName"]); | 15953 methodName = jsonDecoder.decodeString(jsonPath + ".methodName", json["me
thodName"]); |
15665 } else { | 15954 } else { |
15666 throw jsonDecoder.missingKey(jsonPath, "methodName"); | 15955 throw jsonDecoder.missingKey(jsonPath, "methodName"); |
15667 } | 15956 } |
15668 bool isDeclaration; | 15957 bool isDeclaration; |
15669 if (json.containsKey("isDeclaration")) { | 15958 if (json.containsKey("isDeclaration")) { |
15670 isDeclaration = jsonDecoder._decodeBool(jsonPath + ".isDeclaration", jso
n["isDeclaration"]); | 15959 isDeclaration = jsonDecoder.decodeBool(jsonPath + ".isDeclaration", json
["isDeclaration"]); |
15671 } else { | 15960 } else { |
15672 throw jsonDecoder.missingKey(jsonPath, "isDeclaration"); | 15961 throw jsonDecoder.missingKey(jsonPath, "isDeclaration"); |
15673 } | 15962 } |
15674 return new InlineMethodFeedback(methodName, isDeclaration, className: clas
sName); | 15963 return new InlineMethodFeedback(methodName, isDeclaration, className: clas
sName); |
15675 } else { | 15964 } else { |
15676 throw jsonDecoder.mismatch(jsonPath, "inlineMethod feedback", json); | 15965 throw jsonDecoder.mismatch(jsonPath, "inlineMethod feedback", json); |
15677 } | 15966 } |
15678 } | 15967 } |
15679 | 15968 |
15680 Map<String, dynamic> toJson() { | 15969 Map<String, dynamic> toJson() { |
(...skipping 15 matching lines...) Expand all Loading... |
15696 return className == other.className && | 15985 return className == other.className && |
15697 methodName == other.methodName && | 15986 methodName == other.methodName && |
15698 isDeclaration == other.isDeclaration; | 15987 isDeclaration == other.isDeclaration; |
15699 } | 15988 } |
15700 return false; | 15989 return false; |
15701 } | 15990 } |
15702 | 15991 |
15703 @override | 15992 @override |
15704 int get hashCode { | 15993 int get hashCode { |
15705 int hash = 0; | 15994 int hash = 0; |
15706 hash = _JenkinsSmiHash.combine(hash, className.hashCode); | 15995 hash = JenkinsSmiHash.combine(hash, className.hashCode); |
15707 hash = _JenkinsSmiHash.combine(hash, methodName.hashCode); | 15996 hash = JenkinsSmiHash.combine(hash, methodName.hashCode); |
15708 hash = _JenkinsSmiHash.combine(hash, isDeclaration.hashCode); | 15997 hash = JenkinsSmiHash.combine(hash, isDeclaration.hashCode); |
15709 return _JenkinsSmiHash.finish(hash); | 15998 return JenkinsSmiHash.finish(hash); |
15710 } | 15999 } |
15711 } | 16000 } |
15712 | 16001 |
15713 /** | 16002 /** |
15714 * inlineMethod options | 16003 * inlineMethod options |
15715 * | 16004 * |
15716 * { | 16005 * { |
15717 * "deleteSource": bool | 16006 * "deleteSource": bool |
15718 * "inlineAll": bool | 16007 * "inlineAll": bool |
15719 * } | 16008 * } |
| 16009 * |
| 16010 * Clients are not expected to subtype this class. |
15720 */ | 16011 */ |
15721 class InlineMethodOptions extends RefactoringOptions implements HasToJson { | 16012 class InlineMethodOptions extends RefactoringOptions implements HasToJson { |
15722 bool _deleteSource; | 16013 bool _deleteSource; |
15723 | 16014 |
15724 bool _inlineAll; | 16015 bool _inlineAll; |
15725 | 16016 |
15726 /** | 16017 /** |
15727 * True if the method being inlined should be removed. It is an error if this | 16018 * True if the method being inlined should be removed. It is an error if this |
15728 * field is true and inlineAll is false. | 16019 * field is true and inlineAll is false. |
15729 */ | 16020 */ |
(...skipping 28 matching lines...) Expand all Loading... |
15758 this.inlineAll = inlineAll; | 16049 this.inlineAll = inlineAll; |
15759 } | 16050 } |
15760 | 16051 |
15761 factory InlineMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 16052 factory InlineMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
15762 if (json == null) { | 16053 if (json == null) { |
15763 json = {}; | 16054 json = {}; |
15764 } | 16055 } |
15765 if (json is Map) { | 16056 if (json is Map) { |
15766 bool deleteSource; | 16057 bool deleteSource; |
15767 if (json.containsKey("deleteSource")) { | 16058 if (json.containsKey("deleteSource")) { |
15768 deleteSource = jsonDecoder._decodeBool(jsonPath + ".deleteSource", json[
"deleteSource"]); | 16059 deleteSource = jsonDecoder.decodeBool(jsonPath + ".deleteSource", json["
deleteSource"]); |
15769 } else { | 16060 } else { |
15770 throw jsonDecoder.missingKey(jsonPath, "deleteSource"); | 16061 throw jsonDecoder.missingKey(jsonPath, "deleteSource"); |
15771 } | 16062 } |
15772 bool inlineAll; | 16063 bool inlineAll; |
15773 if (json.containsKey("inlineAll")) { | 16064 if (json.containsKey("inlineAll")) { |
15774 inlineAll = jsonDecoder._decodeBool(jsonPath + ".inlineAll", json["inlin
eAll"]); | 16065 inlineAll = jsonDecoder.decodeBool(jsonPath + ".inlineAll", json["inline
All"]); |
15775 } else { | 16066 } else { |
15776 throw jsonDecoder.missingKey(jsonPath, "inlineAll"); | 16067 throw jsonDecoder.missingKey(jsonPath, "inlineAll"); |
15777 } | 16068 } |
15778 return new InlineMethodOptions(deleteSource, inlineAll); | 16069 return new InlineMethodOptions(deleteSource, inlineAll); |
15779 } else { | 16070 } else { |
15780 throw jsonDecoder.mismatch(jsonPath, "inlineMethod options", json); | 16071 throw jsonDecoder.mismatch(jsonPath, "inlineMethod options", json); |
15781 } | 16072 } |
15782 } | 16073 } |
15783 | 16074 |
15784 factory InlineMethodOptions.fromRefactoringParams(EditGetRefactoringParams ref
actoringParams, Request request) { | 16075 factory InlineMethodOptions.fromRefactoringParams(EditGetRefactoringParams ref
actoringParams, Request request) { |
(...skipping 16 matching lines...) Expand all Loading... |
15801 if (other is InlineMethodOptions) { | 16092 if (other is InlineMethodOptions) { |
15802 return deleteSource == other.deleteSource && | 16093 return deleteSource == other.deleteSource && |
15803 inlineAll == other.inlineAll; | 16094 inlineAll == other.inlineAll; |
15804 } | 16095 } |
15805 return false; | 16096 return false; |
15806 } | 16097 } |
15807 | 16098 |
15808 @override | 16099 @override |
15809 int get hashCode { | 16100 int get hashCode { |
15810 int hash = 0; | 16101 int hash = 0; |
15811 hash = _JenkinsSmiHash.combine(hash, deleteSource.hashCode); | 16102 hash = JenkinsSmiHash.combine(hash, deleteSource.hashCode); |
15812 hash = _JenkinsSmiHash.combine(hash, inlineAll.hashCode); | 16103 hash = JenkinsSmiHash.combine(hash, inlineAll.hashCode); |
15813 return _JenkinsSmiHash.finish(hash); | 16104 return JenkinsSmiHash.finish(hash); |
15814 } | 16105 } |
15815 } | 16106 } |
15816 /** | 16107 /** |
15817 * moveFile feedback | 16108 * moveFile feedback |
| 16109 * |
| 16110 * Clients are not expected to subtype this class. |
15818 */ | 16111 */ |
15819 class MoveFileFeedback { | 16112 class MoveFileFeedback { |
15820 @override | 16113 @override |
15821 bool operator==(other) { | 16114 bool operator==(other) { |
15822 if (other is MoveFileFeedback) { | 16115 if (other is MoveFileFeedback) { |
15823 return true; | 16116 return true; |
15824 } | 16117 } |
15825 return false; | 16118 return false; |
15826 } | 16119 } |
15827 | 16120 |
15828 @override | 16121 @override |
15829 int get hashCode { | 16122 int get hashCode { |
15830 return 438975893; | 16123 return 438975893; |
15831 } | 16124 } |
15832 } | 16125 } |
15833 | 16126 |
15834 /** | 16127 /** |
15835 * moveFile options | 16128 * moveFile options |
15836 * | 16129 * |
15837 * { | 16130 * { |
15838 * "newFile": FilePath | 16131 * "newFile": FilePath |
15839 * } | 16132 * } |
| 16133 * |
| 16134 * Clients are not expected to subtype this class. |
15840 */ | 16135 */ |
15841 class MoveFileOptions extends RefactoringOptions implements HasToJson { | 16136 class MoveFileOptions extends RefactoringOptions implements HasToJson { |
15842 String _newFile; | 16137 String _newFile; |
15843 | 16138 |
15844 /** | 16139 /** |
15845 * The new file path to which the given file is being moved. | 16140 * The new file path to which the given file is being moved. |
15846 */ | 16141 */ |
15847 String get newFile => _newFile; | 16142 String get newFile => _newFile; |
15848 | 16143 |
15849 /** | 16144 /** |
15850 * The new file path to which the given file is being moved. | 16145 * The new file path to which the given file is being moved. |
15851 */ | 16146 */ |
15852 void set newFile(String value) { | 16147 void set newFile(String value) { |
15853 assert(value != null); | 16148 assert(value != null); |
15854 this._newFile = value; | 16149 this._newFile = value; |
15855 } | 16150 } |
15856 | 16151 |
15857 MoveFileOptions(String newFile) { | 16152 MoveFileOptions(String newFile) { |
15858 this.newFile = newFile; | 16153 this.newFile = newFile; |
15859 } | 16154 } |
15860 | 16155 |
15861 factory MoveFileOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 16156 factory MoveFileOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
15862 if (json == null) { | 16157 if (json == null) { |
15863 json = {}; | 16158 json = {}; |
15864 } | 16159 } |
15865 if (json is Map) { | 16160 if (json is Map) { |
15866 String newFile; | 16161 String newFile; |
15867 if (json.containsKey("newFile")) { | 16162 if (json.containsKey("newFile")) { |
15868 newFile = jsonDecoder._decodeString(jsonPath + ".newFile", json["newFile
"]); | 16163 newFile = jsonDecoder.decodeString(jsonPath + ".newFile", json["newFile"
]); |
15869 } else { | 16164 } else { |
15870 throw jsonDecoder.missingKey(jsonPath, "newFile"); | 16165 throw jsonDecoder.missingKey(jsonPath, "newFile"); |
15871 } | 16166 } |
15872 return new MoveFileOptions(newFile); | 16167 return new MoveFileOptions(newFile); |
15873 } else { | 16168 } else { |
15874 throw jsonDecoder.mismatch(jsonPath, "moveFile options", json); | 16169 throw jsonDecoder.mismatch(jsonPath, "moveFile options", json); |
15875 } | 16170 } |
15876 } | 16171 } |
15877 | 16172 |
15878 factory MoveFileOptions.fromRefactoringParams(EditGetRefactoringParams refacto
ringParams, Request request) { | 16173 factory MoveFileOptions.fromRefactoringParams(EditGetRefactoringParams refacto
ringParams, Request request) { |
(...skipping 14 matching lines...) Expand all Loading... |
15893 bool operator==(other) { | 16188 bool operator==(other) { |
15894 if (other is MoveFileOptions) { | 16189 if (other is MoveFileOptions) { |
15895 return newFile == other.newFile; | 16190 return newFile == other.newFile; |
15896 } | 16191 } |
15897 return false; | 16192 return false; |
15898 } | 16193 } |
15899 | 16194 |
15900 @override | 16195 @override |
15901 int get hashCode { | 16196 int get hashCode { |
15902 int hash = 0; | 16197 int hash = 0; |
15903 hash = _JenkinsSmiHash.combine(hash, newFile.hashCode); | 16198 hash = JenkinsSmiHash.combine(hash, newFile.hashCode); |
15904 return _JenkinsSmiHash.finish(hash); | 16199 return JenkinsSmiHash.finish(hash); |
15905 } | 16200 } |
15906 } | 16201 } |
15907 | 16202 |
15908 /** | 16203 /** |
15909 * rename feedback | 16204 * rename feedback |
15910 * | 16205 * |
15911 * { | 16206 * { |
15912 * "offset": int | 16207 * "offset": int |
15913 * "length": int | 16208 * "length": int |
15914 * "elementKindName": String | 16209 * "elementKindName": String |
15915 * "oldName": String | 16210 * "oldName": String |
15916 * } | 16211 * } |
| 16212 * |
| 16213 * Clients are not expected to subtype this class. |
15917 */ | 16214 */ |
15918 class RenameFeedback extends RefactoringFeedback implements HasToJson { | 16215 class RenameFeedback extends RefactoringFeedback implements HasToJson { |
15919 int _offset; | 16216 int _offset; |
15920 | 16217 |
15921 int _length; | 16218 int _length; |
15922 | 16219 |
15923 String _elementKindName; | 16220 String _elementKindName; |
15924 | 16221 |
15925 String _oldName; | 16222 String _oldName; |
15926 | 16223 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15985 this.oldName = oldName; | 16282 this.oldName = oldName; |
15986 } | 16283 } |
15987 | 16284 |
15988 factory RenameFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 16285 factory RenameFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { |
15989 if (json == null) { | 16286 if (json == null) { |
15990 json = {}; | 16287 json = {}; |
15991 } | 16288 } |
15992 if (json is Map) { | 16289 if (json is Map) { |
15993 int offset; | 16290 int offset; |
15994 if (json.containsKey("offset")) { | 16291 if (json.containsKey("offset")) { |
15995 offset = jsonDecoder._decodeInt(jsonPath + ".offset", json["offset"]); | 16292 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
15996 } else { | 16293 } else { |
15997 throw jsonDecoder.missingKey(jsonPath, "offset"); | 16294 throw jsonDecoder.missingKey(jsonPath, "offset"); |
15998 } | 16295 } |
15999 int length; | 16296 int length; |
16000 if (json.containsKey("length")) { | 16297 if (json.containsKey("length")) { |
16001 length = jsonDecoder._decodeInt(jsonPath + ".length", json["length"]); | 16298 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
16002 } else { | 16299 } else { |
16003 throw jsonDecoder.missingKey(jsonPath, "length"); | 16300 throw jsonDecoder.missingKey(jsonPath, "length"); |
16004 } | 16301 } |
16005 String elementKindName; | 16302 String elementKindName; |
16006 if (json.containsKey("elementKindName")) { | 16303 if (json.containsKey("elementKindName")) { |
16007 elementKindName = jsonDecoder._decodeString(jsonPath + ".elementKindName
", json["elementKindName"]); | 16304 elementKindName = jsonDecoder.decodeString(jsonPath + ".elementKindName"
, json["elementKindName"]); |
16008 } else { | 16305 } else { |
16009 throw jsonDecoder.missingKey(jsonPath, "elementKindName"); | 16306 throw jsonDecoder.missingKey(jsonPath, "elementKindName"); |
16010 } | 16307 } |
16011 String oldName; | 16308 String oldName; |
16012 if (json.containsKey("oldName")) { | 16309 if (json.containsKey("oldName")) { |
16013 oldName = jsonDecoder._decodeString(jsonPath + ".oldName", json["oldName
"]); | 16310 oldName = jsonDecoder.decodeString(jsonPath + ".oldName", json["oldName"
]); |
16014 } else { | 16311 } else { |
16015 throw jsonDecoder.missingKey(jsonPath, "oldName"); | 16312 throw jsonDecoder.missingKey(jsonPath, "oldName"); |
16016 } | 16313 } |
16017 return new RenameFeedback(offset, length, elementKindName, oldName); | 16314 return new RenameFeedback(offset, length, elementKindName, oldName); |
16018 } else { | 16315 } else { |
16019 throw jsonDecoder.mismatch(jsonPath, "rename feedback", json); | 16316 throw jsonDecoder.mismatch(jsonPath, "rename feedback", json); |
16020 } | 16317 } |
16021 } | 16318 } |
16022 | 16319 |
16023 Map<String, dynamic> toJson() { | 16320 Map<String, dynamic> toJson() { |
(...skipping 15 matching lines...) Expand all Loading... |
16039 length == other.length && | 16336 length == other.length && |
16040 elementKindName == other.elementKindName && | 16337 elementKindName == other.elementKindName && |
16041 oldName == other.oldName; | 16338 oldName == other.oldName; |
16042 } | 16339 } |
16043 return false; | 16340 return false; |
16044 } | 16341 } |
16045 | 16342 |
16046 @override | 16343 @override |
16047 int get hashCode { | 16344 int get hashCode { |
16048 int hash = 0; | 16345 int hash = 0; |
16049 hash = _JenkinsSmiHash.combine(hash, offset.hashCode); | 16346 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
16050 hash = _JenkinsSmiHash.combine(hash, length.hashCode); | 16347 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
16051 hash = _JenkinsSmiHash.combine(hash, elementKindName.hashCode); | 16348 hash = JenkinsSmiHash.combine(hash, elementKindName.hashCode); |
16052 hash = _JenkinsSmiHash.combine(hash, oldName.hashCode); | 16349 hash = JenkinsSmiHash.combine(hash, oldName.hashCode); |
16053 return _JenkinsSmiHash.finish(hash); | 16350 return JenkinsSmiHash.finish(hash); |
16054 } | 16351 } |
16055 } | 16352 } |
16056 | 16353 |
16057 /** | 16354 /** |
16058 * rename options | 16355 * rename options |
16059 * | 16356 * |
16060 * { | 16357 * { |
16061 * "newName": String | 16358 * "newName": String |
16062 * } | 16359 * } |
| 16360 * |
| 16361 * Clients are not expected to subtype this class. |
16063 */ | 16362 */ |
16064 class RenameOptions extends RefactoringOptions implements HasToJson { | 16363 class RenameOptions extends RefactoringOptions implements HasToJson { |
16065 String _newName; | 16364 String _newName; |
16066 | 16365 |
16067 /** | 16366 /** |
16068 * The name that the element should have after the refactoring. | 16367 * The name that the element should have after the refactoring. |
16069 */ | 16368 */ |
16070 String get newName => _newName; | 16369 String get newName => _newName; |
16071 | 16370 |
16072 /** | 16371 /** |
16073 * The name that the element should have after the refactoring. | 16372 * The name that the element should have after the refactoring. |
16074 */ | 16373 */ |
16075 void set newName(String value) { | 16374 void set newName(String value) { |
16076 assert(value != null); | 16375 assert(value != null); |
16077 this._newName = value; | 16376 this._newName = value; |
16078 } | 16377 } |
16079 | 16378 |
16080 RenameOptions(String newName) { | 16379 RenameOptions(String newName) { |
16081 this.newName = newName; | 16380 this.newName = newName; |
16082 } | 16381 } |
16083 | 16382 |
16084 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 16383 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { |
16085 if (json == null) { | 16384 if (json == null) { |
16086 json = {}; | 16385 json = {}; |
16087 } | 16386 } |
16088 if (json is Map) { | 16387 if (json is Map) { |
16089 String newName; | 16388 String newName; |
16090 if (json.containsKey("newName")) { | 16389 if (json.containsKey("newName")) { |
16091 newName = jsonDecoder._decodeString(jsonPath + ".newName", json["newName
"]); | 16390 newName = jsonDecoder.decodeString(jsonPath + ".newName", json["newName"
]); |
16092 } else { | 16391 } else { |
16093 throw jsonDecoder.missingKey(jsonPath, "newName"); | 16392 throw jsonDecoder.missingKey(jsonPath, "newName"); |
16094 } | 16393 } |
16095 return new RenameOptions(newName); | 16394 return new RenameOptions(newName); |
16096 } else { | 16395 } else { |
16097 throw jsonDecoder.mismatch(jsonPath, "rename options", json); | 16396 throw jsonDecoder.mismatch(jsonPath, "rename options", json); |
16098 } | 16397 } |
16099 } | 16398 } |
16100 | 16399 |
16101 factory RenameOptions.fromRefactoringParams(EditGetRefactoringParams refactori
ngParams, Request request) { | 16400 factory RenameOptions.fromRefactoringParams(EditGetRefactoringParams refactori
ngParams, Request request) { |
(...skipping 14 matching lines...) Expand all Loading... |
16116 bool operator==(other) { | 16415 bool operator==(other) { |
16117 if (other is RenameOptions) { | 16416 if (other is RenameOptions) { |
16118 return newName == other.newName; | 16417 return newName == other.newName; |
16119 } | 16418 } |
16120 return false; | 16419 return false; |
16121 } | 16420 } |
16122 | 16421 |
16123 @override | 16422 @override |
16124 int get hashCode { | 16423 int get hashCode { |
16125 int hash = 0; | 16424 int hash = 0; |
16126 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 16425 hash = JenkinsSmiHash.combine(hash, newName.hashCode); |
16127 return _JenkinsSmiHash.finish(hash); | 16426 return JenkinsSmiHash.finish(hash); |
16128 } | 16427 } |
16129 } | 16428 } |
OLD | NEW |