OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // | 4 // |
5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
6 // To regenerate the file, use the script | 6 // To regenerate the file, use the script |
7 // "pkg/analysis_server/tool/spec/generate_files". | 7 // "pkg/analysis_server/tool/spec/generate_files". |
8 | 8 |
9 part of analysis_server.plugin.protocol.protocol; | 9 part of analysis_server.plugin.protocol.protocol; |
10 | 10 |
11 /** | 11 /** |
12 * server.getVersion params | 12 * server.getVersion params |
13 * | 13 * |
14 * Clients may not extend, implement or mix-in this class. | 14 * Clients may not extend, implement or mix-in this class. |
15 */ | 15 */ |
16 class ServerGetVersionParams { | 16 class ServerGetVersionParams { |
17 Request toRequest(String id) { | 17 Request toRequest(String id) { |
18 return new Request(id, "server.getVersion", null); | 18 return new Request(id, "server.getVersion", null); |
19 } | 19 } |
20 | 20 |
21 @override | 21 @override |
22 bool operator==(other) { | 22 bool operator ==(other) { |
23 if (other is ServerGetVersionParams) { | 23 if (other is ServerGetVersionParams) { |
24 return true; | 24 return true; |
25 } | 25 } |
26 return false; | 26 return false; |
27 } | 27 } |
28 | 28 |
29 @override | 29 @override |
30 int get hashCode { | 30 int get hashCode { |
31 return 55877452; | 31 return 55877452; |
32 } | 32 } |
(...skipping 21 matching lines...) Expand all Loading... |
54 */ | 54 */ |
55 void set version(String value) { | 55 void set version(String value) { |
56 assert(value != null); | 56 assert(value != null); |
57 this._version = value; | 57 this._version = value; |
58 } | 58 } |
59 | 59 |
60 ServerGetVersionResult(String version) { | 60 ServerGetVersionResult(String version) { |
61 this.version = version; | 61 this.version = version; |
62 } | 62 } |
63 | 63 |
64 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 64 factory ServerGetVersionResult.fromJson( |
| 65 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
65 if (json == null) { | 66 if (json == null) { |
66 json = {}; | 67 json = {}; |
67 } | 68 } |
68 if (json is Map) { | 69 if (json is Map) { |
69 String version; | 70 String version; |
70 if (json.containsKey("version")) { | 71 if (json.containsKey("version")) { |
71 version = jsonDecoder.decodeString(jsonPath + ".version", json["version"
]); | 72 version = |
| 73 jsonDecoder.decodeString(jsonPath + ".version", json["version"]); |
72 } else { | 74 } else { |
73 throw jsonDecoder.missingKey(jsonPath, "version"); | 75 throw jsonDecoder.missingKey(jsonPath, "version"); |
74 } | 76 } |
75 return new ServerGetVersionResult(version); | 77 return new ServerGetVersionResult(version); |
76 } else { | 78 } else { |
77 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result", json); | 79 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result", json); |
78 } | 80 } |
79 } | 81 } |
80 | 82 |
81 factory ServerGetVersionResult.fromResponse(Response response) { | 83 factory ServerGetVersionResult.fromResponse(Response response) { |
82 return new ServerGetVersionResult.fromJson( | 84 return new ServerGetVersionResult.fromJson( |
83 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 85 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 86 "result", |
| 87 response._result); |
84 } | 88 } |
85 | 89 |
86 Map<String, dynamic> toJson() { | 90 Map<String, dynamic> toJson() { |
87 Map<String, dynamic> result = {}; | 91 Map<String, dynamic> result = {}; |
88 result["version"] = version; | 92 result["version"] = version; |
89 return result; | 93 return result; |
90 } | 94 } |
91 | 95 |
92 Response toResponse(String id) { | 96 Response toResponse(String id) { |
93 return new Response(id, result: toJson()); | 97 return new Response(id, result: toJson()); |
94 } | 98 } |
95 | 99 |
96 @override | 100 @override |
97 String toString() => JSON.encode(toJson()); | 101 String toString() => JSON.encode(toJson()); |
98 | 102 |
99 @override | 103 @override |
100 bool operator==(other) { | 104 bool operator ==(other) { |
101 if (other is ServerGetVersionResult) { | 105 if (other is ServerGetVersionResult) { |
102 return version == other.version; | 106 return version == other.version; |
103 } | 107 } |
104 return false; | 108 return false; |
105 } | 109 } |
106 | 110 |
107 @override | 111 @override |
108 int get hashCode { | 112 int get hashCode { |
109 int hash = 0; | 113 int hash = 0; |
110 hash = JenkinsSmiHash.combine(hash, version.hashCode); | 114 hash = JenkinsSmiHash.combine(hash, version.hashCode); |
111 return JenkinsSmiHash.finish(hash); | 115 return JenkinsSmiHash.finish(hash); |
112 } | 116 } |
113 } | 117 } |
| 118 |
114 /** | 119 /** |
115 * server.shutdown params | 120 * server.shutdown params |
116 * | 121 * |
117 * Clients may not extend, implement or mix-in this class. | 122 * Clients may not extend, implement or mix-in this class. |
118 */ | 123 */ |
119 class ServerShutdownParams { | 124 class ServerShutdownParams { |
120 Request toRequest(String id) { | 125 Request toRequest(String id) { |
121 return new Request(id, "server.shutdown", null); | 126 return new Request(id, "server.shutdown", null); |
122 } | 127 } |
123 | 128 |
124 @override | 129 @override |
125 bool operator==(other) { | 130 bool operator ==(other) { |
126 if (other is ServerShutdownParams) { | 131 if (other is ServerShutdownParams) { |
127 return true; | 132 return true; |
128 } | 133 } |
129 return false; | 134 return false; |
130 } | 135 } |
131 | 136 |
132 @override | 137 @override |
133 int get hashCode { | 138 int get hashCode { |
134 return 366630911; | 139 return 366630911; |
135 } | 140 } |
136 } | 141 } |
| 142 |
137 /** | 143 /** |
138 * server.shutdown result | 144 * server.shutdown result |
139 * | 145 * |
140 * Clients may not extend, implement or mix-in this class. | 146 * Clients may not extend, implement or mix-in this class. |
141 */ | 147 */ |
142 class ServerShutdownResult { | 148 class ServerShutdownResult { |
143 Response toResponse(String id) { | 149 Response toResponse(String id) { |
144 return new Response(id, result: null); | 150 return new Response(id, result: null); |
145 } | 151 } |
146 | 152 |
147 @override | 153 @override |
148 bool operator==(other) { | 154 bool operator ==(other) { |
149 if (other is ServerShutdownResult) { | 155 if (other is ServerShutdownResult) { |
150 return true; | 156 return true; |
151 } | 157 } |
152 return false; | 158 return false; |
153 } | 159 } |
154 | 160 |
155 @override | 161 @override |
156 int get hashCode { | 162 int get hashCode { |
157 return 193626532; | 163 return 193626532; |
158 } | 164 } |
(...skipping 21 matching lines...) Expand all Loading... |
180 */ | 186 */ |
181 void set subscriptions(List<ServerService> value) { | 187 void set subscriptions(List<ServerService> value) { |
182 assert(value != null); | 188 assert(value != null); |
183 this._subscriptions = value; | 189 this._subscriptions = value; |
184 } | 190 } |
185 | 191 |
186 ServerSetSubscriptionsParams(List<ServerService> subscriptions) { | 192 ServerSetSubscriptionsParams(List<ServerService> subscriptions) { |
187 this.subscriptions = subscriptions; | 193 this.subscriptions = subscriptions; |
188 } | 194 } |
189 | 195 |
190 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 196 factory ServerSetSubscriptionsParams.fromJson( |
| 197 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
191 if (json == null) { | 198 if (json == null) { |
192 json = {}; | 199 json = {}; |
193 } | 200 } |
194 if (json is Map) { | 201 if (json is Map) { |
195 List<ServerService> subscriptions; | 202 List<ServerService> subscriptions; |
196 if (json.containsKey("subscriptions")) { | 203 if (json.containsKey("subscriptions")) { |
197 subscriptions = jsonDecoder.decodeList(jsonPath + ".subscriptions", json
["subscriptions"], (String jsonPath, Object json) => new ServerService.fromJson(
jsonDecoder, jsonPath, json)); | 204 subscriptions = jsonDecoder.decodeList( |
| 205 jsonPath + ".subscriptions", |
| 206 json["subscriptions"], |
| 207 (String jsonPath, Object json) => |
| 208 new ServerService.fromJson(jsonDecoder, jsonPath, json)); |
198 } else { | 209 } else { |
199 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 210 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
200 } | 211 } |
201 return new ServerSetSubscriptionsParams(subscriptions); | 212 return new ServerSetSubscriptionsParams(subscriptions); |
202 } else { | 213 } else { |
203 throw jsonDecoder.mismatch(jsonPath, "server.setSubscriptions params", jso
n); | 214 throw jsonDecoder.mismatch( |
| 215 jsonPath, "server.setSubscriptions params", json); |
204 } | 216 } |
205 } | 217 } |
206 | 218 |
207 factory ServerSetSubscriptionsParams.fromRequest(Request request) { | 219 factory ServerSetSubscriptionsParams.fromRequest(Request request) { |
208 return new ServerSetSubscriptionsParams.fromJson( | 220 return new ServerSetSubscriptionsParams.fromJson( |
209 new RequestDecoder(request), "params", request._params); | 221 new RequestDecoder(request), "params", request._params); |
210 } | 222 } |
211 | 223 |
212 Map<String, dynamic> toJson() { | 224 Map<String, dynamic> toJson() { |
213 Map<String, dynamic> result = {}; | 225 Map<String, dynamic> result = {}; |
214 result["subscriptions"] = subscriptions.map((ServerService value) => value.t
oJson()).toList(); | 226 result["subscriptions"] = |
| 227 subscriptions.map((ServerService value) => value.toJson()).toList(); |
215 return result; | 228 return result; |
216 } | 229 } |
217 | 230 |
218 Request toRequest(String id) { | 231 Request toRequest(String id) { |
219 return new Request(id, "server.setSubscriptions", toJson()); | 232 return new Request(id, "server.setSubscriptions", toJson()); |
220 } | 233 } |
221 | 234 |
222 @override | 235 @override |
223 String toString() => JSON.encode(toJson()); | 236 String toString() => JSON.encode(toJson()); |
224 | 237 |
225 @override | 238 @override |
226 bool operator==(other) { | 239 bool operator ==(other) { |
227 if (other is ServerSetSubscriptionsParams) { | 240 if (other is ServerSetSubscriptionsParams) { |
228 return listEqual(subscriptions, other.subscriptions, (ServerService a, Ser
verService b) => a == b); | 241 return listEqual(subscriptions, other.subscriptions, |
| 242 (ServerService a, ServerService b) => a == b); |
229 } | 243 } |
230 return false; | 244 return false; |
231 } | 245 } |
232 | 246 |
233 @override | 247 @override |
234 int get hashCode { | 248 int get hashCode { |
235 int hash = 0; | 249 int hash = 0; |
236 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 250 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
237 return JenkinsSmiHash.finish(hash); | 251 return JenkinsSmiHash.finish(hash); |
238 } | 252 } |
239 } | 253 } |
| 254 |
240 /** | 255 /** |
241 * server.setSubscriptions result | 256 * server.setSubscriptions result |
242 * | 257 * |
243 * Clients may not extend, implement or mix-in this class. | 258 * Clients may not extend, implement or mix-in this class. |
244 */ | 259 */ |
245 class ServerSetSubscriptionsResult { | 260 class ServerSetSubscriptionsResult { |
246 Response toResponse(String id) { | 261 Response toResponse(String id) { |
247 return new Response(id, result: null); | 262 return new Response(id, result: null); |
248 } | 263 } |
249 | 264 |
250 @override | 265 @override |
251 bool operator==(other) { | 266 bool operator ==(other) { |
252 if (other is ServerSetSubscriptionsResult) { | 267 if (other is ServerSetSubscriptionsResult) { |
253 return true; | 268 return true; |
254 } | 269 } |
255 return false; | 270 return false; |
256 } | 271 } |
257 | 272 |
258 @override | 273 @override |
259 int get hashCode { | 274 int get hashCode { |
260 return 748820900; | 275 return 748820900; |
261 } | 276 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 void set sessionId(String value) { | 331 void set sessionId(String value) { |
317 this._sessionId = value; | 332 this._sessionId = value; |
318 } | 333 } |
319 | 334 |
320 ServerConnectedParams(String version, int pid, {String sessionId}) { | 335 ServerConnectedParams(String version, int pid, {String sessionId}) { |
321 this.version = version; | 336 this.version = version; |
322 this.pid = pid; | 337 this.pid = pid; |
323 this.sessionId = sessionId; | 338 this.sessionId = sessionId; |
324 } | 339 } |
325 | 340 |
326 factory ServerConnectedParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 341 factory ServerConnectedParams.fromJson( |
| 342 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
327 if (json == null) { | 343 if (json == null) { |
328 json = {}; | 344 json = {}; |
329 } | 345 } |
330 if (json is Map) { | 346 if (json is Map) { |
331 String version; | 347 String version; |
332 if (json.containsKey("version")) { | 348 if (json.containsKey("version")) { |
333 version = jsonDecoder.decodeString(jsonPath + ".version", json["version"
]); | 349 version = |
| 350 jsonDecoder.decodeString(jsonPath + ".version", json["version"]); |
334 } else { | 351 } else { |
335 throw jsonDecoder.missingKey(jsonPath, "version"); | 352 throw jsonDecoder.missingKey(jsonPath, "version"); |
336 } | 353 } |
337 int pid; | 354 int pid; |
338 if (json.containsKey("pid")) { | 355 if (json.containsKey("pid")) { |
339 pid = jsonDecoder.decodeInt(jsonPath + ".pid", json["pid"]); | 356 pid = jsonDecoder.decodeInt(jsonPath + ".pid", json["pid"]); |
340 } else { | 357 } else { |
341 throw jsonDecoder.missingKey(jsonPath, "pid"); | 358 throw jsonDecoder.missingKey(jsonPath, "pid"); |
342 } | 359 } |
343 String sessionId; | 360 String sessionId; |
344 if (json.containsKey("sessionId")) { | 361 if (json.containsKey("sessionId")) { |
345 sessionId = jsonDecoder.decodeString(jsonPath + ".sessionId", json["sess
ionId"]); | 362 sessionId = jsonDecoder.decodeString( |
| 363 jsonPath + ".sessionId", json["sessionId"]); |
346 } | 364 } |
347 return new ServerConnectedParams(version, pid, sessionId: sessionId); | 365 return new ServerConnectedParams(version, pid, sessionId: sessionId); |
348 } else { | 366 } else { |
349 throw jsonDecoder.mismatch(jsonPath, "server.connected params", json); | 367 throw jsonDecoder.mismatch(jsonPath, "server.connected params", json); |
350 } | 368 } |
351 } | 369 } |
352 | 370 |
353 factory ServerConnectedParams.fromNotification(Notification notification) { | 371 factory ServerConnectedParams.fromNotification(Notification notification) { |
354 return new ServerConnectedParams.fromJson( | 372 return new ServerConnectedParams.fromJson( |
355 new ResponseDecoder(null), "params", notification._params); | 373 new ResponseDecoder(null), "params", notification._params); |
(...skipping 10 matching lines...) Expand all Loading... |
366 } | 384 } |
367 | 385 |
368 Notification toNotification() { | 386 Notification toNotification() { |
369 return new Notification("server.connected", toJson()); | 387 return new Notification("server.connected", toJson()); |
370 } | 388 } |
371 | 389 |
372 @override | 390 @override |
373 String toString() => JSON.encode(toJson()); | 391 String toString() => JSON.encode(toJson()); |
374 | 392 |
375 @override | 393 @override |
376 bool operator==(other) { | 394 bool operator ==(other) { |
377 if (other is ServerConnectedParams) { | 395 if (other is ServerConnectedParams) { |
378 return version == other.version && | 396 return version == other.version && |
379 pid == other.pid && | 397 pid == other.pid && |
380 sessionId == other.sessionId; | 398 sessionId == other.sessionId; |
381 } | 399 } |
382 return false; | 400 return false; |
383 } | 401 } |
384 | 402 |
385 @override | 403 @override |
386 int get hashCode { | 404 int get hashCode { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 assert(value != null); | 470 assert(value != null); |
453 this._stackTrace = value; | 471 this._stackTrace = value; |
454 } | 472 } |
455 | 473 |
456 ServerErrorParams(bool isFatal, String message, String stackTrace) { | 474 ServerErrorParams(bool isFatal, String message, String stackTrace) { |
457 this.isFatal = isFatal; | 475 this.isFatal = isFatal; |
458 this.message = message; | 476 this.message = message; |
459 this.stackTrace = stackTrace; | 477 this.stackTrace = stackTrace; |
460 } | 478 } |
461 | 479 |
462 factory ServerErrorParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 480 factory ServerErrorParams.fromJson( |
| 481 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
463 if (json == null) { | 482 if (json == null) { |
464 json = {}; | 483 json = {}; |
465 } | 484 } |
466 if (json is Map) { | 485 if (json is Map) { |
467 bool isFatal; | 486 bool isFatal; |
468 if (json.containsKey("isFatal")) { | 487 if (json.containsKey("isFatal")) { |
469 isFatal = jsonDecoder.decodeBool(jsonPath + ".isFatal", json["isFatal"])
; | 488 isFatal = |
| 489 jsonDecoder.decodeBool(jsonPath + ".isFatal", json["isFatal"]); |
470 } else { | 490 } else { |
471 throw jsonDecoder.missingKey(jsonPath, "isFatal"); | 491 throw jsonDecoder.missingKey(jsonPath, "isFatal"); |
472 } | 492 } |
473 String message; | 493 String message; |
474 if (json.containsKey("message")) { | 494 if (json.containsKey("message")) { |
475 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); | 495 message = |
| 496 jsonDecoder.decodeString(jsonPath + ".message", json["message"]); |
476 } else { | 497 } else { |
477 throw jsonDecoder.missingKey(jsonPath, "message"); | 498 throw jsonDecoder.missingKey(jsonPath, "message"); |
478 } | 499 } |
479 String stackTrace; | 500 String stackTrace; |
480 if (json.containsKey("stackTrace")) { | 501 if (json.containsKey("stackTrace")) { |
481 stackTrace = jsonDecoder.decodeString(jsonPath + ".stackTrace", json["st
ackTrace"]); | 502 stackTrace = jsonDecoder.decodeString( |
| 503 jsonPath + ".stackTrace", json["stackTrace"]); |
482 } else { | 504 } else { |
483 throw jsonDecoder.missingKey(jsonPath, "stackTrace"); | 505 throw jsonDecoder.missingKey(jsonPath, "stackTrace"); |
484 } | 506 } |
485 return new ServerErrorParams(isFatal, message, stackTrace); | 507 return new ServerErrorParams(isFatal, message, stackTrace); |
486 } else { | 508 } else { |
487 throw jsonDecoder.mismatch(jsonPath, "server.error params", json); | 509 throw jsonDecoder.mismatch(jsonPath, "server.error params", json); |
488 } | 510 } |
489 } | 511 } |
490 | 512 |
491 factory ServerErrorParams.fromNotification(Notification notification) { | 513 factory ServerErrorParams.fromNotification(Notification notification) { |
(...skipping 10 matching lines...) Expand all Loading... |
502 } | 524 } |
503 | 525 |
504 Notification toNotification() { | 526 Notification toNotification() { |
505 return new Notification("server.error", toJson()); | 527 return new Notification("server.error", toJson()); |
506 } | 528 } |
507 | 529 |
508 @override | 530 @override |
509 String toString() => JSON.encode(toJson()); | 531 String toString() => JSON.encode(toJson()); |
510 | 532 |
511 @override | 533 @override |
512 bool operator==(other) { | 534 bool operator ==(other) { |
513 if (other is ServerErrorParams) { | 535 if (other is ServerErrorParams) { |
514 return isFatal == other.isFatal && | 536 return isFatal == other.isFatal && |
515 message == other.message && | 537 message == other.message && |
516 stackTrace == other.stackTrace; | 538 stackTrace == other.stackTrace; |
517 } | 539 } |
518 return false; | 540 return false; |
519 } | 541 } |
520 | 542 |
521 @override | 543 @override |
522 int get hashCode { | 544 int get hashCode { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 */ | 591 */ |
570 void set pub(PubStatus value) { | 592 void set pub(PubStatus value) { |
571 this._pub = value; | 593 this._pub = value; |
572 } | 594 } |
573 | 595 |
574 ServerStatusParams({AnalysisStatus analysis, PubStatus pub}) { | 596 ServerStatusParams({AnalysisStatus analysis, PubStatus pub}) { |
575 this.analysis = analysis; | 597 this.analysis = analysis; |
576 this.pub = pub; | 598 this.pub = pub; |
577 } | 599 } |
578 | 600 |
579 factory ServerStatusParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 601 factory ServerStatusParams.fromJson( |
| 602 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
580 if (json == null) { | 603 if (json == null) { |
581 json = {}; | 604 json = {}; |
582 } | 605 } |
583 if (json is Map) { | 606 if (json is Map) { |
584 AnalysisStatus analysis; | 607 AnalysisStatus analysis; |
585 if (json.containsKey("analysis")) { | 608 if (json.containsKey("analysis")) { |
586 analysis = new AnalysisStatus.fromJson(jsonDecoder, jsonPath + ".analysi
s", json["analysis"]); | 609 analysis = new AnalysisStatus.fromJson( |
| 610 jsonDecoder, jsonPath + ".analysis", json["analysis"]); |
587 } | 611 } |
588 PubStatus pub; | 612 PubStatus pub; |
589 if (json.containsKey("pub")) { | 613 if (json.containsKey("pub")) { |
590 pub = new PubStatus.fromJson(jsonDecoder, jsonPath + ".pub", json["pub"]
); | 614 pub = |
| 615 new PubStatus.fromJson(jsonDecoder, jsonPath + ".pub", json["pub"]); |
591 } | 616 } |
592 return new ServerStatusParams(analysis: analysis, pub: pub); | 617 return new ServerStatusParams(analysis: analysis, pub: pub); |
593 } else { | 618 } else { |
594 throw jsonDecoder.mismatch(jsonPath, "server.status params", json); | 619 throw jsonDecoder.mismatch(jsonPath, "server.status params", json); |
595 } | 620 } |
596 } | 621 } |
597 | 622 |
598 factory ServerStatusParams.fromNotification(Notification notification) { | 623 factory ServerStatusParams.fromNotification(Notification notification) { |
599 return new ServerStatusParams.fromJson( | 624 return new ServerStatusParams.fromJson( |
600 new ResponseDecoder(null), "params", notification._params); | 625 new ResponseDecoder(null), "params", notification._params); |
(...skipping 11 matching lines...) Expand all Loading... |
612 } | 637 } |
613 | 638 |
614 Notification toNotification() { | 639 Notification toNotification() { |
615 return new Notification("server.status", toJson()); | 640 return new Notification("server.status", toJson()); |
616 } | 641 } |
617 | 642 |
618 @override | 643 @override |
619 String toString() => JSON.encode(toJson()); | 644 String toString() => JSON.encode(toJson()); |
620 | 645 |
621 @override | 646 @override |
622 bool operator==(other) { | 647 bool operator ==(other) { |
623 if (other is ServerStatusParams) { | 648 if (other is ServerStatusParams) { |
624 return analysis == other.analysis && | 649 return analysis == other.analysis && pub == other.pub; |
625 pub == other.pub; | |
626 } | 650 } |
627 return false; | 651 return false; |
628 } | 652 } |
629 | 653 |
630 @override | 654 @override |
631 int get hashCode { | 655 int get hashCode { |
632 int hash = 0; | 656 int hash = 0; |
633 hash = JenkinsSmiHash.combine(hash, analysis.hashCode); | 657 hash = JenkinsSmiHash.combine(hash, analysis.hashCode); |
634 hash = JenkinsSmiHash.combine(hash, pub.hashCode); | 658 hash = JenkinsSmiHash.combine(hash, pub.hashCode); |
635 return JenkinsSmiHash.finish(hash); | 659 return JenkinsSmiHash.finish(hash); |
(...skipping 22 matching lines...) Expand all Loading... |
658 */ | 682 */ |
659 void set file(String value) { | 683 void set file(String value) { |
660 assert(value != null); | 684 assert(value != null); |
661 this._file = value; | 685 this._file = value; |
662 } | 686 } |
663 | 687 |
664 AnalysisGetErrorsParams(String file) { | 688 AnalysisGetErrorsParams(String file) { |
665 this.file = file; | 689 this.file = file; |
666 } | 690 } |
667 | 691 |
668 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 692 factory AnalysisGetErrorsParams.fromJson( |
| 693 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
669 if (json == null) { | 694 if (json == null) { |
670 json = {}; | 695 json = {}; |
671 } | 696 } |
672 if (json is Map) { | 697 if (json is Map) { |
673 String file; | 698 String file; |
674 if (json.containsKey("file")) { | 699 if (json.containsKey("file")) { |
675 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 700 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
676 } else { | 701 } else { |
677 throw jsonDecoder.missingKey(jsonPath, "file"); | 702 throw jsonDecoder.missingKey(jsonPath, "file"); |
678 } | 703 } |
(...skipping 15 matching lines...) Expand all Loading... |
694 } | 719 } |
695 | 720 |
696 Request toRequest(String id) { | 721 Request toRequest(String id) { |
697 return new Request(id, "analysis.getErrors", toJson()); | 722 return new Request(id, "analysis.getErrors", toJson()); |
698 } | 723 } |
699 | 724 |
700 @override | 725 @override |
701 String toString() => JSON.encode(toJson()); | 726 String toString() => JSON.encode(toJson()); |
702 | 727 |
703 @override | 728 @override |
704 bool operator==(other) { | 729 bool operator ==(other) { |
705 if (other is AnalysisGetErrorsParams) { | 730 if (other is AnalysisGetErrorsParams) { |
706 return file == other.file; | 731 return file == other.file; |
707 } | 732 } |
708 return false; | 733 return false; |
709 } | 734 } |
710 | 735 |
711 @override | 736 @override |
712 int get hashCode { | 737 int get hashCode { |
713 int hash = 0; | 738 int hash = 0; |
714 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 739 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
(...skipping 23 matching lines...) Expand all Loading... |
738 */ | 763 */ |
739 void set errors(List<AnalysisError> value) { | 764 void set errors(List<AnalysisError> value) { |
740 assert(value != null); | 765 assert(value != null); |
741 this._errors = value; | 766 this._errors = value; |
742 } | 767 } |
743 | 768 |
744 AnalysisGetErrorsResult(List<AnalysisError> errors) { | 769 AnalysisGetErrorsResult(List<AnalysisError> errors) { |
745 this.errors = errors; | 770 this.errors = errors; |
746 } | 771 } |
747 | 772 |
748 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 773 factory AnalysisGetErrorsResult.fromJson( |
| 774 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
749 if (json == null) { | 775 if (json == null) { |
750 json = {}; | 776 json = {}; |
751 } | 777 } |
752 if (json is Map) { | 778 if (json is Map) { |
753 List<AnalysisError> errors; | 779 List<AnalysisError> errors; |
754 if (json.containsKey("errors")) { | 780 if (json.containsKey("errors")) { |
755 errors = jsonDecoder.decodeList(jsonPath + ".errors", json["errors"], (S
tring jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPath
, json)); | 781 errors = jsonDecoder.decodeList( |
| 782 jsonPath + ".errors", |
| 783 json["errors"], |
| 784 (String jsonPath, Object json) => |
| 785 new AnalysisError.fromJson(jsonDecoder, jsonPath, json)); |
756 } else { | 786 } else { |
757 throw jsonDecoder.missingKey(jsonPath, "errors"); | 787 throw jsonDecoder.missingKey(jsonPath, "errors"); |
758 } | 788 } |
759 return new AnalysisGetErrorsResult(errors); | 789 return new AnalysisGetErrorsResult(errors); |
760 } else { | 790 } else { |
761 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result", json); | 791 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result", json); |
762 } | 792 } |
763 } | 793 } |
764 | 794 |
765 factory AnalysisGetErrorsResult.fromResponse(Response response) { | 795 factory AnalysisGetErrorsResult.fromResponse(Response response) { |
766 return new AnalysisGetErrorsResult.fromJson( | 796 return new AnalysisGetErrorsResult.fromJson( |
767 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 797 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 798 "result", |
| 799 response._result); |
768 } | 800 } |
769 | 801 |
770 Map<String, dynamic> toJson() { | 802 Map<String, dynamic> toJson() { |
771 Map<String, dynamic> result = {}; | 803 Map<String, dynamic> result = {}; |
772 result["errors"] = errors.map((AnalysisError value) => value.toJson()).toLis
t(); | 804 result["errors"] = |
| 805 errors.map((AnalysisError value) => value.toJson()).toList(); |
773 return result; | 806 return result; |
774 } | 807 } |
775 | 808 |
776 Response toResponse(String id) { | 809 Response toResponse(String id) { |
777 return new Response(id, result: toJson()); | 810 return new Response(id, result: toJson()); |
778 } | 811 } |
779 | 812 |
780 @override | 813 @override |
781 String toString() => JSON.encode(toJson()); | 814 String toString() => JSON.encode(toJson()); |
782 | 815 |
783 @override | 816 @override |
784 bool operator==(other) { | 817 bool operator ==(other) { |
785 if (other is AnalysisGetErrorsResult) { | 818 if (other is AnalysisGetErrorsResult) { |
786 return listEqual(errors, other.errors, (AnalysisError a, AnalysisError b)
=> a == b); | 819 return listEqual( |
| 820 errors, other.errors, (AnalysisError a, AnalysisError b) => a == b); |
787 } | 821 } |
788 return false; | 822 return false; |
789 } | 823 } |
790 | 824 |
791 @override | 825 @override |
792 int get hashCode { | 826 int get hashCode { |
793 int hash = 0; | 827 int hash = 0; |
794 hash = JenkinsSmiHash.combine(hash, errors.hashCode); | 828 hash = JenkinsSmiHash.combine(hash, errors.hashCode); |
795 return JenkinsSmiHash.finish(hash); | 829 return JenkinsSmiHash.finish(hash); |
796 } | 830 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 void set offset(int value) { | 869 void set offset(int value) { |
836 assert(value != null); | 870 assert(value != null); |
837 this._offset = value; | 871 this._offset = value; |
838 } | 872 } |
839 | 873 |
840 AnalysisGetHoverParams(String file, int offset) { | 874 AnalysisGetHoverParams(String file, int offset) { |
841 this.file = file; | 875 this.file = file; |
842 this.offset = offset; | 876 this.offset = offset; |
843 } | 877 } |
844 | 878 |
845 factory AnalysisGetHoverParams.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 879 factory AnalysisGetHoverParams.fromJson( |
| 880 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
846 if (json == null) { | 881 if (json == null) { |
847 json = {}; | 882 json = {}; |
848 } | 883 } |
849 if (json is Map) { | 884 if (json is Map) { |
850 String file; | 885 String file; |
851 if (json.containsKey("file")) { | 886 if (json.containsKey("file")) { |
852 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 887 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
853 } else { | 888 } else { |
854 throw jsonDecoder.missingKey(jsonPath, "file"); | 889 throw jsonDecoder.missingKey(jsonPath, "file"); |
855 } | 890 } |
(...skipping 22 matching lines...) Expand all Loading... |
878 } | 913 } |
879 | 914 |
880 Request toRequest(String id) { | 915 Request toRequest(String id) { |
881 return new Request(id, "analysis.getHover", toJson()); | 916 return new Request(id, "analysis.getHover", toJson()); |
882 } | 917 } |
883 | 918 |
884 @override | 919 @override |
885 String toString() => JSON.encode(toJson()); | 920 String toString() => JSON.encode(toJson()); |
886 | 921 |
887 @override | 922 @override |
888 bool operator==(other) { | 923 bool operator ==(other) { |
889 if (other is AnalysisGetHoverParams) { | 924 if (other is AnalysisGetHoverParams) { |
890 return file == other.file && | 925 return file == other.file && offset == other.offset; |
891 offset == other.offset; | |
892 } | 926 } |
893 return false; | 927 return false; |
894 } | 928 } |
895 | 929 |
896 @override | 930 @override |
897 int get hashCode { | 931 int get hashCode { |
898 int hash = 0; | 932 int hash = 0; |
899 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 933 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
900 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 934 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
901 return JenkinsSmiHash.finish(hash); | 935 return JenkinsSmiHash.finish(hash); |
(...skipping 30 matching lines...) Expand all Loading... |
932 */ | 966 */ |
933 void set hovers(List<HoverInformation> value) { | 967 void set hovers(List<HoverInformation> value) { |
934 assert(value != null); | 968 assert(value != null); |
935 this._hovers = value; | 969 this._hovers = value; |
936 } | 970 } |
937 | 971 |
938 AnalysisGetHoverResult(List<HoverInformation> hovers) { | 972 AnalysisGetHoverResult(List<HoverInformation> hovers) { |
939 this.hovers = hovers; | 973 this.hovers = hovers; |
940 } | 974 } |
941 | 975 |
942 factory AnalysisGetHoverResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 976 factory AnalysisGetHoverResult.fromJson( |
| 977 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
943 if (json == null) { | 978 if (json == null) { |
944 json = {}; | 979 json = {}; |
945 } | 980 } |
946 if (json is Map) { | 981 if (json is Map) { |
947 List<HoverInformation> hovers; | 982 List<HoverInformation> hovers; |
948 if (json.containsKey("hovers")) { | 983 if (json.containsKey("hovers")) { |
949 hovers = jsonDecoder.decodeList(jsonPath + ".hovers", json["hovers"], (S
tring jsonPath, Object json) => new HoverInformation.fromJson(jsonDecoder, jsonP
ath, json)); | 984 hovers = jsonDecoder.decodeList( |
| 985 jsonPath + ".hovers", |
| 986 json["hovers"], |
| 987 (String jsonPath, Object json) => |
| 988 new HoverInformation.fromJson(jsonDecoder, jsonPath, json)); |
950 } else { | 989 } else { |
951 throw jsonDecoder.missingKey(jsonPath, "hovers"); | 990 throw jsonDecoder.missingKey(jsonPath, "hovers"); |
952 } | 991 } |
953 return new AnalysisGetHoverResult(hovers); | 992 return new AnalysisGetHoverResult(hovers); |
954 } else { | 993 } else { |
955 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result", json); | 994 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result", json); |
956 } | 995 } |
957 } | 996 } |
958 | 997 |
959 factory AnalysisGetHoverResult.fromResponse(Response response) { | 998 factory AnalysisGetHoverResult.fromResponse(Response response) { |
960 return new AnalysisGetHoverResult.fromJson( | 999 return new AnalysisGetHoverResult.fromJson( |
961 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 1000 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 1001 "result", |
| 1002 response._result); |
962 } | 1003 } |
963 | 1004 |
964 Map<String, dynamic> toJson() { | 1005 Map<String, dynamic> toJson() { |
965 Map<String, dynamic> result = {}; | 1006 Map<String, dynamic> result = {}; |
966 result["hovers"] = hovers.map((HoverInformation value) => value.toJson()).to
List(); | 1007 result["hovers"] = |
| 1008 hovers.map((HoverInformation value) => value.toJson()).toList(); |
967 return result; | 1009 return result; |
968 } | 1010 } |
969 | 1011 |
970 Response toResponse(String id) { | 1012 Response toResponse(String id) { |
971 return new Response(id, result: toJson()); | 1013 return new Response(id, result: toJson()); |
972 } | 1014 } |
973 | 1015 |
974 @override | 1016 @override |
975 String toString() => JSON.encode(toJson()); | 1017 String toString() => JSON.encode(toJson()); |
976 | 1018 |
977 @override | 1019 @override |
978 bool operator==(other) { | 1020 bool operator ==(other) { |
979 if (other is AnalysisGetHoverResult) { | 1021 if (other is AnalysisGetHoverResult) { |
980 return listEqual(hovers, other.hovers, (HoverInformation a, HoverInformati
on b) => a == b); | 1022 return listEqual(hovers, other.hovers, |
| 1023 (HoverInformation a, HoverInformation b) => a == b); |
981 } | 1024 } |
982 return false; | 1025 return false; |
983 } | 1026 } |
984 | 1027 |
985 @override | 1028 @override |
986 int get hashCode { | 1029 int get hashCode { |
987 int hash = 0; | 1030 int hash = 0; |
988 hash = JenkinsSmiHash.combine(hash, hovers.hashCode); | 1031 hash = JenkinsSmiHash.combine(hash, hovers.hashCode); |
989 return JenkinsSmiHash.finish(hash); | 1032 return JenkinsSmiHash.finish(hash); |
990 } | 1033 } |
(...skipping 21 matching lines...) Expand all Loading... |
1012 */ | 1055 */ |
1013 void set file(String value) { | 1056 void set file(String value) { |
1014 assert(value != null); | 1057 assert(value != null); |
1015 this._file = value; | 1058 this._file = value; |
1016 } | 1059 } |
1017 | 1060 |
1018 AnalysisGetReachableSourcesParams(String file) { | 1061 AnalysisGetReachableSourcesParams(String file) { |
1019 this.file = file; | 1062 this.file = file; |
1020 } | 1063 } |
1021 | 1064 |
1022 factory AnalysisGetReachableSourcesParams.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { | 1065 factory AnalysisGetReachableSourcesParams.fromJson( |
| 1066 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
1023 if (json == null) { | 1067 if (json == null) { |
1024 json = {}; | 1068 json = {}; |
1025 } | 1069 } |
1026 if (json is Map) { | 1070 if (json is Map) { |
1027 String file; | 1071 String file; |
1028 if (json.containsKey("file")) { | 1072 if (json.containsKey("file")) { |
1029 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 1073 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
1030 } else { | 1074 } else { |
1031 throw jsonDecoder.missingKey(jsonPath, "file"); | 1075 throw jsonDecoder.missingKey(jsonPath, "file"); |
1032 } | 1076 } |
1033 return new AnalysisGetReachableSourcesParams(file); | 1077 return new AnalysisGetReachableSourcesParams(file); |
1034 } else { | 1078 } else { |
1035 throw jsonDecoder.mismatch(jsonPath, "analysis.getReachableSources params"
, json); | 1079 throw jsonDecoder.mismatch( |
| 1080 jsonPath, "analysis.getReachableSources params", json); |
1036 } | 1081 } |
1037 } | 1082 } |
1038 | 1083 |
1039 factory AnalysisGetReachableSourcesParams.fromRequest(Request request) { | 1084 factory AnalysisGetReachableSourcesParams.fromRequest(Request request) { |
1040 return new AnalysisGetReachableSourcesParams.fromJson( | 1085 return new AnalysisGetReachableSourcesParams.fromJson( |
1041 new RequestDecoder(request), "params", request._params); | 1086 new RequestDecoder(request), "params", request._params); |
1042 } | 1087 } |
1043 | 1088 |
1044 Map<String, dynamic> toJson() { | 1089 Map<String, dynamic> toJson() { |
1045 Map<String, dynamic> result = {}; | 1090 Map<String, dynamic> result = {}; |
1046 result["file"] = file; | 1091 result["file"] = file; |
1047 return result; | 1092 return result; |
1048 } | 1093 } |
1049 | 1094 |
1050 Request toRequest(String id) { | 1095 Request toRequest(String id) { |
1051 return new Request(id, "analysis.getReachableSources", toJson()); | 1096 return new Request(id, "analysis.getReachableSources", toJson()); |
1052 } | 1097 } |
1053 | 1098 |
1054 @override | 1099 @override |
1055 String toString() => JSON.encode(toJson()); | 1100 String toString() => JSON.encode(toJson()); |
1056 | 1101 |
1057 @override | 1102 @override |
1058 bool operator==(other) { | 1103 bool operator ==(other) { |
1059 if (other is AnalysisGetReachableSourcesParams) { | 1104 if (other is AnalysisGetReachableSourcesParams) { |
1060 return file == other.file; | 1105 return file == other.file; |
1061 } | 1106 } |
1062 return false; | 1107 return false; |
1063 } | 1108 } |
1064 | 1109 |
1065 @override | 1110 @override |
1066 int get hashCode { | 1111 int get hashCode { |
1067 int hash = 0; | 1112 int hash = 0; |
1068 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 1113 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 */ | 1147 */ |
1103 void set sources(Map<String, List<String>> value) { | 1148 void set sources(Map<String, List<String>> value) { |
1104 assert(value != null); | 1149 assert(value != null); |
1105 this._sources = value; | 1150 this._sources = value; |
1106 } | 1151 } |
1107 | 1152 |
1108 AnalysisGetReachableSourcesResult(Map<String, List<String>> sources) { | 1153 AnalysisGetReachableSourcesResult(Map<String, List<String>> sources) { |
1109 this.sources = sources; | 1154 this.sources = sources; |
1110 } | 1155 } |
1111 | 1156 |
1112 factory AnalysisGetReachableSourcesResult.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { | 1157 factory AnalysisGetReachableSourcesResult.fromJson( |
| 1158 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
1113 if (json == null) { | 1159 if (json == null) { |
1114 json = {}; | 1160 json = {}; |
1115 } | 1161 } |
1116 if (json is Map) { | 1162 if (json is Map) { |
1117 Map<String, List<String>> sources; | 1163 Map<String, List<String>> sources; |
1118 if (json.containsKey("sources")) { | 1164 if (json.containsKey("sources")) { |
1119 sources = jsonDecoder.decodeMap(jsonPath + ".sources", json["sources"],
valueDecoder: (String jsonPath, Object json) => jsonDecoder.decodeList(jsonPath,
json, jsonDecoder.decodeString)); | 1165 sources = jsonDecoder.decodeMap(jsonPath + ".sources", json["sources"], |
| 1166 valueDecoder: (String jsonPath, Object json) => jsonDecoder |
| 1167 .decodeList(jsonPath, json, jsonDecoder.decodeString)); |
1120 } else { | 1168 } else { |
1121 throw jsonDecoder.missingKey(jsonPath, "sources"); | 1169 throw jsonDecoder.missingKey(jsonPath, "sources"); |
1122 } | 1170 } |
1123 return new AnalysisGetReachableSourcesResult(sources); | 1171 return new AnalysisGetReachableSourcesResult(sources); |
1124 } else { | 1172 } else { |
1125 throw jsonDecoder.mismatch(jsonPath, "analysis.getReachableSources result"
, json); | 1173 throw jsonDecoder.mismatch( |
| 1174 jsonPath, "analysis.getReachableSources result", json); |
1126 } | 1175 } |
1127 } | 1176 } |
1128 | 1177 |
1129 factory AnalysisGetReachableSourcesResult.fromResponse(Response response) { | 1178 factory AnalysisGetReachableSourcesResult.fromResponse(Response response) { |
1130 return new AnalysisGetReachableSourcesResult.fromJson( | 1179 return new AnalysisGetReachableSourcesResult.fromJson( |
1131 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 1180 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 1181 "result", |
| 1182 response._result); |
1132 } | 1183 } |
1133 | 1184 |
1134 Map<String, dynamic> toJson() { | 1185 Map<String, dynamic> toJson() { |
1135 Map<String, dynamic> result = {}; | 1186 Map<String, dynamic> result = {}; |
1136 result["sources"] = sources; | 1187 result["sources"] = sources; |
1137 return result; | 1188 return result; |
1138 } | 1189 } |
1139 | 1190 |
1140 Response toResponse(String id) { | 1191 Response toResponse(String id) { |
1141 return new Response(id, result: toJson()); | 1192 return new Response(id, result: toJson()); |
1142 } | 1193 } |
1143 | 1194 |
1144 @override | 1195 @override |
1145 String toString() => JSON.encode(toJson()); | 1196 String toString() => JSON.encode(toJson()); |
1146 | 1197 |
1147 @override | 1198 @override |
1148 bool operator==(other) { | 1199 bool operator ==(other) { |
1149 if (other is AnalysisGetReachableSourcesResult) { | 1200 if (other is AnalysisGetReachableSourcesResult) { |
1150 return mapEqual(sources, other.sources, (List<String> a, List<String> b) =
> listEqual(a, b, (String a, String b) => a == b)); | 1201 return mapEqual( |
| 1202 sources, |
| 1203 other.sources, |
| 1204 (List<String> a, List<String> b) => |
| 1205 listEqual(a, b, (String a, String b) => a == b)); |
1151 } | 1206 } |
1152 return false; | 1207 return false; |
1153 } | 1208 } |
1154 | 1209 |
1155 @override | 1210 @override |
1156 int get hashCode { | 1211 int get hashCode { |
1157 int hash = 0; | 1212 int hash = 0; |
1158 hash = JenkinsSmiHash.combine(hash, sources.hashCode); | 1213 hash = JenkinsSmiHash.combine(hash, sources.hashCode); |
1159 return JenkinsSmiHash.finish(hash); | 1214 return JenkinsSmiHash.finish(hash); |
1160 } | 1215 } |
1161 } | 1216 } |
| 1217 |
1162 /** | 1218 /** |
1163 * analysis.getLibraryDependencies params | 1219 * analysis.getLibraryDependencies params |
1164 * | 1220 * |
1165 * Clients may not extend, implement or mix-in this class. | 1221 * Clients may not extend, implement or mix-in this class. |
1166 */ | 1222 */ |
1167 class AnalysisGetLibraryDependenciesParams { | 1223 class AnalysisGetLibraryDependenciesParams { |
1168 Request toRequest(String id) { | 1224 Request toRequest(String id) { |
1169 return new Request(id, "analysis.getLibraryDependencies", null); | 1225 return new Request(id, "analysis.getLibraryDependencies", null); |
1170 } | 1226 } |
1171 | 1227 |
1172 @override | 1228 @override |
1173 bool operator==(other) { | 1229 bool operator ==(other) { |
1174 if (other is AnalysisGetLibraryDependenciesParams) { | 1230 if (other is AnalysisGetLibraryDependenciesParams) { |
1175 return true; | 1231 return true; |
1176 } | 1232 } |
1177 return false; | 1233 return false; |
1178 } | 1234 } |
1179 | 1235 |
1180 @override | 1236 @override |
1181 int get hashCode { | 1237 int get hashCode { |
1182 return 246577680; | 1238 return 246577680; |
1183 } | 1239 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1221 | 1277 |
1222 /** | 1278 /** |
1223 * A mapping from context source roots to package maps which map package | 1279 * A mapping from context source roots to package maps which map package |
1224 * names to source directories for use in client-side package URI resolution. | 1280 * names to source directories for use in client-side package URI resolution. |
1225 */ | 1281 */ |
1226 void set packageMap(Map<String, Map<String, List<String>>> value) { | 1282 void set packageMap(Map<String, Map<String, List<String>>> value) { |
1227 assert(value != null); | 1283 assert(value != null); |
1228 this._packageMap = value; | 1284 this._packageMap = value; |
1229 } | 1285 } |
1230 | 1286 |
1231 AnalysisGetLibraryDependenciesResult(List<String> libraries, Map<String, Map<S
tring, List<String>>> packageMap) { | 1287 AnalysisGetLibraryDependenciesResult(List<String> libraries, |
| 1288 Map<String, Map<String, List<String>>> packageMap) { |
1232 this.libraries = libraries; | 1289 this.libraries = libraries; |
1233 this.packageMap = packageMap; | 1290 this.packageMap = packageMap; |
1234 } | 1291 } |
1235 | 1292 |
1236 factory AnalysisGetLibraryDependenciesResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 1293 factory AnalysisGetLibraryDependenciesResult.fromJson( |
| 1294 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
1237 if (json == null) { | 1295 if (json == null) { |
1238 json = {}; | 1296 json = {}; |
1239 } | 1297 } |
1240 if (json is Map) { | 1298 if (json is Map) { |
1241 List<String> libraries; | 1299 List<String> libraries; |
1242 if (json.containsKey("libraries")) { | 1300 if (json.containsKey("libraries")) { |
1243 libraries = jsonDecoder.decodeList(jsonPath + ".libraries", json["librar
ies"], jsonDecoder.decodeString); | 1301 libraries = jsonDecoder.decodeList(jsonPath + ".libraries", |
| 1302 json["libraries"], jsonDecoder.decodeString); |
1244 } else { | 1303 } else { |
1245 throw jsonDecoder.missingKey(jsonPath, "libraries"); | 1304 throw jsonDecoder.missingKey(jsonPath, "libraries"); |
1246 } | 1305 } |
1247 Map<String, Map<String, List<String>>> packageMap; | 1306 Map<String, Map<String, List<String>>> packageMap; |
1248 if (json.containsKey("packageMap")) { | 1307 if (json.containsKey("packageMap")) { |
1249 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))); | 1308 packageMap = jsonDecoder.decodeMap( |
| 1309 jsonPath + ".packageMap", json["packageMap"], |
| 1310 valueDecoder: (String jsonPath, Object json) => |
| 1311 jsonDecoder.decodeMap(jsonPath, json, |
| 1312 valueDecoder: (String jsonPath, Object json) => jsonDecoder |
| 1313 .decodeList(jsonPath, json, jsonDecoder.decodeString))); |
1250 } else { | 1314 } else { |
1251 throw jsonDecoder.missingKey(jsonPath, "packageMap"); | 1315 throw jsonDecoder.missingKey(jsonPath, "packageMap"); |
1252 } | 1316 } |
1253 return new AnalysisGetLibraryDependenciesResult(libraries, packageMap); | 1317 return new AnalysisGetLibraryDependenciesResult(libraries, packageMap); |
1254 } else { | 1318 } else { |
1255 throw jsonDecoder.mismatch(jsonPath, "analysis.getLibraryDependencies resu
lt", json); | 1319 throw jsonDecoder.mismatch( |
| 1320 jsonPath, "analysis.getLibraryDependencies result", json); |
1256 } | 1321 } |
1257 } | 1322 } |
1258 | 1323 |
1259 factory AnalysisGetLibraryDependenciesResult.fromResponse(Response response) { | 1324 factory AnalysisGetLibraryDependenciesResult.fromResponse(Response response) { |
1260 return new AnalysisGetLibraryDependenciesResult.fromJson( | 1325 return new AnalysisGetLibraryDependenciesResult.fromJson( |
1261 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 1326 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 1327 "result", |
| 1328 response._result); |
1262 } | 1329 } |
1263 | 1330 |
1264 Map<String, dynamic> toJson() { | 1331 Map<String, dynamic> toJson() { |
1265 Map<String, dynamic> result = {}; | 1332 Map<String, dynamic> result = {}; |
1266 result["libraries"] = libraries; | 1333 result["libraries"] = libraries; |
1267 result["packageMap"] = packageMap; | 1334 result["packageMap"] = packageMap; |
1268 return result; | 1335 return result; |
1269 } | 1336 } |
1270 | 1337 |
1271 Response toResponse(String id) { | 1338 Response toResponse(String id) { |
1272 return new Response(id, result: toJson()); | 1339 return new Response(id, result: toJson()); |
1273 } | 1340 } |
1274 | 1341 |
1275 @override | 1342 @override |
1276 String toString() => JSON.encode(toJson()); | 1343 String toString() => JSON.encode(toJson()); |
1277 | 1344 |
1278 @override | 1345 @override |
1279 bool operator==(other) { | 1346 bool operator ==(other) { |
1280 if (other is AnalysisGetLibraryDependenciesResult) { | 1347 if (other is AnalysisGetLibraryDependenciesResult) { |
1281 return listEqual(libraries, other.libraries, (String a, String b) => a ==
b) && | 1348 return listEqual( |
1282 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))); | 1349 libraries, other.libraries, (String a, String b) => a == b) && |
| 1350 mapEqual( |
| 1351 packageMap, |
| 1352 other.packageMap, |
| 1353 (Map<String, List<String>> a, Map<String, List<String>> b) => |
| 1354 mapEqual( |
| 1355 a, |
| 1356 b, |
| 1357 (List<String> a, List<String> b) => |
| 1358 listEqual(a, b, (String a, String b) => a == b))); |
1283 } | 1359 } |
1284 return false; | 1360 return false; |
1285 } | 1361 } |
1286 | 1362 |
1287 @override | 1363 @override |
1288 int get hashCode { | 1364 int get hashCode { |
1289 int hash = 0; | 1365 int hash = 0; |
1290 hash = JenkinsSmiHash.combine(hash, libraries.hashCode); | 1366 hash = JenkinsSmiHash.combine(hash, libraries.hashCode); |
1291 hash = JenkinsSmiHash.combine(hash, packageMap.hashCode); | 1367 hash = JenkinsSmiHash.combine(hash, packageMap.hashCode); |
1292 return JenkinsSmiHash.finish(hash); | 1368 return JenkinsSmiHash.finish(hash); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1353 assert(value != null); | 1429 assert(value != null); |
1354 this._length = value; | 1430 this._length = value; |
1355 } | 1431 } |
1356 | 1432 |
1357 AnalysisGetNavigationParams(String file, int offset, int length) { | 1433 AnalysisGetNavigationParams(String file, int offset, int length) { |
1358 this.file = file; | 1434 this.file = file; |
1359 this.offset = offset; | 1435 this.offset = offset; |
1360 this.length = length; | 1436 this.length = length; |
1361 } | 1437 } |
1362 | 1438 |
1363 factory AnalysisGetNavigationParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1439 factory AnalysisGetNavigationParams.fromJson( |
| 1440 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
1364 if (json == null) { | 1441 if (json == null) { |
1365 json = {}; | 1442 json = {}; |
1366 } | 1443 } |
1367 if (json is Map) { | 1444 if (json is Map) { |
1368 String file; | 1445 String file; |
1369 if (json.containsKey("file")) { | 1446 if (json.containsKey("file")) { |
1370 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 1447 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
1371 } else { | 1448 } else { |
1372 throw jsonDecoder.missingKey(jsonPath, "file"); | 1449 throw jsonDecoder.missingKey(jsonPath, "file"); |
1373 } | 1450 } |
1374 int offset; | 1451 int offset; |
1375 if (json.containsKey("offset")) { | 1452 if (json.containsKey("offset")) { |
1376 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 1453 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
1377 } else { | 1454 } else { |
1378 throw jsonDecoder.missingKey(jsonPath, "offset"); | 1455 throw jsonDecoder.missingKey(jsonPath, "offset"); |
1379 } | 1456 } |
1380 int length; | 1457 int length; |
1381 if (json.containsKey("length")) { | 1458 if (json.containsKey("length")) { |
1382 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 1459 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
1383 } else { | 1460 } else { |
1384 throw jsonDecoder.missingKey(jsonPath, "length"); | 1461 throw jsonDecoder.missingKey(jsonPath, "length"); |
1385 } | 1462 } |
1386 return new AnalysisGetNavigationParams(file, offset, length); | 1463 return new AnalysisGetNavigationParams(file, offset, length); |
1387 } else { | 1464 } else { |
1388 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation params", json
); | 1465 throw jsonDecoder.mismatch( |
| 1466 jsonPath, "analysis.getNavigation params", json); |
1389 } | 1467 } |
1390 } | 1468 } |
1391 | 1469 |
1392 factory AnalysisGetNavigationParams.fromRequest(Request request) { | 1470 factory AnalysisGetNavigationParams.fromRequest(Request request) { |
1393 return new AnalysisGetNavigationParams.fromJson( | 1471 return new AnalysisGetNavigationParams.fromJson( |
1394 new RequestDecoder(request), "params", request._params); | 1472 new RequestDecoder(request), "params", request._params); |
1395 } | 1473 } |
1396 | 1474 |
1397 Map<String, dynamic> toJson() { | 1475 Map<String, dynamic> toJson() { |
1398 Map<String, dynamic> result = {}; | 1476 Map<String, dynamic> result = {}; |
1399 result["file"] = file; | 1477 result["file"] = file; |
1400 result["offset"] = offset; | 1478 result["offset"] = offset; |
1401 result["length"] = length; | 1479 result["length"] = length; |
1402 return result; | 1480 return result; |
1403 } | 1481 } |
1404 | 1482 |
1405 Request toRequest(String id) { | 1483 Request toRequest(String id) { |
1406 return new Request(id, "analysis.getNavigation", toJson()); | 1484 return new Request(id, "analysis.getNavigation", toJson()); |
1407 } | 1485 } |
1408 | 1486 |
1409 @override | 1487 @override |
1410 String toString() => JSON.encode(toJson()); | 1488 String toString() => JSON.encode(toJson()); |
1411 | 1489 |
1412 @override | 1490 @override |
1413 bool operator==(other) { | 1491 bool operator ==(other) { |
1414 if (other is AnalysisGetNavigationParams) { | 1492 if (other is AnalysisGetNavigationParams) { |
1415 return file == other.file && | 1493 return file == other.file && |
1416 offset == other.offset && | 1494 offset == other.offset && |
1417 length == other.length; | 1495 length == other.length; |
1418 } | 1496 } |
1419 return false; | 1497 return false; |
1420 } | 1498 } |
1421 | 1499 |
1422 @override | 1500 @override |
1423 int get hashCode { | 1501 int get hashCode { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1483 List<NavigationRegion> get regions => _regions; | 1561 List<NavigationRegion> get regions => _regions; |
1484 | 1562 |
1485 /** | 1563 /** |
1486 * A list of the navigation regions within the requested region of the file. | 1564 * A list of the navigation regions within the requested region of the file. |
1487 */ | 1565 */ |
1488 void set regions(List<NavigationRegion> value) { | 1566 void set regions(List<NavigationRegion> value) { |
1489 assert(value != null); | 1567 assert(value != null); |
1490 this._regions = value; | 1568 this._regions = value; |
1491 } | 1569 } |
1492 | 1570 |
1493 AnalysisGetNavigationResult(List<String> files, List<NavigationTarget> targets
, List<NavigationRegion> regions) { | 1571 AnalysisGetNavigationResult(List<String> files, |
| 1572 List<NavigationTarget> targets, List<NavigationRegion> regions) { |
1494 this.files = files; | 1573 this.files = files; |
1495 this.targets = targets; | 1574 this.targets = targets; |
1496 this.regions = regions; | 1575 this.regions = regions; |
1497 } | 1576 } |
1498 | 1577 |
1499 factory AnalysisGetNavigationResult.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1578 factory AnalysisGetNavigationResult.fromJson( |
| 1579 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
1500 if (json == null) { | 1580 if (json == null) { |
1501 json = {}; | 1581 json = {}; |
1502 } | 1582 } |
1503 if (json is Map) { | 1583 if (json is Map) { |
1504 List<String> files; | 1584 List<String> files; |
1505 if (json.containsKey("files")) { | 1585 if (json.containsKey("files")) { |
1506 files = jsonDecoder.decodeList(jsonPath + ".files", json["files"], jsonD
ecoder.decodeString); | 1586 files = jsonDecoder.decodeList( |
| 1587 jsonPath + ".files", json["files"], jsonDecoder.decodeString); |
1507 } else { | 1588 } else { |
1508 throw jsonDecoder.missingKey(jsonPath, "files"); | 1589 throw jsonDecoder.missingKey(jsonPath, "files"); |
1509 } | 1590 } |
1510 List<NavigationTarget> targets; | 1591 List<NavigationTarget> targets; |
1511 if (json.containsKey("targets")) { | 1592 if (json.containsKey("targets")) { |
1512 targets = jsonDecoder.decodeList(jsonPath + ".targets", json["targets"],
(String jsonPath, Object json) => new NavigationTarget.fromJson(jsonDecoder, js
onPath, json)); | 1593 targets = jsonDecoder.decodeList( |
| 1594 jsonPath + ".targets", |
| 1595 json["targets"], |
| 1596 (String jsonPath, Object json) => |
| 1597 new NavigationTarget.fromJson(jsonDecoder, jsonPath, json)); |
1513 } else { | 1598 } else { |
1514 throw jsonDecoder.missingKey(jsonPath, "targets"); | 1599 throw jsonDecoder.missingKey(jsonPath, "targets"); |
1515 } | 1600 } |
1516 List<NavigationRegion> regions; | 1601 List<NavigationRegion> regions; |
1517 if (json.containsKey("regions")) { | 1602 if (json.containsKey("regions")) { |
1518 regions = jsonDecoder.decodeList(jsonPath + ".regions", json["regions"],
(String jsonPath, Object json) => new NavigationRegion.fromJson(jsonDecoder, js
onPath, json)); | 1603 regions = jsonDecoder.decodeList( |
| 1604 jsonPath + ".regions", |
| 1605 json["regions"], |
| 1606 (String jsonPath, Object json) => |
| 1607 new NavigationRegion.fromJson(jsonDecoder, jsonPath, json)); |
1519 } else { | 1608 } else { |
1520 throw jsonDecoder.missingKey(jsonPath, "regions"); | 1609 throw jsonDecoder.missingKey(jsonPath, "regions"); |
1521 } | 1610 } |
1522 return new AnalysisGetNavigationResult(files, targets, regions); | 1611 return new AnalysisGetNavigationResult(files, targets, regions); |
1523 } else { | 1612 } else { |
1524 throw jsonDecoder.mismatch(jsonPath, "analysis.getNavigation result", json
); | 1613 throw jsonDecoder.mismatch( |
| 1614 jsonPath, "analysis.getNavigation result", json); |
1525 } | 1615 } |
1526 } | 1616 } |
1527 | 1617 |
1528 factory AnalysisGetNavigationResult.fromResponse(Response response) { | 1618 factory AnalysisGetNavigationResult.fromResponse(Response response) { |
1529 return new AnalysisGetNavigationResult.fromJson( | 1619 return new AnalysisGetNavigationResult.fromJson( |
1530 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 1620 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 1621 "result", |
| 1622 response._result); |
1531 } | 1623 } |
1532 | 1624 |
1533 Map<String, dynamic> toJson() { | 1625 Map<String, dynamic> toJson() { |
1534 Map<String, dynamic> result = {}; | 1626 Map<String, dynamic> result = {}; |
1535 result["files"] = files; | 1627 result["files"] = files; |
1536 result["targets"] = targets.map((NavigationTarget value) => value.toJson()).
toList(); | 1628 result["targets"] = |
1537 result["regions"] = regions.map((NavigationRegion value) => value.toJson()).
toList(); | 1629 targets.map((NavigationTarget value) => value.toJson()).toList(); |
| 1630 result["regions"] = |
| 1631 regions.map((NavigationRegion value) => value.toJson()).toList(); |
1538 return result; | 1632 return result; |
1539 } | 1633 } |
1540 | 1634 |
1541 Response toResponse(String id) { | 1635 Response toResponse(String id) { |
1542 return new Response(id, result: toJson()); | 1636 return new Response(id, result: toJson()); |
1543 } | 1637 } |
1544 | 1638 |
1545 @override | 1639 @override |
1546 String toString() => JSON.encode(toJson()); | 1640 String toString() => JSON.encode(toJson()); |
1547 | 1641 |
1548 @override | 1642 @override |
1549 bool operator==(other) { | 1643 bool operator ==(other) { |
1550 if (other is AnalysisGetNavigationResult) { | 1644 if (other is AnalysisGetNavigationResult) { |
1551 return listEqual(files, other.files, (String a, String b) => a == b) && | 1645 return listEqual(files, other.files, (String a, String b) => a == b) && |
1552 listEqual(targets, other.targets, (NavigationTarget a, NavigationTarge
t b) => a == b) && | 1646 listEqual(targets, other.targets, |
1553 listEqual(regions, other.regions, (NavigationRegion a, NavigationRegio
n b) => a == b); | 1647 (NavigationTarget a, NavigationTarget b) => a == b) && |
| 1648 listEqual(regions, other.regions, |
| 1649 (NavigationRegion a, NavigationRegion b) => a == b); |
1554 } | 1650 } |
1555 return false; | 1651 return false; |
1556 } | 1652 } |
1557 | 1653 |
1558 @override | 1654 @override |
1559 int get hashCode { | 1655 int get hashCode { |
1560 int hash = 0; | 1656 int hash = 0; |
1561 hash = JenkinsSmiHash.combine(hash, files.hashCode); | 1657 hash = JenkinsSmiHash.combine(hash, files.hashCode); |
1562 hash = JenkinsSmiHash.combine(hash, targets.hashCode); | 1658 hash = JenkinsSmiHash.combine(hash, targets.hashCode); |
1563 hash = JenkinsSmiHash.combine(hash, regions.hashCode); | 1659 hash = JenkinsSmiHash.combine(hash, regions.hashCode); |
(...skipping 22 matching lines...) Expand all Loading... |
1586 * A list of the analysis roots that are to be re-analyzed. | 1682 * A list of the analysis roots that are to be re-analyzed. |
1587 */ | 1683 */ |
1588 void set roots(List<String> value) { | 1684 void set roots(List<String> value) { |
1589 this._roots = value; | 1685 this._roots = value; |
1590 } | 1686 } |
1591 | 1687 |
1592 AnalysisReanalyzeParams({List<String> roots}) { | 1688 AnalysisReanalyzeParams({List<String> roots}) { |
1593 this.roots = roots; | 1689 this.roots = roots; |
1594 } | 1690 } |
1595 | 1691 |
1596 factory AnalysisReanalyzeParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 1692 factory AnalysisReanalyzeParams.fromJson( |
| 1693 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
1597 if (json == null) { | 1694 if (json == null) { |
1598 json = {}; | 1695 json = {}; |
1599 } | 1696 } |
1600 if (json is Map) { | 1697 if (json is Map) { |
1601 List<String> roots; | 1698 List<String> roots; |
1602 if (json.containsKey("roots")) { | 1699 if (json.containsKey("roots")) { |
1603 roots = jsonDecoder.decodeList(jsonPath + ".roots", json["roots"], jsonD
ecoder.decodeString); | 1700 roots = jsonDecoder.decodeList( |
| 1701 jsonPath + ".roots", json["roots"], jsonDecoder.decodeString); |
1604 } | 1702 } |
1605 return new AnalysisReanalyzeParams(roots: roots); | 1703 return new AnalysisReanalyzeParams(roots: roots); |
1606 } else { | 1704 } else { |
1607 throw jsonDecoder.mismatch(jsonPath, "analysis.reanalyze params", json); | 1705 throw jsonDecoder.mismatch(jsonPath, "analysis.reanalyze params", json); |
1608 } | 1706 } |
1609 } | 1707 } |
1610 | 1708 |
1611 factory AnalysisReanalyzeParams.fromRequest(Request request) { | 1709 factory AnalysisReanalyzeParams.fromRequest(Request request) { |
1612 return new AnalysisReanalyzeParams.fromJson( | 1710 return new AnalysisReanalyzeParams.fromJson( |
1613 new RequestDecoder(request), "params", request._params); | 1711 new RequestDecoder(request), "params", request._params); |
1614 } | 1712 } |
1615 | 1713 |
1616 Map<String, dynamic> toJson() { | 1714 Map<String, dynamic> toJson() { |
1617 Map<String, dynamic> result = {}; | 1715 Map<String, dynamic> result = {}; |
1618 if (roots != null) { | 1716 if (roots != null) { |
1619 result["roots"] = roots; | 1717 result["roots"] = roots; |
1620 } | 1718 } |
1621 return result; | 1719 return result; |
1622 } | 1720 } |
1623 | 1721 |
1624 Request toRequest(String id) { | 1722 Request toRequest(String id) { |
1625 return new Request(id, "analysis.reanalyze", toJson()); | 1723 return new Request(id, "analysis.reanalyze", toJson()); |
1626 } | 1724 } |
1627 | 1725 |
1628 @override | 1726 @override |
1629 String toString() => JSON.encode(toJson()); | 1727 String toString() => JSON.encode(toJson()); |
1630 | 1728 |
1631 @override | 1729 @override |
1632 bool operator==(other) { | 1730 bool operator ==(other) { |
1633 if (other is AnalysisReanalyzeParams) { | 1731 if (other is AnalysisReanalyzeParams) { |
1634 return listEqual(roots, other.roots, (String a, String b) => a == b); | 1732 return listEqual(roots, other.roots, (String a, String b) => a == b); |
1635 } | 1733 } |
1636 return false; | 1734 return false; |
1637 } | 1735 } |
1638 | 1736 |
1639 @override | 1737 @override |
1640 int get hashCode { | 1738 int get hashCode { |
1641 int hash = 0; | 1739 int hash = 0; |
1642 hash = JenkinsSmiHash.combine(hash, roots.hashCode); | 1740 hash = JenkinsSmiHash.combine(hash, roots.hashCode); |
1643 return JenkinsSmiHash.finish(hash); | 1741 return JenkinsSmiHash.finish(hash); |
1644 } | 1742 } |
1645 } | 1743 } |
| 1744 |
1646 /** | 1745 /** |
1647 * analysis.reanalyze result | 1746 * analysis.reanalyze result |
1648 * | 1747 * |
1649 * Clients may not extend, implement or mix-in this class. | 1748 * Clients may not extend, implement or mix-in this class. |
1650 */ | 1749 */ |
1651 class AnalysisReanalyzeResult { | 1750 class AnalysisReanalyzeResult { |
1652 Response toResponse(String id) { | 1751 Response toResponse(String id) { |
1653 return new Response(id, result: null); | 1752 return new Response(id, result: null); |
1654 } | 1753 } |
1655 | 1754 |
1656 @override | 1755 @override |
1657 bool operator==(other) { | 1756 bool operator ==(other) { |
1658 if (other is AnalysisReanalyzeResult) { | 1757 if (other is AnalysisReanalyzeResult) { |
1659 return true; | 1758 return true; |
1660 } | 1759 } |
1661 return false; | 1760 return false; |
1662 } | 1761 } |
1663 | 1762 |
1664 @override | 1763 @override |
1665 int get hashCode { | 1764 int get hashCode { |
1666 return 846803925; | 1765 return 846803925; |
1667 } | 1766 } |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1754 * | 1853 * |
1755 * Files in any directories that are not overridden by this mapping have | 1854 * Files in any directories that are not overridden by this mapping have |
1756 * their package: URI's resolved using the normal pubspec.yaml mechanism. If | 1855 * their package: URI's resolved using the normal pubspec.yaml mechanism. If |
1757 * this field is absent, or the empty map is specified, that indicates that | 1856 * this field is absent, or the empty map is specified, that indicates that |
1758 * the normal pubspec.yaml mechanism should always be used. | 1857 * the normal pubspec.yaml mechanism should always be used. |
1759 */ | 1858 */ |
1760 void set packageRoots(Map<String, String> value) { | 1859 void set packageRoots(Map<String, String> value) { |
1761 this._packageRoots = value; | 1860 this._packageRoots = value; |
1762 } | 1861 } |
1763 | 1862 |
1764 AnalysisSetAnalysisRootsParams(List<String> included, List<String> excluded, {
Map<String, String> packageRoots}) { | 1863 AnalysisSetAnalysisRootsParams(List<String> included, List<String> excluded, |
| 1864 {Map<String, String> packageRoots}) { |
1765 this.included = included; | 1865 this.included = included; |
1766 this.excluded = excluded; | 1866 this.excluded = excluded; |
1767 this.packageRoots = packageRoots; | 1867 this.packageRoots = packageRoots; |
1768 } | 1868 } |
1769 | 1869 |
1770 factory AnalysisSetAnalysisRootsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 1870 factory AnalysisSetAnalysisRootsParams.fromJson( |
| 1871 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
1771 if (json == null) { | 1872 if (json == null) { |
1772 json = {}; | 1873 json = {}; |
1773 } | 1874 } |
1774 if (json is Map) { | 1875 if (json is Map) { |
1775 List<String> included; | 1876 List<String> included; |
1776 if (json.containsKey("included")) { | 1877 if (json.containsKey("included")) { |
1777 included = jsonDecoder.decodeList(jsonPath + ".included", json["included
"], jsonDecoder.decodeString); | 1878 included = jsonDecoder.decodeList( |
| 1879 jsonPath + ".included", json["included"], jsonDecoder.decodeString); |
1778 } else { | 1880 } else { |
1779 throw jsonDecoder.missingKey(jsonPath, "included"); | 1881 throw jsonDecoder.missingKey(jsonPath, "included"); |
1780 } | 1882 } |
1781 List<String> excluded; | 1883 List<String> excluded; |
1782 if (json.containsKey("excluded")) { | 1884 if (json.containsKey("excluded")) { |
1783 excluded = jsonDecoder.decodeList(jsonPath + ".excluded", json["excluded
"], jsonDecoder.decodeString); | 1885 excluded = jsonDecoder.decodeList( |
| 1886 jsonPath + ".excluded", json["excluded"], jsonDecoder.decodeString); |
1784 } else { | 1887 } else { |
1785 throw jsonDecoder.missingKey(jsonPath, "excluded"); | 1888 throw jsonDecoder.missingKey(jsonPath, "excluded"); |
1786 } | 1889 } |
1787 Map<String, String> packageRoots; | 1890 Map<String, String> packageRoots; |
1788 if (json.containsKey("packageRoots")) { | 1891 if (json.containsKey("packageRoots")) { |
1789 packageRoots = jsonDecoder.decodeMap(jsonPath + ".packageRoots", json["p
ackageRoots"], valueDecoder: jsonDecoder.decodeString); | 1892 packageRoots = jsonDecoder.decodeMap( |
| 1893 jsonPath + ".packageRoots", json["packageRoots"], |
| 1894 valueDecoder: jsonDecoder.decodeString); |
1790 } | 1895 } |
1791 return new AnalysisSetAnalysisRootsParams(included, excluded, packageRoots
: packageRoots); | 1896 return new AnalysisSetAnalysisRootsParams(included, excluded, |
| 1897 packageRoots: packageRoots); |
1792 } else { | 1898 } else { |
1793 throw jsonDecoder.mismatch(jsonPath, "analysis.setAnalysisRoots params", j
son); | 1899 throw jsonDecoder.mismatch( |
| 1900 jsonPath, "analysis.setAnalysisRoots params", json); |
1794 } | 1901 } |
1795 } | 1902 } |
1796 | 1903 |
1797 factory AnalysisSetAnalysisRootsParams.fromRequest(Request request) { | 1904 factory AnalysisSetAnalysisRootsParams.fromRequest(Request request) { |
1798 return new AnalysisSetAnalysisRootsParams.fromJson( | 1905 return new AnalysisSetAnalysisRootsParams.fromJson( |
1799 new RequestDecoder(request), "params", request._params); | 1906 new RequestDecoder(request), "params", request._params); |
1800 } | 1907 } |
1801 | 1908 |
1802 Map<String, dynamic> toJson() { | 1909 Map<String, dynamic> toJson() { |
1803 Map<String, dynamic> result = {}; | 1910 Map<String, dynamic> result = {}; |
1804 result["included"] = included; | 1911 result["included"] = included; |
1805 result["excluded"] = excluded; | 1912 result["excluded"] = excluded; |
1806 if (packageRoots != null) { | 1913 if (packageRoots != null) { |
1807 result["packageRoots"] = packageRoots; | 1914 result["packageRoots"] = packageRoots; |
1808 } | 1915 } |
1809 return result; | 1916 return result; |
1810 } | 1917 } |
1811 | 1918 |
1812 Request toRequest(String id) { | 1919 Request toRequest(String id) { |
1813 return new Request(id, "analysis.setAnalysisRoots", toJson()); | 1920 return new Request(id, "analysis.setAnalysisRoots", toJson()); |
1814 } | 1921 } |
1815 | 1922 |
1816 @override | 1923 @override |
1817 String toString() => JSON.encode(toJson()); | 1924 String toString() => JSON.encode(toJson()); |
1818 | 1925 |
1819 @override | 1926 @override |
1820 bool operator==(other) { | 1927 bool operator ==(other) { |
1821 if (other is AnalysisSetAnalysisRootsParams) { | 1928 if (other is AnalysisSetAnalysisRootsParams) { |
1822 return listEqual(included, other.included, (String a, String b) => a == b)
&& | 1929 return listEqual( |
| 1930 included, other.included, (String a, String b) => a == b) && |
1823 listEqual(excluded, other.excluded, (String a, String b) => a == b) && | 1931 listEqual(excluded, other.excluded, (String a, String b) => a == b) && |
1824 mapEqual(packageRoots, other.packageRoots, (String a, String b) => a =
= b); | 1932 mapEqual( |
| 1933 packageRoots, other.packageRoots, (String a, String b) => a == b); |
1825 } | 1934 } |
1826 return false; | 1935 return false; |
1827 } | 1936 } |
1828 | 1937 |
1829 @override | 1938 @override |
1830 int get hashCode { | 1939 int get hashCode { |
1831 int hash = 0; | 1940 int hash = 0; |
1832 hash = JenkinsSmiHash.combine(hash, included.hashCode); | 1941 hash = JenkinsSmiHash.combine(hash, included.hashCode); |
1833 hash = JenkinsSmiHash.combine(hash, excluded.hashCode); | 1942 hash = JenkinsSmiHash.combine(hash, excluded.hashCode); |
1834 hash = JenkinsSmiHash.combine(hash, packageRoots.hashCode); | 1943 hash = JenkinsSmiHash.combine(hash, packageRoots.hashCode); |
1835 return JenkinsSmiHash.finish(hash); | 1944 return JenkinsSmiHash.finish(hash); |
1836 } | 1945 } |
1837 } | 1946 } |
| 1947 |
1838 /** | 1948 /** |
1839 * analysis.setAnalysisRoots result | 1949 * analysis.setAnalysisRoots result |
1840 * | 1950 * |
1841 * Clients may not extend, implement or mix-in this class. | 1951 * Clients may not extend, implement or mix-in this class. |
1842 */ | 1952 */ |
1843 class AnalysisSetAnalysisRootsResult { | 1953 class AnalysisSetAnalysisRootsResult { |
1844 Response toResponse(String id) { | 1954 Response toResponse(String id) { |
1845 return new Response(id, result: null); | 1955 return new Response(id, result: null); |
1846 } | 1956 } |
1847 | 1957 |
1848 @override | 1958 @override |
1849 bool operator==(other) { | 1959 bool operator ==(other) { |
1850 if (other is AnalysisSetAnalysisRootsResult) { | 1960 if (other is AnalysisSetAnalysisRootsResult) { |
1851 return true; | 1961 return true; |
1852 } | 1962 } |
1853 return false; | 1963 return false; |
1854 } | 1964 } |
1855 | 1965 |
1856 @override | 1966 @override |
1857 int get hashCode { | 1967 int get hashCode { |
1858 return 866004753; | 1968 return 866004753; |
1859 } | 1969 } |
(...skipping 17 matching lines...) Expand all Loading... |
1877 List<GeneralAnalysisService> get subscriptions => _subscriptions; | 1987 List<GeneralAnalysisService> get subscriptions => _subscriptions; |
1878 | 1988 |
1879 /** | 1989 /** |
1880 * A list of the services being subscribed to. | 1990 * A list of the services being subscribed to. |
1881 */ | 1991 */ |
1882 void set subscriptions(List<GeneralAnalysisService> value) { | 1992 void set subscriptions(List<GeneralAnalysisService> value) { |
1883 assert(value != null); | 1993 assert(value != null); |
1884 this._subscriptions = value; | 1994 this._subscriptions = value; |
1885 } | 1995 } |
1886 | 1996 |
1887 AnalysisSetGeneralSubscriptionsParams(List<GeneralAnalysisService> subscriptio
ns) { | 1997 AnalysisSetGeneralSubscriptionsParams( |
| 1998 List<GeneralAnalysisService> subscriptions) { |
1888 this.subscriptions = subscriptions; | 1999 this.subscriptions = subscriptions; |
1889 } | 2000 } |
1890 | 2001 |
1891 factory AnalysisSetGeneralSubscriptionsParams.fromJson(JsonDecoder jsonDecoder
, String jsonPath, Object json) { | 2002 factory AnalysisSetGeneralSubscriptionsParams.fromJson( |
| 2003 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
1892 if (json == null) { | 2004 if (json == null) { |
1893 json = {}; | 2005 json = {}; |
1894 } | 2006 } |
1895 if (json is Map) { | 2007 if (json is Map) { |
1896 List<GeneralAnalysisService> subscriptions; | 2008 List<GeneralAnalysisService> subscriptions; |
1897 if (json.containsKey("subscriptions")) { | 2009 if (json.containsKey("subscriptions")) { |
1898 subscriptions = jsonDecoder.decodeList(jsonPath + ".subscriptions", json
["subscriptions"], (String jsonPath, Object json) => new GeneralAnalysisService.
fromJson(jsonDecoder, jsonPath, json)); | 2010 subscriptions = jsonDecoder.decodeList( |
| 2011 jsonPath + ".subscriptions", |
| 2012 json["subscriptions"], |
| 2013 (String jsonPath, Object json) => |
| 2014 new GeneralAnalysisService.fromJson( |
| 2015 jsonDecoder, jsonPath, json)); |
1899 } else { | 2016 } else { |
1900 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 2017 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
1901 } | 2018 } |
1902 return new AnalysisSetGeneralSubscriptionsParams(subscriptions); | 2019 return new AnalysisSetGeneralSubscriptionsParams(subscriptions); |
1903 } else { | 2020 } else { |
1904 throw jsonDecoder.mismatch(jsonPath, "analysis.setGeneralSubscriptions par
ams", json); | 2021 throw jsonDecoder.mismatch( |
| 2022 jsonPath, "analysis.setGeneralSubscriptions params", json); |
1905 } | 2023 } |
1906 } | 2024 } |
1907 | 2025 |
1908 factory AnalysisSetGeneralSubscriptionsParams.fromRequest(Request request) { | 2026 factory AnalysisSetGeneralSubscriptionsParams.fromRequest(Request request) { |
1909 return new AnalysisSetGeneralSubscriptionsParams.fromJson( | 2027 return new AnalysisSetGeneralSubscriptionsParams.fromJson( |
1910 new RequestDecoder(request), "params", request._params); | 2028 new RequestDecoder(request), "params", request._params); |
1911 } | 2029 } |
1912 | 2030 |
1913 Map<String, dynamic> toJson() { | 2031 Map<String, dynamic> toJson() { |
1914 Map<String, dynamic> result = {}; | 2032 Map<String, dynamic> result = {}; |
1915 result["subscriptions"] = subscriptions.map((GeneralAnalysisService value) =
> value.toJson()).toList(); | 2033 result["subscriptions"] = subscriptions |
| 2034 .map((GeneralAnalysisService value) => value.toJson()) |
| 2035 .toList(); |
1916 return result; | 2036 return result; |
1917 } | 2037 } |
1918 | 2038 |
1919 Request toRequest(String id) { | 2039 Request toRequest(String id) { |
1920 return new Request(id, "analysis.setGeneralSubscriptions", toJson()); | 2040 return new Request(id, "analysis.setGeneralSubscriptions", toJson()); |
1921 } | 2041 } |
1922 | 2042 |
1923 @override | 2043 @override |
1924 String toString() => JSON.encode(toJson()); | 2044 String toString() => JSON.encode(toJson()); |
1925 | 2045 |
1926 @override | 2046 @override |
1927 bool operator==(other) { | 2047 bool operator ==(other) { |
1928 if (other is AnalysisSetGeneralSubscriptionsParams) { | 2048 if (other is AnalysisSetGeneralSubscriptionsParams) { |
1929 return listEqual(subscriptions, other.subscriptions, (GeneralAnalysisServi
ce a, GeneralAnalysisService b) => a == b); | 2049 return listEqual(subscriptions, other.subscriptions, |
| 2050 (GeneralAnalysisService a, GeneralAnalysisService b) => a == b); |
1930 } | 2051 } |
1931 return false; | 2052 return false; |
1932 } | 2053 } |
1933 | 2054 |
1934 @override | 2055 @override |
1935 int get hashCode { | 2056 int get hashCode { |
1936 int hash = 0; | 2057 int hash = 0; |
1937 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 2058 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
1938 return JenkinsSmiHash.finish(hash); | 2059 return JenkinsSmiHash.finish(hash); |
1939 } | 2060 } |
1940 } | 2061 } |
| 2062 |
1941 /** | 2063 /** |
1942 * analysis.setGeneralSubscriptions result | 2064 * analysis.setGeneralSubscriptions result |
1943 * | 2065 * |
1944 * Clients may not extend, implement or mix-in this class. | 2066 * Clients may not extend, implement or mix-in this class. |
1945 */ | 2067 */ |
1946 class AnalysisSetGeneralSubscriptionsResult { | 2068 class AnalysisSetGeneralSubscriptionsResult { |
1947 Response toResponse(String id) { | 2069 Response toResponse(String id) { |
1948 return new Response(id, result: null); | 2070 return new Response(id, result: null); |
1949 } | 2071 } |
1950 | 2072 |
1951 @override | 2073 @override |
1952 bool operator==(other) { | 2074 bool operator ==(other) { |
1953 if (other is AnalysisSetGeneralSubscriptionsResult) { | 2075 if (other is AnalysisSetGeneralSubscriptionsResult) { |
1954 return true; | 2076 return true; |
1955 } | 2077 } |
1956 return false; | 2078 return false; |
1957 } | 2079 } |
1958 | 2080 |
1959 @override | 2081 @override |
1960 int get hashCode { | 2082 int get hashCode { |
1961 return 386759562; | 2083 return 386759562; |
1962 } | 2084 } |
(...skipping 21 matching lines...) Expand all Loading... |
1984 */ | 2106 */ |
1985 void set files(List<String> value) { | 2107 void set files(List<String> value) { |
1986 assert(value != null); | 2108 assert(value != null); |
1987 this._files = value; | 2109 this._files = value; |
1988 } | 2110 } |
1989 | 2111 |
1990 AnalysisSetPriorityFilesParams(List<String> files) { | 2112 AnalysisSetPriorityFilesParams(List<String> files) { |
1991 this.files = files; | 2113 this.files = files; |
1992 } | 2114 } |
1993 | 2115 |
1994 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 2116 factory AnalysisSetPriorityFilesParams.fromJson( |
| 2117 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
1995 if (json == null) { | 2118 if (json == null) { |
1996 json = {}; | 2119 json = {}; |
1997 } | 2120 } |
1998 if (json is Map) { | 2121 if (json is Map) { |
1999 List<String> files; | 2122 List<String> files; |
2000 if (json.containsKey("files")) { | 2123 if (json.containsKey("files")) { |
2001 files = jsonDecoder.decodeList(jsonPath + ".files", json["files"], jsonD
ecoder.decodeString); | 2124 files = jsonDecoder.decodeList( |
| 2125 jsonPath + ".files", json["files"], jsonDecoder.decodeString); |
2002 } else { | 2126 } else { |
2003 throw jsonDecoder.missingKey(jsonPath, "files"); | 2127 throw jsonDecoder.missingKey(jsonPath, "files"); |
2004 } | 2128 } |
2005 return new AnalysisSetPriorityFilesParams(files); | 2129 return new AnalysisSetPriorityFilesParams(files); |
2006 } else { | 2130 } else { |
2007 throw jsonDecoder.mismatch(jsonPath, "analysis.setPriorityFiles params", j
son); | 2131 throw jsonDecoder.mismatch( |
| 2132 jsonPath, "analysis.setPriorityFiles params", json); |
2008 } | 2133 } |
2009 } | 2134 } |
2010 | 2135 |
2011 factory AnalysisSetPriorityFilesParams.fromRequest(Request request) { | 2136 factory AnalysisSetPriorityFilesParams.fromRequest(Request request) { |
2012 return new AnalysisSetPriorityFilesParams.fromJson( | 2137 return new AnalysisSetPriorityFilesParams.fromJson( |
2013 new RequestDecoder(request), "params", request._params); | 2138 new RequestDecoder(request), "params", request._params); |
2014 } | 2139 } |
2015 | 2140 |
2016 Map<String, dynamic> toJson() { | 2141 Map<String, dynamic> toJson() { |
2017 Map<String, dynamic> result = {}; | 2142 Map<String, dynamic> result = {}; |
2018 result["files"] = files; | 2143 result["files"] = files; |
2019 return result; | 2144 return result; |
2020 } | 2145 } |
2021 | 2146 |
2022 Request toRequest(String id) { | 2147 Request toRequest(String id) { |
2023 return new Request(id, "analysis.setPriorityFiles", toJson()); | 2148 return new Request(id, "analysis.setPriorityFiles", toJson()); |
2024 } | 2149 } |
2025 | 2150 |
2026 @override | 2151 @override |
2027 String toString() => JSON.encode(toJson()); | 2152 String toString() => JSON.encode(toJson()); |
2028 | 2153 |
2029 @override | 2154 @override |
2030 bool operator==(other) { | 2155 bool operator ==(other) { |
2031 if (other is AnalysisSetPriorityFilesParams) { | 2156 if (other is AnalysisSetPriorityFilesParams) { |
2032 return listEqual(files, other.files, (String a, String b) => a == b); | 2157 return listEqual(files, other.files, (String a, String b) => a == b); |
2033 } | 2158 } |
2034 return false; | 2159 return false; |
2035 } | 2160 } |
2036 | 2161 |
2037 @override | 2162 @override |
2038 int get hashCode { | 2163 int get hashCode { |
2039 int hash = 0; | 2164 int hash = 0; |
2040 hash = JenkinsSmiHash.combine(hash, files.hashCode); | 2165 hash = JenkinsSmiHash.combine(hash, files.hashCode); |
2041 return JenkinsSmiHash.finish(hash); | 2166 return JenkinsSmiHash.finish(hash); |
2042 } | 2167 } |
2043 } | 2168 } |
| 2169 |
2044 /** | 2170 /** |
2045 * analysis.setPriorityFiles result | 2171 * analysis.setPriorityFiles result |
2046 * | 2172 * |
2047 * Clients may not extend, implement or mix-in this class. | 2173 * Clients may not extend, implement or mix-in this class. |
2048 */ | 2174 */ |
2049 class AnalysisSetPriorityFilesResult { | 2175 class AnalysisSetPriorityFilesResult { |
2050 Response toResponse(String id) { | 2176 Response toResponse(String id) { |
2051 return new Response(id, result: null); | 2177 return new Response(id, result: null); |
2052 } | 2178 } |
2053 | 2179 |
2054 @override | 2180 @override |
2055 bool operator==(other) { | 2181 bool operator ==(other) { |
2056 if (other is AnalysisSetPriorityFilesResult) { | 2182 if (other is AnalysisSetPriorityFilesResult) { |
2057 return true; | 2183 return true; |
2058 } | 2184 } |
2059 return false; | 2185 return false; |
2060 } | 2186 } |
2061 | 2187 |
2062 @override | 2188 @override |
2063 int get hashCode { | 2189 int get hashCode { |
2064 return 330050055; | 2190 return 330050055; |
2065 } | 2191 } |
(...skipping 19 matching lines...) Expand all Loading... |
2085 | 2211 |
2086 /** | 2212 /** |
2087 * A table mapping services to a list of the files being subscribed to the | 2213 * A table mapping services to a list of the files being subscribed to the |
2088 * service. | 2214 * service. |
2089 */ | 2215 */ |
2090 void set subscriptions(Map<AnalysisService, List<String>> value) { | 2216 void set subscriptions(Map<AnalysisService, List<String>> value) { |
2091 assert(value != null); | 2217 assert(value != null); |
2092 this._subscriptions = value; | 2218 this._subscriptions = value; |
2093 } | 2219 } |
2094 | 2220 |
2095 AnalysisSetSubscriptionsParams(Map<AnalysisService, List<String>> subscription
s) { | 2221 AnalysisSetSubscriptionsParams( |
| 2222 Map<AnalysisService, List<String>> subscriptions) { |
2096 this.subscriptions = subscriptions; | 2223 this.subscriptions = subscriptions; |
2097 } | 2224 } |
2098 | 2225 |
2099 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 2226 factory AnalysisSetSubscriptionsParams.fromJson( |
| 2227 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2100 if (json == null) { | 2228 if (json == null) { |
2101 json = {}; | 2229 json = {}; |
2102 } | 2230 } |
2103 if (json is Map) { | 2231 if (json is Map) { |
2104 Map<AnalysisService, List<String>> subscriptions; | 2232 Map<AnalysisService, List<String>> subscriptions; |
2105 if (json.containsKey("subscriptions")) { | 2233 if (json.containsKey("subscriptions")) { |
2106 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)); | 2234 subscriptions = jsonDecoder.decodeMap( |
| 2235 jsonPath + ".subscriptions", json["subscriptions"], |
| 2236 keyDecoder: (String jsonPath, Object json) => |
| 2237 new AnalysisService.fromJson(jsonDecoder, jsonPath, json), |
| 2238 valueDecoder: (String jsonPath, Object json) => jsonDecoder |
| 2239 .decodeList(jsonPath, json, jsonDecoder.decodeString)); |
2107 } else { | 2240 } else { |
2108 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 2241 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
2109 } | 2242 } |
2110 return new AnalysisSetSubscriptionsParams(subscriptions); | 2243 return new AnalysisSetSubscriptionsParams(subscriptions); |
2111 } else { | 2244 } else { |
2112 throw jsonDecoder.mismatch(jsonPath, "analysis.setSubscriptions params", j
son); | 2245 throw jsonDecoder.mismatch( |
| 2246 jsonPath, "analysis.setSubscriptions params", json); |
2113 } | 2247 } |
2114 } | 2248 } |
2115 | 2249 |
2116 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) { | 2250 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) { |
2117 return new AnalysisSetSubscriptionsParams.fromJson( | 2251 return new AnalysisSetSubscriptionsParams.fromJson( |
2118 new RequestDecoder(request), "params", request._params); | 2252 new RequestDecoder(request), "params", request._params); |
2119 } | 2253 } |
2120 | 2254 |
2121 Map<String, dynamic> toJson() { | 2255 Map<String, dynamic> toJson() { |
2122 Map<String, dynamic> result = {}; | 2256 Map<String, dynamic> result = {}; |
2123 result["subscriptions"] = mapMap(subscriptions, keyCallback: (AnalysisServic
e value) => value.toJson()); | 2257 result["subscriptions"] = mapMap(subscriptions, |
| 2258 keyCallback: (AnalysisService value) => value.toJson()); |
2124 return result; | 2259 return result; |
2125 } | 2260 } |
2126 | 2261 |
2127 Request toRequest(String id) { | 2262 Request toRequest(String id) { |
2128 return new Request(id, "analysis.setSubscriptions", toJson()); | 2263 return new Request(id, "analysis.setSubscriptions", toJson()); |
2129 } | 2264 } |
2130 | 2265 |
2131 @override | 2266 @override |
2132 String toString() => JSON.encode(toJson()); | 2267 String toString() => JSON.encode(toJson()); |
2133 | 2268 |
2134 @override | 2269 @override |
2135 bool operator==(other) { | 2270 bool operator ==(other) { |
2136 if (other is AnalysisSetSubscriptionsParams) { | 2271 if (other is AnalysisSetSubscriptionsParams) { |
2137 return mapEqual(subscriptions, other.subscriptions, (List<String> a, List<
String> b) => listEqual(a, b, (String a, String b) => a == b)); | 2272 return mapEqual( |
| 2273 subscriptions, |
| 2274 other.subscriptions, |
| 2275 (List<String> a, List<String> b) => |
| 2276 listEqual(a, b, (String a, String b) => a == b)); |
2138 } | 2277 } |
2139 return false; | 2278 return false; |
2140 } | 2279 } |
2141 | 2280 |
2142 @override | 2281 @override |
2143 int get hashCode { | 2282 int get hashCode { |
2144 int hash = 0; | 2283 int hash = 0; |
2145 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 2284 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
2146 return JenkinsSmiHash.finish(hash); | 2285 return JenkinsSmiHash.finish(hash); |
2147 } | 2286 } |
2148 } | 2287 } |
| 2288 |
2149 /** | 2289 /** |
2150 * analysis.setSubscriptions result | 2290 * analysis.setSubscriptions result |
2151 * | 2291 * |
2152 * Clients may not extend, implement or mix-in this class. | 2292 * Clients may not extend, implement or mix-in this class. |
2153 */ | 2293 */ |
2154 class AnalysisSetSubscriptionsResult { | 2294 class AnalysisSetSubscriptionsResult { |
2155 Response toResponse(String id) { | 2295 Response toResponse(String id) { |
2156 return new Response(id, result: null); | 2296 return new Response(id, result: null); |
2157 } | 2297 } |
2158 | 2298 |
2159 @override | 2299 @override |
2160 bool operator==(other) { | 2300 bool operator ==(other) { |
2161 if (other is AnalysisSetSubscriptionsResult) { | 2301 if (other is AnalysisSetSubscriptionsResult) { |
2162 return true; | 2302 return true; |
2163 } | 2303 } |
2164 return false; | 2304 return false; |
2165 } | 2305 } |
2166 | 2306 |
2167 @override | 2307 @override |
2168 int get hashCode { | 2308 int get hashCode { |
2169 return 218088493; | 2309 return 218088493; |
2170 } | 2310 } |
(...skipping 23 matching lines...) Expand all Loading... |
2194 */ | 2334 */ |
2195 void set files(Map<String, dynamic> value) { | 2335 void set files(Map<String, dynamic> value) { |
2196 assert(value != null); | 2336 assert(value != null); |
2197 this._files = value; | 2337 this._files = value; |
2198 } | 2338 } |
2199 | 2339 |
2200 AnalysisUpdateContentParams(Map<String, dynamic> files) { | 2340 AnalysisUpdateContentParams(Map<String, dynamic> files) { |
2201 this.files = files; | 2341 this.files = files; |
2202 } | 2342 } |
2203 | 2343 |
2204 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 2344 factory AnalysisUpdateContentParams.fromJson( |
| 2345 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2205 if (json == null) { | 2346 if (json == null) { |
2206 json = {}; | 2347 json = {}; |
2207 } | 2348 } |
2208 if (json is Map) { | 2349 if (json is Map) { |
2209 Map<String, dynamic> files; | 2350 Map<String, dynamic> files; |
2210 if (json.containsKey("files")) { | 2351 if (json.containsKey("files")) { |
2211 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)})); | 2352 files = jsonDecoder.decodeMap(jsonPath + ".files", json["files"], |
| 2353 valueDecoder: (String jsonPath, Object json) => |
| 2354 jsonDecoder.decodeUnion(jsonPath, json, "type", { |
| 2355 "add": (String jsonPath, Object json) => |
| 2356 new AddContentOverlay.fromJson( |
| 2357 jsonDecoder, jsonPath, json), |
| 2358 "change": (String jsonPath, Object json) => |
| 2359 new ChangeContentOverlay.fromJson( |
| 2360 jsonDecoder, jsonPath, json), |
| 2361 "remove": (String jsonPath, Object json) => |
| 2362 new RemoveContentOverlay.fromJson( |
| 2363 jsonDecoder, jsonPath, json) |
| 2364 })); |
2212 } else { | 2365 } else { |
2213 throw jsonDecoder.missingKey(jsonPath, "files"); | 2366 throw jsonDecoder.missingKey(jsonPath, "files"); |
2214 } | 2367 } |
2215 return new AnalysisUpdateContentParams(files); | 2368 return new AnalysisUpdateContentParams(files); |
2216 } else { | 2369 } else { |
2217 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent params", json
); | 2370 throw jsonDecoder.mismatch( |
| 2371 jsonPath, "analysis.updateContent params", json); |
2218 } | 2372 } |
2219 } | 2373 } |
2220 | 2374 |
2221 factory AnalysisUpdateContentParams.fromRequest(Request request) { | 2375 factory AnalysisUpdateContentParams.fromRequest(Request request) { |
2222 return new AnalysisUpdateContentParams.fromJson( | 2376 return new AnalysisUpdateContentParams.fromJson( |
2223 new RequestDecoder(request), "params", request._params); | 2377 new RequestDecoder(request), "params", request._params); |
2224 } | 2378 } |
2225 | 2379 |
2226 Map<String, dynamic> toJson() { | 2380 Map<String, dynamic> toJson() { |
2227 Map<String, dynamic> result = {}; | 2381 Map<String, dynamic> result = {}; |
2228 result["files"] = mapMap(files, valueCallback: (dynamic value) => value.toJs
on()); | 2382 result["files"] = |
| 2383 mapMap(files, valueCallback: (dynamic value) => value.toJson()); |
2229 return result; | 2384 return result; |
2230 } | 2385 } |
2231 | 2386 |
2232 Request toRequest(String id) { | 2387 Request toRequest(String id) { |
2233 return new Request(id, "analysis.updateContent", toJson()); | 2388 return new Request(id, "analysis.updateContent", toJson()); |
2234 } | 2389 } |
2235 | 2390 |
2236 @override | 2391 @override |
2237 String toString() => JSON.encode(toJson()); | 2392 String toString() => JSON.encode(toJson()); |
2238 | 2393 |
2239 @override | 2394 @override |
2240 bool operator==(other) { | 2395 bool operator ==(other) { |
2241 if (other is AnalysisUpdateContentParams) { | 2396 if (other is AnalysisUpdateContentParams) { |
2242 return mapEqual(files, other.files, (dynamic a, dynamic b) => a == b); | 2397 return mapEqual(files, other.files, (dynamic a, dynamic b) => a == b); |
2243 } | 2398 } |
2244 return false; | 2399 return false; |
2245 } | 2400 } |
2246 | 2401 |
2247 @override | 2402 @override |
2248 int get hashCode { | 2403 int get hashCode { |
2249 int hash = 0; | 2404 int hash = 0; |
2250 hash = JenkinsSmiHash.combine(hash, files.hashCode); | 2405 hash = JenkinsSmiHash.combine(hash, files.hashCode); |
2251 return JenkinsSmiHash.finish(hash); | 2406 return JenkinsSmiHash.finish(hash); |
2252 } | 2407 } |
2253 } | 2408 } |
2254 | 2409 |
2255 /** | 2410 /** |
2256 * analysis.updateContent result | 2411 * analysis.updateContent result |
2257 * | 2412 * |
2258 * { | 2413 * { |
2259 * } | 2414 * } |
2260 * | 2415 * |
2261 * Clients may not extend, implement or mix-in this class. | 2416 * Clients may not extend, implement or mix-in this class. |
2262 */ | 2417 */ |
2263 class AnalysisUpdateContentResult implements HasToJson { | 2418 class AnalysisUpdateContentResult implements HasToJson { |
2264 AnalysisUpdateContentResult(); | 2419 AnalysisUpdateContentResult(); |
2265 | 2420 |
2266 factory AnalysisUpdateContentResult.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 2421 factory AnalysisUpdateContentResult.fromJson( |
| 2422 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2267 if (json == null) { | 2423 if (json == null) { |
2268 json = {}; | 2424 json = {}; |
2269 } | 2425 } |
2270 if (json is Map) { | 2426 if (json is Map) { |
2271 return new AnalysisUpdateContentResult(); | 2427 return new AnalysisUpdateContentResult(); |
2272 } else { | 2428 } else { |
2273 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent result", json
); | 2429 throw jsonDecoder.mismatch( |
| 2430 jsonPath, "analysis.updateContent result", json); |
2274 } | 2431 } |
2275 } | 2432 } |
2276 | 2433 |
2277 factory AnalysisUpdateContentResult.fromResponse(Response response) { | 2434 factory AnalysisUpdateContentResult.fromResponse(Response response) { |
2278 return new AnalysisUpdateContentResult.fromJson( | 2435 return new AnalysisUpdateContentResult.fromJson( |
2279 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 2436 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 2437 "result", |
| 2438 response._result); |
2280 } | 2439 } |
2281 | 2440 |
2282 Map<String, dynamic> toJson() { | 2441 Map<String, dynamic> toJson() { |
2283 Map<String, dynamic> result = {}; | 2442 Map<String, dynamic> result = {}; |
2284 return result; | 2443 return result; |
2285 } | 2444 } |
2286 | 2445 |
2287 Response toResponse(String id) { | 2446 Response toResponse(String id) { |
2288 return new Response(id, result: toJson()); | 2447 return new Response(id, result: toJson()); |
2289 } | 2448 } |
2290 | 2449 |
2291 @override | 2450 @override |
2292 String toString() => JSON.encode(toJson()); | 2451 String toString() => JSON.encode(toJson()); |
2293 | 2452 |
2294 @override | 2453 @override |
2295 bool operator==(other) { | 2454 bool operator ==(other) { |
2296 if (other is AnalysisUpdateContentResult) { | 2455 if (other is AnalysisUpdateContentResult) { |
2297 return true; | 2456 return true; |
2298 } | 2457 } |
2299 return false; | 2458 return false; |
2300 } | 2459 } |
2301 | 2460 |
2302 @override | 2461 @override |
2303 int get hashCode { | 2462 int get hashCode { |
2304 int hash = 0; | 2463 int hash = 0; |
2305 return JenkinsSmiHash.finish(hash); | 2464 return JenkinsSmiHash.finish(hash); |
(...skipping 22 matching lines...) Expand all Loading... |
2328 */ | 2487 */ |
2329 void set options(AnalysisOptions value) { | 2488 void set options(AnalysisOptions value) { |
2330 assert(value != null); | 2489 assert(value != null); |
2331 this._options = value; | 2490 this._options = value; |
2332 } | 2491 } |
2333 | 2492 |
2334 AnalysisUpdateOptionsParams(AnalysisOptions options) { | 2493 AnalysisUpdateOptionsParams(AnalysisOptions options) { |
2335 this.options = options; | 2494 this.options = options; |
2336 } | 2495 } |
2337 | 2496 |
2338 factory AnalysisUpdateOptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 2497 factory AnalysisUpdateOptionsParams.fromJson( |
| 2498 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2339 if (json == null) { | 2499 if (json == null) { |
2340 json = {}; | 2500 json = {}; |
2341 } | 2501 } |
2342 if (json is Map) { | 2502 if (json is Map) { |
2343 AnalysisOptions options; | 2503 AnalysisOptions options; |
2344 if (json.containsKey("options")) { | 2504 if (json.containsKey("options")) { |
2345 options = new AnalysisOptions.fromJson(jsonDecoder, jsonPath + ".options
", json["options"]); | 2505 options = new AnalysisOptions.fromJson( |
| 2506 jsonDecoder, jsonPath + ".options", json["options"]); |
2346 } else { | 2507 } else { |
2347 throw jsonDecoder.missingKey(jsonPath, "options"); | 2508 throw jsonDecoder.missingKey(jsonPath, "options"); |
2348 } | 2509 } |
2349 return new AnalysisUpdateOptionsParams(options); | 2510 return new AnalysisUpdateOptionsParams(options); |
2350 } else { | 2511 } else { |
2351 throw jsonDecoder.mismatch(jsonPath, "analysis.updateOptions params", json
); | 2512 throw jsonDecoder.mismatch( |
| 2513 jsonPath, "analysis.updateOptions params", json); |
2352 } | 2514 } |
2353 } | 2515 } |
2354 | 2516 |
2355 factory AnalysisUpdateOptionsParams.fromRequest(Request request) { | 2517 factory AnalysisUpdateOptionsParams.fromRequest(Request request) { |
2356 return new AnalysisUpdateOptionsParams.fromJson( | 2518 return new AnalysisUpdateOptionsParams.fromJson( |
2357 new RequestDecoder(request), "params", request._params); | 2519 new RequestDecoder(request), "params", request._params); |
2358 } | 2520 } |
2359 | 2521 |
2360 Map<String, dynamic> toJson() { | 2522 Map<String, dynamic> toJson() { |
2361 Map<String, dynamic> result = {}; | 2523 Map<String, dynamic> result = {}; |
2362 result["options"] = options.toJson(); | 2524 result["options"] = options.toJson(); |
2363 return result; | 2525 return result; |
2364 } | 2526 } |
2365 | 2527 |
2366 Request toRequest(String id) { | 2528 Request toRequest(String id) { |
2367 return new Request(id, "analysis.updateOptions", toJson()); | 2529 return new Request(id, "analysis.updateOptions", toJson()); |
2368 } | 2530 } |
2369 | 2531 |
2370 @override | 2532 @override |
2371 String toString() => JSON.encode(toJson()); | 2533 String toString() => JSON.encode(toJson()); |
2372 | 2534 |
2373 @override | 2535 @override |
2374 bool operator==(other) { | 2536 bool operator ==(other) { |
2375 if (other is AnalysisUpdateOptionsParams) { | 2537 if (other is AnalysisUpdateOptionsParams) { |
2376 return options == other.options; | 2538 return options == other.options; |
2377 } | 2539 } |
2378 return false; | 2540 return false; |
2379 } | 2541 } |
2380 | 2542 |
2381 @override | 2543 @override |
2382 int get hashCode { | 2544 int get hashCode { |
2383 int hash = 0; | 2545 int hash = 0; |
2384 hash = JenkinsSmiHash.combine(hash, options.hashCode); | 2546 hash = JenkinsSmiHash.combine(hash, options.hashCode); |
2385 return JenkinsSmiHash.finish(hash); | 2547 return JenkinsSmiHash.finish(hash); |
2386 } | 2548 } |
2387 } | 2549 } |
| 2550 |
2388 /** | 2551 /** |
2389 * analysis.updateOptions result | 2552 * analysis.updateOptions result |
2390 * | 2553 * |
2391 * Clients may not extend, implement or mix-in this class. | 2554 * Clients may not extend, implement or mix-in this class. |
2392 */ | 2555 */ |
2393 class AnalysisUpdateOptionsResult { | 2556 class AnalysisUpdateOptionsResult { |
2394 Response toResponse(String id) { | 2557 Response toResponse(String id) { |
2395 return new Response(id, result: null); | 2558 return new Response(id, result: null); |
2396 } | 2559 } |
2397 | 2560 |
2398 @override | 2561 @override |
2399 bool operator==(other) { | 2562 bool operator ==(other) { |
2400 if (other is AnalysisUpdateOptionsResult) { | 2563 if (other is AnalysisUpdateOptionsResult) { |
2401 return true; | 2564 return true; |
2402 } | 2565 } |
2403 return false; | 2566 return false; |
2404 } | 2567 } |
2405 | 2568 |
2406 @override | 2569 @override |
2407 int get hashCode { | 2570 int get hashCode { |
2408 return 179689467; | 2571 return 179689467; |
2409 } | 2572 } |
(...skipping 21 matching lines...) Expand all Loading... |
2431 */ | 2594 */ |
2432 void set directories(List<String> value) { | 2595 void set directories(List<String> value) { |
2433 assert(value != null); | 2596 assert(value != null); |
2434 this._directories = value; | 2597 this._directories = value; |
2435 } | 2598 } |
2436 | 2599 |
2437 AnalysisAnalyzedFilesParams(List<String> directories) { | 2600 AnalysisAnalyzedFilesParams(List<String> directories) { |
2438 this.directories = directories; | 2601 this.directories = directories; |
2439 } | 2602 } |
2440 | 2603 |
2441 factory AnalysisAnalyzedFilesParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 2604 factory AnalysisAnalyzedFilesParams.fromJson( |
| 2605 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2442 if (json == null) { | 2606 if (json == null) { |
2443 json = {}; | 2607 json = {}; |
2444 } | 2608 } |
2445 if (json is Map) { | 2609 if (json is Map) { |
2446 List<String> directories; | 2610 List<String> directories; |
2447 if (json.containsKey("directories")) { | 2611 if (json.containsKey("directories")) { |
2448 directories = jsonDecoder.decodeList(jsonPath + ".directories", json["di
rectories"], jsonDecoder.decodeString); | 2612 directories = jsonDecoder.decodeList(jsonPath + ".directories", |
| 2613 json["directories"], jsonDecoder.decodeString); |
2449 } else { | 2614 } else { |
2450 throw jsonDecoder.missingKey(jsonPath, "directories"); | 2615 throw jsonDecoder.missingKey(jsonPath, "directories"); |
2451 } | 2616 } |
2452 return new AnalysisAnalyzedFilesParams(directories); | 2617 return new AnalysisAnalyzedFilesParams(directories); |
2453 } else { | 2618 } else { |
2454 throw jsonDecoder.mismatch(jsonPath, "analysis.analyzedFiles params", json
); | 2619 throw jsonDecoder.mismatch( |
| 2620 jsonPath, "analysis.analyzedFiles params", json); |
2455 } | 2621 } |
2456 } | 2622 } |
2457 | 2623 |
2458 factory AnalysisAnalyzedFilesParams.fromNotification(Notification notification
) { | 2624 factory AnalysisAnalyzedFilesParams.fromNotification( |
| 2625 Notification notification) { |
2459 return new AnalysisAnalyzedFilesParams.fromJson( | 2626 return new AnalysisAnalyzedFilesParams.fromJson( |
2460 new ResponseDecoder(null), "params", notification._params); | 2627 new ResponseDecoder(null), "params", notification._params); |
2461 } | 2628 } |
2462 | 2629 |
2463 Map<String, dynamic> toJson() { | 2630 Map<String, dynamic> toJson() { |
2464 Map<String, dynamic> result = {}; | 2631 Map<String, dynamic> result = {}; |
2465 result["directories"] = directories; | 2632 result["directories"] = directories; |
2466 return result; | 2633 return result; |
2467 } | 2634 } |
2468 | 2635 |
2469 Notification toNotification() { | 2636 Notification toNotification() { |
2470 return new Notification("analysis.analyzedFiles", toJson()); | 2637 return new Notification("analysis.analyzedFiles", toJson()); |
2471 } | 2638 } |
2472 | 2639 |
2473 @override | 2640 @override |
2474 String toString() => JSON.encode(toJson()); | 2641 String toString() => JSON.encode(toJson()); |
2475 | 2642 |
2476 @override | 2643 @override |
2477 bool operator==(other) { | 2644 bool operator ==(other) { |
2478 if (other is AnalysisAnalyzedFilesParams) { | 2645 if (other is AnalysisAnalyzedFilesParams) { |
2479 return listEqual(directories, other.directories, (String a, String b) => a
== b); | 2646 return listEqual( |
| 2647 directories, other.directories, (String a, String b) => a == b); |
2480 } | 2648 } |
2481 return false; | 2649 return false; |
2482 } | 2650 } |
2483 | 2651 |
2484 @override | 2652 @override |
2485 int get hashCode { | 2653 int get hashCode { |
2486 int hash = 0; | 2654 int hash = 0; |
2487 hash = JenkinsSmiHash.combine(hash, directories.hashCode); | 2655 hash = JenkinsSmiHash.combine(hash, directories.hashCode); |
2488 return JenkinsSmiHash.finish(hash); | 2656 return JenkinsSmiHash.finish(hash); |
2489 } | 2657 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2528 void set errors(List<AnalysisError> value) { | 2696 void set errors(List<AnalysisError> value) { |
2529 assert(value != null); | 2697 assert(value != null); |
2530 this._errors = value; | 2698 this._errors = value; |
2531 } | 2699 } |
2532 | 2700 |
2533 AnalysisErrorsParams(String file, List<AnalysisError> errors) { | 2701 AnalysisErrorsParams(String file, List<AnalysisError> errors) { |
2534 this.file = file; | 2702 this.file = file; |
2535 this.errors = errors; | 2703 this.errors = errors; |
2536 } | 2704 } |
2537 | 2705 |
2538 factory AnalysisErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 2706 factory AnalysisErrorsParams.fromJson( |
| 2707 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2539 if (json == null) { | 2708 if (json == null) { |
2540 json = {}; | 2709 json = {}; |
2541 } | 2710 } |
2542 if (json is Map) { | 2711 if (json is Map) { |
2543 String file; | 2712 String file; |
2544 if (json.containsKey("file")) { | 2713 if (json.containsKey("file")) { |
2545 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 2714 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2546 } else { | 2715 } else { |
2547 throw jsonDecoder.missingKey(jsonPath, "file"); | 2716 throw jsonDecoder.missingKey(jsonPath, "file"); |
2548 } | 2717 } |
2549 List<AnalysisError> errors; | 2718 List<AnalysisError> errors; |
2550 if (json.containsKey("errors")) { | 2719 if (json.containsKey("errors")) { |
2551 errors = jsonDecoder.decodeList(jsonPath + ".errors", json["errors"], (S
tring jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPath
, json)); | 2720 errors = jsonDecoder.decodeList( |
| 2721 jsonPath + ".errors", |
| 2722 json["errors"], |
| 2723 (String jsonPath, Object json) => |
| 2724 new AnalysisError.fromJson(jsonDecoder, jsonPath, json)); |
2552 } else { | 2725 } else { |
2553 throw jsonDecoder.missingKey(jsonPath, "errors"); | 2726 throw jsonDecoder.missingKey(jsonPath, "errors"); |
2554 } | 2727 } |
2555 return new AnalysisErrorsParams(file, errors); | 2728 return new AnalysisErrorsParams(file, errors); |
2556 } else { | 2729 } else { |
2557 throw jsonDecoder.mismatch(jsonPath, "analysis.errors params", json); | 2730 throw jsonDecoder.mismatch(jsonPath, "analysis.errors params", json); |
2558 } | 2731 } |
2559 } | 2732 } |
2560 | 2733 |
2561 factory AnalysisErrorsParams.fromNotification(Notification notification) { | 2734 factory AnalysisErrorsParams.fromNotification(Notification notification) { |
2562 return new AnalysisErrorsParams.fromJson( | 2735 return new AnalysisErrorsParams.fromJson( |
2563 new ResponseDecoder(null), "params", notification._params); | 2736 new ResponseDecoder(null), "params", notification._params); |
2564 } | 2737 } |
2565 | 2738 |
2566 Map<String, dynamic> toJson() { | 2739 Map<String, dynamic> toJson() { |
2567 Map<String, dynamic> result = {}; | 2740 Map<String, dynamic> result = {}; |
2568 result["file"] = file; | 2741 result["file"] = file; |
2569 result["errors"] = errors.map((AnalysisError value) => value.toJson()).toLis
t(); | 2742 result["errors"] = |
| 2743 errors.map((AnalysisError value) => value.toJson()).toList(); |
2570 return result; | 2744 return result; |
2571 } | 2745 } |
2572 | 2746 |
2573 Notification toNotification() { | 2747 Notification toNotification() { |
2574 return new Notification("analysis.errors", toJson()); | 2748 return new Notification("analysis.errors", toJson()); |
2575 } | 2749 } |
2576 | 2750 |
2577 @override | 2751 @override |
2578 String toString() => JSON.encode(toJson()); | 2752 String toString() => JSON.encode(toJson()); |
2579 | 2753 |
2580 @override | 2754 @override |
2581 bool operator==(other) { | 2755 bool operator ==(other) { |
2582 if (other is AnalysisErrorsParams) { | 2756 if (other is AnalysisErrorsParams) { |
2583 return file == other.file && | 2757 return file == other.file && |
2584 listEqual(errors, other.errors, (AnalysisError a, AnalysisError b) =>
a == b); | 2758 listEqual(errors, other.errors, |
| 2759 (AnalysisError a, AnalysisError b) => a == b); |
2585 } | 2760 } |
2586 return false; | 2761 return false; |
2587 } | 2762 } |
2588 | 2763 |
2589 @override | 2764 @override |
2590 int get hashCode { | 2765 int get hashCode { |
2591 int hash = 0; | 2766 int hash = 0; |
2592 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 2767 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
2593 hash = JenkinsSmiHash.combine(hash, errors.hashCode); | 2768 hash = JenkinsSmiHash.combine(hash, errors.hashCode); |
2594 return JenkinsSmiHash.finish(hash); | 2769 return JenkinsSmiHash.finish(hash); |
(...skipping 22 matching lines...) Expand all Loading... |
2617 */ | 2792 */ |
2618 void set files(List<String> value) { | 2793 void set files(List<String> value) { |
2619 assert(value != null); | 2794 assert(value != null); |
2620 this._files = value; | 2795 this._files = value; |
2621 } | 2796 } |
2622 | 2797 |
2623 AnalysisFlushResultsParams(List<String> files) { | 2798 AnalysisFlushResultsParams(List<String> files) { |
2624 this.files = files; | 2799 this.files = files; |
2625 } | 2800 } |
2626 | 2801 |
2627 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 2802 factory AnalysisFlushResultsParams.fromJson( |
| 2803 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2628 if (json == null) { | 2804 if (json == null) { |
2629 json = {}; | 2805 json = {}; |
2630 } | 2806 } |
2631 if (json is Map) { | 2807 if (json is Map) { |
2632 List<String> files; | 2808 List<String> files; |
2633 if (json.containsKey("files")) { | 2809 if (json.containsKey("files")) { |
2634 files = jsonDecoder.decodeList(jsonPath + ".files", json["files"], jsonD
ecoder.decodeString); | 2810 files = jsonDecoder.decodeList( |
| 2811 jsonPath + ".files", json["files"], jsonDecoder.decodeString); |
2635 } else { | 2812 } else { |
2636 throw jsonDecoder.missingKey(jsonPath, "files"); | 2813 throw jsonDecoder.missingKey(jsonPath, "files"); |
2637 } | 2814 } |
2638 return new AnalysisFlushResultsParams(files); | 2815 return new AnalysisFlushResultsParams(files); |
2639 } else { | 2816 } else { |
2640 throw jsonDecoder.mismatch(jsonPath, "analysis.flushResults params", json)
; | 2817 throw jsonDecoder.mismatch( |
| 2818 jsonPath, "analysis.flushResults params", json); |
2641 } | 2819 } |
2642 } | 2820 } |
2643 | 2821 |
2644 factory AnalysisFlushResultsParams.fromNotification(Notification notification)
{ | 2822 factory AnalysisFlushResultsParams.fromNotification( |
| 2823 Notification notification) { |
2645 return new AnalysisFlushResultsParams.fromJson( | 2824 return new AnalysisFlushResultsParams.fromJson( |
2646 new ResponseDecoder(null), "params", notification._params); | 2825 new ResponseDecoder(null), "params", notification._params); |
2647 } | 2826 } |
2648 | 2827 |
2649 Map<String, dynamic> toJson() { | 2828 Map<String, dynamic> toJson() { |
2650 Map<String, dynamic> result = {}; | 2829 Map<String, dynamic> result = {}; |
2651 result["files"] = files; | 2830 result["files"] = files; |
2652 return result; | 2831 return result; |
2653 } | 2832 } |
2654 | 2833 |
2655 Notification toNotification() { | 2834 Notification toNotification() { |
2656 return new Notification("analysis.flushResults", toJson()); | 2835 return new Notification("analysis.flushResults", toJson()); |
2657 } | 2836 } |
2658 | 2837 |
2659 @override | 2838 @override |
2660 String toString() => JSON.encode(toJson()); | 2839 String toString() => JSON.encode(toJson()); |
2661 | 2840 |
2662 @override | 2841 @override |
2663 bool operator==(other) { | 2842 bool operator ==(other) { |
2664 if (other is AnalysisFlushResultsParams) { | 2843 if (other is AnalysisFlushResultsParams) { |
2665 return listEqual(files, other.files, (String a, String b) => a == b); | 2844 return listEqual(files, other.files, (String a, String b) => a == b); |
2666 } | 2845 } |
2667 return false; | 2846 return false; |
2668 } | 2847 } |
2669 | 2848 |
2670 @override | 2849 @override |
2671 int get hashCode { | 2850 int get hashCode { |
2672 int hash = 0; | 2851 int hash = 0; |
2673 hash = JenkinsSmiHash.combine(hash, files.hashCode); | 2852 hash = JenkinsSmiHash.combine(hash, files.hashCode); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2714 void set regions(List<FoldingRegion> value) { | 2893 void set regions(List<FoldingRegion> value) { |
2715 assert(value != null); | 2894 assert(value != null); |
2716 this._regions = value; | 2895 this._regions = value; |
2717 } | 2896 } |
2718 | 2897 |
2719 AnalysisFoldingParams(String file, List<FoldingRegion> regions) { | 2898 AnalysisFoldingParams(String file, List<FoldingRegion> regions) { |
2720 this.file = file; | 2899 this.file = file; |
2721 this.regions = regions; | 2900 this.regions = regions; |
2722 } | 2901 } |
2723 | 2902 |
2724 factory AnalysisFoldingParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 2903 factory AnalysisFoldingParams.fromJson( |
| 2904 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2725 if (json == null) { | 2905 if (json == null) { |
2726 json = {}; | 2906 json = {}; |
2727 } | 2907 } |
2728 if (json is Map) { | 2908 if (json is Map) { |
2729 String file; | 2909 String file; |
2730 if (json.containsKey("file")) { | 2910 if (json.containsKey("file")) { |
2731 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 2911 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2732 } else { | 2912 } else { |
2733 throw jsonDecoder.missingKey(jsonPath, "file"); | 2913 throw jsonDecoder.missingKey(jsonPath, "file"); |
2734 } | 2914 } |
2735 List<FoldingRegion> regions; | 2915 List<FoldingRegion> regions; |
2736 if (json.containsKey("regions")) { | 2916 if (json.containsKey("regions")) { |
2737 regions = jsonDecoder.decodeList(jsonPath + ".regions", json["regions"],
(String jsonPath, Object json) => new FoldingRegion.fromJson(jsonDecoder, jsonP
ath, json)); | 2917 regions = jsonDecoder.decodeList( |
| 2918 jsonPath + ".regions", |
| 2919 json["regions"], |
| 2920 (String jsonPath, Object json) => |
| 2921 new FoldingRegion.fromJson(jsonDecoder, jsonPath, json)); |
2738 } else { | 2922 } else { |
2739 throw jsonDecoder.missingKey(jsonPath, "regions"); | 2923 throw jsonDecoder.missingKey(jsonPath, "regions"); |
2740 } | 2924 } |
2741 return new AnalysisFoldingParams(file, regions); | 2925 return new AnalysisFoldingParams(file, regions); |
2742 } else { | 2926 } else { |
2743 throw jsonDecoder.mismatch(jsonPath, "analysis.folding params", json); | 2927 throw jsonDecoder.mismatch(jsonPath, "analysis.folding params", json); |
2744 } | 2928 } |
2745 } | 2929 } |
2746 | 2930 |
2747 factory AnalysisFoldingParams.fromNotification(Notification notification) { | 2931 factory AnalysisFoldingParams.fromNotification(Notification notification) { |
2748 return new AnalysisFoldingParams.fromJson( | 2932 return new AnalysisFoldingParams.fromJson( |
2749 new ResponseDecoder(null), "params", notification._params); | 2933 new ResponseDecoder(null), "params", notification._params); |
2750 } | 2934 } |
2751 | 2935 |
2752 Map<String, dynamic> toJson() { | 2936 Map<String, dynamic> toJson() { |
2753 Map<String, dynamic> result = {}; | 2937 Map<String, dynamic> result = {}; |
2754 result["file"] = file; | 2938 result["file"] = file; |
2755 result["regions"] = regions.map((FoldingRegion value) => value.toJson()).toL
ist(); | 2939 result["regions"] = |
| 2940 regions.map((FoldingRegion value) => value.toJson()).toList(); |
2756 return result; | 2941 return result; |
2757 } | 2942 } |
2758 | 2943 |
2759 Notification toNotification() { | 2944 Notification toNotification() { |
2760 return new Notification("analysis.folding", toJson()); | 2945 return new Notification("analysis.folding", toJson()); |
2761 } | 2946 } |
2762 | 2947 |
2763 @override | 2948 @override |
2764 String toString() => JSON.encode(toJson()); | 2949 String toString() => JSON.encode(toJson()); |
2765 | 2950 |
2766 @override | 2951 @override |
2767 bool operator==(other) { | 2952 bool operator ==(other) { |
2768 if (other is AnalysisFoldingParams) { | 2953 if (other is AnalysisFoldingParams) { |
2769 return file == other.file && | 2954 return file == other.file && |
2770 listEqual(regions, other.regions, (FoldingRegion a, FoldingRegion b) =
> a == b); | 2955 listEqual(regions, other.regions, |
| 2956 (FoldingRegion a, FoldingRegion b) => a == b); |
2771 } | 2957 } |
2772 return false; | 2958 return false; |
2773 } | 2959 } |
2774 | 2960 |
2775 @override | 2961 @override |
2776 int get hashCode { | 2962 int get hashCode { |
2777 int hash = 0; | 2963 int hash = 0; |
2778 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 2964 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
2779 hash = JenkinsSmiHash.combine(hash, regions.hashCode); | 2965 hash = JenkinsSmiHash.combine(hash, regions.hashCode); |
2780 return JenkinsSmiHash.finish(hash); | 2966 return JenkinsSmiHash.finish(hash); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2828 void set regions(List<HighlightRegion> value) { | 3014 void set regions(List<HighlightRegion> value) { |
2829 assert(value != null); | 3015 assert(value != null); |
2830 this._regions = value; | 3016 this._regions = value; |
2831 } | 3017 } |
2832 | 3018 |
2833 AnalysisHighlightsParams(String file, List<HighlightRegion> regions) { | 3019 AnalysisHighlightsParams(String file, List<HighlightRegion> regions) { |
2834 this.file = file; | 3020 this.file = file; |
2835 this.regions = regions; | 3021 this.regions = regions; |
2836 } | 3022 } |
2837 | 3023 |
2838 factory AnalysisHighlightsParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3024 factory AnalysisHighlightsParams.fromJson( |
| 3025 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2839 if (json == null) { | 3026 if (json == null) { |
2840 json = {}; | 3027 json = {}; |
2841 } | 3028 } |
2842 if (json is Map) { | 3029 if (json is Map) { |
2843 String file; | 3030 String file; |
2844 if (json.containsKey("file")) { | 3031 if (json.containsKey("file")) { |
2845 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 3032 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2846 } else { | 3033 } else { |
2847 throw jsonDecoder.missingKey(jsonPath, "file"); | 3034 throw jsonDecoder.missingKey(jsonPath, "file"); |
2848 } | 3035 } |
2849 List<HighlightRegion> regions; | 3036 List<HighlightRegion> regions; |
2850 if (json.containsKey("regions")) { | 3037 if (json.containsKey("regions")) { |
2851 regions = jsonDecoder.decodeList(jsonPath + ".regions", json["regions"],
(String jsonPath, Object json) => new HighlightRegion.fromJson(jsonDecoder, jso
nPath, json)); | 3038 regions = jsonDecoder.decodeList( |
| 3039 jsonPath + ".regions", |
| 3040 json["regions"], |
| 3041 (String jsonPath, Object json) => |
| 3042 new HighlightRegion.fromJson(jsonDecoder, jsonPath, json)); |
2852 } else { | 3043 } else { |
2853 throw jsonDecoder.missingKey(jsonPath, "regions"); | 3044 throw jsonDecoder.missingKey(jsonPath, "regions"); |
2854 } | 3045 } |
2855 return new AnalysisHighlightsParams(file, regions); | 3046 return new AnalysisHighlightsParams(file, regions); |
2856 } else { | 3047 } else { |
2857 throw jsonDecoder.mismatch(jsonPath, "analysis.highlights params", json); | 3048 throw jsonDecoder.mismatch(jsonPath, "analysis.highlights params", json); |
2858 } | 3049 } |
2859 } | 3050 } |
2860 | 3051 |
2861 factory AnalysisHighlightsParams.fromNotification(Notification notification) { | 3052 factory AnalysisHighlightsParams.fromNotification(Notification notification) { |
2862 return new AnalysisHighlightsParams.fromJson( | 3053 return new AnalysisHighlightsParams.fromJson( |
2863 new ResponseDecoder(null), "params", notification._params); | 3054 new ResponseDecoder(null), "params", notification._params); |
2864 } | 3055 } |
2865 | 3056 |
2866 Map<String, dynamic> toJson() { | 3057 Map<String, dynamic> toJson() { |
2867 Map<String, dynamic> result = {}; | 3058 Map<String, dynamic> result = {}; |
2868 result["file"] = file; | 3059 result["file"] = file; |
2869 result["regions"] = regions.map((HighlightRegion value) => value.toJson()).t
oList(); | 3060 result["regions"] = |
| 3061 regions.map((HighlightRegion value) => value.toJson()).toList(); |
2870 return result; | 3062 return result; |
2871 } | 3063 } |
2872 | 3064 |
2873 Notification toNotification() { | 3065 Notification toNotification() { |
2874 return new Notification("analysis.highlights", toJson()); | 3066 return new Notification("analysis.highlights", toJson()); |
2875 } | 3067 } |
2876 | 3068 |
2877 @override | 3069 @override |
2878 String toString() => JSON.encode(toJson()); | 3070 String toString() => JSON.encode(toJson()); |
2879 | 3071 |
2880 @override | 3072 @override |
2881 bool operator==(other) { | 3073 bool operator ==(other) { |
2882 if (other is AnalysisHighlightsParams) { | 3074 if (other is AnalysisHighlightsParams) { |
2883 return file == other.file && | 3075 return file == other.file && |
2884 listEqual(regions, other.regions, (HighlightRegion a, HighlightRegion
b) => a == b); | 3076 listEqual(regions, other.regions, |
| 3077 (HighlightRegion a, HighlightRegion b) => a == b); |
2885 } | 3078 } |
2886 return false; | 3079 return false; |
2887 } | 3080 } |
2888 | 3081 |
2889 @override | 3082 @override |
2890 int get hashCode { | 3083 int get hashCode { |
2891 int hash = 0; | 3084 int hash = 0; |
2892 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 3085 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
2893 hash = JenkinsSmiHash.combine(hash, regions.hashCode); | 3086 hash = JenkinsSmiHash.combine(hash, regions.hashCode); |
2894 return JenkinsSmiHash.finish(hash); | 3087 return JenkinsSmiHash.finish(hash); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2945 List<ImplementedMember> get members => _members; | 3138 List<ImplementedMember> get members => _members; |
2946 | 3139 |
2947 /** | 3140 /** |
2948 * The member defined in the file that are implemented or overridden. | 3141 * The member defined in the file that are implemented or overridden. |
2949 */ | 3142 */ |
2950 void set members(List<ImplementedMember> value) { | 3143 void set members(List<ImplementedMember> value) { |
2951 assert(value != null); | 3144 assert(value != null); |
2952 this._members = value; | 3145 this._members = value; |
2953 } | 3146 } |
2954 | 3147 |
2955 AnalysisImplementedParams(String file, List<ImplementedClass> classes, List<Im
plementedMember> members) { | 3148 AnalysisImplementedParams(String file, List<ImplementedClass> classes, |
| 3149 List<ImplementedMember> members) { |
2956 this.file = file; | 3150 this.file = file; |
2957 this.classes = classes; | 3151 this.classes = classes; |
2958 this.members = members; | 3152 this.members = members; |
2959 } | 3153 } |
2960 | 3154 |
2961 factory AnalysisImplementedParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { | 3155 factory AnalysisImplementedParams.fromJson( |
| 3156 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
2962 if (json == null) { | 3157 if (json == null) { |
2963 json = {}; | 3158 json = {}; |
2964 } | 3159 } |
2965 if (json is Map) { | 3160 if (json is Map) { |
2966 String file; | 3161 String file; |
2967 if (json.containsKey("file")) { | 3162 if (json.containsKey("file")) { |
2968 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 3163 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
2969 } else { | 3164 } else { |
2970 throw jsonDecoder.missingKey(jsonPath, "file"); | 3165 throw jsonDecoder.missingKey(jsonPath, "file"); |
2971 } | 3166 } |
2972 List<ImplementedClass> classes; | 3167 List<ImplementedClass> classes; |
2973 if (json.containsKey("classes")) { | 3168 if (json.containsKey("classes")) { |
2974 classes = jsonDecoder.decodeList(jsonPath + ".classes", json["classes"],
(String jsonPath, Object json) => new ImplementedClass.fromJson(jsonDecoder, js
onPath, json)); | 3169 classes = jsonDecoder.decodeList( |
| 3170 jsonPath + ".classes", |
| 3171 json["classes"], |
| 3172 (String jsonPath, Object json) => |
| 3173 new ImplementedClass.fromJson(jsonDecoder, jsonPath, json)); |
2975 } else { | 3174 } else { |
2976 throw jsonDecoder.missingKey(jsonPath, "classes"); | 3175 throw jsonDecoder.missingKey(jsonPath, "classes"); |
2977 } | 3176 } |
2978 List<ImplementedMember> members; | 3177 List<ImplementedMember> members; |
2979 if (json.containsKey("members")) { | 3178 if (json.containsKey("members")) { |
2980 members = jsonDecoder.decodeList(jsonPath + ".members", json["members"],
(String jsonPath, Object json) => new ImplementedMember.fromJson(jsonDecoder, j
sonPath, json)); | 3179 members = jsonDecoder.decodeList( |
| 3180 jsonPath + ".members", |
| 3181 json["members"], |
| 3182 (String jsonPath, Object json) => |
| 3183 new ImplementedMember.fromJson(jsonDecoder, jsonPath, json)); |
2981 } else { | 3184 } else { |
2982 throw jsonDecoder.missingKey(jsonPath, "members"); | 3185 throw jsonDecoder.missingKey(jsonPath, "members"); |
2983 } | 3186 } |
2984 return new AnalysisImplementedParams(file, classes, members); | 3187 return new AnalysisImplementedParams(file, classes, members); |
2985 } else { | 3188 } else { |
2986 throw jsonDecoder.mismatch(jsonPath, "analysis.implemented params", json); | 3189 throw jsonDecoder.mismatch(jsonPath, "analysis.implemented params", json); |
2987 } | 3190 } |
2988 } | 3191 } |
2989 | 3192 |
2990 factory AnalysisImplementedParams.fromNotification(Notification notification)
{ | 3193 factory AnalysisImplementedParams.fromNotification( |
| 3194 Notification notification) { |
2991 return new AnalysisImplementedParams.fromJson( | 3195 return new AnalysisImplementedParams.fromJson( |
2992 new ResponseDecoder(null), "params", notification._params); | 3196 new ResponseDecoder(null), "params", notification._params); |
2993 } | 3197 } |
2994 | 3198 |
2995 Map<String, dynamic> toJson() { | 3199 Map<String, dynamic> toJson() { |
2996 Map<String, dynamic> result = {}; | 3200 Map<String, dynamic> result = {}; |
2997 result["file"] = file; | 3201 result["file"] = file; |
2998 result["classes"] = classes.map((ImplementedClass value) => value.toJson()).
toList(); | 3202 result["classes"] = |
2999 result["members"] = members.map((ImplementedMember value) => value.toJson())
.toList(); | 3203 classes.map((ImplementedClass value) => value.toJson()).toList(); |
| 3204 result["members"] = |
| 3205 members.map((ImplementedMember value) => value.toJson()).toList(); |
3000 return result; | 3206 return result; |
3001 } | 3207 } |
3002 | 3208 |
3003 Notification toNotification() { | 3209 Notification toNotification() { |
3004 return new Notification("analysis.implemented", toJson()); | 3210 return new Notification("analysis.implemented", toJson()); |
3005 } | 3211 } |
3006 | 3212 |
3007 @override | 3213 @override |
3008 String toString() => JSON.encode(toJson()); | 3214 String toString() => JSON.encode(toJson()); |
3009 | 3215 |
3010 @override | 3216 @override |
3011 bool operator==(other) { | 3217 bool operator ==(other) { |
3012 if (other is AnalysisImplementedParams) { | 3218 if (other is AnalysisImplementedParams) { |
3013 return file == other.file && | 3219 return file == other.file && |
3014 listEqual(classes, other.classes, (ImplementedClass a, ImplementedClas
s b) => a == b) && | 3220 listEqual(classes, other.classes, |
3015 listEqual(members, other.members, (ImplementedMember a, ImplementedMem
ber b) => a == b); | 3221 (ImplementedClass a, ImplementedClass b) => a == b) && |
| 3222 listEqual(members, other.members, |
| 3223 (ImplementedMember a, ImplementedMember b) => a == b); |
3016 } | 3224 } |
3017 return false; | 3225 return false; |
3018 } | 3226 } |
3019 | 3227 |
3020 @override | 3228 @override |
3021 int get hashCode { | 3229 int get hashCode { |
3022 int hash = 0; | 3230 int hash = 0; |
3023 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 3231 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3024 hash = JenkinsSmiHash.combine(hash, classes.hashCode); | 3232 hash = JenkinsSmiHash.combine(hash, classes.hashCode); |
3025 hash = JenkinsSmiHash.combine(hash, members.hashCode); | 3233 hash = JenkinsSmiHash.combine(hash, members.hashCode); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3104 this._delta = value; | 3312 this._delta = value; |
3105 } | 3313 } |
3106 | 3314 |
3107 AnalysisInvalidateParams(String file, int offset, int length, int delta) { | 3315 AnalysisInvalidateParams(String file, int offset, int length, int delta) { |
3108 this.file = file; | 3316 this.file = file; |
3109 this.offset = offset; | 3317 this.offset = offset; |
3110 this.length = length; | 3318 this.length = length; |
3111 this.delta = delta; | 3319 this.delta = delta; |
3112 } | 3320 } |
3113 | 3321 |
3114 factory AnalysisInvalidateParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3322 factory AnalysisInvalidateParams.fromJson( |
| 3323 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
3115 if (json == null) { | 3324 if (json == null) { |
3116 json = {}; | 3325 json = {}; |
3117 } | 3326 } |
3118 if (json is Map) { | 3327 if (json is Map) { |
3119 String file; | 3328 String file; |
3120 if (json.containsKey("file")) { | 3329 if (json.containsKey("file")) { |
3121 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 3330 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3122 } else { | 3331 } else { |
3123 throw jsonDecoder.missingKey(jsonPath, "file"); | 3332 throw jsonDecoder.missingKey(jsonPath, "file"); |
3124 } | 3333 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3161 } | 3370 } |
3162 | 3371 |
3163 Notification toNotification() { | 3372 Notification toNotification() { |
3164 return new Notification("analysis.invalidate", toJson()); | 3373 return new Notification("analysis.invalidate", toJson()); |
3165 } | 3374 } |
3166 | 3375 |
3167 @override | 3376 @override |
3168 String toString() => JSON.encode(toJson()); | 3377 String toString() => JSON.encode(toJson()); |
3169 | 3378 |
3170 @override | 3379 @override |
3171 bool operator==(other) { | 3380 bool operator ==(other) { |
3172 if (other is AnalysisInvalidateParams) { | 3381 if (other is AnalysisInvalidateParams) { |
3173 return file == other.file && | 3382 return file == other.file && |
3174 offset == other.offset && | 3383 offset == other.offset && |
3175 length == other.length && | 3384 length == other.length && |
3176 delta == other.delta; | 3385 delta == other.delta; |
3177 } | 3386 } |
3178 return false; | 3387 return false; |
3179 } | 3388 } |
3180 | 3389 |
3181 @override | 3390 @override |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3271 | 3480 |
3272 /** | 3481 /** |
3273 * The files containing navigation targets referenced in the file. They are | 3482 * The files containing navigation targets referenced in the file. They are |
3274 * referenced by NavigationTargets by their index in this array. | 3483 * referenced by NavigationTargets by their index in this array. |
3275 */ | 3484 */ |
3276 void set files(List<String> value) { | 3485 void set files(List<String> value) { |
3277 assert(value != null); | 3486 assert(value != null); |
3278 this._files = value; | 3487 this._files = value; |
3279 } | 3488 } |
3280 | 3489 |
3281 AnalysisNavigationParams(String file, List<NavigationRegion> regions, List<Nav
igationTarget> targets, List<String> files) { | 3490 AnalysisNavigationParams(String file, List<NavigationRegion> regions, |
| 3491 List<NavigationTarget> targets, List<String> files) { |
3282 this.file = file; | 3492 this.file = file; |
3283 this.regions = regions; | 3493 this.regions = regions; |
3284 this.targets = targets; | 3494 this.targets = targets; |
3285 this.files = files; | 3495 this.files = files; |
3286 } | 3496 } |
3287 | 3497 |
3288 factory AnalysisNavigationParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3498 factory AnalysisNavigationParams.fromJson( |
| 3499 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
3289 if (json == null) { | 3500 if (json == null) { |
3290 json = {}; | 3501 json = {}; |
3291 } | 3502 } |
3292 if (json is Map) { | 3503 if (json is Map) { |
3293 String file; | 3504 String file; |
3294 if (json.containsKey("file")) { | 3505 if (json.containsKey("file")) { |
3295 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 3506 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3296 } else { | 3507 } else { |
3297 throw jsonDecoder.missingKey(jsonPath, "file"); | 3508 throw jsonDecoder.missingKey(jsonPath, "file"); |
3298 } | 3509 } |
3299 List<NavigationRegion> regions; | 3510 List<NavigationRegion> regions; |
3300 if (json.containsKey("regions")) { | 3511 if (json.containsKey("regions")) { |
3301 regions = jsonDecoder.decodeList(jsonPath + ".regions", json["regions"],
(String jsonPath, Object json) => new NavigationRegion.fromJson(jsonDecoder, js
onPath, json)); | 3512 regions = jsonDecoder.decodeList( |
| 3513 jsonPath + ".regions", |
| 3514 json["regions"], |
| 3515 (String jsonPath, Object json) => |
| 3516 new NavigationRegion.fromJson(jsonDecoder, jsonPath, json)); |
3302 } else { | 3517 } else { |
3303 throw jsonDecoder.missingKey(jsonPath, "regions"); | 3518 throw jsonDecoder.missingKey(jsonPath, "regions"); |
3304 } | 3519 } |
3305 List<NavigationTarget> targets; | 3520 List<NavigationTarget> targets; |
3306 if (json.containsKey("targets")) { | 3521 if (json.containsKey("targets")) { |
3307 targets = jsonDecoder.decodeList(jsonPath + ".targets", json["targets"],
(String jsonPath, Object json) => new NavigationTarget.fromJson(jsonDecoder, js
onPath, json)); | 3522 targets = jsonDecoder.decodeList( |
| 3523 jsonPath + ".targets", |
| 3524 json["targets"], |
| 3525 (String jsonPath, Object json) => |
| 3526 new NavigationTarget.fromJson(jsonDecoder, jsonPath, json)); |
3308 } else { | 3527 } else { |
3309 throw jsonDecoder.missingKey(jsonPath, "targets"); | 3528 throw jsonDecoder.missingKey(jsonPath, "targets"); |
3310 } | 3529 } |
3311 List<String> files; | 3530 List<String> files; |
3312 if (json.containsKey("files")) { | 3531 if (json.containsKey("files")) { |
3313 files = jsonDecoder.decodeList(jsonPath + ".files", json["files"], jsonD
ecoder.decodeString); | 3532 files = jsonDecoder.decodeList( |
| 3533 jsonPath + ".files", json["files"], jsonDecoder.decodeString); |
3314 } else { | 3534 } else { |
3315 throw jsonDecoder.missingKey(jsonPath, "files"); | 3535 throw jsonDecoder.missingKey(jsonPath, "files"); |
3316 } | 3536 } |
3317 return new AnalysisNavigationParams(file, regions, targets, files); | 3537 return new AnalysisNavigationParams(file, regions, targets, files); |
3318 } else { | 3538 } else { |
3319 throw jsonDecoder.mismatch(jsonPath, "analysis.navigation params", json); | 3539 throw jsonDecoder.mismatch(jsonPath, "analysis.navigation params", json); |
3320 } | 3540 } |
3321 } | 3541 } |
3322 | 3542 |
3323 factory AnalysisNavigationParams.fromNotification(Notification notification) { | 3543 factory AnalysisNavigationParams.fromNotification(Notification notification) { |
3324 return new AnalysisNavigationParams.fromJson( | 3544 return new AnalysisNavigationParams.fromJson( |
3325 new ResponseDecoder(null), "params", notification._params); | 3545 new ResponseDecoder(null), "params", notification._params); |
3326 } | 3546 } |
3327 | 3547 |
3328 Map<String, dynamic> toJson() { | 3548 Map<String, dynamic> toJson() { |
3329 Map<String, dynamic> result = {}; | 3549 Map<String, dynamic> result = {}; |
3330 result["file"] = file; | 3550 result["file"] = file; |
3331 result["regions"] = regions.map((NavigationRegion value) => value.toJson()).
toList(); | 3551 result["regions"] = |
3332 result["targets"] = targets.map((NavigationTarget value) => value.toJson()).
toList(); | 3552 regions.map((NavigationRegion value) => value.toJson()).toList(); |
| 3553 result["targets"] = |
| 3554 targets.map((NavigationTarget value) => value.toJson()).toList(); |
3333 result["files"] = files; | 3555 result["files"] = files; |
3334 return result; | 3556 return result; |
3335 } | 3557 } |
3336 | 3558 |
3337 Notification toNotification() { | 3559 Notification toNotification() { |
3338 return new Notification("analysis.navigation", toJson()); | 3560 return new Notification("analysis.navigation", toJson()); |
3339 } | 3561 } |
3340 | 3562 |
3341 @override | 3563 @override |
3342 String toString() => JSON.encode(toJson()); | 3564 String toString() => JSON.encode(toJson()); |
3343 | 3565 |
3344 @override | 3566 @override |
3345 bool operator==(other) { | 3567 bool operator ==(other) { |
3346 if (other is AnalysisNavigationParams) { | 3568 if (other is AnalysisNavigationParams) { |
3347 return file == other.file && | 3569 return file == other.file && |
3348 listEqual(regions, other.regions, (NavigationRegion a, NavigationRegio
n b) => a == b) && | 3570 listEqual(regions, other.regions, |
3349 listEqual(targets, other.targets, (NavigationTarget a, NavigationTarge
t b) => a == b) && | 3571 (NavigationRegion a, NavigationRegion b) => a == b) && |
| 3572 listEqual(targets, other.targets, |
| 3573 (NavigationTarget a, NavigationTarget b) => a == b) && |
3350 listEqual(files, other.files, (String a, String b) => a == b); | 3574 listEqual(files, other.files, (String a, String b) => a == b); |
3351 } | 3575 } |
3352 return false; | 3576 return false; |
3353 } | 3577 } |
3354 | 3578 |
3355 @override | 3579 @override |
3356 int get hashCode { | 3580 int get hashCode { |
3357 int hash = 0; | 3581 int hash = 0; |
3358 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 3582 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3359 hash = JenkinsSmiHash.combine(hash, regions.hashCode); | 3583 hash = JenkinsSmiHash.combine(hash, regions.hashCode); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3402 void set occurrences(List<Occurrences> value) { | 3626 void set occurrences(List<Occurrences> value) { |
3403 assert(value != null); | 3627 assert(value != null); |
3404 this._occurrences = value; | 3628 this._occurrences = value; |
3405 } | 3629 } |
3406 | 3630 |
3407 AnalysisOccurrencesParams(String file, List<Occurrences> occurrences) { | 3631 AnalysisOccurrencesParams(String file, List<Occurrences> occurrences) { |
3408 this.file = file; | 3632 this.file = file; |
3409 this.occurrences = occurrences; | 3633 this.occurrences = occurrences; |
3410 } | 3634 } |
3411 | 3635 |
3412 factory AnalysisOccurrencesParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { | 3636 factory AnalysisOccurrencesParams.fromJson( |
| 3637 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
3413 if (json == null) { | 3638 if (json == null) { |
3414 json = {}; | 3639 json = {}; |
3415 } | 3640 } |
3416 if (json is Map) { | 3641 if (json is Map) { |
3417 String file; | 3642 String file; |
3418 if (json.containsKey("file")) { | 3643 if (json.containsKey("file")) { |
3419 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 3644 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3420 } else { | 3645 } else { |
3421 throw jsonDecoder.missingKey(jsonPath, "file"); | 3646 throw jsonDecoder.missingKey(jsonPath, "file"); |
3422 } | 3647 } |
3423 List<Occurrences> occurrences; | 3648 List<Occurrences> occurrences; |
3424 if (json.containsKey("occurrences")) { | 3649 if (json.containsKey("occurrences")) { |
3425 occurrences = jsonDecoder.decodeList(jsonPath + ".occurrences", json["oc
currences"], (String jsonPath, Object json) => new Occurrences.fromJson(jsonDeco
der, jsonPath, json)); | 3650 occurrences = jsonDecoder.decodeList( |
| 3651 jsonPath + ".occurrences", |
| 3652 json["occurrences"], |
| 3653 (String jsonPath, Object json) => |
| 3654 new Occurrences.fromJson(jsonDecoder, jsonPath, json)); |
3426 } else { | 3655 } else { |
3427 throw jsonDecoder.missingKey(jsonPath, "occurrences"); | 3656 throw jsonDecoder.missingKey(jsonPath, "occurrences"); |
3428 } | 3657 } |
3429 return new AnalysisOccurrencesParams(file, occurrences); | 3658 return new AnalysisOccurrencesParams(file, occurrences); |
3430 } else { | 3659 } else { |
3431 throw jsonDecoder.mismatch(jsonPath, "analysis.occurrences params", json); | 3660 throw jsonDecoder.mismatch(jsonPath, "analysis.occurrences params", json); |
3432 } | 3661 } |
3433 } | 3662 } |
3434 | 3663 |
3435 factory AnalysisOccurrencesParams.fromNotification(Notification notification)
{ | 3664 factory AnalysisOccurrencesParams.fromNotification( |
| 3665 Notification notification) { |
3436 return new AnalysisOccurrencesParams.fromJson( | 3666 return new AnalysisOccurrencesParams.fromJson( |
3437 new ResponseDecoder(null), "params", notification._params); | 3667 new ResponseDecoder(null), "params", notification._params); |
3438 } | 3668 } |
3439 | 3669 |
3440 Map<String, dynamic> toJson() { | 3670 Map<String, dynamic> toJson() { |
3441 Map<String, dynamic> result = {}; | 3671 Map<String, dynamic> result = {}; |
3442 result["file"] = file; | 3672 result["file"] = file; |
3443 result["occurrences"] = occurrences.map((Occurrences value) => value.toJson(
)).toList(); | 3673 result["occurrences"] = |
| 3674 occurrences.map((Occurrences value) => value.toJson()).toList(); |
3444 return result; | 3675 return result; |
3445 } | 3676 } |
3446 | 3677 |
3447 Notification toNotification() { | 3678 Notification toNotification() { |
3448 return new Notification("analysis.occurrences", toJson()); | 3679 return new Notification("analysis.occurrences", toJson()); |
3449 } | 3680 } |
3450 | 3681 |
3451 @override | 3682 @override |
3452 String toString() => JSON.encode(toJson()); | 3683 String toString() => JSON.encode(toJson()); |
3453 | 3684 |
3454 @override | 3685 @override |
3455 bool operator==(other) { | 3686 bool operator ==(other) { |
3456 if (other is AnalysisOccurrencesParams) { | 3687 if (other is AnalysisOccurrencesParams) { |
3457 return file == other.file && | 3688 return file == other.file && |
3458 listEqual(occurrences, other.occurrences, (Occurrences a, Occurrences
b) => a == b); | 3689 listEqual(occurrences, other.occurrences, |
| 3690 (Occurrences a, Occurrences b) => a == b); |
3459 } | 3691 } |
3460 return false; | 3692 return false; |
3461 } | 3693 } |
3462 | 3694 |
3463 @override | 3695 @override |
3464 int get hashCode { | 3696 int get hashCode { |
3465 int hash = 0; | 3697 int hash = 0; |
3466 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 3698 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3467 hash = JenkinsSmiHash.combine(hash, occurrences.hashCode); | 3699 hash = JenkinsSmiHash.combine(hash, occurrences.hashCode); |
3468 return JenkinsSmiHash.finish(hash); | 3700 return JenkinsSmiHash.finish(hash); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3542 Outline get outline => _outline; | 3774 Outline get outline => _outline; |
3543 | 3775 |
3544 /** | 3776 /** |
3545 * The outline associated with the file. | 3777 * The outline associated with the file. |
3546 */ | 3778 */ |
3547 void set outline(Outline value) { | 3779 void set outline(Outline value) { |
3548 assert(value != null); | 3780 assert(value != null); |
3549 this._outline = value; | 3781 this._outline = value; |
3550 } | 3782 } |
3551 | 3783 |
3552 AnalysisOutlineParams(String file, FileKind kind, Outline outline, {String lib
raryName}) { | 3784 AnalysisOutlineParams(String file, FileKind kind, Outline outline, |
| 3785 {String libraryName}) { |
3553 this.file = file; | 3786 this.file = file; |
3554 this.kind = kind; | 3787 this.kind = kind; |
3555 this.libraryName = libraryName; | 3788 this.libraryName = libraryName; |
3556 this.outline = outline; | 3789 this.outline = outline; |
3557 } | 3790 } |
3558 | 3791 |
3559 factory AnalysisOutlineParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 3792 factory AnalysisOutlineParams.fromJson( |
| 3793 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
3560 if (json == null) { | 3794 if (json == null) { |
3561 json = {}; | 3795 json = {}; |
3562 } | 3796 } |
3563 if (json is Map) { | 3797 if (json is Map) { |
3564 String file; | 3798 String file; |
3565 if (json.containsKey("file")) { | 3799 if (json.containsKey("file")) { |
3566 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 3800 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3567 } else { | 3801 } else { |
3568 throw jsonDecoder.missingKey(jsonPath, "file"); | 3802 throw jsonDecoder.missingKey(jsonPath, "file"); |
3569 } | 3803 } |
3570 FileKind kind; | 3804 FileKind kind; |
3571 if (json.containsKey("kind")) { | 3805 if (json.containsKey("kind")) { |
3572 kind = new FileKind.fromJson(jsonDecoder, jsonPath + ".kind", json["kind
"]); | 3806 kind = new FileKind.fromJson( |
| 3807 jsonDecoder, jsonPath + ".kind", json["kind"]); |
3573 } else { | 3808 } else { |
3574 throw jsonDecoder.missingKey(jsonPath, "kind"); | 3809 throw jsonDecoder.missingKey(jsonPath, "kind"); |
3575 } | 3810 } |
3576 String libraryName; | 3811 String libraryName; |
3577 if (json.containsKey("libraryName")) { | 3812 if (json.containsKey("libraryName")) { |
3578 libraryName = jsonDecoder.decodeString(jsonPath + ".libraryName", json["
libraryName"]); | 3813 libraryName = jsonDecoder.decodeString( |
| 3814 jsonPath + ".libraryName", json["libraryName"]); |
3579 } | 3815 } |
3580 Outline outline; | 3816 Outline outline; |
3581 if (json.containsKey("outline")) { | 3817 if (json.containsKey("outline")) { |
3582 outline = new Outline.fromJson(jsonDecoder, jsonPath + ".outline", json[
"outline"]); | 3818 outline = new Outline.fromJson( |
| 3819 jsonDecoder, jsonPath + ".outline", json["outline"]); |
3583 } else { | 3820 } else { |
3584 throw jsonDecoder.missingKey(jsonPath, "outline"); | 3821 throw jsonDecoder.missingKey(jsonPath, "outline"); |
3585 } | 3822 } |
3586 return new AnalysisOutlineParams(file, kind, outline, libraryName: library
Name); | 3823 return new AnalysisOutlineParams(file, kind, outline, |
| 3824 libraryName: libraryName); |
3587 } else { | 3825 } else { |
3588 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params", json); | 3826 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params", json); |
3589 } | 3827 } |
3590 } | 3828 } |
3591 | 3829 |
3592 factory AnalysisOutlineParams.fromNotification(Notification notification) { | 3830 factory AnalysisOutlineParams.fromNotification(Notification notification) { |
3593 return new AnalysisOutlineParams.fromJson( | 3831 return new AnalysisOutlineParams.fromJson( |
3594 new ResponseDecoder(null), "params", notification._params); | 3832 new ResponseDecoder(null), "params", notification._params); |
3595 } | 3833 } |
3596 | 3834 |
3597 Map<String, dynamic> toJson() { | 3835 Map<String, dynamic> toJson() { |
3598 Map<String, dynamic> result = {}; | 3836 Map<String, dynamic> result = {}; |
3599 result["file"] = file; | 3837 result["file"] = file; |
3600 result["kind"] = kind.toJson(); | 3838 result["kind"] = kind.toJson(); |
3601 if (libraryName != null) { | 3839 if (libraryName != null) { |
3602 result["libraryName"] = libraryName; | 3840 result["libraryName"] = libraryName; |
3603 } | 3841 } |
3604 result["outline"] = outline.toJson(); | 3842 result["outline"] = outline.toJson(); |
3605 return result; | 3843 return result; |
3606 } | 3844 } |
3607 | 3845 |
3608 Notification toNotification() { | 3846 Notification toNotification() { |
3609 return new Notification("analysis.outline", toJson()); | 3847 return new Notification("analysis.outline", toJson()); |
3610 } | 3848 } |
3611 | 3849 |
3612 @override | 3850 @override |
3613 String toString() => JSON.encode(toJson()); | 3851 String toString() => JSON.encode(toJson()); |
3614 | 3852 |
3615 @override | 3853 @override |
3616 bool operator==(other) { | 3854 bool operator ==(other) { |
3617 if (other is AnalysisOutlineParams) { | 3855 if (other is AnalysisOutlineParams) { |
3618 return file == other.file && | 3856 return file == other.file && |
3619 kind == other.kind && | 3857 kind == other.kind && |
3620 libraryName == other.libraryName && | 3858 libraryName == other.libraryName && |
3621 outline == other.outline; | 3859 outline == other.outline; |
3622 } | 3860 } |
3623 return false; | 3861 return false; |
3624 } | 3862 } |
3625 | 3863 |
3626 @override | 3864 @override |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3673 void set overrides(List<Override> value) { | 3911 void set overrides(List<Override> value) { |
3674 assert(value != null); | 3912 assert(value != null); |
3675 this._overrides = value; | 3913 this._overrides = value; |
3676 } | 3914 } |
3677 | 3915 |
3678 AnalysisOverridesParams(String file, List<Override> overrides) { | 3916 AnalysisOverridesParams(String file, List<Override> overrides) { |
3679 this.file = file; | 3917 this.file = file; |
3680 this.overrides = overrides; | 3918 this.overrides = overrides; |
3681 } | 3919 } |
3682 | 3920 |
3683 factory AnalysisOverridesParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 3921 factory AnalysisOverridesParams.fromJson( |
| 3922 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
3684 if (json == null) { | 3923 if (json == null) { |
3685 json = {}; | 3924 json = {}; |
3686 } | 3925 } |
3687 if (json is Map) { | 3926 if (json is Map) { |
3688 String file; | 3927 String file; |
3689 if (json.containsKey("file")) { | 3928 if (json.containsKey("file")) { |
3690 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 3929 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3691 } else { | 3930 } else { |
3692 throw jsonDecoder.missingKey(jsonPath, "file"); | 3931 throw jsonDecoder.missingKey(jsonPath, "file"); |
3693 } | 3932 } |
3694 List<Override> overrides; | 3933 List<Override> overrides; |
3695 if (json.containsKey("overrides")) { | 3934 if (json.containsKey("overrides")) { |
3696 overrides = jsonDecoder.decodeList(jsonPath + ".overrides", json["overri
des"], (String jsonPath, Object json) => new Override.fromJson(jsonDecoder, json
Path, json)); | 3935 overrides = jsonDecoder.decodeList( |
| 3936 jsonPath + ".overrides", |
| 3937 json["overrides"], |
| 3938 (String jsonPath, Object json) => |
| 3939 new Override.fromJson(jsonDecoder, jsonPath, json)); |
3697 } else { | 3940 } else { |
3698 throw jsonDecoder.missingKey(jsonPath, "overrides"); | 3941 throw jsonDecoder.missingKey(jsonPath, "overrides"); |
3699 } | 3942 } |
3700 return new AnalysisOverridesParams(file, overrides); | 3943 return new AnalysisOverridesParams(file, overrides); |
3701 } else { | 3944 } else { |
3702 throw jsonDecoder.mismatch(jsonPath, "analysis.overrides params", json); | 3945 throw jsonDecoder.mismatch(jsonPath, "analysis.overrides params", json); |
3703 } | 3946 } |
3704 } | 3947 } |
3705 | 3948 |
3706 factory AnalysisOverridesParams.fromNotification(Notification notification) { | 3949 factory AnalysisOverridesParams.fromNotification(Notification notification) { |
3707 return new AnalysisOverridesParams.fromJson( | 3950 return new AnalysisOverridesParams.fromJson( |
3708 new ResponseDecoder(null), "params", notification._params); | 3951 new ResponseDecoder(null), "params", notification._params); |
3709 } | 3952 } |
3710 | 3953 |
3711 Map<String, dynamic> toJson() { | 3954 Map<String, dynamic> toJson() { |
3712 Map<String, dynamic> result = {}; | 3955 Map<String, dynamic> result = {}; |
3713 result["file"] = file; | 3956 result["file"] = file; |
3714 result["overrides"] = overrides.map((Override value) => value.toJson()).toLi
st(); | 3957 result["overrides"] = |
| 3958 overrides.map((Override value) => value.toJson()).toList(); |
3715 return result; | 3959 return result; |
3716 } | 3960 } |
3717 | 3961 |
3718 Notification toNotification() { | 3962 Notification toNotification() { |
3719 return new Notification("analysis.overrides", toJson()); | 3963 return new Notification("analysis.overrides", toJson()); |
3720 } | 3964 } |
3721 | 3965 |
3722 @override | 3966 @override |
3723 String toString() => JSON.encode(toJson()); | 3967 String toString() => JSON.encode(toJson()); |
3724 | 3968 |
3725 @override | 3969 @override |
3726 bool operator==(other) { | 3970 bool operator ==(other) { |
3727 if (other is AnalysisOverridesParams) { | 3971 if (other is AnalysisOverridesParams) { |
3728 return file == other.file && | 3972 return file == other.file && |
3729 listEqual(overrides, other.overrides, (Override a, Override b) => a ==
b); | 3973 listEqual( |
| 3974 overrides, other.overrides, (Override a, Override b) => a == b); |
3730 } | 3975 } |
3731 return false; | 3976 return false; |
3732 } | 3977 } |
3733 | 3978 |
3734 @override | 3979 @override |
3735 int get hashCode { | 3980 int get hashCode { |
3736 int hash = 0; | 3981 int hash = 0; |
3737 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 3982 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3738 hash = JenkinsSmiHash.combine(hash, overrides.hashCode); | 3983 hash = JenkinsSmiHash.combine(hash, overrides.hashCode); |
3739 return JenkinsSmiHash.finish(hash); | 3984 return JenkinsSmiHash.finish(hash); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3779 void set offset(int value) { | 4024 void set offset(int value) { |
3780 assert(value != null); | 4025 assert(value != null); |
3781 this._offset = value; | 4026 this._offset = value; |
3782 } | 4027 } |
3783 | 4028 |
3784 CompletionGetSuggestionsParams(String file, int offset) { | 4029 CompletionGetSuggestionsParams(String file, int offset) { |
3785 this.file = file; | 4030 this.file = file; |
3786 this.offset = offset; | 4031 this.offset = offset; |
3787 } | 4032 } |
3788 | 4033 |
3789 factory CompletionGetSuggestionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 4034 factory CompletionGetSuggestionsParams.fromJson( |
| 4035 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
3790 if (json == null) { | 4036 if (json == null) { |
3791 json = {}; | 4037 json = {}; |
3792 } | 4038 } |
3793 if (json is Map) { | 4039 if (json is Map) { |
3794 String file; | 4040 String file; |
3795 if (json.containsKey("file")) { | 4041 if (json.containsKey("file")) { |
3796 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 4042 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
3797 } else { | 4043 } else { |
3798 throw jsonDecoder.missingKey(jsonPath, "file"); | 4044 throw jsonDecoder.missingKey(jsonPath, "file"); |
3799 } | 4045 } |
3800 int offset; | 4046 int offset; |
3801 if (json.containsKey("offset")) { | 4047 if (json.containsKey("offset")) { |
3802 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 4048 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
3803 } else { | 4049 } else { |
3804 throw jsonDecoder.missingKey(jsonPath, "offset"); | 4050 throw jsonDecoder.missingKey(jsonPath, "offset"); |
3805 } | 4051 } |
3806 return new CompletionGetSuggestionsParams(file, offset); | 4052 return new CompletionGetSuggestionsParams(file, offset); |
3807 } else { | 4053 } else { |
3808 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions params", j
son); | 4054 throw jsonDecoder.mismatch( |
| 4055 jsonPath, "completion.getSuggestions params", json); |
3809 } | 4056 } |
3810 } | 4057 } |
3811 | 4058 |
3812 factory CompletionGetSuggestionsParams.fromRequest(Request request) { | 4059 factory CompletionGetSuggestionsParams.fromRequest(Request request) { |
3813 return new CompletionGetSuggestionsParams.fromJson( | 4060 return new CompletionGetSuggestionsParams.fromJson( |
3814 new RequestDecoder(request), "params", request._params); | 4061 new RequestDecoder(request), "params", request._params); |
3815 } | 4062 } |
3816 | 4063 |
3817 Map<String, dynamic> toJson() { | 4064 Map<String, dynamic> toJson() { |
3818 Map<String, dynamic> result = {}; | 4065 Map<String, dynamic> result = {}; |
3819 result["file"] = file; | 4066 result["file"] = file; |
3820 result["offset"] = offset; | 4067 result["offset"] = offset; |
3821 return result; | 4068 return result; |
3822 } | 4069 } |
3823 | 4070 |
3824 Request toRequest(String id) { | 4071 Request toRequest(String id) { |
3825 return new Request(id, "completion.getSuggestions", toJson()); | 4072 return new Request(id, "completion.getSuggestions", toJson()); |
3826 } | 4073 } |
3827 | 4074 |
3828 @override | 4075 @override |
3829 String toString() => JSON.encode(toJson()); | 4076 String toString() => JSON.encode(toJson()); |
3830 | 4077 |
3831 @override | 4078 @override |
3832 bool operator==(other) { | 4079 bool operator ==(other) { |
3833 if (other is CompletionGetSuggestionsParams) { | 4080 if (other is CompletionGetSuggestionsParams) { |
3834 return file == other.file && | 4081 return file == other.file && offset == other.offset; |
3835 offset == other.offset; | |
3836 } | 4082 } |
3837 return false; | 4083 return false; |
3838 } | 4084 } |
3839 | 4085 |
3840 @override | 4086 @override |
3841 int get hashCode { | 4087 int get hashCode { |
3842 int hash = 0; | 4088 int hash = 0; |
3843 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 4089 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
3844 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 4090 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
3845 return JenkinsSmiHash.finish(hash); | 4091 return JenkinsSmiHash.finish(hash); |
(...skipping 22 matching lines...) Expand all Loading... |
3868 */ | 4114 */ |
3869 void set id(String value) { | 4115 void set id(String value) { |
3870 assert(value != null); | 4116 assert(value != null); |
3871 this._id = value; | 4117 this._id = value; |
3872 } | 4118 } |
3873 | 4119 |
3874 CompletionGetSuggestionsResult(String id) { | 4120 CompletionGetSuggestionsResult(String id) { |
3875 this.id = id; | 4121 this.id = id; |
3876 } | 4122 } |
3877 | 4123 |
3878 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 4124 factory CompletionGetSuggestionsResult.fromJson( |
| 4125 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
3879 if (json == null) { | 4126 if (json == null) { |
3880 json = {}; | 4127 json = {}; |
3881 } | 4128 } |
3882 if (json is Map) { | 4129 if (json is Map) { |
3883 String id; | 4130 String id; |
3884 if (json.containsKey("id")) { | 4131 if (json.containsKey("id")) { |
3885 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 4132 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
3886 } else { | 4133 } else { |
3887 throw jsonDecoder.missingKey(jsonPath, "id"); | 4134 throw jsonDecoder.missingKey(jsonPath, "id"); |
3888 } | 4135 } |
3889 return new CompletionGetSuggestionsResult(id); | 4136 return new CompletionGetSuggestionsResult(id); |
3890 } else { | 4137 } else { |
3891 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions result", j
son); | 4138 throw jsonDecoder.mismatch( |
| 4139 jsonPath, "completion.getSuggestions result", json); |
3892 } | 4140 } |
3893 } | 4141 } |
3894 | 4142 |
3895 factory CompletionGetSuggestionsResult.fromResponse(Response response) { | 4143 factory CompletionGetSuggestionsResult.fromResponse(Response response) { |
3896 return new CompletionGetSuggestionsResult.fromJson( | 4144 return new CompletionGetSuggestionsResult.fromJson( |
3897 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 4145 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 4146 "result", |
| 4147 response._result); |
3898 } | 4148 } |
3899 | 4149 |
3900 Map<String, dynamic> toJson() { | 4150 Map<String, dynamic> toJson() { |
3901 Map<String, dynamic> result = {}; | 4151 Map<String, dynamic> result = {}; |
3902 result["id"] = id; | 4152 result["id"] = id; |
3903 return result; | 4153 return result; |
3904 } | 4154 } |
3905 | 4155 |
3906 Response toResponse(String id) { | 4156 Response toResponse(String id) { |
3907 return new Response(id, result: toJson()); | 4157 return new Response(id, result: toJson()); |
3908 } | 4158 } |
3909 | 4159 |
3910 @override | 4160 @override |
3911 String toString() => JSON.encode(toJson()); | 4161 String toString() => JSON.encode(toJson()); |
3912 | 4162 |
3913 @override | 4163 @override |
3914 bool operator==(other) { | 4164 bool operator ==(other) { |
3915 if (other is CompletionGetSuggestionsResult) { | 4165 if (other is CompletionGetSuggestionsResult) { |
3916 return id == other.id; | 4166 return id == other.id; |
3917 } | 4167 } |
3918 return false; | 4168 return false; |
3919 } | 4169 } |
3920 | 4170 |
3921 @override | 4171 @override |
3922 int get hashCode { | 4172 int get hashCode { |
3923 int hash = 0; | 4173 int hash = 0; |
3924 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 4174 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4028 | 4278 |
4029 /** | 4279 /** |
4030 * True if this is that last set of results that will be returned for the | 4280 * True if this is that last set of results that will be returned for the |
4031 * indicated completion. | 4281 * indicated completion. |
4032 */ | 4282 */ |
4033 void set isLast(bool value) { | 4283 void set isLast(bool value) { |
4034 assert(value != null); | 4284 assert(value != null); |
4035 this._isLast = value; | 4285 this._isLast = value; |
4036 } | 4286 } |
4037 | 4287 |
4038 CompletionResultsParams(String id, int replacementOffset, int replacementLengt
h, List<CompletionSuggestion> results, bool isLast) { | 4288 CompletionResultsParams(String id, int replacementOffset, |
| 4289 int replacementLength, List<CompletionSuggestion> results, bool isLast) { |
4039 this.id = id; | 4290 this.id = id; |
4040 this.replacementOffset = replacementOffset; | 4291 this.replacementOffset = replacementOffset; |
4041 this.replacementLength = replacementLength; | 4292 this.replacementLength = replacementLength; |
4042 this.results = results; | 4293 this.results = results; |
4043 this.isLast = isLast; | 4294 this.isLast = isLast; |
4044 } | 4295 } |
4045 | 4296 |
4046 factory CompletionResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 4297 factory CompletionResultsParams.fromJson( |
| 4298 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4047 if (json == null) { | 4299 if (json == null) { |
4048 json = {}; | 4300 json = {}; |
4049 } | 4301 } |
4050 if (json is Map) { | 4302 if (json is Map) { |
4051 String id; | 4303 String id; |
4052 if (json.containsKey("id")) { | 4304 if (json.containsKey("id")) { |
4053 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 4305 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4054 } else { | 4306 } else { |
4055 throw jsonDecoder.missingKey(jsonPath, "id"); | 4307 throw jsonDecoder.missingKey(jsonPath, "id"); |
4056 } | 4308 } |
4057 int replacementOffset; | 4309 int replacementOffset; |
4058 if (json.containsKey("replacementOffset")) { | 4310 if (json.containsKey("replacementOffset")) { |
4059 replacementOffset = jsonDecoder.decodeInt(jsonPath + ".replacementOffset
", json["replacementOffset"]); | 4311 replacementOffset = jsonDecoder.decodeInt( |
| 4312 jsonPath + ".replacementOffset", json["replacementOffset"]); |
4060 } else { | 4313 } else { |
4061 throw jsonDecoder.missingKey(jsonPath, "replacementOffset"); | 4314 throw jsonDecoder.missingKey(jsonPath, "replacementOffset"); |
4062 } | 4315 } |
4063 int replacementLength; | 4316 int replacementLength; |
4064 if (json.containsKey("replacementLength")) { | 4317 if (json.containsKey("replacementLength")) { |
4065 replacementLength = jsonDecoder.decodeInt(jsonPath + ".replacementLength
", json["replacementLength"]); | 4318 replacementLength = jsonDecoder.decodeInt( |
| 4319 jsonPath + ".replacementLength", json["replacementLength"]); |
4066 } else { | 4320 } else { |
4067 throw jsonDecoder.missingKey(jsonPath, "replacementLength"); | 4321 throw jsonDecoder.missingKey(jsonPath, "replacementLength"); |
4068 } | 4322 } |
4069 List<CompletionSuggestion> results; | 4323 List<CompletionSuggestion> results; |
4070 if (json.containsKey("results")) { | 4324 if (json.containsKey("results")) { |
4071 results = jsonDecoder.decodeList(jsonPath + ".results", json["results"],
(String jsonPath, Object json) => new CompletionSuggestion.fromJson(jsonDecoder
, jsonPath, json)); | 4325 results = jsonDecoder.decodeList( |
| 4326 jsonPath + ".results", |
| 4327 json["results"], |
| 4328 (String jsonPath, Object json) => |
| 4329 new CompletionSuggestion.fromJson(jsonDecoder, jsonPath, json)); |
4072 } else { | 4330 } else { |
4073 throw jsonDecoder.missingKey(jsonPath, "results"); | 4331 throw jsonDecoder.missingKey(jsonPath, "results"); |
4074 } | 4332 } |
4075 bool isLast; | 4333 bool isLast; |
4076 if (json.containsKey("isLast")) { | 4334 if (json.containsKey("isLast")) { |
4077 isLast = jsonDecoder.decodeBool(jsonPath + ".isLast", json["isLast"]); | 4335 isLast = jsonDecoder.decodeBool(jsonPath + ".isLast", json["isLast"]); |
4078 } else { | 4336 } else { |
4079 throw jsonDecoder.missingKey(jsonPath, "isLast"); | 4337 throw jsonDecoder.missingKey(jsonPath, "isLast"); |
4080 } | 4338 } |
4081 return new CompletionResultsParams(id, replacementOffset, replacementLengt
h, results, isLast); | 4339 return new CompletionResultsParams( |
| 4340 id, replacementOffset, replacementLength, results, isLast); |
4082 } else { | 4341 } else { |
4083 throw jsonDecoder.mismatch(jsonPath, "completion.results params", json); | 4342 throw jsonDecoder.mismatch(jsonPath, "completion.results params", json); |
4084 } | 4343 } |
4085 } | 4344 } |
4086 | 4345 |
4087 factory CompletionResultsParams.fromNotification(Notification notification) { | 4346 factory CompletionResultsParams.fromNotification(Notification notification) { |
4088 return new CompletionResultsParams.fromJson( | 4347 return new CompletionResultsParams.fromJson( |
4089 new ResponseDecoder(null), "params", notification._params); | 4348 new ResponseDecoder(null), "params", notification._params); |
4090 } | 4349 } |
4091 | 4350 |
4092 Map<String, dynamic> toJson() { | 4351 Map<String, dynamic> toJson() { |
4093 Map<String, dynamic> result = {}; | 4352 Map<String, dynamic> result = {}; |
4094 result["id"] = id; | 4353 result["id"] = id; |
4095 result["replacementOffset"] = replacementOffset; | 4354 result["replacementOffset"] = replacementOffset; |
4096 result["replacementLength"] = replacementLength; | 4355 result["replacementLength"] = replacementLength; |
4097 result["results"] = results.map((CompletionSuggestion value) => value.toJson
()).toList(); | 4356 result["results"] = |
| 4357 results.map((CompletionSuggestion value) => value.toJson()).toList(); |
4098 result["isLast"] = isLast; | 4358 result["isLast"] = isLast; |
4099 return result; | 4359 return result; |
4100 } | 4360 } |
4101 | 4361 |
4102 Notification toNotification() { | 4362 Notification toNotification() { |
4103 return new Notification("completion.results", toJson()); | 4363 return new Notification("completion.results", toJson()); |
4104 } | 4364 } |
4105 | 4365 |
4106 @override | 4366 @override |
4107 String toString() => JSON.encode(toJson()); | 4367 String toString() => JSON.encode(toJson()); |
4108 | 4368 |
4109 @override | 4369 @override |
4110 bool operator==(other) { | 4370 bool operator ==(other) { |
4111 if (other is CompletionResultsParams) { | 4371 if (other is CompletionResultsParams) { |
4112 return id == other.id && | 4372 return id == other.id && |
4113 replacementOffset == other.replacementOffset && | 4373 replacementOffset == other.replacementOffset && |
4114 replacementLength == other.replacementLength && | 4374 replacementLength == other.replacementLength && |
4115 listEqual(results, other.results, (CompletionSuggestion a, CompletionS
uggestion b) => a == b) && | 4375 listEqual(results, other.results, |
| 4376 (CompletionSuggestion a, CompletionSuggestion b) => a == b) && |
4116 isLast == other.isLast; | 4377 isLast == other.isLast; |
4117 } | 4378 } |
4118 return false; | 4379 return false; |
4119 } | 4380 } |
4120 | 4381 |
4121 @override | 4382 @override |
4122 int get hashCode { | 4383 int get hashCode { |
4123 int hash = 0; | 4384 int hash = 0; |
4124 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 4385 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
4125 hash = JenkinsSmiHash.combine(hash, replacementOffset.hashCode); | 4386 hash = JenkinsSmiHash.combine(hash, replacementOffset.hashCode); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4184 bool get includePotential => _includePotential; | 4445 bool get includePotential => _includePotential; |
4185 | 4446 |
4186 /** | 4447 /** |
4187 * True if potential matches are to be included in the results. | 4448 * True if potential matches are to be included in the results. |
4188 */ | 4449 */ |
4189 void set includePotential(bool value) { | 4450 void set includePotential(bool value) { |
4190 assert(value != null); | 4451 assert(value != null); |
4191 this._includePotential = value; | 4452 this._includePotential = value; |
4192 } | 4453 } |
4193 | 4454 |
4194 SearchFindElementReferencesParams(String file, int offset, bool includePotenti
al) { | 4455 SearchFindElementReferencesParams( |
| 4456 String file, int offset, bool includePotential) { |
4195 this.file = file; | 4457 this.file = file; |
4196 this.offset = offset; | 4458 this.offset = offset; |
4197 this.includePotential = includePotential; | 4459 this.includePotential = includePotential; |
4198 } | 4460 } |
4199 | 4461 |
4200 factory SearchFindElementReferencesParams.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { | 4462 factory SearchFindElementReferencesParams.fromJson( |
| 4463 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4201 if (json == null) { | 4464 if (json == null) { |
4202 json = {}; | 4465 json = {}; |
4203 } | 4466 } |
4204 if (json is Map) { | 4467 if (json is Map) { |
4205 String file; | 4468 String file; |
4206 if (json.containsKey("file")) { | 4469 if (json.containsKey("file")) { |
4207 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 4470 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
4208 } else { | 4471 } else { |
4209 throw jsonDecoder.missingKey(jsonPath, "file"); | 4472 throw jsonDecoder.missingKey(jsonPath, "file"); |
4210 } | 4473 } |
4211 int offset; | 4474 int offset; |
4212 if (json.containsKey("offset")) { | 4475 if (json.containsKey("offset")) { |
4213 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 4476 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
4214 } else { | 4477 } else { |
4215 throw jsonDecoder.missingKey(jsonPath, "offset"); | 4478 throw jsonDecoder.missingKey(jsonPath, "offset"); |
4216 } | 4479 } |
4217 bool includePotential; | 4480 bool includePotential; |
4218 if (json.containsKey("includePotential")) { | 4481 if (json.containsKey("includePotential")) { |
4219 includePotential = jsonDecoder.decodeBool(jsonPath + ".includePotential"
, json["includePotential"]); | 4482 includePotential = jsonDecoder.decodeBool( |
| 4483 jsonPath + ".includePotential", json["includePotential"]); |
4220 } else { | 4484 } else { |
4221 throw jsonDecoder.missingKey(jsonPath, "includePotential"); | 4485 throw jsonDecoder.missingKey(jsonPath, "includePotential"); |
4222 } | 4486 } |
4223 return new SearchFindElementReferencesParams(file, offset, includePotentia
l); | 4487 return new SearchFindElementReferencesParams( |
| 4488 file, offset, includePotential); |
4224 } else { | 4489 } else { |
4225 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences params"
, json); | 4490 throw jsonDecoder.mismatch( |
| 4491 jsonPath, "search.findElementReferences params", json); |
4226 } | 4492 } |
4227 } | 4493 } |
4228 | 4494 |
4229 factory SearchFindElementReferencesParams.fromRequest(Request request) { | 4495 factory SearchFindElementReferencesParams.fromRequest(Request request) { |
4230 return new SearchFindElementReferencesParams.fromJson( | 4496 return new SearchFindElementReferencesParams.fromJson( |
4231 new RequestDecoder(request), "params", request._params); | 4497 new RequestDecoder(request), "params", request._params); |
4232 } | 4498 } |
4233 | 4499 |
4234 Map<String, dynamic> toJson() { | 4500 Map<String, dynamic> toJson() { |
4235 Map<String, dynamic> result = {}; | 4501 Map<String, dynamic> result = {}; |
4236 result["file"] = file; | 4502 result["file"] = file; |
4237 result["offset"] = offset; | 4503 result["offset"] = offset; |
4238 result["includePotential"] = includePotential; | 4504 result["includePotential"] = includePotential; |
4239 return result; | 4505 return result; |
4240 } | 4506 } |
4241 | 4507 |
4242 Request toRequest(String id) { | 4508 Request toRequest(String id) { |
4243 return new Request(id, "search.findElementReferences", toJson()); | 4509 return new Request(id, "search.findElementReferences", toJson()); |
4244 } | 4510 } |
4245 | 4511 |
4246 @override | 4512 @override |
4247 String toString() => JSON.encode(toJson()); | 4513 String toString() => JSON.encode(toJson()); |
4248 | 4514 |
4249 @override | 4515 @override |
4250 bool operator==(other) { | 4516 bool operator ==(other) { |
4251 if (other is SearchFindElementReferencesParams) { | 4517 if (other is SearchFindElementReferencesParams) { |
4252 return file == other.file && | 4518 return file == other.file && |
4253 offset == other.offset && | 4519 offset == other.offset && |
4254 includePotential == other.includePotential; | 4520 includePotential == other.includePotential; |
4255 } | 4521 } |
4256 return false; | 4522 return false; |
4257 } | 4523 } |
4258 | 4524 |
4259 @override | 4525 @override |
4260 int get hashCode { | 4526 int get hashCode { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4315 */ | 4581 */ |
4316 void set element(Element value) { | 4582 void set element(Element value) { |
4317 this._element = value; | 4583 this._element = value; |
4318 } | 4584 } |
4319 | 4585 |
4320 SearchFindElementReferencesResult({String id, Element element}) { | 4586 SearchFindElementReferencesResult({String id, Element element}) { |
4321 this.id = id; | 4587 this.id = id; |
4322 this.element = element; | 4588 this.element = element; |
4323 } | 4589 } |
4324 | 4590 |
4325 factory SearchFindElementReferencesResult.fromJson(JsonDecoder jsonDecoder, St
ring jsonPath, Object json) { | 4591 factory SearchFindElementReferencesResult.fromJson( |
| 4592 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4326 if (json == null) { | 4593 if (json == null) { |
4327 json = {}; | 4594 json = {}; |
4328 } | 4595 } |
4329 if (json is Map) { | 4596 if (json is Map) { |
4330 String id; | 4597 String id; |
4331 if (json.containsKey("id")) { | 4598 if (json.containsKey("id")) { |
4332 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 4599 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4333 } | 4600 } |
4334 Element element; | 4601 Element element; |
4335 if (json.containsKey("element")) { | 4602 if (json.containsKey("element")) { |
4336 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 4603 element = new Element.fromJson( |
| 4604 jsonDecoder, jsonPath + ".element", json["element"]); |
4337 } | 4605 } |
4338 return new SearchFindElementReferencesResult(id: id, element: element); | 4606 return new SearchFindElementReferencesResult(id: id, element: element); |
4339 } else { | 4607 } else { |
4340 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences result"
, json); | 4608 throw jsonDecoder.mismatch( |
| 4609 jsonPath, "search.findElementReferences result", json); |
4341 } | 4610 } |
4342 } | 4611 } |
4343 | 4612 |
4344 factory SearchFindElementReferencesResult.fromResponse(Response response) { | 4613 factory SearchFindElementReferencesResult.fromResponse(Response response) { |
4345 return new SearchFindElementReferencesResult.fromJson( | 4614 return new SearchFindElementReferencesResult.fromJson( |
4346 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 4615 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 4616 "result", |
| 4617 response._result); |
4347 } | 4618 } |
4348 | 4619 |
4349 Map<String, dynamic> toJson() { | 4620 Map<String, dynamic> toJson() { |
4350 Map<String, dynamic> result = {}; | 4621 Map<String, dynamic> result = {}; |
4351 if (id != null) { | 4622 if (id != null) { |
4352 result["id"] = id; | 4623 result["id"] = id; |
4353 } | 4624 } |
4354 if (element != null) { | 4625 if (element != null) { |
4355 result["element"] = element.toJson(); | 4626 result["element"] = element.toJson(); |
4356 } | 4627 } |
4357 return result; | 4628 return result; |
4358 } | 4629 } |
4359 | 4630 |
4360 Response toResponse(String id) { | 4631 Response toResponse(String id) { |
4361 return new Response(id, result: toJson()); | 4632 return new Response(id, result: toJson()); |
4362 } | 4633 } |
4363 | 4634 |
4364 @override | 4635 @override |
4365 String toString() => JSON.encode(toJson()); | 4636 String toString() => JSON.encode(toJson()); |
4366 | 4637 |
4367 @override | 4638 @override |
4368 bool operator==(other) { | 4639 bool operator ==(other) { |
4369 if (other is SearchFindElementReferencesResult) { | 4640 if (other is SearchFindElementReferencesResult) { |
4370 return id == other.id && | 4641 return id == other.id && element == other.element; |
4371 element == other.element; | |
4372 } | 4642 } |
4373 return false; | 4643 return false; |
4374 } | 4644 } |
4375 | 4645 |
4376 @override | 4646 @override |
4377 int get hashCode { | 4647 int get hashCode { |
4378 int hash = 0; | 4648 int hash = 0; |
4379 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 4649 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
4380 hash = JenkinsSmiHash.combine(hash, element.hashCode); | 4650 hash = JenkinsSmiHash.combine(hash, element.hashCode); |
4381 return JenkinsSmiHash.finish(hash); | 4651 return JenkinsSmiHash.finish(hash); |
(...skipping 22 matching lines...) Expand all Loading... |
4404 */ | 4674 */ |
4405 void set name(String value) { | 4675 void set name(String value) { |
4406 assert(value != null); | 4676 assert(value != null); |
4407 this._name = value; | 4677 this._name = value; |
4408 } | 4678 } |
4409 | 4679 |
4410 SearchFindMemberDeclarationsParams(String name) { | 4680 SearchFindMemberDeclarationsParams(String name) { |
4411 this.name = name; | 4681 this.name = name; |
4412 } | 4682 } |
4413 | 4683 |
4414 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 4684 factory SearchFindMemberDeclarationsParams.fromJson( |
| 4685 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4415 if (json == null) { | 4686 if (json == null) { |
4416 json = {}; | 4687 json = {}; |
4417 } | 4688 } |
4418 if (json is Map) { | 4689 if (json is Map) { |
4419 String name; | 4690 String name; |
4420 if (json.containsKey("name")) { | 4691 if (json.containsKey("name")) { |
4421 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); | 4692 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
4422 } else { | 4693 } else { |
4423 throw jsonDecoder.missingKey(jsonPath, "name"); | 4694 throw jsonDecoder.missingKey(jsonPath, "name"); |
4424 } | 4695 } |
4425 return new SearchFindMemberDeclarationsParams(name); | 4696 return new SearchFindMemberDeclarationsParams(name); |
4426 } else { | 4697 } else { |
4427 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations params
", json); | 4698 throw jsonDecoder.mismatch( |
| 4699 jsonPath, "search.findMemberDeclarations params", json); |
4428 } | 4700 } |
4429 } | 4701 } |
4430 | 4702 |
4431 factory SearchFindMemberDeclarationsParams.fromRequest(Request request) { | 4703 factory SearchFindMemberDeclarationsParams.fromRequest(Request request) { |
4432 return new SearchFindMemberDeclarationsParams.fromJson( | 4704 return new SearchFindMemberDeclarationsParams.fromJson( |
4433 new RequestDecoder(request), "params", request._params); | 4705 new RequestDecoder(request), "params", request._params); |
4434 } | 4706 } |
4435 | 4707 |
4436 Map<String, dynamic> toJson() { | 4708 Map<String, dynamic> toJson() { |
4437 Map<String, dynamic> result = {}; | 4709 Map<String, dynamic> result = {}; |
4438 result["name"] = name; | 4710 result["name"] = name; |
4439 return result; | 4711 return result; |
4440 } | 4712 } |
4441 | 4713 |
4442 Request toRequest(String id) { | 4714 Request toRequest(String id) { |
4443 return new Request(id, "search.findMemberDeclarations", toJson()); | 4715 return new Request(id, "search.findMemberDeclarations", toJson()); |
4444 } | 4716 } |
4445 | 4717 |
4446 @override | 4718 @override |
4447 String toString() => JSON.encode(toJson()); | 4719 String toString() => JSON.encode(toJson()); |
4448 | 4720 |
4449 @override | 4721 @override |
4450 bool operator==(other) { | 4722 bool operator ==(other) { |
4451 if (other is SearchFindMemberDeclarationsParams) { | 4723 if (other is SearchFindMemberDeclarationsParams) { |
4452 return name == other.name; | 4724 return name == other.name; |
4453 } | 4725 } |
4454 return false; | 4726 return false; |
4455 } | 4727 } |
4456 | 4728 |
4457 @override | 4729 @override |
4458 int get hashCode { | 4730 int get hashCode { |
4459 int hash = 0; | 4731 int hash = 0; |
4460 hash = JenkinsSmiHash.combine(hash, name.hashCode); | 4732 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
(...skipping 23 matching lines...) Expand all Loading... |
4484 */ | 4756 */ |
4485 void set id(String value) { | 4757 void set id(String value) { |
4486 assert(value != null); | 4758 assert(value != null); |
4487 this._id = value; | 4759 this._id = value; |
4488 } | 4760 } |
4489 | 4761 |
4490 SearchFindMemberDeclarationsResult(String id) { | 4762 SearchFindMemberDeclarationsResult(String id) { |
4491 this.id = id; | 4763 this.id = id; |
4492 } | 4764 } |
4493 | 4765 |
4494 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 4766 factory SearchFindMemberDeclarationsResult.fromJson( |
| 4767 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4495 if (json == null) { | 4768 if (json == null) { |
4496 json = {}; | 4769 json = {}; |
4497 } | 4770 } |
4498 if (json is Map) { | 4771 if (json is Map) { |
4499 String id; | 4772 String id; |
4500 if (json.containsKey("id")) { | 4773 if (json.containsKey("id")) { |
4501 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 4774 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4502 } else { | 4775 } else { |
4503 throw jsonDecoder.missingKey(jsonPath, "id"); | 4776 throw jsonDecoder.missingKey(jsonPath, "id"); |
4504 } | 4777 } |
4505 return new SearchFindMemberDeclarationsResult(id); | 4778 return new SearchFindMemberDeclarationsResult(id); |
4506 } else { | 4779 } else { |
4507 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations result
", json); | 4780 throw jsonDecoder.mismatch( |
| 4781 jsonPath, "search.findMemberDeclarations result", json); |
4508 } | 4782 } |
4509 } | 4783 } |
4510 | 4784 |
4511 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) { | 4785 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) { |
4512 return new SearchFindMemberDeclarationsResult.fromJson( | 4786 return new SearchFindMemberDeclarationsResult.fromJson( |
4513 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 4787 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 4788 "result", |
| 4789 response._result); |
4514 } | 4790 } |
4515 | 4791 |
4516 Map<String, dynamic> toJson() { | 4792 Map<String, dynamic> toJson() { |
4517 Map<String, dynamic> result = {}; | 4793 Map<String, dynamic> result = {}; |
4518 result["id"] = id; | 4794 result["id"] = id; |
4519 return result; | 4795 return result; |
4520 } | 4796 } |
4521 | 4797 |
4522 Response toResponse(String id) { | 4798 Response toResponse(String id) { |
4523 return new Response(id, result: toJson()); | 4799 return new Response(id, result: toJson()); |
4524 } | 4800 } |
4525 | 4801 |
4526 @override | 4802 @override |
4527 String toString() => JSON.encode(toJson()); | 4803 String toString() => JSON.encode(toJson()); |
4528 | 4804 |
4529 @override | 4805 @override |
4530 bool operator==(other) { | 4806 bool operator ==(other) { |
4531 if (other is SearchFindMemberDeclarationsResult) { | 4807 if (other is SearchFindMemberDeclarationsResult) { |
4532 return id == other.id; | 4808 return id == other.id; |
4533 } | 4809 } |
4534 return false; | 4810 return false; |
4535 } | 4811 } |
4536 | 4812 |
4537 @override | 4813 @override |
4538 int get hashCode { | 4814 int get hashCode { |
4539 int hash = 0; | 4815 int hash = 0; |
4540 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 4816 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
(...skipping 23 matching lines...) Expand all Loading... |
4564 */ | 4840 */ |
4565 void set name(String value) { | 4841 void set name(String value) { |
4566 assert(value != null); | 4842 assert(value != null); |
4567 this._name = value; | 4843 this._name = value; |
4568 } | 4844 } |
4569 | 4845 |
4570 SearchFindMemberReferencesParams(String name) { | 4846 SearchFindMemberReferencesParams(String name) { |
4571 this.name = name; | 4847 this.name = name; |
4572 } | 4848 } |
4573 | 4849 |
4574 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 4850 factory SearchFindMemberReferencesParams.fromJson( |
| 4851 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4575 if (json == null) { | 4852 if (json == null) { |
4576 json = {}; | 4853 json = {}; |
4577 } | 4854 } |
4578 if (json is Map) { | 4855 if (json is Map) { |
4579 String name; | 4856 String name; |
4580 if (json.containsKey("name")) { | 4857 if (json.containsKey("name")) { |
4581 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); | 4858 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
4582 } else { | 4859 } else { |
4583 throw jsonDecoder.missingKey(jsonPath, "name"); | 4860 throw jsonDecoder.missingKey(jsonPath, "name"); |
4584 } | 4861 } |
4585 return new SearchFindMemberReferencesParams(name); | 4862 return new SearchFindMemberReferencesParams(name); |
4586 } else { | 4863 } else { |
4587 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences params",
json); | 4864 throw jsonDecoder.mismatch( |
| 4865 jsonPath, "search.findMemberReferences params", json); |
4588 } | 4866 } |
4589 } | 4867 } |
4590 | 4868 |
4591 factory SearchFindMemberReferencesParams.fromRequest(Request request) { | 4869 factory SearchFindMemberReferencesParams.fromRequest(Request request) { |
4592 return new SearchFindMemberReferencesParams.fromJson( | 4870 return new SearchFindMemberReferencesParams.fromJson( |
4593 new RequestDecoder(request), "params", request._params); | 4871 new RequestDecoder(request), "params", request._params); |
4594 } | 4872 } |
4595 | 4873 |
4596 Map<String, dynamic> toJson() { | 4874 Map<String, dynamic> toJson() { |
4597 Map<String, dynamic> result = {}; | 4875 Map<String, dynamic> result = {}; |
4598 result["name"] = name; | 4876 result["name"] = name; |
4599 return result; | 4877 return result; |
4600 } | 4878 } |
4601 | 4879 |
4602 Request toRequest(String id) { | 4880 Request toRequest(String id) { |
4603 return new Request(id, "search.findMemberReferences", toJson()); | 4881 return new Request(id, "search.findMemberReferences", toJson()); |
4604 } | 4882 } |
4605 | 4883 |
4606 @override | 4884 @override |
4607 String toString() => JSON.encode(toJson()); | 4885 String toString() => JSON.encode(toJson()); |
4608 | 4886 |
4609 @override | 4887 @override |
4610 bool operator==(other) { | 4888 bool operator ==(other) { |
4611 if (other is SearchFindMemberReferencesParams) { | 4889 if (other is SearchFindMemberReferencesParams) { |
4612 return name == other.name; | 4890 return name == other.name; |
4613 } | 4891 } |
4614 return false; | 4892 return false; |
4615 } | 4893 } |
4616 | 4894 |
4617 @override | 4895 @override |
4618 int get hashCode { | 4896 int get hashCode { |
4619 int hash = 0; | 4897 int hash = 0; |
4620 hash = JenkinsSmiHash.combine(hash, name.hashCode); | 4898 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
(...skipping 23 matching lines...) Expand all Loading... |
4644 */ | 4922 */ |
4645 void set id(String value) { | 4923 void set id(String value) { |
4646 assert(value != null); | 4924 assert(value != null); |
4647 this._id = value; | 4925 this._id = value; |
4648 } | 4926 } |
4649 | 4927 |
4650 SearchFindMemberReferencesResult(String id) { | 4928 SearchFindMemberReferencesResult(String id) { |
4651 this.id = id; | 4929 this.id = id; |
4652 } | 4930 } |
4653 | 4931 |
4654 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 4932 factory SearchFindMemberReferencesResult.fromJson( |
| 4933 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4655 if (json == null) { | 4934 if (json == null) { |
4656 json = {}; | 4935 json = {}; |
4657 } | 4936 } |
4658 if (json is Map) { | 4937 if (json is Map) { |
4659 String id; | 4938 String id; |
4660 if (json.containsKey("id")) { | 4939 if (json.containsKey("id")) { |
4661 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 4940 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4662 } else { | 4941 } else { |
4663 throw jsonDecoder.missingKey(jsonPath, "id"); | 4942 throw jsonDecoder.missingKey(jsonPath, "id"); |
4664 } | 4943 } |
4665 return new SearchFindMemberReferencesResult(id); | 4944 return new SearchFindMemberReferencesResult(id); |
4666 } else { | 4945 } else { |
4667 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences result",
json); | 4946 throw jsonDecoder.mismatch( |
| 4947 jsonPath, "search.findMemberReferences result", json); |
4668 } | 4948 } |
4669 } | 4949 } |
4670 | 4950 |
4671 factory SearchFindMemberReferencesResult.fromResponse(Response response) { | 4951 factory SearchFindMemberReferencesResult.fromResponse(Response response) { |
4672 return new SearchFindMemberReferencesResult.fromJson( | 4952 return new SearchFindMemberReferencesResult.fromJson( |
4673 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 4953 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 4954 "result", |
| 4955 response._result); |
4674 } | 4956 } |
4675 | 4957 |
4676 Map<String, dynamic> toJson() { | 4958 Map<String, dynamic> toJson() { |
4677 Map<String, dynamic> result = {}; | 4959 Map<String, dynamic> result = {}; |
4678 result["id"] = id; | 4960 result["id"] = id; |
4679 return result; | 4961 return result; |
4680 } | 4962 } |
4681 | 4963 |
4682 Response toResponse(String id) { | 4964 Response toResponse(String id) { |
4683 return new Response(id, result: toJson()); | 4965 return new Response(id, result: toJson()); |
4684 } | 4966 } |
4685 | 4967 |
4686 @override | 4968 @override |
4687 String toString() => JSON.encode(toJson()); | 4969 String toString() => JSON.encode(toJson()); |
4688 | 4970 |
4689 @override | 4971 @override |
4690 bool operator==(other) { | 4972 bool operator ==(other) { |
4691 if (other is SearchFindMemberReferencesResult) { | 4973 if (other is SearchFindMemberReferencesResult) { |
4692 return id == other.id; | 4974 return id == other.id; |
4693 } | 4975 } |
4694 return false; | 4976 return false; |
4695 } | 4977 } |
4696 | 4978 |
4697 @override | 4979 @override |
4698 int get hashCode { | 4980 int get hashCode { |
4699 int hash = 0; | 4981 int hash = 0; |
4700 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 4982 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
(...skipping 25 matching lines...) Expand all Loading... |
4726 */ | 5008 */ |
4727 void set pattern(String value) { | 5009 void set pattern(String value) { |
4728 assert(value != null); | 5010 assert(value != null); |
4729 this._pattern = value; | 5011 this._pattern = value; |
4730 } | 5012 } |
4731 | 5013 |
4732 SearchFindTopLevelDeclarationsParams(String pattern) { | 5014 SearchFindTopLevelDeclarationsParams(String pattern) { |
4733 this.pattern = pattern; | 5015 this.pattern = pattern; |
4734 } | 5016 } |
4735 | 5017 |
4736 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 5018 factory SearchFindTopLevelDeclarationsParams.fromJson( |
| 5019 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4737 if (json == null) { | 5020 if (json == null) { |
4738 json = {}; | 5021 json = {}; |
4739 } | 5022 } |
4740 if (json is Map) { | 5023 if (json is Map) { |
4741 String pattern; | 5024 String pattern; |
4742 if (json.containsKey("pattern")) { | 5025 if (json.containsKey("pattern")) { |
4743 pattern = jsonDecoder.decodeString(jsonPath + ".pattern", json["pattern"
]); | 5026 pattern = |
| 5027 jsonDecoder.decodeString(jsonPath + ".pattern", json["pattern"]); |
4744 } else { | 5028 } else { |
4745 throw jsonDecoder.missingKey(jsonPath, "pattern"); | 5029 throw jsonDecoder.missingKey(jsonPath, "pattern"); |
4746 } | 5030 } |
4747 return new SearchFindTopLevelDeclarationsParams(pattern); | 5031 return new SearchFindTopLevelDeclarationsParams(pattern); |
4748 } else { | 5032 } else { |
4749 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations para
ms", json); | 5033 throw jsonDecoder.mismatch( |
| 5034 jsonPath, "search.findTopLevelDeclarations params", json); |
4750 } | 5035 } |
4751 } | 5036 } |
4752 | 5037 |
4753 factory SearchFindTopLevelDeclarationsParams.fromRequest(Request request) { | 5038 factory SearchFindTopLevelDeclarationsParams.fromRequest(Request request) { |
4754 return new SearchFindTopLevelDeclarationsParams.fromJson( | 5039 return new SearchFindTopLevelDeclarationsParams.fromJson( |
4755 new RequestDecoder(request), "params", request._params); | 5040 new RequestDecoder(request), "params", request._params); |
4756 } | 5041 } |
4757 | 5042 |
4758 Map<String, dynamic> toJson() { | 5043 Map<String, dynamic> toJson() { |
4759 Map<String, dynamic> result = {}; | 5044 Map<String, dynamic> result = {}; |
4760 result["pattern"] = pattern; | 5045 result["pattern"] = pattern; |
4761 return result; | 5046 return result; |
4762 } | 5047 } |
4763 | 5048 |
4764 Request toRequest(String id) { | 5049 Request toRequest(String id) { |
4765 return new Request(id, "search.findTopLevelDeclarations", toJson()); | 5050 return new Request(id, "search.findTopLevelDeclarations", toJson()); |
4766 } | 5051 } |
4767 | 5052 |
4768 @override | 5053 @override |
4769 String toString() => JSON.encode(toJson()); | 5054 String toString() => JSON.encode(toJson()); |
4770 | 5055 |
4771 @override | 5056 @override |
4772 bool operator==(other) { | 5057 bool operator ==(other) { |
4773 if (other is SearchFindTopLevelDeclarationsParams) { | 5058 if (other is SearchFindTopLevelDeclarationsParams) { |
4774 return pattern == other.pattern; | 5059 return pattern == other.pattern; |
4775 } | 5060 } |
4776 return false; | 5061 return false; |
4777 } | 5062 } |
4778 | 5063 |
4779 @override | 5064 @override |
4780 int get hashCode { | 5065 int get hashCode { |
4781 int hash = 0; | 5066 int hash = 0; |
4782 hash = JenkinsSmiHash.combine(hash, pattern.hashCode); | 5067 hash = JenkinsSmiHash.combine(hash, pattern.hashCode); |
(...skipping 23 matching lines...) Expand all Loading... |
4806 */ | 5091 */ |
4807 void set id(String value) { | 5092 void set id(String value) { |
4808 assert(value != null); | 5093 assert(value != null); |
4809 this._id = value; | 5094 this._id = value; |
4810 } | 5095 } |
4811 | 5096 |
4812 SearchFindTopLevelDeclarationsResult(String id) { | 5097 SearchFindTopLevelDeclarationsResult(String id) { |
4813 this.id = id; | 5098 this.id = id; |
4814 } | 5099 } |
4815 | 5100 |
4816 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 5101 factory SearchFindTopLevelDeclarationsResult.fromJson( |
| 5102 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4817 if (json == null) { | 5103 if (json == null) { |
4818 json = {}; | 5104 json = {}; |
4819 } | 5105 } |
4820 if (json is Map) { | 5106 if (json is Map) { |
4821 String id; | 5107 String id; |
4822 if (json.containsKey("id")) { | 5108 if (json.containsKey("id")) { |
4823 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 5109 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
4824 } else { | 5110 } else { |
4825 throw jsonDecoder.missingKey(jsonPath, "id"); | 5111 throw jsonDecoder.missingKey(jsonPath, "id"); |
4826 } | 5112 } |
4827 return new SearchFindTopLevelDeclarationsResult(id); | 5113 return new SearchFindTopLevelDeclarationsResult(id); |
4828 } else { | 5114 } else { |
4829 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations resu
lt", json); | 5115 throw jsonDecoder.mismatch( |
| 5116 jsonPath, "search.findTopLevelDeclarations result", json); |
4830 } | 5117 } |
4831 } | 5118 } |
4832 | 5119 |
4833 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) { | 5120 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) { |
4834 return new SearchFindTopLevelDeclarationsResult.fromJson( | 5121 return new SearchFindTopLevelDeclarationsResult.fromJson( |
4835 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 5122 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 5123 "result", |
| 5124 response._result); |
4836 } | 5125 } |
4837 | 5126 |
4838 Map<String, dynamic> toJson() { | 5127 Map<String, dynamic> toJson() { |
4839 Map<String, dynamic> result = {}; | 5128 Map<String, dynamic> result = {}; |
4840 result["id"] = id; | 5129 result["id"] = id; |
4841 return result; | 5130 return result; |
4842 } | 5131 } |
4843 | 5132 |
4844 Response toResponse(String id) { | 5133 Response toResponse(String id) { |
4845 return new Response(id, result: toJson()); | 5134 return new Response(id, result: toJson()); |
4846 } | 5135 } |
4847 | 5136 |
4848 @override | 5137 @override |
4849 String toString() => JSON.encode(toJson()); | 5138 String toString() => JSON.encode(toJson()); |
4850 | 5139 |
4851 @override | 5140 @override |
4852 bool operator==(other) { | 5141 bool operator ==(other) { |
4853 if (other is SearchFindTopLevelDeclarationsResult) { | 5142 if (other is SearchFindTopLevelDeclarationsResult) { |
4854 return id == other.id; | 5143 return id == other.id; |
4855 } | 5144 } |
4856 return false; | 5145 return false; |
4857 } | 5146 } |
4858 | 5147 |
4859 @override | 5148 @override |
4860 int get hashCode { | 5149 int get hashCode { |
4861 int hash = 0; | 5150 int hash = 0; |
4862 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 5151 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4923 void set superOnly(bool value) { | 5212 void set superOnly(bool value) { |
4924 this._superOnly = value; | 5213 this._superOnly = value; |
4925 } | 5214 } |
4926 | 5215 |
4927 SearchGetTypeHierarchyParams(String file, int offset, {bool superOnly}) { | 5216 SearchGetTypeHierarchyParams(String file, int offset, {bool superOnly}) { |
4928 this.file = file; | 5217 this.file = file; |
4929 this.offset = offset; | 5218 this.offset = offset; |
4930 this.superOnly = superOnly; | 5219 this.superOnly = superOnly; |
4931 } | 5220 } |
4932 | 5221 |
4933 factory SearchGetTypeHierarchyParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 5222 factory SearchGetTypeHierarchyParams.fromJson( |
| 5223 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
4934 if (json == null) { | 5224 if (json == null) { |
4935 json = {}; | 5225 json = {}; |
4936 } | 5226 } |
4937 if (json is Map) { | 5227 if (json is Map) { |
4938 String file; | 5228 String file; |
4939 if (json.containsKey("file")) { | 5229 if (json.containsKey("file")) { |
4940 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 5230 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
4941 } else { | 5231 } else { |
4942 throw jsonDecoder.missingKey(jsonPath, "file"); | 5232 throw jsonDecoder.missingKey(jsonPath, "file"); |
4943 } | 5233 } |
4944 int offset; | 5234 int offset; |
4945 if (json.containsKey("offset")) { | 5235 if (json.containsKey("offset")) { |
4946 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 5236 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
4947 } else { | 5237 } else { |
4948 throw jsonDecoder.missingKey(jsonPath, "offset"); | 5238 throw jsonDecoder.missingKey(jsonPath, "offset"); |
4949 } | 5239 } |
4950 bool superOnly; | 5240 bool superOnly; |
4951 if (json.containsKey("superOnly")) { | 5241 if (json.containsKey("superOnly")) { |
4952 superOnly = jsonDecoder.decodeBool(jsonPath + ".superOnly", json["superO
nly"]); | 5242 superOnly = |
| 5243 jsonDecoder.decodeBool(jsonPath + ".superOnly", json["superOnly"]); |
4953 } | 5244 } |
4954 return new SearchGetTypeHierarchyParams(file, offset, superOnly: superOnly
); | 5245 return new SearchGetTypeHierarchyParams(file, offset, |
| 5246 superOnly: superOnly); |
4955 } else { | 5247 } else { |
4956 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy params", jso
n); | 5248 throw jsonDecoder.mismatch( |
| 5249 jsonPath, "search.getTypeHierarchy params", json); |
4957 } | 5250 } |
4958 } | 5251 } |
4959 | 5252 |
4960 factory SearchGetTypeHierarchyParams.fromRequest(Request request) { | 5253 factory SearchGetTypeHierarchyParams.fromRequest(Request request) { |
4961 return new SearchGetTypeHierarchyParams.fromJson( | 5254 return new SearchGetTypeHierarchyParams.fromJson( |
4962 new RequestDecoder(request), "params", request._params); | 5255 new RequestDecoder(request), "params", request._params); |
4963 } | 5256 } |
4964 | 5257 |
4965 Map<String, dynamic> toJson() { | 5258 Map<String, dynamic> toJson() { |
4966 Map<String, dynamic> result = {}; | 5259 Map<String, dynamic> result = {}; |
4967 result["file"] = file; | 5260 result["file"] = file; |
4968 result["offset"] = offset; | 5261 result["offset"] = offset; |
4969 if (superOnly != null) { | 5262 if (superOnly != null) { |
4970 result["superOnly"] = superOnly; | 5263 result["superOnly"] = superOnly; |
4971 } | 5264 } |
4972 return result; | 5265 return result; |
4973 } | 5266 } |
4974 | 5267 |
4975 Request toRequest(String id) { | 5268 Request toRequest(String id) { |
4976 return new Request(id, "search.getTypeHierarchy", toJson()); | 5269 return new Request(id, "search.getTypeHierarchy", toJson()); |
4977 } | 5270 } |
4978 | 5271 |
4979 @override | 5272 @override |
4980 String toString() => JSON.encode(toJson()); | 5273 String toString() => JSON.encode(toJson()); |
4981 | 5274 |
4982 @override | 5275 @override |
4983 bool operator==(other) { | 5276 bool operator ==(other) { |
4984 if (other is SearchGetTypeHierarchyParams) { | 5277 if (other is SearchGetTypeHierarchyParams) { |
4985 return file == other.file && | 5278 return file == other.file && |
4986 offset == other.offset && | 5279 offset == other.offset && |
4987 superOnly == other.superOnly; | 5280 superOnly == other.superOnly; |
4988 } | 5281 } |
4989 return false; | 5282 return false; |
4990 } | 5283 } |
4991 | 5284 |
4992 @override | 5285 @override |
4993 int get hashCode { | 5286 int get hashCode { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5036 * allow a type hierarchy to be produced. | 5329 * allow a type hierarchy to be produced. |
5037 */ | 5330 */ |
5038 void set hierarchyItems(List<TypeHierarchyItem> value) { | 5331 void set hierarchyItems(List<TypeHierarchyItem> value) { |
5039 this._hierarchyItems = value; | 5332 this._hierarchyItems = value; |
5040 } | 5333 } |
5041 | 5334 |
5042 SearchGetTypeHierarchyResult({List<TypeHierarchyItem> hierarchyItems}) { | 5335 SearchGetTypeHierarchyResult({List<TypeHierarchyItem> hierarchyItems}) { |
5043 this.hierarchyItems = hierarchyItems; | 5336 this.hierarchyItems = hierarchyItems; |
5044 } | 5337 } |
5045 | 5338 |
5046 factory SearchGetTypeHierarchyResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 5339 factory SearchGetTypeHierarchyResult.fromJson( |
| 5340 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
5047 if (json == null) { | 5341 if (json == null) { |
5048 json = {}; | 5342 json = {}; |
5049 } | 5343 } |
5050 if (json is Map) { | 5344 if (json is Map) { |
5051 List<TypeHierarchyItem> hierarchyItems; | 5345 List<TypeHierarchyItem> hierarchyItems; |
5052 if (json.containsKey("hierarchyItems")) { | 5346 if (json.containsKey("hierarchyItems")) { |
5053 hierarchyItems = jsonDecoder.decodeList(jsonPath + ".hierarchyItems", js
on["hierarchyItems"], (String jsonPath, Object json) => new TypeHierarchyItem.fr
omJson(jsonDecoder, jsonPath, json)); | 5347 hierarchyItems = jsonDecoder.decodeList( |
| 5348 jsonPath + ".hierarchyItems", |
| 5349 json["hierarchyItems"], |
| 5350 (String jsonPath, Object json) => |
| 5351 new TypeHierarchyItem.fromJson(jsonDecoder, jsonPath, json)); |
5054 } | 5352 } |
5055 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems); | 5353 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems); |
5056 } else { | 5354 } else { |
5057 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy result", jso
n); | 5355 throw jsonDecoder.mismatch( |
| 5356 jsonPath, "search.getTypeHierarchy result", json); |
5058 } | 5357 } |
5059 } | 5358 } |
5060 | 5359 |
5061 factory SearchGetTypeHierarchyResult.fromResponse(Response response) { | 5360 factory SearchGetTypeHierarchyResult.fromResponse(Response response) { |
5062 return new SearchGetTypeHierarchyResult.fromJson( | 5361 return new SearchGetTypeHierarchyResult.fromJson( |
5063 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 5362 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 5363 "result", |
| 5364 response._result); |
5064 } | 5365 } |
5065 | 5366 |
5066 Map<String, dynamic> toJson() { | 5367 Map<String, dynamic> toJson() { |
5067 Map<String, dynamic> result = {}; | 5368 Map<String, dynamic> result = {}; |
5068 if (hierarchyItems != null) { | 5369 if (hierarchyItems != null) { |
5069 result["hierarchyItems"] = hierarchyItems.map((TypeHierarchyItem value) =>
value.toJson()).toList(); | 5370 result["hierarchyItems"] = hierarchyItems |
| 5371 .map((TypeHierarchyItem value) => value.toJson()) |
| 5372 .toList(); |
5070 } | 5373 } |
5071 return result; | 5374 return result; |
5072 } | 5375 } |
5073 | 5376 |
5074 Response toResponse(String id) { | 5377 Response toResponse(String id) { |
5075 return new Response(id, result: toJson()); | 5378 return new Response(id, result: toJson()); |
5076 } | 5379 } |
5077 | 5380 |
5078 @override | 5381 @override |
5079 String toString() => JSON.encode(toJson()); | 5382 String toString() => JSON.encode(toJson()); |
5080 | 5383 |
5081 @override | 5384 @override |
5082 bool operator==(other) { | 5385 bool operator ==(other) { |
5083 if (other is SearchGetTypeHierarchyResult) { | 5386 if (other is SearchGetTypeHierarchyResult) { |
5084 return listEqual(hierarchyItems, other.hierarchyItems, (TypeHierarchyItem
a, TypeHierarchyItem b) => a == b); | 5387 return listEqual(hierarchyItems, other.hierarchyItems, |
| 5388 (TypeHierarchyItem a, TypeHierarchyItem b) => a == b); |
5085 } | 5389 } |
5086 return false; | 5390 return false; |
5087 } | 5391 } |
5088 | 5392 |
5089 @override | 5393 @override |
5090 int get hashCode { | 5394 int get hashCode { |
5091 int hash = 0; | 5395 int hash = 0; |
5092 hash = JenkinsSmiHash.combine(hash, hierarchyItems.hashCode); | 5396 hash = JenkinsSmiHash.combine(hash, hierarchyItems.hashCode); |
5093 return JenkinsSmiHash.finish(hash); | 5397 return JenkinsSmiHash.finish(hash); |
5094 } | 5398 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5152 assert(value != null); | 5456 assert(value != null); |
5153 this._isLast = value; | 5457 this._isLast = value; |
5154 } | 5458 } |
5155 | 5459 |
5156 SearchResultsParams(String id, List<SearchResult> results, bool isLast) { | 5460 SearchResultsParams(String id, List<SearchResult> results, bool isLast) { |
5157 this.id = id; | 5461 this.id = id; |
5158 this.results = results; | 5462 this.results = results; |
5159 this.isLast = isLast; | 5463 this.isLast = isLast; |
5160 } | 5464 } |
5161 | 5465 |
5162 factory SearchResultsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 5466 factory SearchResultsParams.fromJson( |
| 5467 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
5163 if (json == null) { | 5468 if (json == null) { |
5164 json = {}; | 5469 json = {}; |
5165 } | 5470 } |
5166 if (json is Map) { | 5471 if (json is Map) { |
5167 String id; | 5472 String id; |
5168 if (json.containsKey("id")) { | 5473 if (json.containsKey("id")) { |
5169 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 5474 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
5170 } else { | 5475 } else { |
5171 throw jsonDecoder.missingKey(jsonPath, "id"); | 5476 throw jsonDecoder.missingKey(jsonPath, "id"); |
5172 } | 5477 } |
5173 List<SearchResult> results; | 5478 List<SearchResult> results; |
5174 if (json.containsKey("results")) { | 5479 if (json.containsKey("results")) { |
5175 results = jsonDecoder.decodeList(jsonPath + ".results", json["results"],
(String jsonPath, Object json) => new SearchResult.fromJson(jsonDecoder, jsonPa
th, json)); | 5480 results = jsonDecoder.decodeList( |
| 5481 jsonPath + ".results", |
| 5482 json["results"], |
| 5483 (String jsonPath, Object json) => |
| 5484 new SearchResult.fromJson(jsonDecoder, jsonPath, json)); |
5176 } else { | 5485 } else { |
5177 throw jsonDecoder.missingKey(jsonPath, "results"); | 5486 throw jsonDecoder.missingKey(jsonPath, "results"); |
5178 } | 5487 } |
5179 bool isLast; | 5488 bool isLast; |
5180 if (json.containsKey("isLast")) { | 5489 if (json.containsKey("isLast")) { |
5181 isLast = jsonDecoder.decodeBool(jsonPath + ".isLast", json["isLast"]); | 5490 isLast = jsonDecoder.decodeBool(jsonPath + ".isLast", json["isLast"]); |
5182 } else { | 5491 } else { |
5183 throw jsonDecoder.missingKey(jsonPath, "isLast"); | 5492 throw jsonDecoder.missingKey(jsonPath, "isLast"); |
5184 } | 5493 } |
5185 return new SearchResultsParams(id, results, isLast); | 5494 return new SearchResultsParams(id, results, isLast); |
5186 } else { | 5495 } else { |
5187 throw jsonDecoder.mismatch(jsonPath, "search.results params", json); | 5496 throw jsonDecoder.mismatch(jsonPath, "search.results params", json); |
5188 } | 5497 } |
5189 } | 5498 } |
5190 | 5499 |
5191 factory SearchResultsParams.fromNotification(Notification notification) { | 5500 factory SearchResultsParams.fromNotification(Notification notification) { |
5192 return new SearchResultsParams.fromJson( | 5501 return new SearchResultsParams.fromJson( |
5193 new ResponseDecoder(null), "params", notification._params); | 5502 new ResponseDecoder(null), "params", notification._params); |
5194 } | 5503 } |
5195 | 5504 |
5196 Map<String, dynamic> toJson() { | 5505 Map<String, dynamic> toJson() { |
5197 Map<String, dynamic> result = {}; | 5506 Map<String, dynamic> result = {}; |
5198 result["id"] = id; | 5507 result["id"] = id; |
5199 result["results"] = results.map((SearchResult value) => value.toJson()).toLi
st(); | 5508 result["results"] = |
| 5509 results.map((SearchResult value) => value.toJson()).toList(); |
5200 result["isLast"] = isLast; | 5510 result["isLast"] = isLast; |
5201 return result; | 5511 return result; |
5202 } | 5512 } |
5203 | 5513 |
5204 Notification toNotification() { | 5514 Notification toNotification() { |
5205 return new Notification("search.results", toJson()); | 5515 return new Notification("search.results", toJson()); |
5206 } | 5516 } |
5207 | 5517 |
5208 @override | 5518 @override |
5209 String toString() => JSON.encode(toJson()); | 5519 String toString() => JSON.encode(toJson()); |
5210 | 5520 |
5211 @override | 5521 @override |
5212 bool operator==(other) { | 5522 bool operator ==(other) { |
5213 if (other is SearchResultsParams) { | 5523 if (other is SearchResultsParams) { |
5214 return id == other.id && | 5524 return id == other.id && |
5215 listEqual(results, other.results, (SearchResult a, SearchResult b) =>
a == b) && | 5525 listEqual(results, other.results, |
| 5526 (SearchResult a, SearchResult b) => a == b) && |
5216 isLast == other.isLast; | 5527 isLast == other.isLast; |
5217 } | 5528 } |
5218 return false; | 5529 return false; |
5219 } | 5530 } |
5220 | 5531 |
5221 @override | 5532 @override |
5222 int get hashCode { | 5533 int get hashCode { |
5223 int hash = 0; | 5534 int hash = 0; |
5224 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 5535 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
5225 hash = JenkinsSmiHash.combine(hash, results.hashCode); | 5536 hash = JenkinsSmiHash.combine(hash, results.hashCode); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5293 */ | 5604 */ |
5294 int get lineLength => _lineLength; | 5605 int get lineLength => _lineLength; |
5295 | 5606 |
5296 /** | 5607 /** |
5297 * The line length to be used by the formatter. | 5608 * The line length to be used by the formatter. |
5298 */ | 5609 */ |
5299 void set lineLength(int value) { | 5610 void set lineLength(int value) { |
5300 this._lineLength = value; | 5611 this._lineLength = value; |
5301 } | 5612 } |
5302 | 5613 |
5303 EditFormatParams(String file, int selectionOffset, int selectionLength, {int l
ineLength}) { | 5614 EditFormatParams(String file, int selectionOffset, int selectionLength, |
| 5615 {int lineLength}) { |
5304 this.file = file; | 5616 this.file = file; |
5305 this.selectionOffset = selectionOffset; | 5617 this.selectionOffset = selectionOffset; |
5306 this.selectionLength = selectionLength; | 5618 this.selectionLength = selectionLength; |
5307 this.lineLength = lineLength; | 5619 this.lineLength = lineLength; |
5308 } | 5620 } |
5309 | 5621 |
5310 factory EditFormatParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 5622 factory EditFormatParams.fromJson( |
| 5623 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
5311 if (json == null) { | 5624 if (json == null) { |
5312 json = {}; | 5625 json = {}; |
5313 } | 5626 } |
5314 if (json is Map) { | 5627 if (json is Map) { |
5315 String file; | 5628 String file; |
5316 if (json.containsKey("file")) { | 5629 if (json.containsKey("file")) { |
5317 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 5630 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
5318 } else { | 5631 } else { |
5319 throw jsonDecoder.missingKey(jsonPath, "file"); | 5632 throw jsonDecoder.missingKey(jsonPath, "file"); |
5320 } | 5633 } |
5321 int selectionOffset; | 5634 int selectionOffset; |
5322 if (json.containsKey("selectionOffset")) { | 5635 if (json.containsKey("selectionOffset")) { |
5323 selectionOffset = jsonDecoder.decodeInt(jsonPath + ".selectionOffset", j
son["selectionOffset"]); | 5636 selectionOffset = jsonDecoder.decodeInt( |
| 5637 jsonPath + ".selectionOffset", json["selectionOffset"]); |
5324 } else { | 5638 } else { |
5325 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); | 5639 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); |
5326 } | 5640 } |
5327 int selectionLength; | 5641 int selectionLength; |
5328 if (json.containsKey("selectionLength")) { | 5642 if (json.containsKey("selectionLength")) { |
5329 selectionLength = jsonDecoder.decodeInt(jsonPath + ".selectionLength", j
son["selectionLength"]); | 5643 selectionLength = jsonDecoder.decodeInt( |
| 5644 jsonPath + ".selectionLength", json["selectionLength"]); |
5330 } else { | 5645 } else { |
5331 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); | 5646 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); |
5332 } | 5647 } |
5333 int lineLength; | 5648 int lineLength; |
5334 if (json.containsKey("lineLength")) { | 5649 if (json.containsKey("lineLength")) { |
5335 lineLength = jsonDecoder.decodeInt(jsonPath + ".lineLength", json["lineL
ength"]); | 5650 lineLength = |
| 5651 jsonDecoder.decodeInt(jsonPath + ".lineLength", json["lineLength"]); |
5336 } | 5652 } |
5337 return new EditFormatParams(file, selectionOffset, selectionLength, lineLe
ngth: lineLength); | 5653 return new EditFormatParams(file, selectionOffset, selectionLength, |
| 5654 lineLength: lineLength); |
5338 } else { | 5655 } else { |
5339 throw jsonDecoder.mismatch(jsonPath, "edit.format params", json); | 5656 throw jsonDecoder.mismatch(jsonPath, "edit.format params", json); |
5340 } | 5657 } |
5341 } | 5658 } |
5342 | 5659 |
5343 factory EditFormatParams.fromRequest(Request request) { | 5660 factory EditFormatParams.fromRequest(Request request) { |
5344 return new EditFormatParams.fromJson( | 5661 return new EditFormatParams.fromJson( |
5345 new RequestDecoder(request), "params", request._params); | 5662 new RequestDecoder(request), "params", request._params); |
5346 } | 5663 } |
5347 | 5664 |
5348 Map<String, dynamic> toJson() { | 5665 Map<String, dynamic> toJson() { |
5349 Map<String, dynamic> result = {}; | 5666 Map<String, dynamic> result = {}; |
5350 result["file"] = file; | 5667 result["file"] = file; |
5351 result["selectionOffset"] = selectionOffset; | 5668 result["selectionOffset"] = selectionOffset; |
5352 result["selectionLength"] = selectionLength; | 5669 result["selectionLength"] = selectionLength; |
5353 if (lineLength != null) { | 5670 if (lineLength != null) { |
5354 result["lineLength"] = lineLength; | 5671 result["lineLength"] = lineLength; |
5355 } | 5672 } |
5356 return result; | 5673 return result; |
5357 } | 5674 } |
5358 | 5675 |
5359 Request toRequest(String id) { | 5676 Request toRequest(String id) { |
5360 return new Request(id, "edit.format", toJson()); | 5677 return new Request(id, "edit.format", toJson()); |
5361 } | 5678 } |
5362 | 5679 |
5363 @override | 5680 @override |
5364 String toString() => JSON.encode(toJson()); | 5681 String toString() => JSON.encode(toJson()); |
5365 | 5682 |
5366 @override | 5683 @override |
5367 bool operator==(other) { | 5684 bool operator ==(other) { |
5368 if (other is EditFormatParams) { | 5685 if (other is EditFormatParams) { |
5369 return file == other.file && | 5686 return file == other.file && |
5370 selectionOffset == other.selectionOffset && | 5687 selectionOffset == other.selectionOffset && |
5371 selectionLength == other.selectionLength && | 5688 selectionLength == other.selectionLength && |
5372 lineLength == other.lineLength; | 5689 lineLength == other.lineLength; |
5373 } | 5690 } |
5374 return false; | 5691 return false; |
5375 } | 5692 } |
5376 | 5693 |
5377 @override | 5694 @override |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5437 int get selectionLength => _selectionLength; | 5754 int get selectionLength => _selectionLength; |
5438 | 5755 |
5439 /** | 5756 /** |
5440 * The length of the selection after formatting the code. | 5757 * The length of the selection after formatting the code. |
5441 */ | 5758 */ |
5442 void set selectionLength(int value) { | 5759 void set selectionLength(int value) { |
5443 assert(value != null); | 5760 assert(value != null); |
5444 this._selectionLength = value; | 5761 this._selectionLength = value; |
5445 } | 5762 } |
5446 | 5763 |
5447 EditFormatResult(List<SourceEdit> edits, int selectionOffset, int selectionLen
gth) { | 5764 EditFormatResult( |
| 5765 List<SourceEdit> edits, int selectionOffset, int selectionLength) { |
5448 this.edits = edits; | 5766 this.edits = edits; |
5449 this.selectionOffset = selectionOffset; | 5767 this.selectionOffset = selectionOffset; |
5450 this.selectionLength = selectionLength; | 5768 this.selectionLength = selectionLength; |
5451 } | 5769 } |
5452 | 5770 |
5453 factory EditFormatResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 5771 factory EditFormatResult.fromJson( |
| 5772 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
5454 if (json == null) { | 5773 if (json == null) { |
5455 json = {}; | 5774 json = {}; |
5456 } | 5775 } |
5457 if (json is Map) { | 5776 if (json is Map) { |
5458 List<SourceEdit> edits; | 5777 List<SourceEdit> edits; |
5459 if (json.containsKey("edits")) { | 5778 if (json.containsKey("edits")) { |
5460 edits = jsonDecoder.decodeList(jsonPath + ".edits", json["edits"], (Stri
ng jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, json
)); | 5779 edits = jsonDecoder.decodeList( |
| 5780 jsonPath + ".edits", |
| 5781 json["edits"], |
| 5782 (String jsonPath, Object json) => |
| 5783 new SourceEdit.fromJson(jsonDecoder, jsonPath, json)); |
5461 } else { | 5784 } else { |
5462 throw jsonDecoder.missingKey(jsonPath, "edits"); | 5785 throw jsonDecoder.missingKey(jsonPath, "edits"); |
5463 } | 5786 } |
5464 int selectionOffset; | 5787 int selectionOffset; |
5465 if (json.containsKey("selectionOffset")) { | 5788 if (json.containsKey("selectionOffset")) { |
5466 selectionOffset = jsonDecoder.decodeInt(jsonPath + ".selectionOffset", j
son["selectionOffset"]); | 5789 selectionOffset = jsonDecoder.decodeInt( |
| 5790 jsonPath + ".selectionOffset", json["selectionOffset"]); |
5467 } else { | 5791 } else { |
5468 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); | 5792 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); |
5469 } | 5793 } |
5470 int selectionLength; | 5794 int selectionLength; |
5471 if (json.containsKey("selectionLength")) { | 5795 if (json.containsKey("selectionLength")) { |
5472 selectionLength = jsonDecoder.decodeInt(jsonPath + ".selectionLength", j
son["selectionLength"]); | 5796 selectionLength = jsonDecoder.decodeInt( |
| 5797 jsonPath + ".selectionLength", json["selectionLength"]); |
5473 } else { | 5798 } else { |
5474 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); | 5799 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); |
5475 } | 5800 } |
5476 return new EditFormatResult(edits, selectionOffset, selectionLength); | 5801 return new EditFormatResult(edits, selectionOffset, selectionLength); |
5477 } else { | 5802 } else { |
5478 throw jsonDecoder.mismatch(jsonPath, "edit.format result", json); | 5803 throw jsonDecoder.mismatch(jsonPath, "edit.format result", json); |
5479 } | 5804 } |
5480 } | 5805 } |
5481 | 5806 |
5482 factory EditFormatResult.fromResponse(Response response) { | 5807 factory EditFormatResult.fromResponse(Response response) { |
5483 return new EditFormatResult.fromJson( | 5808 return new EditFormatResult.fromJson( |
5484 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 5809 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 5810 "result", |
| 5811 response._result); |
5485 } | 5812 } |
5486 | 5813 |
5487 Map<String, dynamic> toJson() { | 5814 Map<String, dynamic> toJson() { |
5488 Map<String, dynamic> result = {}; | 5815 Map<String, dynamic> result = {}; |
5489 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); | 5816 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); |
5490 result["selectionOffset"] = selectionOffset; | 5817 result["selectionOffset"] = selectionOffset; |
5491 result["selectionLength"] = selectionLength; | 5818 result["selectionLength"] = selectionLength; |
5492 return result; | 5819 return result; |
5493 } | 5820 } |
5494 | 5821 |
5495 Response toResponse(String id) { | 5822 Response toResponse(String id) { |
5496 return new Response(id, result: toJson()); | 5823 return new Response(id, result: toJson()); |
5497 } | 5824 } |
5498 | 5825 |
5499 @override | 5826 @override |
5500 String toString() => JSON.encode(toJson()); | 5827 String toString() => JSON.encode(toJson()); |
5501 | 5828 |
5502 @override | 5829 @override |
5503 bool operator==(other) { | 5830 bool operator ==(other) { |
5504 if (other is EditFormatResult) { | 5831 if (other is EditFormatResult) { |
5505 return listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a ==
b) && | 5832 return listEqual( |
| 5833 edits, other.edits, (SourceEdit a, SourceEdit b) => a == b) && |
5506 selectionOffset == other.selectionOffset && | 5834 selectionOffset == other.selectionOffset && |
5507 selectionLength == other.selectionLength; | 5835 selectionLength == other.selectionLength; |
5508 } | 5836 } |
5509 return false; | 5837 return false; |
5510 } | 5838 } |
5511 | 5839 |
5512 @override | 5840 @override |
5513 int get hashCode { | 5841 int get hashCode { |
5514 int hash = 0; | 5842 int hash = 0; |
5515 hash = JenkinsSmiHash.combine(hash, edits.hashCode); | 5843 hash = JenkinsSmiHash.combine(hash, edits.hashCode); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5575 assert(value != null); | 5903 assert(value != null); |
5576 this._length = value; | 5904 this._length = value; |
5577 } | 5905 } |
5578 | 5906 |
5579 EditGetAssistsParams(String file, int offset, int length) { | 5907 EditGetAssistsParams(String file, int offset, int length) { |
5580 this.file = file; | 5908 this.file = file; |
5581 this.offset = offset; | 5909 this.offset = offset; |
5582 this.length = length; | 5910 this.length = length; |
5583 } | 5911 } |
5584 | 5912 |
5585 factory EditGetAssistsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 5913 factory EditGetAssistsParams.fromJson( |
| 5914 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
5586 if (json == null) { | 5915 if (json == null) { |
5587 json = {}; | 5916 json = {}; |
5588 } | 5917 } |
5589 if (json is Map) { | 5918 if (json is Map) { |
5590 String file; | 5919 String file; |
5591 if (json.containsKey("file")) { | 5920 if (json.containsKey("file")) { |
5592 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 5921 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
5593 } else { | 5922 } else { |
5594 throw jsonDecoder.missingKey(jsonPath, "file"); | 5923 throw jsonDecoder.missingKey(jsonPath, "file"); |
5595 } | 5924 } |
(...skipping 29 matching lines...) Expand all Loading... |
5625 } | 5954 } |
5626 | 5955 |
5627 Request toRequest(String id) { | 5956 Request toRequest(String id) { |
5628 return new Request(id, "edit.getAssists", toJson()); | 5957 return new Request(id, "edit.getAssists", toJson()); |
5629 } | 5958 } |
5630 | 5959 |
5631 @override | 5960 @override |
5632 String toString() => JSON.encode(toJson()); | 5961 String toString() => JSON.encode(toJson()); |
5633 | 5962 |
5634 @override | 5963 @override |
5635 bool operator==(other) { | 5964 bool operator ==(other) { |
5636 if (other is EditGetAssistsParams) { | 5965 if (other is EditGetAssistsParams) { |
5637 return file == other.file && | 5966 return file == other.file && |
5638 offset == other.offset && | 5967 offset == other.offset && |
5639 length == other.length; | 5968 length == other.length; |
5640 } | 5969 } |
5641 return false; | 5970 return false; |
5642 } | 5971 } |
5643 | 5972 |
5644 @override | 5973 @override |
5645 int get hashCode { | 5974 int get hashCode { |
(...skipping 27 matching lines...) Expand all Loading... |
5673 */ | 6002 */ |
5674 void set assists(List<SourceChange> value) { | 6003 void set assists(List<SourceChange> value) { |
5675 assert(value != null); | 6004 assert(value != null); |
5676 this._assists = value; | 6005 this._assists = value; |
5677 } | 6006 } |
5678 | 6007 |
5679 EditGetAssistsResult(List<SourceChange> assists) { | 6008 EditGetAssistsResult(List<SourceChange> assists) { |
5680 this.assists = assists; | 6009 this.assists = assists; |
5681 } | 6010 } |
5682 | 6011 |
5683 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 6012 factory EditGetAssistsResult.fromJson( |
| 6013 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
5684 if (json == null) { | 6014 if (json == null) { |
5685 json = {}; | 6015 json = {}; |
5686 } | 6016 } |
5687 if (json is Map) { | 6017 if (json is Map) { |
5688 List<SourceChange> assists; | 6018 List<SourceChange> assists; |
5689 if (json.containsKey("assists")) { | 6019 if (json.containsKey("assists")) { |
5690 assists = jsonDecoder.decodeList(jsonPath + ".assists", json["assists"],
(String jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonPa
th, json)); | 6020 assists = jsonDecoder.decodeList( |
| 6021 jsonPath + ".assists", |
| 6022 json["assists"], |
| 6023 (String jsonPath, Object json) => |
| 6024 new SourceChange.fromJson(jsonDecoder, jsonPath, json)); |
5691 } else { | 6025 } else { |
5692 throw jsonDecoder.missingKey(jsonPath, "assists"); | 6026 throw jsonDecoder.missingKey(jsonPath, "assists"); |
5693 } | 6027 } |
5694 return new EditGetAssistsResult(assists); | 6028 return new EditGetAssistsResult(assists); |
5695 } else { | 6029 } else { |
5696 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result", json); | 6030 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result", json); |
5697 } | 6031 } |
5698 } | 6032 } |
5699 | 6033 |
5700 factory EditGetAssistsResult.fromResponse(Response response) { | 6034 factory EditGetAssistsResult.fromResponse(Response response) { |
5701 return new EditGetAssistsResult.fromJson( | 6035 return new EditGetAssistsResult.fromJson( |
5702 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 6036 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 6037 "result", |
| 6038 response._result); |
5703 } | 6039 } |
5704 | 6040 |
5705 Map<String, dynamic> toJson() { | 6041 Map<String, dynamic> toJson() { |
5706 Map<String, dynamic> result = {}; | 6042 Map<String, dynamic> result = {}; |
5707 result["assists"] = assists.map((SourceChange value) => value.toJson()).toLi
st(); | 6043 result["assists"] = |
| 6044 assists.map((SourceChange value) => value.toJson()).toList(); |
5708 return result; | 6045 return result; |
5709 } | 6046 } |
5710 | 6047 |
5711 Response toResponse(String id) { | 6048 Response toResponse(String id) { |
5712 return new Response(id, result: toJson()); | 6049 return new Response(id, result: toJson()); |
5713 } | 6050 } |
5714 | 6051 |
5715 @override | 6052 @override |
5716 String toString() => JSON.encode(toJson()); | 6053 String toString() => JSON.encode(toJson()); |
5717 | 6054 |
5718 @override | 6055 @override |
5719 bool operator==(other) { | 6056 bool operator ==(other) { |
5720 if (other is EditGetAssistsResult) { | 6057 if (other is EditGetAssistsResult) { |
5721 return listEqual(assists, other.assists, (SourceChange a, SourceChange b)
=> a == b); | 6058 return listEqual( |
| 6059 assists, other.assists, (SourceChange a, SourceChange b) => a == b); |
5722 } | 6060 } |
5723 return false; | 6061 return false; |
5724 } | 6062 } |
5725 | 6063 |
5726 @override | 6064 @override |
5727 int get hashCode { | 6065 int get hashCode { |
5728 int hash = 0; | 6066 int hash = 0; |
5729 hash = JenkinsSmiHash.combine(hash, assists.hashCode); | 6067 hash = JenkinsSmiHash.combine(hash, assists.hashCode); |
5730 return JenkinsSmiHash.finish(hash); | 6068 return JenkinsSmiHash.finish(hash); |
5731 } | 6069 } |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5787 assert(value != null); | 6125 assert(value != null); |
5788 this._length = value; | 6126 this._length = value; |
5789 } | 6127 } |
5790 | 6128 |
5791 EditGetAvailableRefactoringsParams(String file, int offset, int length) { | 6129 EditGetAvailableRefactoringsParams(String file, int offset, int length) { |
5792 this.file = file; | 6130 this.file = file; |
5793 this.offset = offset; | 6131 this.offset = offset; |
5794 this.length = length; | 6132 this.length = length; |
5795 } | 6133 } |
5796 | 6134 |
5797 factory EditGetAvailableRefactoringsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 6135 factory EditGetAvailableRefactoringsParams.fromJson( |
| 6136 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
5798 if (json == null) { | 6137 if (json == null) { |
5799 json = {}; | 6138 json = {}; |
5800 } | 6139 } |
5801 if (json is Map) { | 6140 if (json is Map) { |
5802 String file; | 6141 String file; |
5803 if (json.containsKey("file")) { | 6142 if (json.containsKey("file")) { |
5804 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 6143 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
5805 } else { | 6144 } else { |
5806 throw jsonDecoder.missingKey(jsonPath, "file"); | 6145 throw jsonDecoder.missingKey(jsonPath, "file"); |
5807 } | 6146 } |
5808 int offset; | 6147 int offset; |
5809 if (json.containsKey("offset")) { | 6148 if (json.containsKey("offset")) { |
5810 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 6149 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
5811 } else { | 6150 } else { |
5812 throw jsonDecoder.missingKey(jsonPath, "offset"); | 6151 throw jsonDecoder.missingKey(jsonPath, "offset"); |
5813 } | 6152 } |
5814 int length; | 6153 int length; |
5815 if (json.containsKey("length")) { | 6154 if (json.containsKey("length")) { |
5816 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 6155 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
5817 } else { | 6156 } else { |
5818 throw jsonDecoder.missingKey(jsonPath, "length"); | 6157 throw jsonDecoder.missingKey(jsonPath, "length"); |
5819 } | 6158 } |
5820 return new EditGetAvailableRefactoringsParams(file, offset, length); | 6159 return new EditGetAvailableRefactoringsParams(file, offset, length); |
5821 } else { | 6160 } else { |
5822 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings params
", json); | 6161 throw jsonDecoder.mismatch( |
| 6162 jsonPath, "edit.getAvailableRefactorings params", json); |
5823 } | 6163 } |
5824 } | 6164 } |
5825 | 6165 |
5826 factory EditGetAvailableRefactoringsParams.fromRequest(Request request) { | 6166 factory EditGetAvailableRefactoringsParams.fromRequest(Request request) { |
5827 return new EditGetAvailableRefactoringsParams.fromJson( | 6167 return new EditGetAvailableRefactoringsParams.fromJson( |
5828 new RequestDecoder(request), "params", request._params); | 6168 new RequestDecoder(request), "params", request._params); |
5829 } | 6169 } |
5830 | 6170 |
5831 Map<String, dynamic> toJson() { | 6171 Map<String, dynamic> toJson() { |
5832 Map<String, dynamic> result = {}; | 6172 Map<String, dynamic> result = {}; |
5833 result["file"] = file; | 6173 result["file"] = file; |
5834 result["offset"] = offset; | 6174 result["offset"] = offset; |
5835 result["length"] = length; | 6175 result["length"] = length; |
5836 return result; | 6176 return result; |
5837 } | 6177 } |
5838 | 6178 |
5839 Request toRequest(String id) { | 6179 Request toRequest(String id) { |
5840 return new Request(id, "edit.getAvailableRefactorings", toJson()); | 6180 return new Request(id, "edit.getAvailableRefactorings", toJson()); |
5841 } | 6181 } |
5842 | 6182 |
5843 @override | 6183 @override |
5844 String toString() => JSON.encode(toJson()); | 6184 String toString() => JSON.encode(toJson()); |
5845 | 6185 |
5846 @override | 6186 @override |
5847 bool operator==(other) { | 6187 bool operator ==(other) { |
5848 if (other is EditGetAvailableRefactoringsParams) { | 6188 if (other is EditGetAvailableRefactoringsParams) { |
5849 return file == other.file && | 6189 return file == other.file && |
5850 offset == other.offset && | 6190 offset == other.offset && |
5851 length == other.length; | 6191 length == other.length; |
5852 } | 6192 } |
5853 return false; | 6193 return false; |
5854 } | 6194 } |
5855 | 6195 |
5856 @override | 6196 @override |
5857 int get hashCode { | 6197 int get hashCode { |
(...skipping 27 matching lines...) Expand all Loading... |
5885 */ | 6225 */ |
5886 void set kinds(List<RefactoringKind> value) { | 6226 void set kinds(List<RefactoringKind> value) { |
5887 assert(value != null); | 6227 assert(value != null); |
5888 this._kinds = value; | 6228 this._kinds = value; |
5889 } | 6229 } |
5890 | 6230 |
5891 EditGetAvailableRefactoringsResult(List<RefactoringKind> kinds) { | 6231 EditGetAvailableRefactoringsResult(List<RefactoringKind> kinds) { |
5892 this.kinds = kinds; | 6232 this.kinds = kinds; |
5893 } | 6233 } |
5894 | 6234 |
5895 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 6235 factory EditGetAvailableRefactoringsResult.fromJson( |
| 6236 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
5896 if (json == null) { | 6237 if (json == null) { |
5897 json = {}; | 6238 json = {}; |
5898 } | 6239 } |
5899 if (json is Map) { | 6240 if (json is Map) { |
5900 List<RefactoringKind> kinds; | 6241 List<RefactoringKind> kinds; |
5901 if (json.containsKey("kinds")) { | 6242 if (json.containsKey("kinds")) { |
5902 kinds = jsonDecoder.decodeList(jsonPath + ".kinds", json["kinds"], (Stri
ng jsonPath, Object json) => new RefactoringKind.fromJson(jsonDecoder, jsonPath,
json)); | 6243 kinds = jsonDecoder.decodeList( |
| 6244 jsonPath + ".kinds", |
| 6245 json["kinds"], |
| 6246 (String jsonPath, Object json) => |
| 6247 new RefactoringKind.fromJson(jsonDecoder, jsonPath, json)); |
5903 } else { | 6248 } else { |
5904 throw jsonDecoder.missingKey(jsonPath, "kinds"); | 6249 throw jsonDecoder.missingKey(jsonPath, "kinds"); |
5905 } | 6250 } |
5906 return new EditGetAvailableRefactoringsResult(kinds); | 6251 return new EditGetAvailableRefactoringsResult(kinds); |
5907 } else { | 6252 } else { |
5908 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings result
", json); | 6253 throw jsonDecoder.mismatch( |
| 6254 jsonPath, "edit.getAvailableRefactorings result", json); |
5909 } | 6255 } |
5910 } | 6256 } |
5911 | 6257 |
5912 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) { | 6258 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) { |
5913 return new EditGetAvailableRefactoringsResult.fromJson( | 6259 return new EditGetAvailableRefactoringsResult.fromJson( |
5914 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 6260 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 6261 "result", |
| 6262 response._result); |
5915 } | 6263 } |
5916 | 6264 |
5917 Map<String, dynamic> toJson() { | 6265 Map<String, dynamic> toJson() { |
5918 Map<String, dynamic> result = {}; | 6266 Map<String, dynamic> result = {}; |
5919 result["kinds"] = kinds.map((RefactoringKind value) => value.toJson()).toLis
t(); | 6267 result["kinds"] = |
| 6268 kinds.map((RefactoringKind value) => value.toJson()).toList(); |
5920 return result; | 6269 return result; |
5921 } | 6270 } |
5922 | 6271 |
5923 Response toResponse(String id) { | 6272 Response toResponse(String id) { |
5924 return new Response(id, result: toJson()); | 6273 return new Response(id, result: toJson()); |
5925 } | 6274 } |
5926 | 6275 |
5927 @override | 6276 @override |
5928 String toString() => JSON.encode(toJson()); | 6277 String toString() => JSON.encode(toJson()); |
5929 | 6278 |
5930 @override | 6279 @override |
5931 bool operator==(other) { | 6280 bool operator ==(other) { |
5932 if (other is EditGetAvailableRefactoringsResult) { | 6281 if (other is EditGetAvailableRefactoringsResult) { |
5933 return listEqual(kinds, other.kinds, (RefactoringKind a, RefactoringKind b
) => a == b); | 6282 return listEqual( |
| 6283 kinds, other.kinds, (RefactoringKind a, RefactoringKind b) => a == b); |
5934 } | 6284 } |
5935 return false; | 6285 return false; |
5936 } | 6286 } |
5937 | 6287 |
5938 @override | 6288 @override |
5939 int get hashCode { | 6289 int get hashCode { |
5940 int hash = 0; | 6290 int hash = 0; |
5941 hash = JenkinsSmiHash.combine(hash, kinds.hashCode); | 6291 hash = JenkinsSmiHash.combine(hash, kinds.hashCode); |
5942 return JenkinsSmiHash.finish(hash); | 6292 return JenkinsSmiHash.finish(hash); |
5943 } | 6293 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5982 void set offset(int value) { | 6332 void set offset(int value) { |
5983 assert(value != null); | 6333 assert(value != null); |
5984 this._offset = value; | 6334 this._offset = value; |
5985 } | 6335 } |
5986 | 6336 |
5987 EditGetFixesParams(String file, int offset) { | 6337 EditGetFixesParams(String file, int offset) { |
5988 this.file = file; | 6338 this.file = file; |
5989 this.offset = offset; | 6339 this.offset = offset; |
5990 } | 6340 } |
5991 | 6341 |
5992 factory EditGetFixesParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 6342 factory EditGetFixesParams.fromJson( |
| 6343 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
5993 if (json == null) { | 6344 if (json == null) { |
5994 json = {}; | 6345 json = {}; |
5995 } | 6346 } |
5996 if (json is Map) { | 6347 if (json is Map) { |
5997 String file; | 6348 String file; |
5998 if (json.containsKey("file")) { | 6349 if (json.containsKey("file")) { |
5999 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 6350 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
6000 } else { | 6351 } else { |
6001 throw jsonDecoder.missingKey(jsonPath, "file"); | 6352 throw jsonDecoder.missingKey(jsonPath, "file"); |
6002 } | 6353 } |
(...skipping 22 matching lines...) Expand all Loading... |
6025 } | 6376 } |
6026 | 6377 |
6027 Request toRequest(String id) { | 6378 Request toRequest(String id) { |
6028 return new Request(id, "edit.getFixes", toJson()); | 6379 return new Request(id, "edit.getFixes", toJson()); |
6029 } | 6380 } |
6030 | 6381 |
6031 @override | 6382 @override |
6032 String toString() => JSON.encode(toJson()); | 6383 String toString() => JSON.encode(toJson()); |
6033 | 6384 |
6034 @override | 6385 @override |
6035 bool operator==(other) { | 6386 bool operator ==(other) { |
6036 if (other is EditGetFixesParams) { | 6387 if (other is EditGetFixesParams) { |
6037 return file == other.file && | 6388 return file == other.file && offset == other.offset; |
6038 offset == other.offset; | |
6039 } | 6389 } |
6040 return false; | 6390 return false; |
6041 } | 6391 } |
6042 | 6392 |
6043 @override | 6393 @override |
6044 int get hashCode { | 6394 int get hashCode { |
6045 int hash = 0; | 6395 int hash = 0; |
6046 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 6396 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
6047 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 6397 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
6048 return JenkinsSmiHash.finish(hash); | 6398 return JenkinsSmiHash.finish(hash); |
(...skipping 22 matching lines...) Expand all Loading... |
6071 */ | 6421 */ |
6072 void set fixes(List<AnalysisErrorFixes> value) { | 6422 void set fixes(List<AnalysisErrorFixes> value) { |
6073 assert(value != null); | 6423 assert(value != null); |
6074 this._fixes = value; | 6424 this._fixes = value; |
6075 } | 6425 } |
6076 | 6426 |
6077 EditGetFixesResult(List<AnalysisErrorFixes> fixes) { | 6427 EditGetFixesResult(List<AnalysisErrorFixes> fixes) { |
6078 this.fixes = fixes; | 6428 this.fixes = fixes; |
6079 } | 6429 } |
6080 | 6430 |
6081 factory EditGetFixesResult.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 6431 factory EditGetFixesResult.fromJson( |
| 6432 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
6082 if (json == null) { | 6433 if (json == null) { |
6083 json = {}; | 6434 json = {}; |
6084 } | 6435 } |
6085 if (json is Map) { | 6436 if (json is Map) { |
6086 List<AnalysisErrorFixes> fixes; | 6437 List<AnalysisErrorFixes> fixes; |
6087 if (json.containsKey("fixes")) { | 6438 if (json.containsKey("fixes")) { |
6088 fixes = jsonDecoder.decodeList(jsonPath + ".fixes", json["fixes"], (Stri
ng jsonPath, Object json) => new AnalysisErrorFixes.fromJson(jsonDecoder, jsonPa
th, json)); | 6439 fixes = jsonDecoder.decodeList( |
| 6440 jsonPath + ".fixes", |
| 6441 json["fixes"], |
| 6442 (String jsonPath, Object json) => |
| 6443 new AnalysisErrorFixes.fromJson(jsonDecoder, jsonPath, json)); |
6089 } else { | 6444 } else { |
6090 throw jsonDecoder.missingKey(jsonPath, "fixes"); | 6445 throw jsonDecoder.missingKey(jsonPath, "fixes"); |
6091 } | 6446 } |
6092 return new EditGetFixesResult(fixes); | 6447 return new EditGetFixesResult(fixes); |
6093 } else { | 6448 } else { |
6094 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result", json); | 6449 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result", json); |
6095 } | 6450 } |
6096 } | 6451 } |
6097 | 6452 |
6098 factory EditGetFixesResult.fromResponse(Response response) { | 6453 factory EditGetFixesResult.fromResponse(Response response) { |
6099 return new EditGetFixesResult.fromJson( | 6454 return new EditGetFixesResult.fromJson( |
6100 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 6455 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 6456 "result", |
| 6457 response._result); |
6101 } | 6458 } |
6102 | 6459 |
6103 Map<String, dynamic> toJson() { | 6460 Map<String, dynamic> toJson() { |
6104 Map<String, dynamic> result = {}; | 6461 Map<String, dynamic> result = {}; |
6105 result["fixes"] = fixes.map((AnalysisErrorFixes value) => value.toJson()).to
List(); | 6462 result["fixes"] = |
| 6463 fixes.map((AnalysisErrorFixes value) => value.toJson()).toList(); |
6106 return result; | 6464 return result; |
6107 } | 6465 } |
6108 | 6466 |
6109 Response toResponse(String id) { | 6467 Response toResponse(String id) { |
6110 return new Response(id, result: toJson()); | 6468 return new Response(id, result: toJson()); |
6111 } | 6469 } |
6112 | 6470 |
6113 @override | 6471 @override |
6114 String toString() => JSON.encode(toJson()); | 6472 String toString() => JSON.encode(toJson()); |
6115 | 6473 |
6116 @override | 6474 @override |
6117 bool operator==(other) { | 6475 bool operator ==(other) { |
6118 if (other is EditGetFixesResult) { | 6476 if (other is EditGetFixesResult) { |
6119 return listEqual(fixes, other.fixes, (AnalysisErrorFixes a, AnalysisErrorF
ixes b) => a == b); | 6477 return listEqual(fixes, other.fixes, |
| 6478 (AnalysisErrorFixes a, AnalysisErrorFixes b) => a == b); |
6120 } | 6479 } |
6121 return false; | 6480 return false; |
6122 } | 6481 } |
6123 | 6482 |
6124 @override | 6483 @override |
6125 int get hashCode { | 6484 int get hashCode { |
6126 int hash = 0; | 6485 int hash = 0; |
6127 hash = JenkinsSmiHash.combine(hash, fixes.hashCode); | 6486 hash = JenkinsSmiHash.combine(hash, fixes.hashCode); |
6128 return JenkinsSmiHash.finish(hash); | 6487 return JenkinsSmiHash.finish(hash); |
6129 } | 6488 } |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6236 * Data used to provide values provided by the user. The structure of the | 6595 * Data used to provide values provided by the user. The structure of the |
6237 * data is dependent on the kind of refactoring being performed. The data | 6596 * data is dependent on the kind of refactoring being performed. The data |
6238 * that is expected is documented in the section titled Refactorings, labeled | 6597 * that is expected is documented in the section titled Refactorings, labeled |
6239 * as "Options". This field can be omitted if the refactoring does not | 6598 * as "Options". This field can be omitted if the refactoring does not |
6240 * require any options or if the values of those options are not known. | 6599 * require any options or if the values of those options are not known. |
6241 */ | 6600 */ |
6242 void set options(RefactoringOptions value) { | 6601 void set options(RefactoringOptions value) { |
6243 this._options = value; | 6602 this._options = value; |
6244 } | 6603 } |
6245 | 6604 |
6246 EditGetRefactoringParams(RefactoringKind kind, String file, int offset, int le
ngth, bool validateOnly, {RefactoringOptions options}) { | 6605 EditGetRefactoringParams(RefactoringKind kind, String file, int offset, |
| 6606 int length, bool validateOnly, |
| 6607 {RefactoringOptions options}) { |
6247 this.kind = kind; | 6608 this.kind = kind; |
6248 this.file = file; | 6609 this.file = file; |
6249 this.offset = offset; | 6610 this.offset = offset; |
6250 this.length = length; | 6611 this.length = length; |
6251 this.validateOnly = validateOnly; | 6612 this.validateOnly = validateOnly; |
6252 this.options = options; | 6613 this.options = options; |
6253 } | 6614 } |
6254 | 6615 |
6255 factory EditGetRefactoringParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 6616 factory EditGetRefactoringParams.fromJson( |
| 6617 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
6256 if (json == null) { | 6618 if (json == null) { |
6257 json = {}; | 6619 json = {}; |
6258 } | 6620 } |
6259 if (json is Map) { | 6621 if (json is Map) { |
6260 RefactoringKind kind; | 6622 RefactoringKind kind; |
6261 if (json.containsKey("kind")) { | 6623 if (json.containsKey("kind")) { |
6262 kind = new RefactoringKind.fromJson(jsonDecoder, jsonPath + ".kind", jso
n["kind"]); | 6624 kind = new RefactoringKind.fromJson( |
| 6625 jsonDecoder, jsonPath + ".kind", json["kind"]); |
6263 } else { | 6626 } else { |
6264 throw jsonDecoder.missingKey(jsonPath, "kind"); | 6627 throw jsonDecoder.missingKey(jsonPath, "kind"); |
6265 } | 6628 } |
6266 String file; | 6629 String file; |
6267 if (json.containsKey("file")) { | 6630 if (json.containsKey("file")) { |
6268 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 6631 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
6269 } else { | 6632 } else { |
6270 throw jsonDecoder.missingKey(jsonPath, "file"); | 6633 throw jsonDecoder.missingKey(jsonPath, "file"); |
6271 } | 6634 } |
6272 int offset; | 6635 int offset; |
6273 if (json.containsKey("offset")) { | 6636 if (json.containsKey("offset")) { |
6274 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 6637 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
6275 } else { | 6638 } else { |
6276 throw jsonDecoder.missingKey(jsonPath, "offset"); | 6639 throw jsonDecoder.missingKey(jsonPath, "offset"); |
6277 } | 6640 } |
6278 int length; | 6641 int length; |
6279 if (json.containsKey("length")) { | 6642 if (json.containsKey("length")) { |
6280 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 6643 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
6281 } else { | 6644 } else { |
6282 throw jsonDecoder.missingKey(jsonPath, "length"); | 6645 throw jsonDecoder.missingKey(jsonPath, "length"); |
6283 } | 6646 } |
6284 bool validateOnly; | 6647 bool validateOnly; |
6285 if (json.containsKey("validateOnly")) { | 6648 if (json.containsKey("validateOnly")) { |
6286 validateOnly = jsonDecoder.decodeBool(jsonPath + ".validateOnly", json["
validateOnly"]); | 6649 validateOnly = jsonDecoder.decodeBool( |
| 6650 jsonPath + ".validateOnly", json["validateOnly"]); |
6287 } else { | 6651 } else { |
6288 throw jsonDecoder.missingKey(jsonPath, "validateOnly"); | 6652 throw jsonDecoder.missingKey(jsonPath, "validateOnly"); |
6289 } | 6653 } |
6290 RefactoringOptions options; | 6654 RefactoringOptions options; |
6291 if (json.containsKey("options")) { | 6655 if (json.containsKey("options")) { |
6292 options = new RefactoringOptions.fromJson(jsonDecoder, jsonPath + ".opti
ons", json["options"], kind); | 6656 options = new RefactoringOptions.fromJson( |
| 6657 jsonDecoder, jsonPath + ".options", json["options"], kind); |
6293 } | 6658 } |
6294 return new EditGetRefactoringParams(kind, file, offset, length, validateOn
ly, options: options); | 6659 return new EditGetRefactoringParams( |
| 6660 kind, file, offset, length, validateOnly, |
| 6661 options: options); |
6295 } else { | 6662 } else { |
6296 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params", json); | 6663 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params", json); |
6297 } | 6664 } |
6298 } | 6665 } |
6299 | 6666 |
6300 factory EditGetRefactoringParams.fromRequest(Request request) { | 6667 factory EditGetRefactoringParams.fromRequest(Request request) { |
6301 var params = new EditGetRefactoringParams.fromJson( | 6668 var params = new EditGetRefactoringParams.fromJson( |
6302 new RequestDecoder(request), "params", request._params); | 6669 new RequestDecoder(request), "params", request._params); |
6303 REQUEST_ID_REFACTORING_KINDS[request.id] = params.kind; | 6670 REQUEST_ID_REFACTORING_KINDS[request.id] = params.kind; |
6304 return params; | 6671 return params; |
(...skipping 13 matching lines...) Expand all Loading... |
6318 } | 6685 } |
6319 | 6686 |
6320 Request toRequest(String id) { | 6687 Request toRequest(String id) { |
6321 return new Request(id, "edit.getRefactoring", toJson()); | 6688 return new Request(id, "edit.getRefactoring", toJson()); |
6322 } | 6689 } |
6323 | 6690 |
6324 @override | 6691 @override |
6325 String toString() => JSON.encode(toJson()); | 6692 String toString() => JSON.encode(toJson()); |
6326 | 6693 |
6327 @override | 6694 @override |
6328 bool operator==(other) { | 6695 bool operator ==(other) { |
6329 if (other is EditGetRefactoringParams) { | 6696 if (other is EditGetRefactoringParams) { |
6330 return kind == other.kind && | 6697 return kind == other.kind && |
6331 file == other.file && | 6698 file == other.file && |
6332 offset == other.offset && | 6699 offset == other.offset && |
6333 length == other.length && | 6700 length == other.length && |
6334 validateOnly == other.validateOnly && | 6701 validateOnly == other.validateOnly && |
6335 options == other.options; | 6702 options == other.options; |
6336 } | 6703 } |
6337 return false; | 6704 return false; |
6338 } | 6705 } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6479 * known to be valid if there was insufficient type information for the | 6846 * known to be valid if there was insufficient type information for the |
6480 * server to be able to determine whether or not the code needs to be | 6847 * server to be able to determine whether or not the code needs to be |
6481 * modified, such as when a member is being renamed and there is a reference | 6848 * modified, such as when a member is being renamed and there is a reference |
6482 * to a member from an unknown type. This field will be omitted if the change | 6849 * to a member from an unknown type. This field will be omitted if the change |
6483 * field is omitted or if there are no potential edits for the refactoring. | 6850 * field is omitted or if there are no potential edits for the refactoring. |
6484 */ | 6851 */ |
6485 void set potentialEdits(List<String> value) { | 6852 void set potentialEdits(List<String> value) { |
6486 this._potentialEdits = value; | 6853 this._potentialEdits = value; |
6487 } | 6854 } |
6488 | 6855 |
6489 EditGetRefactoringResult(List<RefactoringProblem> initialProblems, List<Refact
oringProblem> optionsProblems, List<RefactoringProblem> finalProblems, {Refactor
ingFeedback feedback, SourceChange change, List<String> potentialEdits}) { | 6856 EditGetRefactoringResult( |
| 6857 List<RefactoringProblem> initialProblems, |
| 6858 List<RefactoringProblem> optionsProblems, |
| 6859 List<RefactoringProblem> finalProblems, |
| 6860 {RefactoringFeedback feedback, |
| 6861 SourceChange change, |
| 6862 List<String> potentialEdits}) { |
6490 this.initialProblems = initialProblems; | 6863 this.initialProblems = initialProblems; |
6491 this.optionsProblems = optionsProblems; | 6864 this.optionsProblems = optionsProblems; |
6492 this.finalProblems = finalProblems; | 6865 this.finalProblems = finalProblems; |
6493 this.feedback = feedback; | 6866 this.feedback = feedback; |
6494 this.change = change; | 6867 this.change = change; |
6495 this.potentialEdits = potentialEdits; | 6868 this.potentialEdits = potentialEdits; |
6496 } | 6869 } |
6497 | 6870 |
6498 factory EditGetRefactoringResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 6871 factory EditGetRefactoringResult.fromJson( |
| 6872 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
6499 if (json == null) { | 6873 if (json == null) { |
6500 json = {}; | 6874 json = {}; |
6501 } | 6875 } |
6502 if (json is Map) { | 6876 if (json is Map) { |
6503 List<RefactoringProblem> initialProblems; | 6877 List<RefactoringProblem> initialProblems; |
6504 if (json.containsKey("initialProblems")) { | 6878 if (json.containsKey("initialProblems")) { |
6505 initialProblems = jsonDecoder.decodeList(jsonPath + ".initialProblems",
json["initialProblems"], (String jsonPath, Object json) => new RefactoringProble
m.fromJson(jsonDecoder, jsonPath, json)); | 6879 initialProblems = jsonDecoder.decodeList( |
| 6880 jsonPath + ".initialProblems", |
| 6881 json["initialProblems"], |
| 6882 (String jsonPath, Object json) => |
| 6883 new RefactoringProblem.fromJson(jsonDecoder, jsonPath, json)); |
6506 } else { | 6884 } else { |
6507 throw jsonDecoder.missingKey(jsonPath, "initialProblems"); | 6885 throw jsonDecoder.missingKey(jsonPath, "initialProblems"); |
6508 } | 6886 } |
6509 List<RefactoringProblem> optionsProblems; | 6887 List<RefactoringProblem> optionsProblems; |
6510 if (json.containsKey("optionsProblems")) { | 6888 if (json.containsKey("optionsProblems")) { |
6511 optionsProblems = jsonDecoder.decodeList(jsonPath + ".optionsProblems",
json["optionsProblems"], (String jsonPath, Object json) => new RefactoringProble
m.fromJson(jsonDecoder, jsonPath, json)); | 6889 optionsProblems = jsonDecoder.decodeList( |
| 6890 jsonPath + ".optionsProblems", |
| 6891 json["optionsProblems"], |
| 6892 (String jsonPath, Object json) => |
| 6893 new RefactoringProblem.fromJson(jsonDecoder, jsonPath, json)); |
6512 } else { | 6894 } else { |
6513 throw jsonDecoder.missingKey(jsonPath, "optionsProblems"); | 6895 throw jsonDecoder.missingKey(jsonPath, "optionsProblems"); |
6514 } | 6896 } |
6515 List<RefactoringProblem> finalProblems; | 6897 List<RefactoringProblem> finalProblems; |
6516 if (json.containsKey("finalProblems")) { | 6898 if (json.containsKey("finalProblems")) { |
6517 finalProblems = jsonDecoder.decodeList(jsonPath + ".finalProblems", json
["finalProblems"], (String jsonPath, Object json) => new RefactoringProblem.from
Json(jsonDecoder, jsonPath, json)); | 6899 finalProblems = jsonDecoder.decodeList( |
| 6900 jsonPath + ".finalProblems", |
| 6901 json["finalProblems"], |
| 6902 (String jsonPath, Object json) => |
| 6903 new RefactoringProblem.fromJson(jsonDecoder, jsonPath, json)); |
6518 } else { | 6904 } else { |
6519 throw jsonDecoder.missingKey(jsonPath, "finalProblems"); | 6905 throw jsonDecoder.missingKey(jsonPath, "finalProblems"); |
6520 } | 6906 } |
6521 RefactoringFeedback feedback; | 6907 RefactoringFeedback feedback; |
6522 if (json.containsKey("feedback")) { | 6908 if (json.containsKey("feedback")) { |
6523 feedback = new RefactoringFeedback.fromJson(jsonDecoder, jsonPath + ".fe
edback", json["feedback"], json); | 6909 feedback = new RefactoringFeedback.fromJson( |
| 6910 jsonDecoder, jsonPath + ".feedback", json["feedback"], json); |
6524 } | 6911 } |
6525 SourceChange change; | 6912 SourceChange change; |
6526 if (json.containsKey("change")) { | 6913 if (json.containsKey("change")) { |
6527 change = new SourceChange.fromJson(jsonDecoder, jsonPath + ".change", js
on["change"]); | 6914 change = new SourceChange.fromJson( |
| 6915 jsonDecoder, jsonPath + ".change", json["change"]); |
6528 } | 6916 } |
6529 List<String> potentialEdits; | 6917 List<String> potentialEdits; |
6530 if (json.containsKey("potentialEdits")) { | 6918 if (json.containsKey("potentialEdits")) { |
6531 potentialEdits = jsonDecoder.decodeList(jsonPath + ".potentialEdits", js
on["potentialEdits"], jsonDecoder.decodeString); | 6919 potentialEdits = jsonDecoder.decodeList(jsonPath + ".potentialEdits", |
| 6920 json["potentialEdits"], jsonDecoder.decodeString); |
6532 } | 6921 } |
6533 return new EditGetRefactoringResult(initialProblems, optionsProblems, fina
lProblems, feedback: feedback, change: change, potentialEdits: potentialEdits); | 6922 return new EditGetRefactoringResult( |
| 6923 initialProblems, optionsProblems, finalProblems, |
| 6924 feedback: feedback, change: change, potentialEdits: potentialEdits); |
6534 } else { | 6925 } else { |
6535 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result", json); | 6926 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result", json); |
6536 } | 6927 } |
6537 } | 6928 } |
6538 | 6929 |
6539 factory EditGetRefactoringResult.fromResponse(Response response) { | 6930 factory EditGetRefactoringResult.fromResponse(Response response) { |
6540 return new EditGetRefactoringResult.fromJson( | 6931 return new EditGetRefactoringResult.fromJson( |
6541 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 6932 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 6933 "result", |
| 6934 response._result); |
6542 } | 6935 } |
6543 | 6936 |
6544 Map<String, dynamic> toJson() { | 6937 Map<String, dynamic> toJson() { |
6545 Map<String, dynamic> result = {}; | 6938 Map<String, dynamic> result = {}; |
6546 result["initialProblems"] = initialProblems.map((RefactoringProblem value) =
> value.toJson()).toList(); | 6939 result["initialProblems"] = initialProblems |
6547 result["optionsProblems"] = optionsProblems.map((RefactoringProblem value) =
> value.toJson()).toList(); | 6940 .map((RefactoringProblem value) => value.toJson()) |
6548 result["finalProblems"] = finalProblems.map((RefactoringProblem value) => va
lue.toJson()).toList(); | 6941 .toList(); |
| 6942 result["optionsProblems"] = optionsProblems |
| 6943 .map((RefactoringProblem value) => value.toJson()) |
| 6944 .toList(); |
| 6945 result["finalProblems"] = finalProblems |
| 6946 .map((RefactoringProblem value) => value.toJson()) |
| 6947 .toList(); |
6549 if (feedback != null) { | 6948 if (feedback != null) { |
6550 result["feedback"] = feedback.toJson(); | 6949 result["feedback"] = feedback.toJson(); |
6551 } | 6950 } |
6552 if (change != null) { | 6951 if (change != null) { |
6553 result["change"] = change.toJson(); | 6952 result["change"] = change.toJson(); |
6554 } | 6953 } |
6555 if (potentialEdits != null) { | 6954 if (potentialEdits != null) { |
6556 result["potentialEdits"] = potentialEdits; | 6955 result["potentialEdits"] = potentialEdits; |
6557 } | 6956 } |
6558 return result; | 6957 return result; |
6559 } | 6958 } |
6560 | 6959 |
6561 Response toResponse(String id) { | 6960 Response toResponse(String id) { |
6562 return new Response(id, result: toJson()); | 6961 return new Response(id, result: toJson()); |
6563 } | 6962 } |
6564 | 6963 |
6565 @override | 6964 @override |
6566 String toString() => JSON.encode(toJson()); | 6965 String toString() => JSON.encode(toJson()); |
6567 | 6966 |
6568 @override | 6967 @override |
6569 bool operator==(other) { | 6968 bool operator ==(other) { |
6570 if (other is EditGetRefactoringResult) { | 6969 if (other is EditGetRefactoringResult) { |
6571 return listEqual(initialProblems, other.initialProblems, (RefactoringProbl
em a, RefactoringProblem b) => a == b) && | 6970 return listEqual(initialProblems, other.initialProblems, |
6572 listEqual(optionsProblems, other.optionsProblems, (RefactoringProblem
a, RefactoringProblem b) => a == b) && | 6971 (RefactoringProblem a, RefactoringProblem b) => a == b) && |
6573 listEqual(finalProblems, other.finalProblems, (RefactoringProblem a, R
efactoringProblem b) => a == b) && | 6972 listEqual(optionsProblems, other.optionsProblems, |
| 6973 (RefactoringProblem a, RefactoringProblem b) => a == b) && |
| 6974 listEqual(finalProblems, other.finalProblems, |
| 6975 (RefactoringProblem a, RefactoringProblem b) => a == b) && |
6574 feedback == other.feedback && | 6976 feedback == other.feedback && |
6575 change == other.change && | 6977 change == other.change && |
6576 listEqual(potentialEdits, other.potentialEdits, (String a, String b) =
> a == b); | 6978 listEqual(potentialEdits, other.potentialEdits, |
| 6979 (String a, String b) => a == b); |
6577 } | 6980 } |
6578 return false; | 6981 return false; |
6579 } | 6982 } |
6580 | 6983 |
6581 @override | 6984 @override |
6582 int get hashCode { | 6985 int get hashCode { |
6583 int hash = 0; | 6986 int hash = 0; |
6584 hash = JenkinsSmiHash.combine(hash, initialProblems.hashCode); | 6987 hash = JenkinsSmiHash.combine(hash, initialProblems.hashCode); |
6585 hash = JenkinsSmiHash.combine(hash, optionsProblems.hashCode); | 6988 hash = JenkinsSmiHash.combine(hash, optionsProblems.hashCode); |
6586 hash = JenkinsSmiHash.combine(hash, finalProblems.hashCode); | 6989 hash = JenkinsSmiHash.combine(hash, finalProblems.hashCode); |
(...skipping 26 matching lines...) Expand all Loading... |
6613 */ | 7016 */ |
6614 void set file(String value) { | 7017 void set file(String value) { |
6615 assert(value != null); | 7018 assert(value != null); |
6616 this._file = value; | 7019 this._file = value; |
6617 } | 7020 } |
6618 | 7021 |
6619 EditSortMembersParams(String file) { | 7022 EditSortMembersParams(String file) { |
6620 this.file = file; | 7023 this.file = file; |
6621 } | 7024 } |
6622 | 7025 |
6623 factory EditSortMembersParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 7026 factory EditSortMembersParams.fromJson( |
| 7027 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
6624 if (json == null) { | 7028 if (json == null) { |
6625 json = {}; | 7029 json = {}; |
6626 } | 7030 } |
6627 if (json is Map) { | 7031 if (json is Map) { |
6628 String file; | 7032 String file; |
6629 if (json.containsKey("file")) { | 7033 if (json.containsKey("file")) { |
6630 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 7034 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
6631 } else { | 7035 } else { |
6632 throw jsonDecoder.missingKey(jsonPath, "file"); | 7036 throw jsonDecoder.missingKey(jsonPath, "file"); |
6633 } | 7037 } |
(...skipping 15 matching lines...) Expand all Loading... |
6649 } | 7053 } |
6650 | 7054 |
6651 Request toRequest(String id) { | 7055 Request toRequest(String id) { |
6652 return new Request(id, "edit.sortMembers", toJson()); | 7056 return new Request(id, "edit.sortMembers", toJson()); |
6653 } | 7057 } |
6654 | 7058 |
6655 @override | 7059 @override |
6656 String toString() => JSON.encode(toJson()); | 7060 String toString() => JSON.encode(toJson()); |
6657 | 7061 |
6658 @override | 7062 @override |
6659 bool operator==(other) { | 7063 bool operator ==(other) { |
6660 if (other is EditSortMembersParams) { | 7064 if (other is EditSortMembersParams) { |
6661 return file == other.file; | 7065 return file == other.file; |
6662 } | 7066 } |
6663 return false; | 7067 return false; |
6664 } | 7068 } |
6665 | 7069 |
6666 @override | 7070 @override |
6667 int get hashCode { | 7071 int get hashCode { |
6668 int hash = 0; | 7072 int hash = 0; |
6669 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 7073 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
(...skipping 25 matching lines...) Expand all Loading... |
6695 */ | 7099 */ |
6696 void set edit(SourceFileEdit value) { | 7100 void set edit(SourceFileEdit value) { |
6697 assert(value != null); | 7101 assert(value != null); |
6698 this._edit = value; | 7102 this._edit = value; |
6699 } | 7103 } |
6700 | 7104 |
6701 EditSortMembersResult(SourceFileEdit edit) { | 7105 EditSortMembersResult(SourceFileEdit edit) { |
6702 this.edit = edit; | 7106 this.edit = edit; |
6703 } | 7107 } |
6704 | 7108 |
6705 factory EditSortMembersResult.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 7109 factory EditSortMembersResult.fromJson( |
| 7110 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
6706 if (json == null) { | 7111 if (json == null) { |
6707 json = {}; | 7112 json = {}; |
6708 } | 7113 } |
6709 if (json is Map) { | 7114 if (json is Map) { |
6710 SourceFileEdit edit; | 7115 SourceFileEdit edit; |
6711 if (json.containsKey("edit")) { | 7116 if (json.containsKey("edit")) { |
6712 edit = new SourceFileEdit.fromJson(jsonDecoder, jsonPath + ".edit", json
["edit"]); | 7117 edit = new SourceFileEdit.fromJson( |
| 7118 jsonDecoder, jsonPath + ".edit", json["edit"]); |
6713 } else { | 7119 } else { |
6714 throw jsonDecoder.missingKey(jsonPath, "edit"); | 7120 throw jsonDecoder.missingKey(jsonPath, "edit"); |
6715 } | 7121 } |
6716 return new EditSortMembersResult(edit); | 7122 return new EditSortMembersResult(edit); |
6717 } else { | 7123 } else { |
6718 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers result", json); | 7124 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers result", json); |
6719 } | 7125 } |
6720 } | 7126 } |
6721 | 7127 |
6722 factory EditSortMembersResult.fromResponse(Response response) { | 7128 factory EditSortMembersResult.fromResponse(Response response) { |
6723 return new EditSortMembersResult.fromJson( | 7129 return new EditSortMembersResult.fromJson( |
6724 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 7130 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 7131 "result", |
| 7132 response._result); |
6725 } | 7133 } |
6726 | 7134 |
6727 Map<String, dynamic> toJson() { | 7135 Map<String, dynamic> toJson() { |
6728 Map<String, dynamic> result = {}; | 7136 Map<String, dynamic> result = {}; |
6729 result["edit"] = edit.toJson(); | 7137 result["edit"] = edit.toJson(); |
6730 return result; | 7138 return result; |
6731 } | 7139 } |
6732 | 7140 |
6733 Response toResponse(String id) { | 7141 Response toResponse(String id) { |
6734 return new Response(id, result: toJson()); | 7142 return new Response(id, result: toJson()); |
6735 } | 7143 } |
6736 | 7144 |
6737 @override | 7145 @override |
6738 String toString() => JSON.encode(toJson()); | 7146 String toString() => JSON.encode(toJson()); |
6739 | 7147 |
6740 @override | 7148 @override |
6741 bool operator==(other) { | 7149 bool operator ==(other) { |
6742 if (other is EditSortMembersResult) { | 7150 if (other is EditSortMembersResult) { |
6743 return edit == other.edit; | 7151 return edit == other.edit; |
6744 } | 7152 } |
6745 return false; | 7153 return false; |
6746 } | 7154 } |
6747 | 7155 |
6748 @override | 7156 @override |
6749 int get hashCode { | 7157 int get hashCode { |
6750 int hash = 0; | 7158 int hash = 0; |
6751 hash = JenkinsSmiHash.combine(hash, edit.hashCode); | 7159 hash = JenkinsSmiHash.combine(hash, edit.hashCode); |
(...skipping 23 matching lines...) Expand all Loading... |
6775 */ | 7183 */ |
6776 void set file(String value) { | 7184 void set file(String value) { |
6777 assert(value != null); | 7185 assert(value != null); |
6778 this._file = value; | 7186 this._file = value; |
6779 } | 7187 } |
6780 | 7188 |
6781 EditOrganizeDirectivesParams(String file) { | 7189 EditOrganizeDirectivesParams(String file) { |
6782 this.file = file; | 7190 this.file = file; |
6783 } | 7191 } |
6784 | 7192 |
6785 factory EditOrganizeDirectivesParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 7193 factory EditOrganizeDirectivesParams.fromJson( |
| 7194 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
6786 if (json == null) { | 7195 if (json == null) { |
6787 json = {}; | 7196 json = {}; |
6788 } | 7197 } |
6789 if (json is Map) { | 7198 if (json is Map) { |
6790 String file; | 7199 String file; |
6791 if (json.containsKey("file")) { | 7200 if (json.containsKey("file")) { |
6792 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 7201 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
6793 } else { | 7202 } else { |
6794 throw jsonDecoder.missingKey(jsonPath, "file"); | 7203 throw jsonDecoder.missingKey(jsonPath, "file"); |
6795 } | 7204 } |
6796 return new EditOrganizeDirectivesParams(file); | 7205 return new EditOrganizeDirectivesParams(file); |
6797 } else { | 7206 } else { |
6798 throw jsonDecoder.mismatch(jsonPath, "edit.organizeDirectives params", jso
n); | 7207 throw jsonDecoder.mismatch( |
| 7208 jsonPath, "edit.organizeDirectives params", json); |
6799 } | 7209 } |
6800 } | 7210 } |
6801 | 7211 |
6802 factory EditOrganizeDirectivesParams.fromRequest(Request request) { | 7212 factory EditOrganizeDirectivesParams.fromRequest(Request request) { |
6803 return new EditOrganizeDirectivesParams.fromJson( | 7213 return new EditOrganizeDirectivesParams.fromJson( |
6804 new RequestDecoder(request), "params", request._params); | 7214 new RequestDecoder(request), "params", request._params); |
6805 } | 7215 } |
6806 | 7216 |
6807 Map<String, dynamic> toJson() { | 7217 Map<String, dynamic> toJson() { |
6808 Map<String, dynamic> result = {}; | 7218 Map<String, dynamic> result = {}; |
6809 result["file"] = file; | 7219 result["file"] = file; |
6810 return result; | 7220 return result; |
6811 } | 7221 } |
6812 | 7222 |
6813 Request toRequest(String id) { | 7223 Request toRequest(String id) { |
6814 return new Request(id, "edit.organizeDirectives", toJson()); | 7224 return new Request(id, "edit.organizeDirectives", toJson()); |
6815 } | 7225 } |
6816 | 7226 |
6817 @override | 7227 @override |
6818 String toString() => JSON.encode(toJson()); | 7228 String toString() => JSON.encode(toJson()); |
6819 | 7229 |
6820 @override | 7230 @override |
6821 bool operator==(other) { | 7231 bool operator ==(other) { |
6822 if (other is EditOrganizeDirectivesParams) { | 7232 if (other is EditOrganizeDirectivesParams) { |
6823 return file == other.file; | 7233 return file == other.file; |
6824 } | 7234 } |
6825 return false; | 7235 return false; |
6826 } | 7236 } |
6827 | 7237 |
6828 @override | 7238 @override |
6829 int get hashCode { | 7239 int get hashCode { |
6830 int hash = 0; | 7240 int hash = 0; |
6831 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 7241 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
(...skipping 25 matching lines...) Expand all Loading... |
6857 */ | 7267 */ |
6858 void set edit(SourceFileEdit value) { | 7268 void set edit(SourceFileEdit value) { |
6859 assert(value != null); | 7269 assert(value != null); |
6860 this._edit = value; | 7270 this._edit = value; |
6861 } | 7271 } |
6862 | 7272 |
6863 EditOrganizeDirectivesResult(SourceFileEdit edit) { | 7273 EditOrganizeDirectivesResult(SourceFileEdit edit) { |
6864 this.edit = edit; | 7274 this.edit = edit; |
6865 } | 7275 } |
6866 | 7276 |
6867 factory EditOrganizeDirectivesResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 7277 factory EditOrganizeDirectivesResult.fromJson( |
| 7278 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
6868 if (json == null) { | 7279 if (json == null) { |
6869 json = {}; | 7280 json = {}; |
6870 } | 7281 } |
6871 if (json is Map) { | 7282 if (json is Map) { |
6872 SourceFileEdit edit; | 7283 SourceFileEdit edit; |
6873 if (json.containsKey("edit")) { | 7284 if (json.containsKey("edit")) { |
6874 edit = new SourceFileEdit.fromJson(jsonDecoder, jsonPath + ".edit", json
["edit"]); | 7285 edit = new SourceFileEdit.fromJson( |
| 7286 jsonDecoder, jsonPath + ".edit", json["edit"]); |
6875 } else { | 7287 } else { |
6876 throw jsonDecoder.missingKey(jsonPath, "edit"); | 7288 throw jsonDecoder.missingKey(jsonPath, "edit"); |
6877 } | 7289 } |
6878 return new EditOrganizeDirectivesResult(edit); | 7290 return new EditOrganizeDirectivesResult(edit); |
6879 } else { | 7291 } else { |
6880 throw jsonDecoder.mismatch(jsonPath, "edit.organizeDirectives result", jso
n); | 7292 throw jsonDecoder.mismatch( |
| 7293 jsonPath, "edit.organizeDirectives result", json); |
6881 } | 7294 } |
6882 } | 7295 } |
6883 | 7296 |
6884 factory EditOrganizeDirectivesResult.fromResponse(Response response) { | 7297 factory EditOrganizeDirectivesResult.fromResponse(Response response) { |
6885 return new EditOrganizeDirectivesResult.fromJson( | 7298 return new EditOrganizeDirectivesResult.fromJson( |
6886 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 7299 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 7300 "result", |
| 7301 response._result); |
6887 } | 7302 } |
6888 | 7303 |
6889 Map<String, dynamic> toJson() { | 7304 Map<String, dynamic> toJson() { |
6890 Map<String, dynamic> result = {}; | 7305 Map<String, dynamic> result = {}; |
6891 result["edit"] = edit.toJson(); | 7306 result["edit"] = edit.toJson(); |
6892 return result; | 7307 return result; |
6893 } | 7308 } |
6894 | 7309 |
6895 Response toResponse(String id) { | 7310 Response toResponse(String id) { |
6896 return new Response(id, result: toJson()); | 7311 return new Response(id, result: toJson()); |
6897 } | 7312 } |
6898 | 7313 |
6899 @override | 7314 @override |
6900 String toString() => JSON.encode(toJson()); | 7315 String toString() => JSON.encode(toJson()); |
6901 | 7316 |
6902 @override | 7317 @override |
6903 bool operator==(other) { | 7318 bool operator ==(other) { |
6904 if (other is EditOrganizeDirectivesResult) { | 7319 if (other is EditOrganizeDirectivesResult) { |
6905 return edit == other.edit; | 7320 return edit == other.edit; |
6906 } | 7321 } |
6907 return false; | 7322 return false; |
6908 } | 7323 } |
6909 | 7324 |
6910 @override | 7325 @override |
6911 int get hashCode { | 7326 int get hashCode { |
6912 int hash = 0; | 7327 int hash = 0; |
6913 hash = JenkinsSmiHash.combine(hash, edit.hashCode); | 7328 hash = JenkinsSmiHash.combine(hash, edit.hashCode); |
(...skipping 25 matching lines...) Expand all Loading... |
6939 */ | 7354 */ |
6940 void set contextRoot(String value) { | 7355 void set contextRoot(String value) { |
6941 assert(value != null); | 7356 assert(value != null); |
6942 this._contextRoot = value; | 7357 this._contextRoot = value; |
6943 } | 7358 } |
6944 | 7359 |
6945 ExecutionCreateContextParams(String contextRoot) { | 7360 ExecutionCreateContextParams(String contextRoot) { |
6946 this.contextRoot = contextRoot; | 7361 this.contextRoot = contextRoot; |
6947 } | 7362 } |
6948 | 7363 |
6949 factory ExecutionCreateContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 7364 factory ExecutionCreateContextParams.fromJson( |
| 7365 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
6950 if (json == null) { | 7366 if (json == null) { |
6951 json = {}; | 7367 json = {}; |
6952 } | 7368 } |
6953 if (json is Map) { | 7369 if (json is Map) { |
6954 String contextRoot; | 7370 String contextRoot; |
6955 if (json.containsKey("contextRoot")) { | 7371 if (json.containsKey("contextRoot")) { |
6956 contextRoot = jsonDecoder.decodeString(jsonPath + ".contextRoot", json["
contextRoot"]); | 7372 contextRoot = jsonDecoder.decodeString( |
| 7373 jsonPath + ".contextRoot", json["contextRoot"]); |
6957 } else { | 7374 } else { |
6958 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); | 7375 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); |
6959 } | 7376 } |
6960 return new ExecutionCreateContextParams(contextRoot); | 7377 return new ExecutionCreateContextParams(contextRoot); |
6961 } else { | 7378 } else { |
6962 throw jsonDecoder.mismatch(jsonPath, "execution.createContext params", jso
n); | 7379 throw jsonDecoder.mismatch( |
| 7380 jsonPath, "execution.createContext params", json); |
6963 } | 7381 } |
6964 } | 7382 } |
6965 | 7383 |
6966 factory ExecutionCreateContextParams.fromRequest(Request request) { | 7384 factory ExecutionCreateContextParams.fromRequest(Request request) { |
6967 return new ExecutionCreateContextParams.fromJson( | 7385 return new ExecutionCreateContextParams.fromJson( |
6968 new RequestDecoder(request), "params", request._params); | 7386 new RequestDecoder(request), "params", request._params); |
6969 } | 7387 } |
6970 | 7388 |
6971 Map<String, dynamic> toJson() { | 7389 Map<String, dynamic> toJson() { |
6972 Map<String, dynamic> result = {}; | 7390 Map<String, dynamic> result = {}; |
6973 result["contextRoot"] = contextRoot; | 7391 result["contextRoot"] = contextRoot; |
6974 return result; | 7392 return result; |
6975 } | 7393 } |
6976 | 7394 |
6977 Request toRequest(String id) { | 7395 Request toRequest(String id) { |
6978 return new Request(id, "execution.createContext", toJson()); | 7396 return new Request(id, "execution.createContext", toJson()); |
6979 } | 7397 } |
6980 | 7398 |
6981 @override | 7399 @override |
6982 String toString() => JSON.encode(toJson()); | 7400 String toString() => JSON.encode(toJson()); |
6983 | 7401 |
6984 @override | 7402 @override |
6985 bool operator==(other) { | 7403 bool operator ==(other) { |
6986 if (other is ExecutionCreateContextParams) { | 7404 if (other is ExecutionCreateContextParams) { |
6987 return contextRoot == other.contextRoot; | 7405 return contextRoot == other.contextRoot; |
6988 } | 7406 } |
6989 return false; | 7407 return false; |
6990 } | 7408 } |
6991 | 7409 |
6992 @override | 7410 @override |
6993 int get hashCode { | 7411 int get hashCode { |
6994 int hash = 0; | 7412 int hash = 0; |
6995 hash = JenkinsSmiHash.combine(hash, contextRoot.hashCode); | 7413 hash = JenkinsSmiHash.combine(hash, contextRoot.hashCode); |
(...skipping 23 matching lines...) Expand all Loading... |
7019 */ | 7437 */ |
7020 void set id(String value) { | 7438 void set id(String value) { |
7021 assert(value != null); | 7439 assert(value != null); |
7022 this._id = value; | 7440 this._id = value; |
7023 } | 7441 } |
7024 | 7442 |
7025 ExecutionCreateContextResult(String id) { | 7443 ExecutionCreateContextResult(String id) { |
7026 this.id = id; | 7444 this.id = id; |
7027 } | 7445 } |
7028 | 7446 |
7029 factory ExecutionCreateContextResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 7447 factory ExecutionCreateContextResult.fromJson( |
| 7448 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
7030 if (json == null) { | 7449 if (json == null) { |
7031 json = {}; | 7450 json = {}; |
7032 } | 7451 } |
7033 if (json is Map) { | 7452 if (json is Map) { |
7034 String id; | 7453 String id; |
7035 if (json.containsKey("id")) { | 7454 if (json.containsKey("id")) { |
7036 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 7455 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
7037 } else { | 7456 } else { |
7038 throw jsonDecoder.missingKey(jsonPath, "id"); | 7457 throw jsonDecoder.missingKey(jsonPath, "id"); |
7039 } | 7458 } |
7040 return new ExecutionCreateContextResult(id); | 7459 return new ExecutionCreateContextResult(id); |
7041 } else { | 7460 } else { |
7042 throw jsonDecoder.mismatch(jsonPath, "execution.createContext result", jso
n); | 7461 throw jsonDecoder.mismatch( |
| 7462 jsonPath, "execution.createContext result", json); |
7043 } | 7463 } |
7044 } | 7464 } |
7045 | 7465 |
7046 factory ExecutionCreateContextResult.fromResponse(Response response) { | 7466 factory ExecutionCreateContextResult.fromResponse(Response response) { |
7047 return new ExecutionCreateContextResult.fromJson( | 7467 return new ExecutionCreateContextResult.fromJson( |
7048 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 7468 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 7469 "result", |
| 7470 response._result); |
7049 } | 7471 } |
7050 | 7472 |
7051 Map<String, dynamic> toJson() { | 7473 Map<String, dynamic> toJson() { |
7052 Map<String, dynamic> result = {}; | 7474 Map<String, dynamic> result = {}; |
7053 result["id"] = id; | 7475 result["id"] = id; |
7054 return result; | 7476 return result; |
7055 } | 7477 } |
7056 | 7478 |
7057 Response toResponse(String id) { | 7479 Response toResponse(String id) { |
7058 return new Response(id, result: toJson()); | 7480 return new Response(id, result: toJson()); |
7059 } | 7481 } |
7060 | 7482 |
7061 @override | 7483 @override |
7062 String toString() => JSON.encode(toJson()); | 7484 String toString() => JSON.encode(toJson()); |
7063 | 7485 |
7064 @override | 7486 @override |
7065 bool operator==(other) { | 7487 bool operator ==(other) { |
7066 if (other is ExecutionCreateContextResult) { | 7488 if (other is ExecutionCreateContextResult) { |
7067 return id == other.id; | 7489 return id == other.id; |
7068 } | 7490 } |
7069 return false; | 7491 return false; |
7070 } | 7492 } |
7071 | 7493 |
7072 @override | 7494 @override |
7073 int get hashCode { | 7495 int get hashCode { |
7074 int hash = 0; | 7496 int hash = 0; |
7075 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 7497 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
(...skipping 23 matching lines...) Expand all Loading... |
7099 */ | 7521 */ |
7100 void set id(String value) { | 7522 void set id(String value) { |
7101 assert(value != null); | 7523 assert(value != null); |
7102 this._id = value; | 7524 this._id = value; |
7103 } | 7525 } |
7104 | 7526 |
7105 ExecutionDeleteContextParams(String id) { | 7527 ExecutionDeleteContextParams(String id) { |
7106 this.id = id; | 7528 this.id = id; |
7107 } | 7529 } |
7108 | 7530 |
7109 factory ExecutionDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 7531 factory ExecutionDeleteContextParams.fromJson( |
| 7532 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
7110 if (json == null) { | 7533 if (json == null) { |
7111 json = {}; | 7534 json = {}; |
7112 } | 7535 } |
7113 if (json is Map) { | 7536 if (json is Map) { |
7114 String id; | 7537 String id; |
7115 if (json.containsKey("id")) { | 7538 if (json.containsKey("id")) { |
7116 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 7539 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
7117 } else { | 7540 } else { |
7118 throw jsonDecoder.missingKey(jsonPath, "id"); | 7541 throw jsonDecoder.missingKey(jsonPath, "id"); |
7119 } | 7542 } |
7120 return new ExecutionDeleteContextParams(id); | 7543 return new ExecutionDeleteContextParams(id); |
7121 } else { | 7544 } else { |
7122 throw jsonDecoder.mismatch(jsonPath, "execution.deleteContext params", jso
n); | 7545 throw jsonDecoder.mismatch( |
| 7546 jsonPath, "execution.deleteContext params", json); |
7123 } | 7547 } |
7124 } | 7548 } |
7125 | 7549 |
7126 factory ExecutionDeleteContextParams.fromRequest(Request request) { | 7550 factory ExecutionDeleteContextParams.fromRequest(Request request) { |
7127 return new ExecutionDeleteContextParams.fromJson( | 7551 return new ExecutionDeleteContextParams.fromJson( |
7128 new RequestDecoder(request), "params", request._params); | 7552 new RequestDecoder(request), "params", request._params); |
7129 } | 7553 } |
7130 | 7554 |
7131 Map<String, dynamic> toJson() { | 7555 Map<String, dynamic> toJson() { |
7132 Map<String, dynamic> result = {}; | 7556 Map<String, dynamic> result = {}; |
7133 result["id"] = id; | 7557 result["id"] = id; |
7134 return result; | 7558 return result; |
7135 } | 7559 } |
7136 | 7560 |
7137 Request toRequest(String id) { | 7561 Request toRequest(String id) { |
7138 return new Request(id, "execution.deleteContext", toJson()); | 7562 return new Request(id, "execution.deleteContext", toJson()); |
7139 } | 7563 } |
7140 | 7564 |
7141 @override | 7565 @override |
7142 String toString() => JSON.encode(toJson()); | 7566 String toString() => JSON.encode(toJson()); |
7143 | 7567 |
7144 @override | 7568 @override |
7145 bool operator==(other) { | 7569 bool operator ==(other) { |
7146 if (other is ExecutionDeleteContextParams) { | 7570 if (other is ExecutionDeleteContextParams) { |
7147 return id == other.id; | 7571 return id == other.id; |
7148 } | 7572 } |
7149 return false; | 7573 return false; |
7150 } | 7574 } |
7151 | 7575 |
7152 @override | 7576 @override |
7153 int get hashCode { | 7577 int get hashCode { |
7154 int hash = 0; | 7578 int hash = 0; |
7155 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 7579 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
7156 return JenkinsSmiHash.finish(hash); | 7580 return JenkinsSmiHash.finish(hash); |
7157 } | 7581 } |
7158 } | 7582 } |
| 7583 |
7159 /** | 7584 /** |
7160 * execution.deleteContext result | 7585 * execution.deleteContext result |
7161 * | 7586 * |
7162 * Clients may not extend, implement or mix-in this class. | 7587 * Clients may not extend, implement or mix-in this class. |
7163 */ | 7588 */ |
7164 class ExecutionDeleteContextResult { | 7589 class ExecutionDeleteContextResult { |
7165 Response toResponse(String id) { | 7590 Response toResponse(String id) { |
7166 return new Response(id, result: null); | 7591 return new Response(id, result: null); |
7167 } | 7592 } |
7168 | 7593 |
7169 @override | 7594 @override |
7170 bool operator==(other) { | 7595 bool operator ==(other) { |
7171 if (other is ExecutionDeleteContextResult) { | 7596 if (other is ExecutionDeleteContextResult) { |
7172 return true; | 7597 return true; |
7173 } | 7598 } |
7174 return false; | 7599 return false; |
7175 } | 7600 } |
7176 | 7601 |
7177 @override | 7602 @override |
7178 int get hashCode { | 7603 int get hashCode { |
7179 return 479954425; | 7604 return 479954425; |
7180 } | 7605 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7234 void set uri(String value) { | 7659 void set uri(String value) { |
7235 this._uri = value; | 7660 this._uri = value; |
7236 } | 7661 } |
7237 | 7662 |
7238 ExecutionMapUriParams(String id, {String file, String uri}) { | 7663 ExecutionMapUriParams(String id, {String file, String uri}) { |
7239 this.id = id; | 7664 this.id = id; |
7240 this.file = file; | 7665 this.file = file; |
7241 this.uri = uri; | 7666 this.uri = uri; |
7242 } | 7667 } |
7243 | 7668 |
7244 factory ExecutionMapUriParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 7669 factory ExecutionMapUriParams.fromJson( |
| 7670 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
7245 if (json == null) { | 7671 if (json == null) { |
7246 json = {}; | 7672 json = {}; |
7247 } | 7673 } |
7248 if (json is Map) { | 7674 if (json is Map) { |
7249 String id; | 7675 String id; |
7250 if (json.containsKey("id")) { | 7676 if (json.containsKey("id")) { |
7251 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 7677 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
7252 } else { | 7678 } else { |
7253 throw jsonDecoder.missingKey(jsonPath, "id"); | 7679 throw jsonDecoder.missingKey(jsonPath, "id"); |
7254 } | 7680 } |
(...skipping 29 matching lines...) Expand all Loading... |
7284 } | 7710 } |
7285 | 7711 |
7286 Request toRequest(String id) { | 7712 Request toRequest(String id) { |
7287 return new Request(id, "execution.mapUri", toJson()); | 7713 return new Request(id, "execution.mapUri", toJson()); |
7288 } | 7714 } |
7289 | 7715 |
7290 @override | 7716 @override |
7291 String toString() => JSON.encode(toJson()); | 7717 String toString() => JSON.encode(toJson()); |
7292 | 7718 |
7293 @override | 7719 @override |
7294 bool operator==(other) { | 7720 bool operator ==(other) { |
7295 if (other is ExecutionMapUriParams) { | 7721 if (other is ExecutionMapUriParams) { |
7296 return id == other.id && | 7722 return id == other.id && file == other.file && uri == other.uri; |
7297 file == other.file && | |
7298 uri == other.uri; | |
7299 } | 7723 } |
7300 return false; | 7724 return false; |
7301 } | 7725 } |
7302 | 7726 |
7303 @override | 7727 @override |
7304 int get hashCode { | 7728 int get hashCode { |
7305 int hash = 0; | 7729 int hash = 0; |
7306 hash = JenkinsSmiHash.combine(hash, id.hashCode); | 7730 hash = JenkinsSmiHash.combine(hash, id.hashCode); |
7307 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 7731 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
7308 hash = JenkinsSmiHash.combine(hash, uri.hashCode); | 7732 hash = JenkinsSmiHash.combine(hash, uri.hashCode); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7351 */ | 7775 */ |
7352 void set uri(String value) { | 7776 void set uri(String value) { |
7353 this._uri = value; | 7777 this._uri = value; |
7354 } | 7778 } |
7355 | 7779 |
7356 ExecutionMapUriResult({String file, String uri}) { | 7780 ExecutionMapUriResult({String file, String uri}) { |
7357 this.file = file; | 7781 this.file = file; |
7358 this.uri = uri; | 7782 this.uri = uri; |
7359 } | 7783 } |
7360 | 7784 |
7361 factory ExecutionMapUriResult.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 7785 factory ExecutionMapUriResult.fromJson( |
| 7786 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
7362 if (json == null) { | 7787 if (json == null) { |
7363 json = {}; | 7788 json = {}; |
7364 } | 7789 } |
7365 if (json is Map) { | 7790 if (json is Map) { |
7366 String file; | 7791 String file; |
7367 if (json.containsKey("file")) { | 7792 if (json.containsKey("file")) { |
7368 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 7793 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
7369 } | 7794 } |
7370 String uri; | 7795 String uri; |
7371 if (json.containsKey("uri")) { | 7796 if (json.containsKey("uri")) { |
7372 uri = jsonDecoder.decodeString(jsonPath + ".uri", json["uri"]); | 7797 uri = jsonDecoder.decodeString(jsonPath + ".uri", json["uri"]); |
7373 } | 7798 } |
7374 return new ExecutionMapUriResult(file: file, uri: uri); | 7799 return new ExecutionMapUriResult(file: file, uri: uri); |
7375 } else { | 7800 } else { |
7376 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri result", json); | 7801 throw jsonDecoder.mismatch(jsonPath, "execution.mapUri result", json); |
7377 } | 7802 } |
7378 } | 7803 } |
7379 | 7804 |
7380 factory ExecutionMapUriResult.fromResponse(Response response) { | 7805 factory ExecutionMapUriResult.fromResponse(Response response) { |
7381 return new ExecutionMapUriResult.fromJson( | 7806 return new ExecutionMapUriResult.fromJson( |
7382 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 7807 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 7808 "result", |
| 7809 response._result); |
7383 } | 7810 } |
7384 | 7811 |
7385 Map<String, dynamic> toJson() { | 7812 Map<String, dynamic> toJson() { |
7386 Map<String, dynamic> result = {}; | 7813 Map<String, dynamic> result = {}; |
7387 if (file != null) { | 7814 if (file != null) { |
7388 result["file"] = file; | 7815 result["file"] = file; |
7389 } | 7816 } |
7390 if (uri != null) { | 7817 if (uri != null) { |
7391 result["uri"] = uri; | 7818 result["uri"] = uri; |
7392 } | 7819 } |
7393 return result; | 7820 return result; |
7394 } | 7821 } |
7395 | 7822 |
7396 Response toResponse(String id) { | 7823 Response toResponse(String id) { |
7397 return new Response(id, result: toJson()); | 7824 return new Response(id, result: toJson()); |
7398 } | 7825 } |
7399 | 7826 |
7400 @override | 7827 @override |
7401 String toString() => JSON.encode(toJson()); | 7828 String toString() => JSON.encode(toJson()); |
7402 | 7829 |
7403 @override | 7830 @override |
7404 bool operator==(other) { | 7831 bool operator ==(other) { |
7405 if (other is ExecutionMapUriResult) { | 7832 if (other is ExecutionMapUriResult) { |
7406 return file == other.file && | 7833 return file == other.file && uri == other.uri; |
7407 uri == other.uri; | |
7408 } | 7834 } |
7409 return false; | 7835 return false; |
7410 } | 7836 } |
7411 | 7837 |
7412 @override | 7838 @override |
7413 int get hashCode { | 7839 int get hashCode { |
7414 int hash = 0; | 7840 int hash = 0; |
7415 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 7841 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
7416 hash = JenkinsSmiHash.combine(hash, uri.hashCode); | 7842 hash = JenkinsSmiHash.combine(hash, uri.hashCode); |
7417 return JenkinsSmiHash.finish(hash); | 7843 return JenkinsSmiHash.finish(hash); |
(...skipping 22 matching lines...) Expand all Loading... |
7440 */ | 7866 */ |
7441 void set subscriptions(List<ExecutionService> value) { | 7867 void set subscriptions(List<ExecutionService> value) { |
7442 assert(value != null); | 7868 assert(value != null); |
7443 this._subscriptions = value; | 7869 this._subscriptions = value; |
7444 } | 7870 } |
7445 | 7871 |
7446 ExecutionSetSubscriptionsParams(List<ExecutionService> subscriptions) { | 7872 ExecutionSetSubscriptionsParams(List<ExecutionService> subscriptions) { |
7447 this.subscriptions = subscriptions; | 7873 this.subscriptions = subscriptions; |
7448 } | 7874 } |
7449 | 7875 |
7450 factory ExecutionSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Stri
ng jsonPath, Object json) { | 7876 factory ExecutionSetSubscriptionsParams.fromJson( |
| 7877 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
7451 if (json == null) { | 7878 if (json == null) { |
7452 json = {}; | 7879 json = {}; |
7453 } | 7880 } |
7454 if (json is Map) { | 7881 if (json is Map) { |
7455 List<ExecutionService> subscriptions; | 7882 List<ExecutionService> subscriptions; |
7456 if (json.containsKey("subscriptions")) { | 7883 if (json.containsKey("subscriptions")) { |
7457 subscriptions = jsonDecoder.decodeList(jsonPath + ".subscriptions", json
["subscriptions"], (String jsonPath, Object json) => new ExecutionService.fromJs
on(jsonDecoder, jsonPath, json)); | 7884 subscriptions = jsonDecoder.decodeList( |
| 7885 jsonPath + ".subscriptions", |
| 7886 json["subscriptions"], |
| 7887 (String jsonPath, Object json) => |
| 7888 new ExecutionService.fromJson(jsonDecoder, jsonPath, json)); |
7458 } else { | 7889 } else { |
7459 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 7890 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
7460 } | 7891 } |
7461 return new ExecutionSetSubscriptionsParams(subscriptions); | 7892 return new ExecutionSetSubscriptionsParams(subscriptions); |
7462 } else { | 7893 } else { |
7463 throw jsonDecoder.mismatch(jsonPath, "execution.setSubscriptions params",
json); | 7894 throw jsonDecoder.mismatch( |
| 7895 jsonPath, "execution.setSubscriptions params", json); |
7464 } | 7896 } |
7465 } | 7897 } |
7466 | 7898 |
7467 factory ExecutionSetSubscriptionsParams.fromRequest(Request request) { | 7899 factory ExecutionSetSubscriptionsParams.fromRequest(Request request) { |
7468 return new ExecutionSetSubscriptionsParams.fromJson( | 7900 return new ExecutionSetSubscriptionsParams.fromJson( |
7469 new RequestDecoder(request), "params", request._params); | 7901 new RequestDecoder(request), "params", request._params); |
7470 } | 7902 } |
7471 | 7903 |
7472 Map<String, dynamic> toJson() { | 7904 Map<String, dynamic> toJson() { |
7473 Map<String, dynamic> result = {}; | 7905 Map<String, dynamic> result = {}; |
7474 result["subscriptions"] = subscriptions.map((ExecutionService value) => valu
e.toJson()).toList(); | 7906 result["subscriptions"] = |
| 7907 subscriptions.map((ExecutionService value) => value.toJson()).toList(); |
7475 return result; | 7908 return result; |
7476 } | 7909 } |
7477 | 7910 |
7478 Request toRequest(String id) { | 7911 Request toRequest(String id) { |
7479 return new Request(id, "execution.setSubscriptions", toJson()); | 7912 return new Request(id, "execution.setSubscriptions", toJson()); |
7480 } | 7913 } |
7481 | 7914 |
7482 @override | 7915 @override |
7483 String toString() => JSON.encode(toJson()); | 7916 String toString() => JSON.encode(toJson()); |
7484 | 7917 |
7485 @override | 7918 @override |
7486 bool operator==(other) { | 7919 bool operator ==(other) { |
7487 if (other is ExecutionSetSubscriptionsParams) { | 7920 if (other is ExecutionSetSubscriptionsParams) { |
7488 return listEqual(subscriptions, other.subscriptions, (ExecutionService a,
ExecutionService b) => a == b); | 7921 return listEqual(subscriptions, other.subscriptions, |
| 7922 (ExecutionService a, ExecutionService b) => a == b); |
7489 } | 7923 } |
7490 return false; | 7924 return false; |
7491 } | 7925 } |
7492 | 7926 |
7493 @override | 7927 @override |
7494 int get hashCode { | 7928 int get hashCode { |
7495 int hash = 0; | 7929 int hash = 0; |
7496 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 7930 hash = JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
7497 return JenkinsSmiHash.finish(hash); | 7931 return JenkinsSmiHash.finish(hash); |
7498 } | 7932 } |
7499 } | 7933 } |
| 7934 |
7500 /** | 7935 /** |
7501 * execution.setSubscriptions result | 7936 * execution.setSubscriptions result |
7502 * | 7937 * |
7503 * Clients may not extend, implement or mix-in this class. | 7938 * Clients may not extend, implement or mix-in this class. |
7504 */ | 7939 */ |
7505 class ExecutionSetSubscriptionsResult { | 7940 class ExecutionSetSubscriptionsResult { |
7506 Response toResponse(String id) { | 7941 Response toResponse(String id) { |
7507 return new Response(id, result: null); | 7942 return new Response(id, result: null); |
7508 } | 7943 } |
7509 | 7944 |
7510 @override | 7945 @override |
7511 bool operator==(other) { | 7946 bool operator ==(other) { |
7512 if (other is ExecutionSetSubscriptionsResult) { | 7947 if (other is ExecutionSetSubscriptionsResult) { |
7513 return true; | 7948 return true; |
7514 } | 7949 } |
7515 return false; | 7950 return false; |
7516 } | 7951 } |
7517 | 7952 |
7518 @override | 7953 @override |
7519 int get hashCode { | 7954 int get hashCode { |
7520 return 287678780; | 7955 return 287678780; |
7521 } | 7956 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7575 List<String> get referencedFiles => _referencedFiles; | 8010 List<String> get referencedFiles => _referencedFiles; |
7576 | 8011 |
7577 /** | 8012 /** |
7578 * A list of the Dart files that are referenced by the file. This field is | 8013 * A list of the Dart files that are referenced by the file. This field is |
7579 * omitted if the file is not an HTML file. | 8014 * omitted if the file is not an HTML file. |
7580 */ | 8015 */ |
7581 void set referencedFiles(List<String> value) { | 8016 void set referencedFiles(List<String> value) { |
7582 this._referencedFiles = value; | 8017 this._referencedFiles = value; |
7583 } | 8018 } |
7584 | 8019 |
7585 ExecutionLaunchDataParams(String file, {ExecutableKind kind, List<String> refe
rencedFiles}) { | 8020 ExecutionLaunchDataParams(String file, |
| 8021 {ExecutableKind kind, List<String> referencedFiles}) { |
7586 this.file = file; | 8022 this.file = file; |
7587 this.kind = kind; | 8023 this.kind = kind; |
7588 this.referencedFiles = referencedFiles; | 8024 this.referencedFiles = referencedFiles; |
7589 } | 8025 } |
7590 | 8026 |
7591 factory ExecutionLaunchDataParams.fromJson(JsonDecoder jsonDecoder, String jso
nPath, Object json) { | 8027 factory ExecutionLaunchDataParams.fromJson( |
| 8028 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
7592 if (json == null) { | 8029 if (json == null) { |
7593 json = {}; | 8030 json = {}; |
7594 } | 8031 } |
7595 if (json is Map) { | 8032 if (json is Map) { |
7596 String file; | 8033 String file; |
7597 if (json.containsKey("file")) { | 8034 if (json.containsKey("file")) { |
7598 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 8035 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
7599 } else { | 8036 } else { |
7600 throw jsonDecoder.missingKey(jsonPath, "file"); | 8037 throw jsonDecoder.missingKey(jsonPath, "file"); |
7601 } | 8038 } |
7602 ExecutableKind kind; | 8039 ExecutableKind kind; |
7603 if (json.containsKey("kind")) { | 8040 if (json.containsKey("kind")) { |
7604 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); | 8041 kind = new ExecutableKind.fromJson( |
| 8042 jsonDecoder, jsonPath + ".kind", json["kind"]); |
7605 } | 8043 } |
7606 List<String> referencedFiles; | 8044 List<String> referencedFiles; |
7607 if (json.containsKey("referencedFiles")) { | 8045 if (json.containsKey("referencedFiles")) { |
7608 referencedFiles = jsonDecoder.decodeList(jsonPath + ".referencedFiles",
json["referencedFiles"], jsonDecoder.decodeString); | 8046 referencedFiles = jsonDecoder.decodeList(jsonPath + ".referencedFiles", |
| 8047 json["referencedFiles"], jsonDecoder.decodeString); |
7609 } | 8048 } |
7610 return new ExecutionLaunchDataParams(file, kind: kind, referencedFiles: re
ferencedFiles); | 8049 return new ExecutionLaunchDataParams(file, |
| 8050 kind: kind, referencedFiles: referencedFiles); |
7611 } else { | 8051 } else { |
7612 throw jsonDecoder.mismatch(jsonPath, "execution.launchData params", json); | 8052 throw jsonDecoder.mismatch(jsonPath, "execution.launchData params", json); |
7613 } | 8053 } |
7614 } | 8054 } |
7615 | 8055 |
7616 factory ExecutionLaunchDataParams.fromNotification(Notification notification)
{ | 8056 factory ExecutionLaunchDataParams.fromNotification( |
| 8057 Notification notification) { |
7617 return new ExecutionLaunchDataParams.fromJson( | 8058 return new ExecutionLaunchDataParams.fromJson( |
7618 new ResponseDecoder(null), "params", notification._params); | 8059 new ResponseDecoder(null), "params", notification._params); |
7619 } | 8060 } |
7620 | 8061 |
7621 Map<String, dynamic> toJson() { | 8062 Map<String, dynamic> toJson() { |
7622 Map<String, dynamic> result = {}; | 8063 Map<String, dynamic> result = {}; |
7623 result["file"] = file; | 8064 result["file"] = file; |
7624 if (kind != null) { | 8065 if (kind != null) { |
7625 result["kind"] = kind.toJson(); | 8066 result["kind"] = kind.toJson(); |
7626 } | 8067 } |
7627 if (referencedFiles != null) { | 8068 if (referencedFiles != null) { |
7628 result["referencedFiles"] = referencedFiles; | 8069 result["referencedFiles"] = referencedFiles; |
7629 } | 8070 } |
7630 return result; | 8071 return result; |
7631 } | 8072 } |
7632 | 8073 |
7633 Notification toNotification() { | 8074 Notification toNotification() { |
7634 return new Notification("execution.launchData", toJson()); | 8075 return new Notification("execution.launchData", toJson()); |
7635 } | 8076 } |
7636 | 8077 |
7637 @override | 8078 @override |
7638 String toString() => JSON.encode(toJson()); | 8079 String toString() => JSON.encode(toJson()); |
7639 | 8080 |
7640 @override | 8081 @override |
7641 bool operator==(other) { | 8082 bool operator ==(other) { |
7642 if (other is ExecutionLaunchDataParams) { | 8083 if (other is ExecutionLaunchDataParams) { |
7643 return file == other.file && | 8084 return file == other.file && |
7644 kind == other.kind && | 8085 kind == other.kind && |
7645 listEqual(referencedFiles, other.referencedFiles, (String a, String b)
=> a == b); | 8086 listEqual(referencedFiles, other.referencedFiles, |
| 8087 (String a, String b) => a == b); |
7646 } | 8088 } |
7647 return false; | 8089 return false; |
7648 } | 8090 } |
7649 | 8091 |
7650 @override | 8092 @override |
7651 int get hashCode { | 8093 int get hashCode { |
7652 int hash = 0; | 8094 int hash = 0; |
7653 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 8095 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
7654 hash = JenkinsSmiHash.combine(hash, kind.hashCode); | 8096 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
7655 hash = JenkinsSmiHash.combine(hash, referencedFiles.hashCode); | 8097 hash = JenkinsSmiHash.combine(hash, referencedFiles.hashCode); |
7656 return JenkinsSmiHash.finish(hash); | 8098 return JenkinsSmiHash.finish(hash); |
7657 } | 8099 } |
7658 } | 8100 } |
| 8101 |
7659 /** | 8102 /** |
7660 * diagnostic.getDiagnostics params | 8103 * diagnostic.getDiagnostics params |
7661 * | 8104 * |
7662 * Clients may not extend, implement or mix-in this class. | 8105 * Clients may not extend, implement or mix-in this class. |
7663 */ | 8106 */ |
7664 class DiagnosticGetDiagnosticsParams { | 8107 class DiagnosticGetDiagnosticsParams { |
7665 Request toRequest(String id) { | 8108 Request toRequest(String id) { |
7666 return new Request(id, "diagnostic.getDiagnostics", null); | 8109 return new Request(id, "diagnostic.getDiagnostics", null); |
7667 } | 8110 } |
7668 | 8111 |
7669 @override | 8112 @override |
7670 bool operator==(other) { | 8113 bool operator ==(other) { |
7671 if (other is DiagnosticGetDiagnosticsParams) { | 8114 if (other is DiagnosticGetDiagnosticsParams) { |
7672 return true; | 8115 return true; |
7673 } | 8116 } |
7674 return false; | 8117 return false; |
7675 } | 8118 } |
7676 | 8119 |
7677 @override | 8120 @override |
7678 int get hashCode { | 8121 int get hashCode { |
7679 return 587526202; | 8122 return 587526202; |
7680 } | 8123 } |
(...skipping 21 matching lines...) Expand all Loading... |
7702 */ | 8145 */ |
7703 void set contexts(List<ContextData> value) { | 8146 void set contexts(List<ContextData> value) { |
7704 assert(value != null); | 8147 assert(value != null); |
7705 this._contexts = value; | 8148 this._contexts = value; |
7706 } | 8149 } |
7707 | 8150 |
7708 DiagnosticGetDiagnosticsResult(List<ContextData> contexts) { | 8151 DiagnosticGetDiagnosticsResult(List<ContextData> contexts) { |
7709 this.contexts = contexts; | 8152 this.contexts = contexts; |
7710 } | 8153 } |
7711 | 8154 |
7712 factory DiagnosticGetDiagnosticsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 8155 factory DiagnosticGetDiagnosticsResult.fromJson( |
| 8156 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
7713 if (json == null) { | 8157 if (json == null) { |
7714 json = {}; | 8158 json = {}; |
7715 } | 8159 } |
7716 if (json is Map) { | 8160 if (json is Map) { |
7717 List<ContextData> contexts; | 8161 List<ContextData> contexts; |
7718 if (json.containsKey("contexts")) { | 8162 if (json.containsKey("contexts")) { |
7719 contexts = jsonDecoder.decodeList(jsonPath + ".contexts", json["contexts
"], (String jsonPath, Object json) => new ContextData.fromJson(jsonDecoder, json
Path, json)); | 8163 contexts = jsonDecoder.decodeList( |
| 8164 jsonPath + ".contexts", |
| 8165 json["contexts"], |
| 8166 (String jsonPath, Object json) => |
| 8167 new ContextData.fromJson(jsonDecoder, jsonPath, json)); |
7720 } else { | 8168 } else { |
7721 throw jsonDecoder.missingKey(jsonPath, "contexts"); | 8169 throw jsonDecoder.missingKey(jsonPath, "contexts"); |
7722 } | 8170 } |
7723 return new DiagnosticGetDiagnosticsResult(contexts); | 8171 return new DiagnosticGetDiagnosticsResult(contexts); |
7724 } else { | 8172 } else { |
7725 throw jsonDecoder.mismatch(jsonPath, "diagnostic.getDiagnostics result", j
son); | 8173 throw jsonDecoder.mismatch( |
| 8174 jsonPath, "diagnostic.getDiagnostics result", json); |
7726 } | 8175 } |
7727 } | 8176 } |
7728 | 8177 |
7729 factory DiagnosticGetDiagnosticsResult.fromResponse(Response response) { | 8178 factory DiagnosticGetDiagnosticsResult.fromResponse(Response response) { |
7730 return new DiagnosticGetDiagnosticsResult.fromJson( | 8179 return new DiagnosticGetDiagnosticsResult.fromJson( |
7731 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 8180 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 8181 "result", |
| 8182 response._result); |
7732 } | 8183 } |
7733 | 8184 |
7734 Map<String, dynamic> toJson() { | 8185 Map<String, dynamic> toJson() { |
7735 Map<String, dynamic> result = {}; | 8186 Map<String, dynamic> result = {}; |
7736 result["contexts"] = contexts.map((ContextData value) => value.toJson()).toL
ist(); | 8187 result["contexts"] = |
| 8188 contexts.map((ContextData value) => value.toJson()).toList(); |
7737 return result; | 8189 return result; |
7738 } | 8190 } |
7739 | 8191 |
7740 Response toResponse(String id) { | 8192 Response toResponse(String id) { |
7741 return new Response(id, result: toJson()); | 8193 return new Response(id, result: toJson()); |
7742 } | 8194 } |
7743 | 8195 |
7744 @override | 8196 @override |
7745 String toString() => JSON.encode(toJson()); | 8197 String toString() => JSON.encode(toJson()); |
7746 | 8198 |
7747 @override | 8199 @override |
7748 bool operator==(other) { | 8200 bool operator ==(other) { |
7749 if (other is DiagnosticGetDiagnosticsResult) { | 8201 if (other is DiagnosticGetDiagnosticsResult) { |
7750 return listEqual(contexts, other.contexts, (ContextData a, ContextData b)
=> a == b); | 8202 return listEqual( |
| 8203 contexts, other.contexts, (ContextData a, ContextData b) => a == b); |
7751 } | 8204 } |
7752 return false; | 8205 return false; |
7753 } | 8206 } |
7754 | 8207 |
7755 @override | 8208 @override |
7756 int get hashCode { | 8209 int get hashCode { |
7757 int hash = 0; | 8210 int hash = 0; |
7758 hash = JenkinsSmiHash.combine(hash, contexts.hashCode); | 8211 hash = JenkinsSmiHash.combine(hash, contexts.hashCode); |
7759 return JenkinsSmiHash.finish(hash); | 8212 return JenkinsSmiHash.finish(hash); |
7760 } | 8213 } |
7761 } | 8214 } |
| 8215 |
7762 /** | 8216 /** |
7763 * diagnostic.getServerPort params | 8217 * diagnostic.getServerPort params |
7764 * | 8218 * |
7765 * Clients may not extend, implement or mix-in this class. | 8219 * Clients may not extend, implement or mix-in this class. |
7766 */ | 8220 */ |
7767 class DiagnosticGetServerPortParams { | 8221 class DiagnosticGetServerPortParams { |
7768 Request toRequest(String id) { | 8222 Request toRequest(String id) { |
7769 return new Request(id, "diagnostic.getServerPort", null); | 8223 return new Request(id, "diagnostic.getServerPort", null); |
7770 } | 8224 } |
7771 | 8225 |
7772 @override | 8226 @override |
7773 bool operator==(other) { | 8227 bool operator ==(other) { |
7774 if (other is DiagnosticGetServerPortParams) { | 8228 if (other is DiagnosticGetServerPortParams) { |
7775 return true; | 8229 return true; |
7776 } | 8230 } |
7777 return false; | 8231 return false; |
7778 } | 8232 } |
7779 | 8233 |
7780 @override | 8234 @override |
7781 int get hashCode { | 8235 int get hashCode { |
7782 return 367508704; | 8236 return 367508704; |
7783 } | 8237 } |
(...skipping 21 matching lines...) Expand all Loading... |
7805 */ | 8259 */ |
7806 void set port(int value) { | 8260 void set port(int value) { |
7807 assert(value != null); | 8261 assert(value != null); |
7808 this._port = value; | 8262 this._port = value; |
7809 } | 8263 } |
7810 | 8264 |
7811 DiagnosticGetServerPortResult(int port) { | 8265 DiagnosticGetServerPortResult(int port) { |
7812 this.port = port; | 8266 this.port = port; |
7813 } | 8267 } |
7814 | 8268 |
7815 factory DiagnosticGetServerPortResult.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 8269 factory DiagnosticGetServerPortResult.fromJson( |
| 8270 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
7816 if (json == null) { | 8271 if (json == null) { |
7817 json = {}; | 8272 json = {}; |
7818 } | 8273 } |
7819 if (json is Map) { | 8274 if (json is Map) { |
7820 int port; | 8275 int port; |
7821 if (json.containsKey("port")) { | 8276 if (json.containsKey("port")) { |
7822 port = jsonDecoder.decodeInt(jsonPath + ".port", json["port"]); | 8277 port = jsonDecoder.decodeInt(jsonPath + ".port", json["port"]); |
7823 } else { | 8278 } else { |
7824 throw jsonDecoder.missingKey(jsonPath, "port"); | 8279 throw jsonDecoder.missingKey(jsonPath, "port"); |
7825 } | 8280 } |
7826 return new DiagnosticGetServerPortResult(port); | 8281 return new DiagnosticGetServerPortResult(port); |
7827 } else { | 8282 } else { |
7828 throw jsonDecoder.mismatch(jsonPath, "diagnostic.getServerPort result", js
on); | 8283 throw jsonDecoder.mismatch( |
| 8284 jsonPath, "diagnostic.getServerPort result", json); |
7829 } | 8285 } |
7830 } | 8286 } |
7831 | 8287 |
7832 factory DiagnosticGetServerPortResult.fromResponse(Response response) { | 8288 factory DiagnosticGetServerPortResult.fromResponse(Response response) { |
7833 return new DiagnosticGetServerPortResult.fromJson( | 8289 return new DiagnosticGetServerPortResult.fromJson( |
7834 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "
result", response._result); | 8290 new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), |
| 8291 "result", |
| 8292 response._result); |
7835 } | 8293 } |
7836 | 8294 |
7837 Map<String, dynamic> toJson() { | 8295 Map<String, dynamic> toJson() { |
7838 Map<String, dynamic> result = {}; | 8296 Map<String, dynamic> result = {}; |
7839 result["port"] = port; | 8297 result["port"] = port; |
7840 return result; | 8298 return result; |
7841 } | 8299 } |
7842 | 8300 |
7843 Response toResponse(String id) { | 8301 Response toResponse(String id) { |
7844 return new Response(id, result: toJson()); | 8302 return new Response(id, result: toJson()); |
7845 } | 8303 } |
7846 | 8304 |
7847 @override | 8305 @override |
7848 String toString() => JSON.encode(toJson()); | 8306 String toString() => JSON.encode(toJson()); |
7849 | 8307 |
7850 @override | 8308 @override |
7851 bool operator==(other) { | 8309 bool operator ==(other) { |
7852 if (other is DiagnosticGetServerPortResult) { | 8310 if (other is DiagnosticGetServerPortResult) { |
7853 return port == other.port; | 8311 return port == other.port; |
7854 } | 8312 } |
7855 return false; | 8313 return false; |
7856 } | 8314 } |
7857 | 8315 |
7858 @override | 8316 @override |
7859 int get hashCode { | 8317 int get hashCode { |
7860 int hash = 0; | 8318 int hash = 0; |
7861 hash = JenkinsSmiHash.combine(hash, port.hashCode); | 8319 hash = JenkinsSmiHash.combine(hash, port.hashCode); |
(...skipping 24 matching lines...) Expand all Loading... |
7886 */ | 8344 */ |
7887 void set content(String value) { | 8345 void set content(String value) { |
7888 assert(value != null); | 8346 assert(value != null); |
7889 this._content = value; | 8347 this._content = value; |
7890 } | 8348 } |
7891 | 8349 |
7892 AddContentOverlay(String content) { | 8350 AddContentOverlay(String content) { |
7893 this.content = content; | 8351 this.content = content; |
7894 } | 8352 } |
7895 | 8353 |
7896 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 8354 factory AddContentOverlay.fromJson( |
| 8355 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
7897 if (json == null) { | 8356 if (json == null) { |
7898 json = {}; | 8357 json = {}; |
7899 } | 8358 } |
7900 if (json is Map) { | 8359 if (json is Map) { |
7901 if (json["type"] != "add") { | 8360 if (json["type"] != "add") { |
7902 throw jsonDecoder.mismatch(jsonPath, "equal " + "add", json); | 8361 throw jsonDecoder.mismatch(jsonPath, "equal " + "add", json); |
7903 } | 8362 } |
7904 String content; | 8363 String content; |
7905 if (json.containsKey("content")) { | 8364 if (json.containsKey("content")) { |
7906 content = jsonDecoder.decodeString(jsonPath + ".content", json["content"
]); | 8365 content = |
| 8366 jsonDecoder.decodeString(jsonPath + ".content", json["content"]); |
7907 } else { | 8367 } else { |
7908 throw jsonDecoder.missingKey(jsonPath, "content"); | 8368 throw jsonDecoder.missingKey(jsonPath, "content"); |
7909 } | 8369 } |
7910 return new AddContentOverlay(content); | 8370 return new AddContentOverlay(content); |
7911 } else { | 8371 } else { |
7912 throw jsonDecoder.mismatch(jsonPath, "AddContentOverlay", json); | 8372 throw jsonDecoder.mismatch(jsonPath, "AddContentOverlay", json); |
7913 } | 8373 } |
7914 } | 8374 } |
7915 | 8375 |
7916 Map<String, dynamic> toJson() { | 8376 Map<String, dynamic> toJson() { |
7917 Map<String, dynamic> result = {}; | 8377 Map<String, dynamic> result = {}; |
7918 result["type"] = "add"; | 8378 result["type"] = "add"; |
7919 result["content"] = content; | 8379 result["content"] = content; |
7920 return result; | 8380 return result; |
7921 } | 8381 } |
7922 | 8382 |
7923 @override | 8383 @override |
7924 String toString() => JSON.encode(toJson()); | 8384 String toString() => JSON.encode(toJson()); |
7925 | 8385 |
7926 @override | 8386 @override |
7927 bool operator==(other) { | 8387 bool operator ==(other) { |
7928 if (other is AddContentOverlay) { | 8388 if (other is AddContentOverlay) { |
7929 return content == other.content; | 8389 return content == other.content; |
7930 } | 8390 } |
7931 return false; | 8391 return false; |
7932 } | 8392 } |
7933 | 8393 |
7934 @override | 8394 @override |
7935 int get hashCode { | 8395 int get hashCode { |
7936 int hash = 0; | 8396 int hash = 0; |
7937 hash = JenkinsSmiHash.combine(hash, 704418402); | 8397 hash = JenkinsSmiHash.combine(hash, 704418402); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8072 * needs to be performant it is possible that complicated tests will be | 8532 * needs to be performant it is possible that complicated tests will be |
8073 * skipped and a false negative returned. For this reason, this attribute | 8533 * skipped and a false negative returned. For this reason, this attribute |
8074 * should be treated as a "hint". Despite the possibility of false negatives, | 8534 * should be treated as a "hint". Despite the possibility of false negatives, |
8075 * no false positives should be returned. If a client sees this flag set they | 8535 * no false positives should be returned. If a client sees this flag set they |
8076 * can proceed with the confidence that there are in fact associated fixes. | 8536 * can proceed with the confidence that there are in fact associated fixes. |
8077 */ | 8537 */ |
8078 void set hasFix(bool value) { | 8538 void set hasFix(bool value) { |
8079 this._hasFix = value; | 8539 this._hasFix = value; |
8080 } | 8540 } |
8081 | 8541 |
8082 AnalysisError(AnalysisErrorSeverity severity, AnalysisErrorType type, Location
location, String message, String code, {String correction, bool hasFix}) { | 8542 AnalysisError(AnalysisErrorSeverity severity, AnalysisErrorType type, |
| 8543 Location location, String message, String code, |
| 8544 {String correction, bool hasFix}) { |
8083 this.severity = severity; | 8545 this.severity = severity; |
8084 this.type = type; | 8546 this.type = type; |
8085 this.location = location; | 8547 this.location = location; |
8086 this.message = message; | 8548 this.message = message; |
8087 this.correction = correction; | 8549 this.correction = correction; |
8088 this.code = code; | 8550 this.code = code; |
8089 this.hasFix = hasFix; | 8551 this.hasFix = hasFix; |
8090 } | 8552 } |
8091 | 8553 |
8092 factory AnalysisError.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 8554 factory AnalysisError.fromJson( |
| 8555 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
8093 if (json == null) { | 8556 if (json == null) { |
8094 json = {}; | 8557 json = {}; |
8095 } | 8558 } |
8096 if (json is Map) { | 8559 if (json is Map) { |
8097 AnalysisErrorSeverity severity; | 8560 AnalysisErrorSeverity severity; |
8098 if (json.containsKey("severity")) { | 8561 if (json.containsKey("severity")) { |
8099 severity = new AnalysisErrorSeverity.fromJson(jsonDecoder, jsonPath + ".
severity", json["severity"]); | 8562 severity = new AnalysisErrorSeverity.fromJson( |
| 8563 jsonDecoder, jsonPath + ".severity", json["severity"]); |
8100 } else { | 8564 } else { |
8101 throw jsonDecoder.missingKey(jsonPath, "severity"); | 8565 throw jsonDecoder.missingKey(jsonPath, "severity"); |
8102 } | 8566 } |
8103 AnalysisErrorType type; | 8567 AnalysisErrorType type; |
8104 if (json.containsKey("type")) { | 8568 if (json.containsKey("type")) { |
8105 type = new AnalysisErrorType.fromJson(jsonDecoder, jsonPath + ".type", j
son["type"]); | 8569 type = new AnalysisErrorType.fromJson( |
| 8570 jsonDecoder, jsonPath + ".type", json["type"]); |
8106 } else { | 8571 } else { |
8107 throw jsonDecoder.missingKey(jsonPath, "type"); | 8572 throw jsonDecoder.missingKey(jsonPath, "type"); |
8108 } | 8573 } |
8109 Location location; | 8574 Location location; |
8110 if (json.containsKey("location")) { | 8575 if (json.containsKey("location")) { |
8111 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); | 8576 location = new Location.fromJson( |
| 8577 jsonDecoder, jsonPath + ".location", json["location"]); |
8112 } else { | 8578 } else { |
8113 throw jsonDecoder.missingKey(jsonPath, "location"); | 8579 throw jsonDecoder.missingKey(jsonPath, "location"); |
8114 } | 8580 } |
8115 String message; | 8581 String message; |
8116 if (json.containsKey("message")) { | 8582 if (json.containsKey("message")) { |
8117 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); | 8583 message = |
| 8584 jsonDecoder.decodeString(jsonPath + ".message", json["message"]); |
8118 } else { | 8585 } else { |
8119 throw jsonDecoder.missingKey(jsonPath, "message"); | 8586 throw jsonDecoder.missingKey(jsonPath, "message"); |
8120 } | 8587 } |
8121 String correction; | 8588 String correction; |
8122 if (json.containsKey("correction")) { | 8589 if (json.containsKey("correction")) { |
8123 correction = jsonDecoder.decodeString(jsonPath + ".correction", json["co
rrection"]); | 8590 correction = jsonDecoder.decodeString( |
| 8591 jsonPath + ".correction", json["correction"]); |
8124 } | 8592 } |
8125 String code; | 8593 String code; |
8126 if (json.containsKey("code")) { | 8594 if (json.containsKey("code")) { |
8127 code = jsonDecoder.decodeString(jsonPath + ".code", json["code"]); | 8595 code = jsonDecoder.decodeString(jsonPath + ".code", json["code"]); |
8128 } else { | 8596 } else { |
8129 throw jsonDecoder.missingKey(jsonPath, "code"); | 8597 throw jsonDecoder.missingKey(jsonPath, "code"); |
8130 } | 8598 } |
8131 bool hasFix; | 8599 bool hasFix; |
8132 if (json.containsKey("hasFix")) { | 8600 if (json.containsKey("hasFix")) { |
8133 hasFix = jsonDecoder.decodeBool(jsonPath + ".hasFix", json["hasFix"]); | 8601 hasFix = jsonDecoder.decodeBool(jsonPath + ".hasFix", json["hasFix"]); |
8134 } | 8602 } |
8135 return new AnalysisError(severity, type, location, message, code, correcti
on: correction, hasFix: hasFix); | 8603 return new AnalysisError(severity, type, location, message, code, |
| 8604 correction: correction, hasFix: hasFix); |
8136 } else { | 8605 } else { |
8137 throw jsonDecoder.mismatch(jsonPath, "AnalysisError", json); | 8606 throw jsonDecoder.mismatch(jsonPath, "AnalysisError", json); |
8138 } | 8607 } |
8139 } | 8608 } |
8140 | 8609 |
8141 Map<String, dynamic> toJson() { | 8610 Map<String, dynamic> toJson() { |
8142 Map<String, dynamic> result = {}; | 8611 Map<String, dynamic> result = {}; |
8143 result["severity"] = severity.toJson(); | 8612 result["severity"] = severity.toJson(); |
8144 result["type"] = type.toJson(); | 8613 result["type"] = type.toJson(); |
8145 result["location"] = location.toJson(); | 8614 result["location"] = location.toJson(); |
8146 result["message"] = message; | 8615 result["message"] = message; |
8147 if (correction != null) { | 8616 if (correction != null) { |
8148 result["correction"] = correction; | 8617 result["correction"] = correction; |
8149 } | 8618 } |
8150 result["code"] = code; | 8619 result["code"] = code; |
8151 if (hasFix != null) { | 8620 if (hasFix != null) { |
8152 result["hasFix"] = hasFix; | 8621 result["hasFix"] = hasFix; |
8153 } | 8622 } |
8154 return result; | 8623 return result; |
8155 } | 8624 } |
8156 | 8625 |
8157 @override | 8626 @override |
8158 String toString() => JSON.encode(toJson()); | 8627 String toString() => JSON.encode(toJson()); |
8159 | 8628 |
8160 @override | 8629 @override |
8161 bool operator==(other) { | 8630 bool operator ==(other) { |
8162 if (other is AnalysisError) { | 8631 if (other is AnalysisError) { |
8163 return severity == other.severity && | 8632 return severity == other.severity && |
8164 type == other.type && | 8633 type == other.type && |
8165 location == other.location && | 8634 location == other.location && |
8166 message == other.message && | 8635 message == other.message && |
8167 correction == other.correction && | 8636 correction == other.correction && |
8168 code == other.code && | 8637 code == other.code && |
8169 hasFix == other.hasFix; | 8638 hasFix == other.hasFix; |
8170 } | 8639 } |
8171 return false; | 8640 return false; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8228 | 8697 |
8229 AnalysisErrorFixes(AnalysisError error, {List<SourceChange> fixes}) { | 8698 AnalysisErrorFixes(AnalysisError error, {List<SourceChange> fixes}) { |
8230 this.error = error; | 8699 this.error = error; |
8231 if (fixes == null) { | 8700 if (fixes == null) { |
8232 this.fixes = <SourceChange>[]; | 8701 this.fixes = <SourceChange>[]; |
8233 } else { | 8702 } else { |
8234 this.fixes = fixes; | 8703 this.fixes = fixes; |
8235 } | 8704 } |
8236 } | 8705 } |
8237 | 8706 |
8238 factory AnalysisErrorFixes.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 8707 factory AnalysisErrorFixes.fromJson( |
| 8708 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
8239 if (json == null) { | 8709 if (json == null) { |
8240 json = {}; | 8710 json = {}; |
8241 } | 8711 } |
8242 if (json is Map) { | 8712 if (json is Map) { |
8243 AnalysisError error; | 8713 AnalysisError error; |
8244 if (json.containsKey("error")) { | 8714 if (json.containsKey("error")) { |
8245 error = new AnalysisError.fromJson(jsonDecoder, jsonPath + ".error", jso
n["error"]); | 8715 error = new AnalysisError.fromJson( |
| 8716 jsonDecoder, jsonPath + ".error", json["error"]); |
8246 } else { | 8717 } else { |
8247 throw jsonDecoder.missingKey(jsonPath, "error"); | 8718 throw jsonDecoder.missingKey(jsonPath, "error"); |
8248 } | 8719 } |
8249 List<SourceChange> fixes; | 8720 List<SourceChange> fixes; |
8250 if (json.containsKey("fixes")) { | 8721 if (json.containsKey("fixes")) { |
8251 fixes = jsonDecoder.decodeList(jsonPath + ".fixes", json["fixes"], (Stri
ng jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonPath, js
on)); | 8722 fixes = jsonDecoder.decodeList( |
| 8723 jsonPath + ".fixes", |
| 8724 json["fixes"], |
| 8725 (String jsonPath, Object json) => |
| 8726 new SourceChange.fromJson(jsonDecoder, jsonPath, json)); |
8252 } else { | 8727 } else { |
8253 throw jsonDecoder.missingKey(jsonPath, "fixes"); | 8728 throw jsonDecoder.missingKey(jsonPath, "fixes"); |
8254 } | 8729 } |
8255 return new AnalysisErrorFixes(error, fixes: fixes); | 8730 return new AnalysisErrorFixes(error, fixes: fixes); |
8256 } else { | 8731 } else { |
8257 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorFixes", json); | 8732 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorFixes", json); |
8258 } | 8733 } |
8259 } | 8734 } |
8260 | 8735 |
8261 Map<String, dynamic> toJson() { | 8736 Map<String, dynamic> toJson() { |
8262 Map<String, dynamic> result = {}; | 8737 Map<String, dynamic> result = {}; |
8263 result["error"] = error.toJson(); | 8738 result["error"] = error.toJson(); |
8264 result["fixes"] = fixes.map((SourceChange value) => value.toJson()).toList()
; | 8739 result["fixes"] = |
| 8740 fixes.map((SourceChange value) => value.toJson()).toList(); |
8265 return result; | 8741 return result; |
8266 } | 8742 } |
8267 | 8743 |
8268 @override | 8744 @override |
8269 String toString() => JSON.encode(toJson()); | 8745 String toString() => JSON.encode(toJson()); |
8270 | 8746 |
8271 @override | 8747 @override |
8272 bool operator==(other) { | 8748 bool operator ==(other) { |
8273 if (other is AnalysisErrorFixes) { | 8749 if (other is AnalysisErrorFixes) { |
8274 return error == other.error && | 8750 return error == other.error && |
8275 listEqual(fixes, other.fixes, (SourceChange a, SourceChange b) => a ==
b); | 8751 listEqual( |
| 8752 fixes, other.fixes, (SourceChange a, SourceChange b) => a == b); |
8276 } | 8753 } |
8277 return false; | 8754 return false; |
8278 } | 8755 } |
8279 | 8756 |
8280 @override | 8757 @override |
8281 int get hashCode { | 8758 int get hashCode { |
8282 int hash = 0; | 8759 int hash = 0; |
8283 hash = JenkinsSmiHash.combine(hash, error.hashCode); | 8760 hash = JenkinsSmiHash.combine(hash, error.hashCode); |
8284 hash = JenkinsSmiHash.combine(hash, fixes.hashCode); | 8761 hash = JenkinsSmiHash.combine(hash, fixes.hashCode); |
8285 return JenkinsSmiHash.finish(hash); | 8762 return JenkinsSmiHash.finish(hash); |
8286 } | 8763 } |
8287 } | 8764 } |
8288 | 8765 |
8289 /** | 8766 /** |
8290 * AnalysisErrorSeverity | 8767 * AnalysisErrorSeverity |
8291 * | 8768 * |
8292 * enum { | 8769 * enum { |
8293 * INFO | 8770 * INFO |
8294 * WARNING | 8771 * WARNING |
8295 * ERROR | 8772 * ERROR |
8296 * } | 8773 * } |
8297 * | 8774 * |
8298 * Clients may not extend, implement or mix-in this class. | 8775 * Clients may not extend, implement or mix-in this class. |
8299 */ | 8776 */ |
8300 class AnalysisErrorSeverity implements Enum { | 8777 class AnalysisErrorSeverity implements Enum { |
8301 static const AnalysisErrorSeverity INFO = const AnalysisErrorSeverity._("INFO"
); | 8778 static const AnalysisErrorSeverity INFO = |
| 8779 const AnalysisErrorSeverity._("INFO"); |
8302 | 8780 |
8303 static const AnalysisErrorSeverity WARNING = const AnalysisErrorSeverity._("WA
RNING"); | 8781 static const AnalysisErrorSeverity WARNING = |
| 8782 const AnalysisErrorSeverity._("WARNING"); |
8304 | 8783 |
8305 static const AnalysisErrorSeverity ERROR = const AnalysisErrorSeverity._("ERRO
R"); | 8784 static const AnalysisErrorSeverity ERROR = |
| 8785 const AnalysisErrorSeverity._("ERROR"); |
8306 | 8786 |
8307 /** | 8787 /** |
8308 * A list containing all of the enum values that are defined. | 8788 * A list containing all of the enum values that are defined. |
8309 */ | 8789 */ |
8310 static const List<AnalysisErrorSeverity> VALUES = const <AnalysisErrorSeverity
>[INFO, WARNING, ERROR]; | 8790 static const List<AnalysisErrorSeverity> VALUES = |
| 8791 const <AnalysisErrorSeverity>[INFO, WARNING, ERROR]; |
8311 | 8792 |
8312 final String name; | 8793 final String name; |
8313 | 8794 |
8314 const AnalysisErrorSeverity._(this.name); | 8795 const AnalysisErrorSeverity._(this.name); |
8315 | 8796 |
8316 factory AnalysisErrorSeverity(String name) { | 8797 factory AnalysisErrorSeverity(String name) { |
8317 switch (name) { | 8798 switch (name) { |
8318 case "INFO": | 8799 case "INFO": |
8319 return INFO; | 8800 return INFO; |
8320 case "WARNING": | 8801 case "WARNING": |
8321 return WARNING; | 8802 return WARNING; |
8322 case "ERROR": | 8803 case "ERROR": |
8323 return ERROR; | 8804 return ERROR; |
8324 } | 8805 } |
8325 throw new Exception('Illegal enum value: $name'); | 8806 throw new Exception('Illegal enum value: $name'); |
8326 } | 8807 } |
8327 | 8808 |
8328 factory AnalysisErrorSeverity.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 8809 factory AnalysisErrorSeverity.fromJson( |
| 8810 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
8329 if (json is String) { | 8811 if (json is String) { |
8330 try { | 8812 try { |
8331 return new AnalysisErrorSeverity(json); | 8813 return new AnalysisErrorSeverity(json); |
8332 } catch(_) { | 8814 } catch (_) { |
8333 // Fall through | 8815 // Fall through |
8334 } | 8816 } |
8335 } | 8817 } |
8336 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorSeverity", json); | 8818 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorSeverity", json); |
8337 } | 8819 } |
8338 | 8820 |
8339 @override | 8821 @override |
8340 String toString() => "AnalysisErrorSeverity.$name"; | 8822 String toString() => "AnalysisErrorSeverity.$name"; |
8341 | 8823 |
8342 String toJson() => name; | 8824 String toJson() => name; |
8343 } | 8825 } |
8344 | 8826 |
8345 /** | 8827 /** |
8346 * AnalysisErrorType | 8828 * AnalysisErrorType |
8347 * | 8829 * |
8348 * enum { | 8830 * enum { |
8349 * CHECKED_MODE_COMPILE_TIME_ERROR | 8831 * CHECKED_MODE_COMPILE_TIME_ERROR |
8350 * COMPILE_TIME_ERROR | 8832 * COMPILE_TIME_ERROR |
8351 * HINT | 8833 * HINT |
8352 * LINT | 8834 * LINT |
8353 * STATIC_TYPE_WARNING | 8835 * STATIC_TYPE_WARNING |
8354 * STATIC_WARNING | 8836 * STATIC_WARNING |
8355 * SYNTACTIC_ERROR | 8837 * SYNTACTIC_ERROR |
8356 * TODO | 8838 * TODO |
8357 * } | 8839 * } |
8358 * | 8840 * |
8359 * Clients may not extend, implement or mix-in this class. | 8841 * Clients may not extend, implement or mix-in this class. |
8360 */ | 8842 */ |
8361 class AnalysisErrorType implements Enum { | 8843 class AnalysisErrorType implements Enum { |
8362 static const AnalysisErrorType CHECKED_MODE_COMPILE_TIME_ERROR = const Analysi
sErrorType._("CHECKED_MODE_COMPILE_TIME_ERROR"); | 8844 static const AnalysisErrorType CHECKED_MODE_COMPILE_TIME_ERROR = |
| 8845 const AnalysisErrorType._("CHECKED_MODE_COMPILE_TIME_ERROR"); |
8363 | 8846 |
8364 static const AnalysisErrorType COMPILE_TIME_ERROR = const AnalysisErrorType._(
"COMPILE_TIME_ERROR"); | 8847 static const AnalysisErrorType COMPILE_TIME_ERROR = |
| 8848 const AnalysisErrorType._("COMPILE_TIME_ERROR"); |
8365 | 8849 |
8366 static const AnalysisErrorType HINT = const AnalysisErrorType._("HINT"); | 8850 static const AnalysisErrorType HINT = const AnalysisErrorType._("HINT"); |
8367 | 8851 |
8368 static const AnalysisErrorType LINT = const AnalysisErrorType._("LINT"); | 8852 static const AnalysisErrorType LINT = const AnalysisErrorType._("LINT"); |
8369 | 8853 |
8370 static const AnalysisErrorType STATIC_TYPE_WARNING = const AnalysisErrorType._
("STATIC_TYPE_WARNING"); | 8854 static const AnalysisErrorType STATIC_TYPE_WARNING = |
| 8855 const AnalysisErrorType._("STATIC_TYPE_WARNING"); |
8371 | 8856 |
8372 static const AnalysisErrorType STATIC_WARNING = const AnalysisErrorType._("STA
TIC_WARNING"); | 8857 static const AnalysisErrorType STATIC_WARNING = |
| 8858 const AnalysisErrorType._("STATIC_WARNING"); |
8373 | 8859 |
8374 static const AnalysisErrorType SYNTACTIC_ERROR = const AnalysisErrorType._("SY
NTACTIC_ERROR"); | 8860 static const AnalysisErrorType SYNTACTIC_ERROR = |
| 8861 const AnalysisErrorType._("SYNTACTIC_ERROR"); |
8375 | 8862 |
8376 static const AnalysisErrorType TODO = const AnalysisErrorType._("TODO"); | 8863 static const AnalysisErrorType TODO = const AnalysisErrorType._("TODO"); |
8377 | 8864 |
8378 /** | 8865 /** |
8379 * A list containing all of the enum values that are defined. | 8866 * A list containing all of the enum values that are defined. |
8380 */ | 8867 */ |
8381 static const List<AnalysisErrorType> VALUES = const <AnalysisErrorType>[CHECKE
D_MODE_COMPILE_TIME_ERROR, COMPILE_TIME_ERROR, HINT, LINT, STATIC_TYPE_WARNING,
STATIC_WARNING, SYNTACTIC_ERROR, TODO]; | 8868 static const List<AnalysisErrorType> VALUES = const <AnalysisErrorType>[ |
| 8869 CHECKED_MODE_COMPILE_TIME_ERROR, |
| 8870 COMPILE_TIME_ERROR, |
| 8871 HINT, |
| 8872 LINT, |
| 8873 STATIC_TYPE_WARNING, |
| 8874 STATIC_WARNING, |
| 8875 SYNTACTIC_ERROR, |
| 8876 TODO |
| 8877 ]; |
8382 | 8878 |
8383 final String name; | 8879 final String name; |
8384 | 8880 |
8385 const AnalysisErrorType._(this.name); | 8881 const AnalysisErrorType._(this.name); |
8386 | 8882 |
8387 factory AnalysisErrorType(String name) { | 8883 factory AnalysisErrorType(String name) { |
8388 switch (name) { | 8884 switch (name) { |
8389 case "CHECKED_MODE_COMPILE_TIME_ERROR": | 8885 case "CHECKED_MODE_COMPILE_TIME_ERROR": |
8390 return CHECKED_MODE_COMPILE_TIME_ERROR; | 8886 return CHECKED_MODE_COMPILE_TIME_ERROR; |
8391 case "COMPILE_TIME_ERROR": | 8887 case "COMPILE_TIME_ERROR": |
8392 return COMPILE_TIME_ERROR; | 8888 return COMPILE_TIME_ERROR; |
8393 case "HINT": | 8889 case "HINT": |
8394 return HINT; | 8890 return HINT; |
8395 case "LINT": | 8891 case "LINT": |
8396 return LINT; | 8892 return LINT; |
8397 case "STATIC_TYPE_WARNING": | 8893 case "STATIC_TYPE_WARNING": |
8398 return STATIC_TYPE_WARNING; | 8894 return STATIC_TYPE_WARNING; |
8399 case "STATIC_WARNING": | 8895 case "STATIC_WARNING": |
8400 return STATIC_WARNING; | 8896 return STATIC_WARNING; |
8401 case "SYNTACTIC_ERROR": | 8897 case "SYNTACTIC_ERROR": |
8402 return SYNTACTIC_ERROR; | 8898 return SYNTACTIC_ERROR; |
8403 case "TODO": | 8899 case "TODO": |
8404 return TODO; | 8900 return TODO; |
8405 } | 8901 } |
8406 throw new Exception('Illegal enum value: $name'); | 8902 throw new Exception('Illegal enum value: $name'); |
8407 } | 8903 } |
8408 | 8904 |
8409 factory AnalysisErrorType.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 8905 factory AnalysisErrorType.fromJson( |
| 8906 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
8410 if (json is String) { | 8907 if (json is String) { |
8411 try { | 8908 try { |
8412 return new AnalysisErrorType(json); | 8909 return new AnalysisErrorType(json); |
8413 } catch(_) { | 8910 } catch (_) { |
8414 // Fall through | 8911 // Fall through |
8415 } | 8912 } |
8416 } | 8913 } |
8417 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorType", json); | 8914 throw jsonDecoder.mismatch(jsonPath, "AnalysisErrorType", json); |
8418 } | 8915 } |
8419 | 8916 |
8420 @override | 8917 @override |
8421 String toString() => "AnalysisErrorType.$name"; | 8918 String toString() => "AnalysisErrorType.$name"; |
8422 | 8919 |
8423 String toJson() => name; | 8920 String toJson() => name; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8573 bool get generateLints => _generateLints; | 9070 bool get generateLints => _generateLints; |
8574 | 9071 |
8575 /** | 9072 /** |
8576 * True if lints should be generated as part of generating errors and | 9073 * True if lints should be generated as part of generating errors and |
8577 * warnings. | 9074 * warnings. |
8578 */ | 9075 */ |
8579 void set generateLints(bool value) { | 9076 void set generateLints(bool value) { |
8580 this._generateLints = value; | 9077 this._generateLints = value; |
8581 } | 9078 } |
8582 | 9079 |
8583 AnalysisOptions({bool enableAsync, bool enableDeferredLoading, bool enableEnum
s, bool enableNullAwareOperators, bool enableSuperMixins, bool generateDart2jsHi
nts, bool generateHints, bool generateLints}) { | 9080 AnalysisOptions( |
| 9081 {bool enableAsync, |
| 9082 bool enableDeferredLoading, |
| 9083 bool enableEnums, |
| 9084 bool enableNullAwareOperators, |
| 9085 bool enableSuperMixins, |
| 9086 bool generateDart2jsHints, |
| 9087 bool generateHints, |
| 9088 bool generateLints}) { |
8584 this.enableAsync = enableAsync; | 9089 this.enableAsync = enableAsync; |
8585 this.enableDeferredLoading = enableDeferredLoading; | 9090 this.enableDeferredLoading = enableDeferredLoading; |
8586 this.enableEnums = enableEnums; | 9091 this.enableEnums = enableEnums; |
8587 this.enableNullAwareOperators = enableNullAwareOperators; | 9092 this.enableNullAwareOperators = enableNullAwareOperators; |
8588 this.enableSuperMixins = enableSuperMixins; | 9093 this.enableSuperMixins = enableSuperMixins; |
8589 this.generateDart2jsHints = generateDart2jsHints; | 9094 this.generateDart2jsHints = generateDart2jsHints; |
8590 this.generateHints = generateHints; | 9095 this.generateHints = generateHints; |
8591 this.generateLints = generateLints; | 9096 this.generateLints = generateLints; |
8592 } | 9097 } |
8593 | 9098 |
8594 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 9099 factory AnalysisOptions.fromJson( |
| 9100 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
8595 if (json == null) { | 9101 if (json == null) { |
8596 json = {}; | 9102 json = {}; |
8597 } | 9103 } |
8598 if (json is Map) { | 9104 if (json is Map) { |
8599 bool enableAsync; | 9105 bool enableAsync; |
8600 if (json.containsKey("enableAsync")) { | 9106 if (json.containsKey("enableAsync")) { |
8601 enableAsync = jsonDecoder.decodeBool(jsonPath + ".enableAsync", json["en
ableAsync"]); | 9107 enableAsync = jsonDecoder.decodeBool( |
| 9108 jsonPath + ".enableAsync", json["enableAsync"]); |
8602 } | 9109 } |
8603 bool enableDeferredLoading; | 9110 bool enableDeferredLoading; |
8604 if (json.containsKey("enableDeferredLoading")) { | 9111 if (json.containsKey("enableDeferredLoading")) { |
8605 enableDeferredLoading = jsonDecoder.decodeBool(jsonPath + ".enableDeferr
edLoading", json["enableDeferredLoading"]); | 9112 enableDeferredLoading = jsonDecoder.decodeBool( |
| 9113 jsonPath + ".enableDeferredLoading", json["enableDeferredLoading"]); |
8606 } | 9114 } |
8607 bool enableEnums; | 9115 bool enableEnums; |
8608 if (json.containsKey("enableEnums")) { | 9116 if (json.containsKey("enableEnums")) { |
8609 enableEnums = jsonDecoder.decodeBool(jsonPath + ".enableEnums", json["en
ableEnums"]); | 9117 enableEnums = jsonDecoder.decodeBool( |
| 9118 jsonPath + ".enableEnums", json["enableEnums"]); |
8610 } | 9119 } |
8611 bool enableNullAwareOperators; | 9120 bool enableNullAwareOperators; |
8612 if (json.containsKey("enableNullAwareOperators")) { | 9121 if (json.containsKey("enableNullAwareOperators")) { |
8613 enableNullAwareOperators = jsonDecoder.decodeBool(jsonPath + ".enableNul
lAwareOperators", json["enableNullAwareOperators"]); | 9122 enableNullAwareOperators = jsonDecoder.decodeBool( |
| 9123 jsonPath + ".enableNullAwareOperators", |
| 9124 json["enableNullAwareOperators"]); |
8614 } | 9125 } |
8615 bool enableSuperMixins; | 9126 bool enableSuperMixins; |
8616 if (json.containsKey("enableSuperMixins")) { | 9127 if (json.containsKey("enableSuperMixins")) { |
8617 enableSuperMixins = jsonDecoder.decodeBool(jsonPath + ".enableSuperMixin
s", json["enableSuperMixins"]); | 9128 enableSuperMixins = jsonDecoder.decodeBool( |
| 9129 jsonPath + ".enableSuperMixins", json["enableSuperMixins"]); |
8618 } | 9130 } |
8619 bool generateDart2jsHints; | 9131 bool generateDart2jsHints; |
8620 if (json.containsKey("generateDart2jsHints")) { | 9132 if (json.containsKey("generateDart2jsHints")) { |
8621 generateDart2jsHints = jsonDecoder.decodeBool(jsonPath + ".generateDart2
jsHints", json["generateDart2jsHints"]); | 9133 generateDart2jsHints = jsonDecoder.decodeBool( |
| 9134 jsonPath + ".generateDart2jsHints", json["generateDart2jsHints"]); |
8622 } | 9135 } |
8623 bool generateHints; | 9136 bool generateHints; |
8624 if (json.containsKey("generateHints")) { | 9137 if (json.containsKey("generateHints")) { |
8625 generateHints = jsonDecoder.decodeBool(jsonPath + ".generateHints", json
["generateHints"]); | 9138 generateHints = jsonDecoder.decodeBool( |
| 9139 jsonPath + ".generateHints", json["generateHints"]); |
8626 } | 9140 } |
8627 bool generateLints; | 9141 bool generateLints; |
8628 if (json.containsKey("generateLints")) { | 9142 if (json.containsKey("generateLints")) { |
8629 generateLints = jsonDecoder.decodeBool(jsonPath + ".generateLints", json
["generateLints"]); | 9143 generateLints = jsonDecoder.decodeBool( |
| 9144 jsonPath + ".generateLints", json["generateLints"]); |
8630 } | 9145 } |
8631 return new AnalysisOptions(enableAsync: enableAsync, enableDeferredLoading
: enableDeferredLoading, enableEnums: enableEnums, enableNullAwareOperators: ena
bleNullAwareOperators, enableSuperMixins: enableSuperMixins, generateDart2jsHint
s: generateDart2jsHints, generateHints: generateHints, generateLints: generateLi
nts); | 9146 return new AnalysisOptions( |
| 9147 enableAsync: enableAsync, |
| 9148 enableDeferredLoading: enableDeferredLoading, |
| 9149 enableEnums: enableEnums, |
| 9150 enableNullAwareOperators: enableNullAwareOperators, |
| 9151 enableSuperMixins: enableSuperMixins, |
| 9152 generateDart2jsHints: generateDart2jsHints, |
| 9153 generateHints: generateHints, |
| 9154 generateLints: generateLints); |
8632 } else { | 9155 } else { |
8633 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions", json); | 9156 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions", json); |
8634 } | 9157 } |
8635 } | 9158 } |
8636 | 9159 |
8637 Map<String, dynamic> toJson() { | 9160 Map<String, dynamic> toJson() { |
8638 Map<String, dynamic> result = {}; | 9161 Map<String, dynamic> result = {}; |
8639 if (enableAsync != null) { | 9162 if (enableAsync != null) { |
8640 result["enableAsync"] = enableAsync; | 9163 result["enableAsync"] = enableAsync; |
8641 } | 9164 } |
(...skipping 18 matching lines...) Expand all Loading... |
8660 if (generateLints != null) { | 9183 if (generateLints != null) { |
8661 result["generateLints"] = generateLints; | 9184 result["generateLints"] = generateLints; |
8662 } | 9185 } |
8663 return result; | 9186 return result; |
8664 } | 9187 } |
8665 | 9188 |
8666 @override | 9189 @override |
8667 String toString() => JSON.encode(toJson()); | 9190 String toString() => JSON.encode(toJson()); |
8668 | 9191 |
8669 @override | 9192 @override |
8670 bool operator==(other) { | 9193 bool operator ==(other) { |
8671 if (other is AnalysisOptions) { | 9194 if (other is AnalysisOptions) { |
8672 return enableAsync == other.enableAsync && | 9195 return enableAsync == other.enableAsync && |
8673 enableDeferredLoading == other.enableDeferredLoading && | 9196 enableDeferredLoading == other.enableDeferredLoading && |
8674 enableEnums == other.enableEnums && | 9197 enableEnums == other.enableEnums && |
8675 enableNullAwareOperators == other.enableNullAwareOperators && | 9198 enableNullAwareOperators == other.enableNullAwareOperators && |
8676 enableSuperMixins == other.enableSuperMixins && | 9199 enableSuperMixins == other.enableSuperMixins && |
8677 generateDart2jsHints == other.generateDart2jsHints && | 9200 generateDart2jsHints == other.generateDart2jsHints && |
8678 generateHints == other.generateHints && | 9201 generateHints == other.generateHints && |
8679 generateLints == other.generateLints; | 9202 generateLints == other.generateLints; |
8680 } | 9203 } |
(...skipping 27 matching lines...) Expand all Loading... |
8708 * OCCURRENCES | 9231 * OCCURRENCES |
8709 * OUTLINE | 9232 * OUTLINE |
8710 * OVERRIDES | 9233 * OVERRIDES |
8711 * } | 9234 * } |
8712 * | 9235 * |
8713 * Clients may not extend, implement or mix-in this class. | 9236 * Clients may not extend, implement or mix-in this class. |
8714 */ | 9237 */ |
8715 class AnalysisService implements Enum { | 9238 class AnalysisService implements Enum { |
8716 static const AnalysisService FOLDING = const AnalysisService._("FOLDING"); | 9239 static const AnalysisService FOLDING = const AnalysisService._("FOLDING"); |
8717 | 9240 |
8718 static const AnalysisService HIGHLIGHTS = const AnalysisService._("HIGHLIGHTS"
); | 9241 static const AnalysisService HIGHLIGHTS = |
| 9242 const AnalysisService._("HIGHLIGHTS"); |
8719 | 9243 |
8720 static const AnalysisService IMPLEMENTED = const AnalysisService._("IMPLEMENTE
D"); | 9244 static const AnalysisService IMPLEMENTED = |
| 9245 const AnalysisService._("IMPLEMENTED"); |
8721 | 9246 |
8722 /** | 9247 /** |
8723 * This service is not currently implemented and will become a | 9248 * This service is not currently implemented and will become a |
8724 * GeneralAnalysisService in a future release. | 9249 * GeneralAnalysisService in a future release. |
8725 */ | 9250 */ |
8726 static const AnalysisService INVALIDATE = const AnalysisService._("INVALIDATE"
); | 9251 static const AnalysisService INVALIDATE = |
| 9252 const AnalysisService._("INVALIDATE"); |
8727 | 9253 |
8728 static const AnalysisService NAVIGATION = const AnalysisService._("NAVIGATION"
); | 9254 static const AnalysisService NAVIGATION = |
| 9255 const AnalysisService._("NAVIGATION"); |
8729 | 9256 |
8730 static const AnalysisService OCCURRENCES = const AnalysisService._("OCCURRENCE
S"); | 9257 static const AnalysisService OCCURRENCES = |
| 9258 const AnalysisService._("OCCURRENCES"); |
8731 | 9259 |
8732 static const AnalysisService OUTLINE = const AnalysisService._("OUTLINE"); | 9260 static const AnalysisService OUTLINE = const AnalysisService._("OUTLINE"); |
8733 | 9261 |
8734 static const AnalysisService OVERRIDES = const AnalysisService._("OVERRIDES"); | 9262 static const AnalysisService OVERRIDES = const AnalysisService._("OVERRIDES"); |
8735 | 9263 |
8736 /** | 9264 /** |
8737 * A list containing all of the enum values that are defined. | 9265 * A list containing all of the enum values that are defined. |
8738 */ | 9266 */ |
8739 static const List<AnalysisService> VALUES = const <AnalysisService>[FOLDING, H
IGHLIGHTS, IMPLEMENTED, INVALIDATE, NAVIGATION, OCCURRENCES, OUTLINE, OVERRIDES]
; | 9267 static const List<AnalysisService> VALUES = const <AnalysisService>[ |
| 9268 FOLDING, |
| 9269 HIGHLIGHTS, |
| 9270 IMPLEMENTED, |
| 9271 INVALIDATE, |
| 9272 NAVIGATION, |
| 9273 OCCURRENCES, |
| 9274 OUTLINE, |
| 9275 OVERRIDES |
| 9276 ]; |
8740 | 9277 |
8741 final String name; | 9278 final String name; |
8742 | 9279 |
8743 const AnalysisService._(this.name); | 9280 const AnalysisService._(this.name); |
8744 | 9281 |
8745 factory AnalysisService(String name) { | 9282 factory AnalysisService(String name) { |
8746 switch (name) { | 9283 switch (name) { |
8747 case "FOLDING": | 9284 case "FOLDING": |
8748 return FOLDING; | 9285 return FOLDING; |
8749 case "HIGHLIGHTS": | 9286 case "HIGHLIGHTS": |
8750 return HIGHLIGHTS; | 9287 return HIGHLIGHTS; |
8751 case "IMPLEMENTED": | 9288 case "IMPLEMENTED": |
8752 return IMPLEMENTED; | 9289 return IMPLEMENTED; |
8753 case "INVALIDATE": | 9290 case "INVALIDATE": |
8754 return INVALIDATE; | 9291 return INVALIDATE; |
8755 case "NAVIGATION": | 9292 case "NAVIGATION": |
8756 return NAVIGATION; | 9293 return NAVIGATION; |
8757 case "OCCURRENCES": | 9294 case "OCCURRENCES": |
8758 return OCCURRENCES; | 9295 return OCCURRENCES; |
8759 case "OUTLINE": | 9296 case "OUTLINE": |
8760 return OUTLINE; | 9297 return OUTLINE; |
8761 case "OVERRIDES": | 9298 case "OVERRIDES": |
8762 return OVERRIDES; | 9299 return OVERRIDES; |
8763 } | 9300 } |
8764 throw new Exception('Illegal enum value: $name'); | 9301 throw new Exception('Illegal enum value: $name'); |
8765 } | 9302 } |
8766 | 9303 |
8767 factory AnalysisService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 9304 factory AnalysisService.fromJson( |
| 9305 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
8768 if (json is String) { | 9306 if (json is String) { |
8769 try { | 9307 try { |
8770 return new AnalysisService(json); | 9308 return new AnalysisService(json); |
8771 } catch(_) { | 9309 } catch (_) { |
8772 // Fall through | 9310 // Fall through |
8773 } | 9311 } |
8774 } | 9312 } |
8775 throw jsonDecoder.mismatch(jsonPath, "AnalysisService", json); | 9313 throw jsonDecoder.mismatch(jsonPath, "AnalysisService", json); |
8776 } | 9314 } |
8777 | 9315 |
8778 @override | 9316 @override |
8779 String toString() => "AnalysisService.$name"; | 9317 String toString() => "AnalysisService.$name"; |
8780 | 9318 |
8781 String toJson() => name; | 9319 String toJson() => name; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8821 */ | 9359 */ |
8822 void set analysisTarget(String value) { | 9360 void set analysisTarget(String value) { |
8823 this._analysisTarget = value; | 9361 this._analysisTarget = value; |
8824 } | 9362 } |
8825 | 9363 |
8826 AnalysisStatus(bool isAnalyzing, {String analysisTarget}) { | 9364 AnalysisStatus(bool isAnalyzing, {String analysisTarget}) { |
8827 this.isAnalyzing = isAnalyzing; | 9365 this.isAnalyzing = isAnalyzing; |
8828 this.analysisTarget = analysisTarget; | 9366 this.analysisTarget = analysisTarget; |
8829 } | 9367 } |
8830 | 9368 |
8831 factory AnalysisStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 9369 factory AnalysisStatus.fromJson( |
| 9370 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
8832 if (json == null) { | 9371 if (json == null) { |
8833 json = {}; | 9372 json = {}; |
8834 } | 9373 } |
8835 if (json is Map) { | 9374 if (json is Map) { |
8836 bool isAnalyzing; | 9375 bool isAnalyzing; |
8837 if (json.containsKey("isAnalyzing")) { | 9376 if (json.containsKey("isAnalyzing")) { |
8838 isAnalyzing = jsonDecoder.decodeBool(jsonPath + ".isAnalyzing", json["is
Analyzing"]); | 9377 isAnalyzing = jsonDecoder.decodeBool( |
| 9378 jsonPath + ".isAnalyzing", json["isAnalyzing"]); |
8839 } else { | 9379 } else { |
8840 throw jsonDecoder.missingKey(jsonPath, "isAnalyzing"); | 9380 throw jsonDecoder.missingKey(jsonPath, "isAnalyzing"); |
8841 } | 9381 } |
8842 String analysisTarget; | 9382 String analysisTarget; |
8843 if (json.containsKey("analysisTarget")) { | 9383 if (json.containsKey("analysisTarget")) { |
8844 analysisTarget = jsonDecoder.decodeString(jsonPath + ".analysisTarget",
json["analysisTarget"]); | 9384 analysisTarget = jsonDecoder.decodeString( |
| 9385 jsonPath + ".analysisTarget", json["analysisTarget"]); |
8845 } | 9386 } |
8846 return new AnalysisStatus(isAnalyzing, analysisTarget: analysisTarget); | 9387 return new AnalysisStatus(isAnalyzing, analysisTarget: analysisTarget); |
8847 } else { | 9388 } else { |
8848 throw jsonDecoder.mismatch(jsonPath, "AnalysisStatus", json); | 9389 throw jsonDecoder.mismatch(jsonPath, "AnalysisStatus", json); |
8849 } | 9390 } |
8850 } | 9391 } |
8851 | 9392 |
8852 Map<String, dynamic> toJson() { | 9393 Map<String, dynamic> toJson() { |
8853 Map<String, dynamic> result = {}; | 9394 Map<String, dynamic> result = {}; |
8854 result["isAnalyzing"] = isAnalyzing; | 9395 result["isAnalyzing"] = isAnalyzing; |
8855 if (analysisTarget != null) { | 9396 if (analysisTarget != null) { |
8856 result["analysisTarget"] = analysisTarget; | 9397 result["analysisTarget"] = analysisTarget; |
8857 } | 9398 } |
8858 return result; | 9399 return result; |
8859 } | 9400 } |
8860 | 9401 |
8861 @override | 9402 @override |
8862 String toString() => JSON.encode(toJson()); | 9403 String toString() => JSON.encode(toJson()); |
8863 | 9404 |
8864 @override | 9405 @override |
8865 bool operator==(other) { | 9406 bool operator ==(other) { |
8866 if (other is AnalysisStatus) { | 9407 if (other is AnalysisStatus) { |
8867 return isAnalyzing == other.isAnalyzing && | 9408 return isAnalyzing == other.isAnalyzing && |
8868 analysisTarget == other.analysisTarget; | 9409 analysisTarget == other.analysisTarget; |
8869 } | 9410 } |
8870 return false; | 9411 return false; |
8871 } | 9412 } |
8872 | 9413 |
8873 @override | 9414 @override |
8874 int get hashCode { | 9415 int get hashCode { |
8875 int hash = 0; | 9416 int hash = 0; |
(...skipping 26 matching lines...) Expand all Loading... |
8902 */ | 9443 */ |
8903 void set edits(List<SourceEdit> value) { | 9444 void set edits(List<SourceEdit> value) { |
8904 assert(value != null); | 9445 assert(value != null); |
8905 this._edits = value; | 9446 this._edits = value; |
8906 } | 9447 } |
8907 | 9448 |
8908 ChangeContentOverlay(List<SourceEdit> edits) { | 9449 ChangeContentOverlay(List<SourceEdit> edits) { |
8909 this.edits = edits; | 9450 this.edits = edits; |
8910 } | 9451 } |
8911 | 9452 |
8912 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 9453 factory ChangeContentOverlay.fromJson( |
| 9454 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
8913 if (json == null) { | 9455 if (json == null) { |
8914 json = {}; | 9456 json = {}; |
8915 } | 9457 } |
8916 if (json is Map) { | 9458 if (json is Map) { |
8917 if (json["type"] != "change") { | 9459 if (json["type"] != "change") { |
8918 throw jsonDecoder.mismatch(jsonPath, "equal " + "change", json); | 9460 throw jsonDecoder.mismatch(jsonPath, "equal " + "change", json); |
8919 } | 9461 } |
8920 List<SourceEdit> edits; | 9462 List<SourceEdit> edits; |
8921 if (json.containsKey("edits")) { | 9463 if (json.containsKey("edits")) { |
8922 edits = jsonDecoder.decodeList(jsonPath + ".edits", json["edits"], (Stri
ng jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, json
)); | 9464 edits = jsonDecoder.decodeList( |
| 9465 jsonPath + ".edits", |
| 9466 json["edits"], |
| 9467 (String jsonPath, Object json) => |
| 9468 new SourceEdit.fromJson(jsonDecoder, jsonPath, json)); |
8923 } else { | 9469 } else { |
8924 throw jsonDecoder.missingKey(jsonPath, "edits"); | 9470 throw jsonDecoder.missingKey(jsonPath, "edits"); |
8925 } | 9471 } |
8926 return new ChangeContentOverlay(edits); | 9472 return new ChangeContentOverlay(edits); |
8927 } else { | 9473 } else { |
8928 throw jsonDecoder.mismatch(jsonPath, "ChangeContentOverlay", json); | 9474 throw jsonDecoder.mismatch(jsonPath, "ChangeContentOverlay", json); |
8929 } | 9475 } |
8930 } | 9476 } |
8931 | 9477 |
8932 Map<String, dynamic> toJson() { | 9478 Map<String, dynamic> toJson() { |
8933 Map<String, dynamic> result = {}; | 9479 Map<String, dynamic> result = {}; |
8934 result["type"] = "change"; | 9480 result["type"] = "change"; |
8935 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); | 9481 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); |
8936 return result; | 9482 return result; |
8937 } | 9483 } |
8938 | 9484 |
8939 @override | 9485 @override |
8940 String toString() => JSON.encode(toJson()); | 9486 String toString() => JSON.encode(toJson()); |
8941 | 9487 |
8942 @override | 9488 @override |
8943 bool operator==(other) { | 9489 bool operator ==(other) { |
8944 if (other is ChangeContentOverlay) { | 9490 if (other is ChangeContentOverlay) { |
8945 return listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a ==
b); | 9491 return listEqual( |
| 9492 edits, other.edits, (SourceEdit a, SourceEdit b) => a == b); |
8946 } | 9493 } |
8947 return false; | 9494 return false; |
8948 } | 9495 } |
8949 | 9496 |
8950 @override | 9497 @override |
8951 int get hashCode { | 9498 int get hashCode { |
8952 int hash = 0; | 9499 int hash = 0; |
8953 hash = JenkinsSmiHash.combine(hash, 873118866); | 9500 hash = JenkinsSmiHash.combine(hash, 873118866); |
8954 hash = JenkinsSmiHash.combine(hash, edits.hashCode); | 9501 hash = JenkinsSmiHash.combine(hash, edits.hashCode); |
8955 return JenkinsSmiHash.finish(hash); | 9502 return JenkinsSmiHash.finish(hash); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9334 String get importUri => _importUri; | 9881 String get importUri => _importUri; |
9335 | 9882 |
9336 /** | 9883 /** |
9337 * The import to be added if the suggestion is out of scope and needs an | 9884 * The import to be added if the suggestion is out of scope and needs an |
9338 * import to be added to be in scope. | 9885 * import to be added to be in scope. |
9339 */ | 9886 */ |
9340 void set importUri(String value) { | 9887 void set importUri(String value) { |
9341 this._importUri = value; | 9888 this._importUri = value; |
9342 } | 9889 } |
9343 | 9890 |
9344 CompletionSuggestion(CompletionSuggestionKind kind, int relevance, String comp
letion, int selectionOffset, int selectionLength, bool isDeprecated, bool isPote
ntial, {String docSummary, String docComplete, String declaringType, String defa
ultArgumentListString, List<int> defaultArgumentListTextRanges, Element element,
String returnType, List<String> parameterNames, List<String> parameterTypes, in
t requiredParameterCount, bool hasNamedParameters, String parameterName, String
parameterType, String importUri}) { | 9891 CompletionSuggestion( |
| 9892 CompletionSuggestionKind kind, |
| 9893 int relevance, |
| 9894 String completion, |
| 9895 int selectionOffset, |
| 9896 int selectionLength, |
| 9897 bool isDeprecated, |
| 9898 bool isPotential, |
| 9899 {String docSummary, |
| 9900 String docComplete, |
| 9901 String declaringType, |
| 9902 String defaultArgumentListString, |
| 9903 List<int> defaultArgumentListTextRanges, |
| 9904 Element element, |
| 9905 String returnType, |
| 9906 List<String> parameterNames, |
| 9907 List<String> parameterTypes, |
| 9908 int requiredParameterCount, |
| 9909 bool hasNamedParameters, |
| 9910 String parameterName, |
| 9911 String parameterType, |
| 9912 String importUri}) { |
9345 this.kind = kind; | 9913 this.kind = kind; |
9346 this.relevance = relevance; | 9914 this.relevance = relevance; |
9347 this.completion = completion; | 9915 this.completion = completion; |
9348 this.selectionOffset = selectionOffset; | 9916 this.selectionOffset = selectionOffset; |
9349 this.selectionLength = selectionLength; | 9917 this.selectionLength = selectionLength; |
9350 this.isDeprecated = isDeprecated; | 9918 this.isDeprecated = isDeprecated; |
9351 this.isPotential = isPotential; | 9919 this.isPotential = isPotential; |
9352 this.docSummary = docSummary; | 9920 this.docSummary = docSummary; |
9353 this.docComplete = docComplete; | 9921 this.docComplete = docComplete; |
9354 this.declaringType = declaringType; | 9922 this.declaringType = declaringType; |
9355 this.defaultArgumentListString = defaultArgumentListString; | 9923 this.defaultArgumentListString = defaultArgumentListString; |
9356 this.defaultArgumentListTextRanges = defaultArgumentListTextRanges; | 9924 this.defaultArgumentListTextRanges = defaultArgumentListTextRanges; |
9357 this.element = element; | 9925 this.element = element; |
9358 this.returnType = returnType; | 9926 this.returnType = returnType; |
9359 this.parameterNames = parameterNames; | 9927 this.parameterNames = parameterNames; |
9360 this.parameterTypes = parameterTypes; | 9928 this.parameterTypes = parameterTypes; |
9361 this.requiredParameterCount = requiredParameterCount; | 9929 this.requiredParameterCount = requiredParameterCount; |
9362 this.hasNamedParameters = hasNamedParameters; | 9930 this.hasNamedParameters = hasNamedParameters; |
9363 this.parameterName = parameterName; | 9931 this.parameterName = parameterName; |
9364 this.parameterType = parameterType; | 9932 this.parameterType = parameterType; |
9365 this.importUri = importUri; | 9933 this.importUri = importUri; |
9366 } | 9934 } |
9367 | 9935 |
9368 factory CompletionSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 9936 factory CompletionSuggestion.fromJson( |
| 9937 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
9369 if (json == null) { | 9938 if (json == null) { |
9370 json = {}; | 9939 json = {}; |
9371 } | 9940 } |
9372 if (json is Map) { | 9941 if (json is Map) { |
9373 CompletionSuggestionKind kind; | 9942 CompletionSuggestionKind kind; |
9374 if (json.containsKey("kind")) { | 9943 if (json.containsKey("kind")) { |
9375 kind = new CompletionSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k
ind", json["kind"]); | 9944 kind = new CompletionSuggestionKind.fromJson( |
| 9945 jsonDecoder, jsonPath + ".kind", json["kind"]); |
9376 } else { | 9946 } else { |
9377 throw jsonDecoder.missingKey(jsonPath, "kind"); | 9947 throw jsonDecoder.missingKey(jsonPath, "kind"); |
9378 } | 9948 } |
9379 int relevance; | 9949 int relevance; |
9380 if (json.containsKey("relevance")) { | 9950 if (json.containsKey("relevance")) { |
9381 relevance = jsonDecoder.decodeInt(jsonPath + ".relevance", json["relevan
ce"]); | 9951 relevance = |
| 9952 jsonDecoder.decodeInt(jsonPath + ".relevance", json["relevance"]); |
9382 } else { | 9953 } else { |
9383 throw jsonDecoder.missingKey(jsonPath, "relevance"); | 9954 throw jsonDecoder.missingKey(jsonPath, "relevance"); |
9384 } | 9955 } |
9385 String completion; | 9956 String completion; |
9386 if (json.containsKey("completion")) { | 9957 if (json.containsKey("completion")) { |
9387 completion = jsonDecoder.decodeString(jsonPath + ".completion", json["co
mpletion"]); | 9958 completion = jsonDecoder.decodeString( |
| 9959 jsonPath + ".completion", json["completion"]); |
9388 } else { | 9960 } else { |
9389 throw jsonDecoder.missingKey(jsonPath, "completion"); | 9961 throw jsonDecoder.missingKey(jsonPath, "completion"); |
9390 } | 9962 } |
9391 int selectionOffset; | 9963 int selectionOffset; |
9392 if (json.containsKey("selectionOffset")) { | 9964 if (json.containsKey("selectionOffset")) { |
9393 selectionOffset = jsonDecoder.decodeInt(jsonPath + ".selectionOffset", j
son["selectionOffset"]); | 9965 selectionOffset = jsonDecoder.decodeInt( |
| 9966 jsonPath + ".selectionOffset", json["selectionOffset"]); |
9394 } else { | 9967 } else { |
9395 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); | 9968 throw jsonDecoder.missingKey(jsonPath, "selectionOffset"); |
9396 } | 9969 } |
9397 int selectionLength; | 9970 int selectionLength; |
9398 if (json.containsKey("selectionLength")) { | 9971 if (json.containsKey("selectionLength")) { |
9399 selectionLength = jsonDecoder.decodeInt(jsonPath + ".selectionLength", j
son["selectionLength"]); | 9972 selectionLength = jsonDecoder.decodeInt( |
| 9973 jsonPath + ".selectionLength", json["selectionLength"]); |
9400 } else { | 9974 } else { |
9401 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); | 9975 throw jsonDecoder.missingKey(jsonPath, "selectionLength"); |
9402 } | 9976 } |
9403 bool isDeprecated; | 9977 bool isDeprecated; |
9404 if (json.containsKey("isDeprecated")) { | 9978 if (json.containsKey("isDeprecated")) { |
9405 isDeprecated = jsonDecoder.decodeBool(jsonPath + ".isDeprecated", json["
isDeprecated"]); | 9979 isDeprecated = jsonDecoder.decodeBool( |
| 9980 jsonPath + ".isDeprecated", json["isDeprecated"]); |
9406 } else { | 9981 } else { |
9407 throw jsonDecoder.missingKey(jsonPath, "isDeprecated"); | 9982 throw jsonDecoder.missingKey(jsonPath, "isDeprecated"); |
9408 } | 9983 } |
9409 bool isPotential; | 9984 bool isPotential; |
9410 if (json.containsKey("isPotential")) { | 9985 if (json.containsKey("isPotential")) { |
9411 isPotential = jsonDecoder.decodeBool(jsonPath + ".isPotential", json["is
Potential"]); | 9986 isPotential = jsonDecoder.decodeBool( |
| 9987 jsonPath + ".isPotential", json["isPotential"]); |
9412 } else { | 9988 } else { |
9413 throw jsonDecoder.missingKey(jsonPath, "isPotential"); | 9989 throw jsonDecoder.missingKey(jsonPath, "isPotential"); |
9414 } | 9990 } |
9415 String docSummary; | 9991 String docSummary; |
9416 if (json.containsKey("docSummary")) { | 9992 if (json.containsKey("docSummary")) { |
9417 docSummary = jsonDecoder.decodeString(jsonPath + ".docSummary", json["do
cSummary"]); | 9993 docSummary = jsonDecoder.decodeString( |
| 9994 jsonPath + ".docSummary", json["docSummary"]); |
9418 } | 9995 } |
9419 String docComplete; | 9996 String docComplete; |
9420 if (json.containsKey("docComplete")) { | 9997 if (json.containsKey("docComplete")) { |
9421 docComplete = jsonDecoder.decodeString(jsonPath + ".docComplete", json["
docComplete"]); | 9998 docComplete = jsonDecoder.decodeString( |
| 9999 jsonPath + ".docComplete", json["docComplete"]); |
9422 } | 10000 } |
9423 String declaringType; | 10001 String declaringType; |
9424 if (json.containsKey("declaringType")) { | 10002 if (json.containsKey("declaringType")) { |
9425 declaringType = jsonDecoder.decodeString(jsonPath + ".declaringType", js
on["declaringType"]); | 10003 declaringType = jsonDecoder.decodeString( |
| 10004 jsonPath + ".declaringType", json["declaringType"]); |
9426 } | 10005 } |
9427 String defaultArgumentListString; | 10006 String defaultArgumentListString; |
9428 if (json.containsKey("defaultArgumentListString")) { | 10007 if (json.containsKey("defaultArgumentListString")) { |
9429 defaultArgumentListString = jsonDecoder.decodeString(jsonPath + ".defaul
tArgumentListString", json["defaultArgumentListString"]); | 10008 defaultArgumentListString = jsonDecoder.decodeString( |
| 10009 jsonPath + ".defaultArgumentListString", |
| 10010 json["defaultArgumentListString"]); |
9430 } | 10011 } |
9431 List<int> defaultArgumentListTextRanges; | 10012 List<int> defaultArgumentListTextRanges; |
9432 if (json.containsKey("defaultArgumentListTextRanges")) { | 10013 if (json.containsKey("defaultArgumentListTextRanges")) { |
9433 defaultArgumentListTextRanges = jsonDecoder.decodeList(jsonPath + ".defa
ultArgumentListTextRanges", json["defaultArgumentListTextRanges"], jsonDecoder.d
ecodeInt); | 10014 defaultArgumentListTextRanges = jsonDecoder.decodeList( |
| 10015 jsonPath + ".defaultArgumentListTextRanges", |
| 10016 json["defaultArgumentListTextRanges"], |
| 10017 jsonDecoder.decodeInt); |
9434 } | 10018 } |
9435 Element element; | 10019 Element element; |
9436 if (json.containsKey("element")) { | 10020 if (json.containsKey("element")) { |
9437 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 10021 element = new Element.fromJson( |
| 10022 jsonDecoder, jsonPath + ".element", json["element"]); |
9438 } | 10023 } |
9439 String returnType; | 10024 String returnType; |
9440 if (json.containsKey("returnType")) { | 10025 if (json.containsKey("returnType")) { |
9441 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); | 10026 returnType = jsonDecoder.decodeString( |
| 10027 jsonPath + ".returnType", json["returnType"]); |
9442 } | 10028 } |
9443 List<String> parameterNames; | 10029 List<String> parameterNames; |
9444 if (json.containsKey("parameterNames")) { | 10030 if (json.containsKey("parameterNames")) { |
9445 parameterNames = jsonDecoder.decodeList(jsonPath + ".parameterNames", js
on["parameterNames"], jsonDecoder.decodeString); | 10031 parameterNames = jsonDecoder.decodeList(jsonPath + ".parameterNames", |
| 10032 json["parameterNames"], jsonDecoder.decodeString); |
9446 } | 10033 } |
9447 List<String> parameterTypes; | 10034 List<String> parameterTypes; |
9448 if (json.containsKey("parameterTypes")) { | 10035 if (json.containsKey("parameterTypes")) { |
9449 parameterTypes = jsonDecoder.decodeList(jsonPath + ".parameterTypes", js
on["parameterTypes"], jsonDecoder.decodeString); | 10036 parameterTypes = jsonDecoder.decodeList(jsonPath + ".parameterTypes", |
| 10037 json["parameterTypes"], jsonDecoder.decodeString); |
9450 } | 10038 } |
9451 int requiredParameterCount; | 10039 int requiredParameterCount; |
9452 if (json.containsKey("requiredParameterCount")) { | 10040 if (json.containsKey("requiredParameterCount")) { |
9453 requiredParameterCount = jsonDecoder.decodeInt(jsonPath + ".requiredPara
meterCount", json["requiredParameterCount"]); | 10041 requiredParameterCount = jsonDecoder.decodeInt( |
| 10042 jsonPath + ".requiredParameterCount", |
| 10043 json["requiredParameterCount"]); |
9454 } | 10044 } |
9455 bool hasNamedParameters; | 10045 bool hasNamedParameters; |
9456 if (json.containsKey("hasNamedParameters")) { | 10046 if (json.containsKey("hasNamedParameters")) { |
9457 hasNamedParameters = jsonDecoder.decodeBool(jsonPath + ".hasNamedParamet
ers", json["hasNamedParameters"]); | 10047 hasNamedParameters = jsonDecoder.decodeBool( |
| 10048 jsonPath + ".hasNamedParameters", json["hasNamedParameters"]); |
9458 } | 10049 } |
9459 String parameterName; | 10050 String parameterName; |
9460 if (json.containsKey("parameterName")) { | 10051 if (json.containsKey("parameterName")) { |
9461 parameterName = jsonDecoder.decodeString(jsonPath + ".parameterName", js
on["parameterName"]); | 10052 parameterName = jsonDecoder.decodeString( |
| 10053 jsonPath + ".parameterName", json["parameterName"]); |
9462 } | 10054 } |
9463 String parameterType; | 10055 String parameterType; |
9464 if (json.containsKey("parameterType")) { | 10056 if (json.containsKey("parameterType")) { |
9465 parameterType = jsonDecoder.decodeString(jsonPath + ".parameterType", js
on["parameterType"]); | 10057 parameterType = jsonDecoder.decodeString( |
| 10058 jsonPath + ".parameterType", json["parameterType"]); |
9466 } | 10059 } |
9467 String importUri; | 10060 String importUri; |
9468 if (json.containsKey("importUri")) { | 10061 if (json.containsKey("importUri")) { |
9469 importUri = jsonDecoder.decodeString(jsonPath + ".importUri", json["impo
rtUri"]); | 10062 importUri = jsonDecoder.decodeString( |
| 10063 jsonPath + ".importUri", json["importUri"]); |
9470 } | 10064 } |
9471 return new CompletionSuggestion(kind, relevance, completion, selectionOffs
et, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docCompl
ete: docComplete, declaringType: declaringType, defaultArgumentListString: defau
ltArgumentListString, defaultArgumentListTextRanges: defaultArgumentListTextRang
es, element: element, returnType: returnType, parameterNames: parameterNames, pa
rameterTypes: parameterTypes, requiredParameterCount: requiredParameterCount, ha
sNamedParameters: hasNamedParameters, parameterName: parameterName, parameterTyp
e: parameterType, importUri: importUri); | 10065 return new CompletionSuggestion(kind, relevance, completion, |
| 10066 selectionOffset, selectionLength, isDeprecated, isPotential, |
| 10067 docSummary: docSummary, |
| 10068 docComplete: docComplete, |
| 10069 declaringType: declaringType, |
| 10070 defaultArgumentListString: defaultArgumentListString, |
| 10071 defaultArgumentListTextRanges: defaultArgumentListTextRanges, |
| 10072 element: element, |
| 10073 returnType: returnType, |
| 10074 parameterNames: parameterNames, |
| 10075 parameterTypes: parameterTypes, |
| 10076 requiredParameterCount: requiredParameterCount, |
| 10077 hasNamedParameters: hasNamedParameters, |
| 10078 parameterName: parameterName, |
| 10079 parameterType: parameterType, |
| 10080 importUri: importUri); |
9472 } else { | 10081 } else { |
9473 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json); | 10082 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json); |
9474 } | 10083 } |
9475 } | 10084 } |
9476 | 10085 |
9477 Map<String, dynamic> toJson() { | 10086 Map<String, dynamic> toJson() { |
9478 Map<String, dynamic> result = {}; | 10087 Map<String, dynamic> result = {}; |
9479 result["kind"] = kind.toJson(); | 10088 result["kind"] = kind.toJson(); |
9480 result["relevance"] = relevance; | 10089 result["relevance"] = relevance; |
9481 result["completion"] = completion; | 10090 result["completion"] = completion; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9525 if (importUri != null) { | 10134 if (importUri != null) { |
9526 result["importUri"] = importUri; | 10135 result["importUri"] = importUri; |
9527 } | 10136 } |
9528 return result; | 10137 return result; |
9529 } | 10138 } |
9530 | 10139 |
9531 @override | 10140 @override |
9532 String toString() => JSON.encode(toJson()); | 10141 String toString() => JSON.encode(toJson()); |
9533 | 10142 |
9534 @override | 10143 @override |
9535 bool operator==(other) { | 10144 bool operator ==(other) { |
9536 if (other is CompletionSuggestion) { | 10145 if (other is CompletionSuggestion) { |
9537 return kind == other.kind && | 10146 return kind == other.kind && |
9538 relevance == other.relevance && | 10147 relevance == other.relevance && |
9539 completion == other.completion && | 10148 completion == other.completion && |
9540 selectionOffset == other.selectionOffset && | 10149 selectionOffset == other.selectionOffset && |
9541 selectionLength == other.selectionLength && | 10150 selectionLength == other.selectionLength && |
9542 isDeprecated == other.isDeprecated && | 10151 isDeprecated == other.isDeprecated && |
9543 isPotential == other.isPotential && | 10152 isPotential == other.isPotential && |
9544 docSummary == other.docSummary && | 10153 docSummary == other.docSummary && |
9545 docComplete == other.docComplete && | 10154 docComplete == other.docComplete && |
9546 declaringType == other.declaringType && | 10155 declaringType == other.declaringType && |
9547 defaultArgumentListString == other.defaultArgumentListString && | 10156 defaultArgumentListString == other.defaultArgumentListString && |
9548 listEqual(defaultArgumentListTextRanges, other.defaultArgumentListText
Ranges, (int a, int b) => a == b) && | 10157 listEqual(defaultArgumentListTextRanges, |
| 10158 other.defaultArgumentListTextRanges, (int a, int b) => a == b) && |
9549 element == other.element && | 10159 element == other.element && |
9550 returnType == other.returnType && | 10160 returnType == other.returnType && |
9551 listEqual(parameterNames, other.parameterNames, (String a, String b) =
> a == b) && | 10161 listEqual(parameterNames, other.parameterNames, |
9552 listEqual(parameterTypes, other.parameterTypes, (String a, String b) =
> a == b) && | 10162 (String a, String b) => a == b) && |
| 10163 listEqual(parameterTypes, other.parameterTypes, |
| 10164 (String a, String b) => a == b) && |
9553 requiredParameterCount == other.requiredParameterCount && | 10165 requiredParameterCount == other.requiredParameterCount && |
9554 hasNamedParameters == other.hasNamedParameters && | 10166 hasNamedParameters == other.hasNamedParameters && |
9555 parameterName == other.parameterName && | 10167 parameterName == other.parameterName && |
9556 parameterType == other.parameterType && | 10168 parameterType == other.parameterType && |
9557 importUri == other.importUri; | 10169 importUri == other.importUri; |
9558 } | 10170 } |
9559 return false; | 10171 return false; |
9560 } | 10172 } |
9561 | 10173 |
9562 @override | 10174 @override |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9603 * | 10215 * |
9604 * Clients may not extend, implement or mix-in this class. | 10216 * Clients may not extend, implement or mix-in this class. |
9605 */ | 10217 */ |
9606 class CompletionSuggestionKind implements Enum { | 10218 class CompletionSuggestionKind implements Enum { |
9607 /** | 10219 /** |
9608 * A list of arguments for the method or function that is being invoked. For | 10220 * A list of arguments for the method or function that is being invoked. For |
9609 * this suggestion kind, the completion field is a textual representation of | 10221 * this suggestion kind, the completion field is a textual representation of |
9610 * the invocation and the parameterNames, parameterTypes, and | 10222 * the invocation and the parameterNames, parameterTypes, and |
9611 * requiredParameterCount attributes are defined. | 10223 * requiredParameterCount attributes are defined. |
9612 */ | 10224 */ |
9613 static const CompletionSuggestionKind ARGUMENT_LIST = const CompletionSuggesti
onKind._("ARGUMENT_LIST"); | 10225 static const CompletionSuggestionKind ARGUMENT_LIST = |
| 10226 const CompletionSuggestionKind._("ARGUMENT_LIST"); |
9614 | 10227 |
9615 static const CompletionSuggestionKind IMPORT = const CompletionSuggestionKind.
_("IMPORT"); | 10228 static const CompletionSuggestionKind IMPORT = |
| 10229 const CompletionSuggestionKind._("IMPORT"); |
9616 | 10230 |
9617 /** | 10231 /** |
9618 * The element identifier should be inserted at the completion location. For | 10232 * The element identifier should be inserted at the completion location. For |
9619 * example "someMethod" in import 'myLib.dart' show someMethod; . For | 10233 * example "someMethod" in import 'myLib.dart' show someMethod; . For |
9620 * suggestions of this kind, the element attribute is defined and the | 10234 * suggestions of this kind, the element attribute is defined and the |
9621 * completion field is the element's identifier. | 10235 * completion field is the element's identifier. |
9622 */ | 10236 */ |
9623 static const CompletionSuggestionKind IDENTIFIER = const CompletionSuggestionK
ind._("IDENTIFIER"); | 10237 static const CompletionSuggestionKind IDENTIFIER = |
| 10238 const CompletionSuggestionKind._("IDENTIFIER"); |
9624 | 10239 |
9625 /** | 10240 /** |
9626 * The element is being invoked at the completion location. For example, | 10241 * The element is being invoked at the completion location. For example, |
9627 * "someMethod" in x.someMethod(); . For suggestions of this kind, the | 10242 * "someMethod" in x.someMethod(); . For suggestions of this kind, the |
9628 * element attribute is defined and the completion field is the element's | 10243 * element attribute is defined and the completion field is the element's |
9629 * identifier. | 10244 * identifier. |
9630 */ | 10245 */ |
9631 static const CompletionSuggestionKind INVOCATION = const CompletionSuggestionK
ind._("INVOCATION"); | 10246 static const CompletionSuggestionKind INVOCATION = |
| 10247 const CompletionSuggestionKind._("INVOCATION"); |
9632 | 10248 |
9633 /** | 10249 /** |
9634 * A keyword is being suggested. For suggestions of this kind, the completion | 10250 * A keyword is being suggested. For suggestions of this kind, the completion |
9635 * is the keyword. | 10251 * is the keyword. |
9636 */ | 10252 */ |
9637 static const CompletionSuggestionKind KEYWORD = const CompletionSuggestionKind
._("KEYWORD"); | 10253 static const CompletionSuggestionKind KEYWORD = |
| 10254 const CompletionSuggestionKind._("KEYWORD"); |
9638 | 10255 |
9639 /** | 10256 /** |
9640 * A named argument for the current callsite is being suggested. For | 10257 * A named argument for the current callsite is being suggested. For |
9641 * suggestions of this kind, the completion is the named argument identifier | 10258 * suggestions of this kind, the completion is the named argument identifier |
9642 * including a trailing ':' and space. | 10259 * including a trailing ':' and space. |
9643 */ | 10260 */ |
9644 static const CompletionSuggestionKind NAMED_ARGUMENT = const CompletionSuggest
ionKind._("NAMED_ARGUMENT"); | 10261 static const CompletionSuggestionKind NAMED_ARGUMENT = |
| 10262 const CompletionSuggestionKind._("NAMED_ARGUMENT"); |
9645 | 10263 |
9646 static const CompletionSuggestionKind OPTIONAL_ARGUMENT = const CompletionSugg
estionKind._("OPTIONAL_ARGUMENT"); | 10264 static const CompletionSuggestionKind OPTIONAL_ARGUMENT = |
| 10265 const CompletionSuggestionKind._("OPTIONAL_ARGUMENT"); |
9647 | 10266 |
9648 static const CompletionSuggestionKind PARAMETER = const CompletionSuggestionKi
nd._("PARAMETER"); | 10267 static const CompletionSuggestionKind PARAMETER = |
| 10268 const CompletionSuggestionKind._("PARAMETER"); |
9649 | 10269 |
9650 /** | 10270 /** |
9651 * A list containing all of the enum values that are defined. | 10271 * A list containing all of the enum values that are defined. |
9652 */ | 10272 */ |
9653 static const List<CompletionSuggestionKind> VALUES = const <CompletionSuggesti
onKind>[ARGUMENT_LIST, IMPORT, IDENTIFIER, INVOCATION, KEYWORD, NAMED_ARGUMENT,
OPTIONAL_ARGUMENT, PARAMETER]; | 10273 static const List<CompletionSuggestionKind> VALUES = |
| 10274 const <CompletionSuggestionKind>[ |
| 10275 ARGUMENT_LIST, |
| 10276 IMPORT, |
| 10277 IDENTIFIER, |
| 10278 INVOCATION, |
| 10279 KEYWORD, |
| 10280 NAMED_ARGUMENT, |
| 10281 OPTIONAL_ARGUMENT, |
| 10282 PARAMETER |
| 10283 ]; |
9654 | 10284 |
9655 final String name; | 10285 final String name; |
9656 | 10286 |
9657 const CompletionSuggestionKind._(this.name); | 10287 const CompletionSuggestionKind._(this.name); |
9658 | 10288 |
9659 factory CompletionSuggestionKind(String name) { | 10289 factory CompletionSuggestionKind(String name) { |
9660 switch (name) { | 10290 switch (name) { |
9661 case "ARGUMENT_LIST": | 10291 case "ARGUMENT_LIST": |
9662 return ARGUMENT_LIST; | 10292 return ARGUMENT_LIST; |
9663 case "IMPORT": | 10293 case "IMPORT": |
9664 return IMPORT; | 10294 return IMPORT; |
9665 case "IDENTIFIER": | 10295 case "IDENTIFIER": |
9666 return IDENTIFIER; | 10296 return IDENTIFIER; |
9667 case "INVOCATION": | 10297 case "INVOCATION": |
9668 return INVOCATION; | 10298 return INVOCATION; |
9669 case "KEYWORD": | 10299 case "KEYWORD": |
9670 return KEYWORD; | 10300 return KEYWORD; |
9671 case "NAMED_ARGUMENT": | 10301 case "NAMED_ARGUMENT": |
9672 return NAMED_ARGUMENT; | 10302 return NAMED_ARGUMENT; |
9673 case "OPTIONAL_ARGUMENT": | 10303 case "OPTIONAL_ARGUMENT": |
9674 return OPTIONAL_ARGUMENT; | 10304 return OPTIONAL_ARGUMENT; |
9675 case "PARAMETER": | 10305 case "PARAMETER": |
9676 return PARAMETER; | 10306 return PARAMETER; |
9677 } | 10307 } |
9678 throw new Exception('Illegal enum value: $name'); | 10308 throw new Exception('Illegal enum value: $name'); |
9679 } | 10309 } |
9680 | 10310 |
9681 factory CompletionSuggestionKind.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 10311 factory CompletionSuggestionKind.fromJson( |
| 10312 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
9682 if (json is String) { | 10313 if (json is String) { |
9683 try { | 10314 try { |
9684 return new CompletionSuggestionKind(json); | 10315 return new CompletionSuggestionKind(json); |
9685 } catch(_) { | 10316 } catch (_) { |
9686 // Fall through | 10317 // Fall through |
9687 } | 10318 } |
9688 } | 10319 } |
9689 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestionKind", json); | 10320 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestionKind", json); |
9690 } | 10321 } |
9691 | 10322 |
9692 @override | 10323 @override |
9693 String toString() => "CompletionSuggestionKind.$name"; | 10324 String toString() => "CompletionSuggestionKind.$name"; |
9694 | 10325 |
9695 String toJson() => name; | 10326 String toJson() => name; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9777 List<String> get cacheEntryExceptions => _cacheEntryExceptions; | 10408 List<String> get cacheEntryExceptions => _cacheEntryExceptions; |
9778 | 10409 |
9779 /** | 10410 /** |
9780 * Exceptions associated with cache entries. | 10411 * Exceptions associated with cache entries. |
9781 */ | 10412 */ |
9782 void set cacheEntryExceptions(List<String> value) { | 10413 void set cacheEntryExceptions(List<String> value) { |
9783 assert(value != null); | 10414 assert(value != null); |
9784 this._cacheEntryExceptions = value; | 10415 this._cacheEntryExceptions = value; |
9785 } | 10416 } |
9786 | 10417 |
9787 ContextData(String name, int explicitFileCount, int implicitFileCount, int wor
kItemQueueLength, List<String> cacheEntryExceptions) { | 10418 ContextData(String name, int explicitFileCount, int implicitFileCount, |
| 10419 int workItemQueueLength, List<String> cacheEntryExceptions) { |
9788 this.name = name; | 10420 this.name = name; |
9789 this.explicitFileCount = explicitFileCount; | 10421 this.explicitFileCount = explicitFileCount; |
9790 this.implicitFileCount = implicitFileCount; | 10422 this.implicitFileCount = implicitFileCount; |
9791 this.workItemQueueLength = workItemQueueLength; | 10423 this.workItemQueueLength = workItemQueueLength; |
9792 this.cacheEntryExceptions = cacheEntryExceptions; | 10424 this.cacheEntryExceptions = cacheEntryExceptions; |
9793 } | 10425 } |
9794 | 10426 |
9795 factory ContextData.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 10427 factory ContextData.fromJson( |
| 10428 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
9796 if (json == null) { | 10429 if (json == null) { |
9797 json = {}; | 10430 json = {}; |
9798 } | 10431 } |
9799 if (json is Map) { | 10432 if (json is Map) { |
9800 String name; | 10433 String name; |
9801 if (json.containsKey("name")) { | 10434 if (json.containsKey("name")) { |
9802 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); | 10435 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
9803 } else { | 10436 } else { |
9804 throw jsonDecoder.missingKey(jsonPath, "name"); | 10437 throw jsonDecoder.missingKey(jsonPath, "name"); |
9805 } | 10438 } |
9806 int explicitFileCount; | 10439 int explicitFileCount; |
9807 if (json.containsKey("explicitFileCount")) { | 10440 if (json.containsKey("explicitFileCount")) { |
9808 explicitFileCount = jsonDecoder.decodeInt(jsonPath + ".explicitFileCount
", json["explicitFileCount"]); | 10441 explicitFileCount = jsonDecoder.decodeInt( |
| 10442 jsonPath + ".explicitFileCount", json["explicitFileCount"]); |
9809 } else { | 10443 } else { |
9810 throw jsonDecoder.missingKey(jsonPath, "explicitFileCount"); | 10444 throw jsonDecoder.missingKey(jsonPath, "explicitFileCount"); |
9811 } | 10445 } |
9812 int implicitFileCount; | 10446 int implicitFileCount; |
9813 if (json.containsKey("implicitFileCount")) { | 10447 if (json.containsKey("implicitFileCount")) { |
9814 implicitFileCount = jsonDecoder.decodeInt(jsonPath + ".implicitFileCount
", json["implicitFileCount"]); | 10448 implicitFileCount = jsonDecoder.decodeInt( |
| 10449 jsonPath + ".implicitFileCount", json["implicitFileCount"]); |
9815 } else { | 10450 } else { |
9816 throw jsonDecoder.missingKey(jsonPath, "implicitFileCount"); | 10451 throw jsonDecoder.missingKey(jsonPath, "implicitFileCount"); |
9817 } | 10452 } |
9818 int workItemQueueLength; | 10453 int workItemQueueLength; |
9819 if (json.containsKey("workItemQueueLength")) { | 10454 if (json.containsKey("workItemQueueLength")) { |
9820 workItemQueueLength = jsonDecoder.decodeInt(jsonPath + ".workItemQueueLe
ngth", json["workItemQueueLength"]); | 10455 workItemQueueLength = jsonDecoder.decodeInt( |
| 10456 jsonPath + ".workItemQueueLength", json["workItemQueueLength"]); |
9821 } else { | 10457 } else { |
9822 throw jsonDecoder.missingKey(jsonPath, "workItemQueueLength"); | 10458 throw jsonDecoder.missingKey(jsonPath, "workItemQueueLength"); |
9823 } | 10459 } |
9824 List<String> cacheEntryExceptions; | 10460 List<String> cacheEntryExceptions; |
9825 if (json.containsKey("cacheEntryExceptions")) { | 10461 if (json.containsKey("cacheEntryExceptions")) { |
9826 cacheEntryExceptions = jsonDecoder.decodeList(jsonPath + ".cacheEntryExc
eptions", json["cacheEntryExceptions"], jsonDecoder.decodeString); | 10462 cacheEntryExceptions = jsonDecoder.decodeList( |
| 10463 jsonPath + ".cacheEntryExceptions", |
| 10464 json["cacheEntryExceptions"], |
| 10465 jsonDecoder.decodeString); |
9827 } else { | 10466 } else { |
9828 throw jsonDecoder.missingKey(jsonPath, "cacheEntryExceptions"); | 10467 throw jsonDecoder.missingKey(jsonPath, "cacheEntryExceptions"); |
9829 } | 10468 } |
9830 return new ContextData(name, explicitFileCount, implicitFileCount, workIte
mQueueLength, cacheEntryExceptions); | 10469 return new ContextData(name, explicitFileCount, implicitFileCount, |
| 10470 workItemQueueLength, cacheEntryExceptions); |
9831 } else { | 10471 } else { |
9832 throw jsonDecoder.mismatch(jsonPath, "ContextData", json); | 10472 throw jsonDecoder.mismatch(jsonPath, "ContextData", json); |
9833 } | 10473 } |
9834 } | 10474 } |
9835 | 10475 |
9836 Map<String, dynamic> toJson() { | 10476 Map<String, dynamic> toJson() { |
9837 Map<String, dynamic> result = {}; | 10477 Map<String, dynamic> result = {}; |
9838 result["name"] = name; | 10478 result["name"] = name; |
9839 result["explicitFileCount"] = explicitFileCount; | 10479 result["explicitFileCount"] = explicitFileCount; |
9840 result["implicitFileCount"] = implicitFileCount; | 10480 result["implicitFileCount"] = implicitFileCount; |
9841 result["workItemQueueLength"] = workItemQueueLength; | 10481 result["workItemQueueLength"] = workItemQueueLength; |
9842 result["cacheEntryExceptions"] = cacheEntryExceptions; | 10482 result["cacheEntryExceptions"] = cacheEntryExceptions; |
9843 return result; | 10483 return result; |
9844 } | 10484 } |
9845 | 10485 |
9846 @override | 10486 @override |
9847 String toString() => JSON.encode(toJson()); | 10487 String toString() => JSON.encode(toJson()); |
9848 | 10488 |
9849 @override | 10489 @override |
9850 bool operator==(other) { | 10490 bool operator ==(other) { |
9851 if (other is ContextData) { | 10491 if (other is ContextData) { |
9852 return name == other.name && | 10492 return name == other.name && |
9853 explicitFileCount == other.explicitFileCount && | 10493 explicitFileCount == other.explicitFileCount && |
9854 implicitFileCount == other.implicitFileCount && | 10494 implicitFileCount == other.implicitFileCount && |
9855 workItemQueueLength == other.workItemQueueLength && | 10495 workItemQueueLength == other.workItemQueueLength && |
9856 listEqual(cacheEntryExceptions, other.cacheEntryExceptions, (String a,
String b) => a == b); | 10496 listEqual(cacheEntryExceptions, other.cacheEntryExceptions, |
| 10497 (String a, String b) => a == b); |
9857 } | 10498 } |
9858 return false; | 10499 return false; |
9859 } | 10500 } |
9860 | 10501 |
9861 @override | 10502 @override |
9862 int get hashCode { | 10503 int get hashCode { |
9863 int hash = 0; | 10504 int hash = 0; |
9864 hash = JenkinsSmiHash.combine(hash, name.hashCode); | 10505 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
9865 hash = JenkinsSmiHash.combine(hash, explicitFileCount.hashCode); | 10506 hash = JenkinsSmiHash.combine(hash, explicitFileCount.hashCode); |
9866 hash = JenkinsSmiHash.combine(hash, implicitFileCount.hashCode); | 10507 hash = JenkinsSmiHash.combine(hash, implicitFileCount.hashCode); |
(...skipping 19 matching lines...) Expand all Loading... |
9886 * Clients may not extend, implement or mix-in this class. | 10527 * Clients may not extend, implement or mix-in this class. |
9887 */ | 10528 */ |
9888 class Element implements HasToJson { | 10529 class Element implements HasToJson { |
9889 static const int FLAG_ABSTRACT = 0x01; | 10530 static const int FLAG_ABSTRACT = 0x01; |
9890 static const int FLAG_CONST = 0x02; | 10531 static const int FLAG_CONST = 0x02; |
9891 static const int FLAG_FINAL = 0x04; | 10532 static const int FLAG_FINAL = 0x04; |
9892 static const int FLAG_STATIC = 0x08; | 10533 static const int FLAG_STATIC = 0x08; |
9893 static const int FLAG_PRIVATE = 0x10; | 10534 static const int FLAG_PRIVATE = 0x10; |
9894 static const int FLAG_DEPRECATED = 0x20; | 10535 static const int FLAG_DEPRECATED = 0x20; |
9895 | 10536 |
9896 static int makeFlags({isAbstract: false, isConst: false, isFinal: false, isSta
tic: false, isPrivate: false, isDeprecated: false}) { | 10537 static int makeFlags( |
| 10538 {isAbstract: false, |
| 10539 isConst: false, |
| 10540 isFinal: false, |
| 10541 isStatic: false, |
| 10542 isPrivate: false, |
| 10543 isDeprecated: false}) { |
9897 int flags = 0; | 10544 int flags = 0; |
9898 if (isAbstract) flags |= FLAG_ABSTRACT; | 10545 if (isAbstract) flags |= FLAG_ABSTRACT; |
9899 if (isConst) flags |= FLAG_CONST; | 10546 if (isConst) flags |= FLAG_CONST; |
9900 if (isFinal) flags |= FLAG_FINAL; | 10547 if (isFinal) flags |= FLAG_FINAL; |
9901 if (isStatic) flags |= FLAG_STATIC; | 10548 if (isStatic) flags |= FLAG_STATIC; |
9902 if (isPrivate) flags |= FLAG_PRIVATE; | 10549 if (isPrivate) flags |= FLAG_PRIVATE; |
9903 if (isDeprecated) flags |= FLAG_DEPRECATED; | 10550 if (isDeprecated) flags |= FLAG_DEPRECATED; |
9904 return flags; | 10551 return flags; |
9905 } | 10552 } |
9906 | 10553 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10028 String get typeParameters => _typeParameters; | 10675 String get typeParameters => _typeParameters; |
10029 | 10676 |
10030 /** | 10677 /** |
10031 * The type parameter list for the element. If the element doesn't have type | 10678 * The type parameter list for the element. If the element doesn't have type |
10032 * parameters, this field will not be defined. | 10679 * parameters, this field will not be defined. |
10033 */ | 10680 */ |
10034 void set typeParameters(String value) { | 10681 void set typeParameters(String value) { |
10035 this._typeParameters = value; | 10682 this._typeParameters = value; |
10036 } | 10683 } |
10037 | 10684 |
10038 Element(ElementKind kind, String name, int flags, {Location location, String p
arameters, String returnType, String typeParameters}) { | 10685 Element(ElementKind kind, String name, int flags, |
| 10686 {Location location, |
| 10687 String parameters, |
| 10688 String returnType, |
| 10689 String typeParameters}) { |
10039 this.kind = kind; | 10690 this.kind = kind; |
10040 this.name = name; | 10691 this.name = name; |
10041 this.location = location; | 10692 this.location = location; |
10042 this.flags = flags; | 10693 this.flags = flags; |
10043 this.parameters = parameters; | 10694 this.parameters = parameters; |
10044 this.returnType = returnType; | 10695 this.returnType = returnType; |
10045 this.typeParameters = typeParameters; | 10696 this.typeParameters = typeParameters; |
10046 } | 10697 } |
10047 | 10698 |
10048 factory Element.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json
) { | 10699 factory Element.fromJson( |
| 10700 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10049 if (json == null) { | 10701 if (json == null) { |
10050 json = {}; | 10702 json = {}; |
10051 } | 10703 } |
10052 if (json is Map) { | 10704 if (json is Map) { |
10053 ElementKind kind; | 10705 ElementKind kind; |
10054 if (json.containsKey("kind")) { | 10706 if (json.containsKey("kind")) { |
10055 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k
ind"]); | 10707 kind = new ElementKind.fromJson( |
| 10708 jsonDecoder, jsonPath + ".kind", json["kind"]); |
10056 } else { | 10709 } else { |
10057 throw jsonDecoder.missingKey(jsonPath, "kind"); | 10710 throw jsonDecoder.missingKey(jsonPath, "kind"); |
10058 } | 10711 } |
10059 String name; | 10712 String name; |
10060 if (json.containsKey("name")) { | 10713 if (json.containsKey("name")) { |
10061 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); | 10714 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
10062 } else { | 10715 } else { |
10063 throw jsonDecoder.missingKey(jsonPath, "name"); | 10716 throw jsonDecoder.missingKey(jsonPath, "name"); |
10064 } | 10717 } |
10065 Location location; | 10718 Location location; |
10066 if (json.containsKey("location")) { | 10719 if (json.containsKey("location")) { |
10067 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); | 10720 location = new Location.fromJson( |
| 10721 jsonDecoder, jsonPath + ".location", json["location"]); |
10068 } | 10722 } |
10069 int flags; | 10723 int flags; |
10070 if (json.containsKey("flags")) { | 10724 if (json.containsKey("flags")) { |
10071 flags = jsonDecoder.decodeInt(jsonPath + ".flags", json["flags"]); | 10725 flags = jsonDecoder.decodeInt(jsonPath + ".flags", json["flags"]); |
10072 } else { | 10726 } else { |
10073 throw jsonDecoder.missingKey(jsonPath, "flags"); | 10727 throw jsonDecoder.missingKey(jsonPath, "flags"); |
10074 } | 10728 } |
10075 String parameters; | 10729 String parameters; |
10076 if (json.containsKey("parameters")) { | 10730 if (json.containsKey("parameters")) { |
10077 parameters = jsonDecoder.decodeString(jsonPath + ".parameters", json["pa
rameters"]); | 10731 parameters = jsonDecoder.decodeString( |
| 10732 jsonPath + ".parameters", json["parameters"]); |
10078 } | 10733 } |
10079 String returnType; | 10734 String returnType; |
10080 if (json.containsKey("returnType")) { | 10735 if (json.containsKey("returnType")) { |
10081 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); | 10736 returnType = jsonDecoder.decodeString( |
| 10737 jsonPath + ".returnType", json["returnType"]); |
10082 } | 10738 } |
10083 String typeParameters; | 10739 String typeParameters; |
10084 if (json.containsKey("typeParameters")) { | 10740 if (json.containsKey("typeParameters")) { |
10085 typeParameters = jsonDecoder.decodeString(jsonPath + ".typeParameters",
json["typeParameters"]); | 10741 typeParameters = jsonDecoder.decodeString( |
| 10742 jsonPath + ".typeParameters", json["typeParameters"]); |
10086 } | 10743 } |
10087 return new Element(kind, name, flags, location: location, parameters: para
meters, returnType: returnType, typeParameters: typeParameters); | 10744 return new Element(kind, name, flags, |
| 10745 location: location, |
| 10746 parameters: parameters, |
| 10747 returnType: returnType, |
| 10748 typeParameters: typeParameters); |
10088 } else { | 10749 } else { |
10089 throw jsonDecoder.mismatch(jsonPath, "Element", json); | 10750 throw jsonDecoder.mismatch(jsonPath, "Element", json); |
10090 } | 10751 } |
10091 } | 10752 } |
10092 | 10753 |
10093 bool get isAbstract => (flags & FLAG_ABSTRACT) != 0; | 10754 bool get isAbstract => (flags & FLAG_ABSTRACT) != 0; |
10094 bool get isConst => (flags & FLAG_CONST) != 0; | 10755 bool get isConst => (flags & FLAG_CONST) != 0; |
10095 bool get isFinal => (flags & FLAG_FINAL) != 0; | 10756 bool get isFinal => (flags & FLAG_FINAL) != 0; |
10096 bool get isStatic => (flags & FLAG_STATIC) != 0; | 10757 bool get isStatic => (flags & FLAG_STATIC) != 0; |
10097 bool get isPrivate => (flags & FLAG_PRIVATE) != 0; | 10758 bool get isPrivate => (flags & FLAG_PRIVATE) != 0; |
(...skipping 16 matching lines...) Expand all Loading... |
10114 if (typeParameters != null) { | 10775 if (typeParameters != null) { |
10115 result["typeParameters"] = typeParameters; | 10776 result["typeParameters"] = typeParameters; |
10116 } | 10777 } |
10117 return result; | 10778 return result; |
10118 } | 10779 } |
10119 | 10780 |
10120 @override | 10781 @override |
10121 String toString() => JSON.encode(toJson()); | 10782 String toString() => JSON.encode(toJson()); |
10122 | 10783 |
10123 @override | 10784 @override |
10124 bool operator==(other) { | 10785 bool operator ==(other) { |
10125 if (other is Element) { | 10786 if (other is Element) { |
10126 return kind == other.kind && | 10787 return kind == other.kind && |
10127 name == other.name && | 10788 name == other.name && |
10128 location == other.location && | 10789 location == other.location && |
10129 flags == other.flags && | 10790 flags == other.flags && |
10130 parameters == other.parameters && | 10791 parameters == other.parameters && |
10131 returnType == other.returnType && | 10792 returnType == other.returnType && |
10132 typeParameters == other.typeParameters; | 10793 typeParameters == other.typeParameters; |
10133 } | 10794 } |
10134 return false; | 10795 return false; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10175 * UNIT_TEST_GROUP | 10836 * UNIT_TEST_GROUP |
10176 * UNIT_TEST_TEST | 10837 * UNIT_TEST_TEST |
10177 * UNKNOWN | 10838 * UNKNOWN |
10178 * } | 10839 * } |
10179 * | 10840 * |
10180 * Clients may not extend, implement or mix-in this class. | 10841 * Clients may not extend, implement or mix-in this class. |
10181 */ | 10842 */ |
10182 class ElementKind implements Enum { | 10843 class ElementKind implements Enum { |
10183 static const ElementKind CLASS = const ElementKind._("CLASS"); | 10844 static const ElementKind CLASS = const ElementKind._("CLASS"); |
10184 | 10845 |
10185 static const ElementKind CLASS_TYPE_ALIAS = const ElementKind._("CLASS_TYPE_AL
IAS"); | 10846 static const ElementKind CLASS_TYPE_ALIAS = |
| 10847 const ElementKind._("CLASS_TYPE_ALIAS"); |
10186 | 10848 |
10187 static const ElementKind COMPILATION_UNIT = const ElementKind._("COMPILATION_U
NIT"); | 10849 static const ElementKind COMPILATION_UNIT = |
| 10850 const ElementKind._("COMPILATION_UNIT"); |
10188 | 10851 |
10189 static const ElementKind CONSTRUCTOR = const ElementKind._("CONSTRUCTOR"); | 10852 static const ElementKind CONSTRUCTOR = const ElementKind._("CONSTRUCTOR"); |
10190 | 10853 |
10191 static const ElementKind ENUM = const ElementKind._("ENUM"); | 10854 static const ElementKind ENUM = const ElementKind._("ENUM"); |
10192 | 10855 |
10193 static const ElementKind ENUM_CONSTANT = const ElementKind._("ENUM_CONSTANT"); | 10856 static const ElementKind ENUM_CONSTANT = const ElementKind._("ENUM_CONSTANT"); |
10194 | 10857 |
10195 static const ElementKind FIELD = const ElementKind._("FIELD"); | 10858 static const ElementKind FIELD = const ElementKind._("FIELD"); |
10196 | 10859 |
10197 static const ElementKind FILE = const ElementKind._("FILE"); | 10860 static const ElementKind FILE = const ElementKind._("FILE"); |
10198 | 10861 |
10199 static const ElementKind FUNCTION = const ElementKind._("FUNCTION"); | 10862 static const ElementKind FUNCTION = const ElementKind._("FUNCTION"); |
10200 | 10863 |
10201 static const ElementKind FUNCTION_TYPE_ALIAS = const ElementKind._("FUNCTION_T
YPE_ALIAS"); | 10864 static const ElementKind FUNCTION_TYPE_ALIAS = |
| 10865 const ElementKind._("FUNCTION_TYPE_ALIAS"); |
10202 | 10866 |
10203 static const ElementKind GETTER = const ElementKind._("GETTER"); | 10867 static const ElementKind GETTER = const ElementKind._("GETTER"); |
10204 | 10868 |
10205 static const ElementKind LABEL = const ElementKind._("LABEL"); | 10869 static const ElementKind LABEL = const ElementKind._("LABEL"); |
10206 | 10870 |
10207 static const ElementKind LIBRARY = const ElementKind._("LIBRARY"); | 10871 static const ElementKind LIBRARY = const ElementKind._("LIBRARY"); |
10208 | 10872 |
10209 static const ElementKind LOCAL_VARIABLE = const ElementKind._("LOCAL_VARIABLE"
); | 10873 static const ElementKind LOCAL_VARIABLE = |
| 10874 const ElementKind._("LOCAL_VARIABLE"); |
10210 | 10875 |
10211 static const ElementKind METHOD = const ElementKind._("METHOD"); | 10876 static const ElementKind METHOD = const ElementKind._("METHOD"); |
10212 | 10877 |
10213 static const ElementKind PARAMETER = const ElementKind._("PARAMETER"); | 10878 static const ElementKind PARAMETER = const ElementKind._("PARAMETER"); |
10214 | 10879 |
10215 static const ElementKind PREFIX = const ElementKind._("PREFIX"); | 10880 static const ElementKind PREFIX = const ElementKind._("PREFIX"); |
10216 | 10881 |
10217 static const ElementKind SETTER = const ElementKind._("SETTER"); | 10882 static const ElementKind SETTER = const ElementKind._("SETTER"); |
10218 | 10883 |
10219 static const ElementKind TOP_LEVEL_VARIABLE = const ElementKind._("TOP_LEVEL_V
ARIABLE"); | 10884 static const ElementKind TOP_LEVEL_VARIABLE = |
| 10885 const ElementKind._("TOP_LEVEL_VARIABLE"); |
10220 | 10886 |
10221 static const ElementKind TYPE_PARAMETER = const ElementKind._("TYPE_PARAMETER"
); | 10887 static const ElementKind TYPE_PARAMETER = |
| 10888 const ElementKind._("TYPE_PARAMETER"); |
10222 | 10889 |
10223 /** | 10890 /** |
10224 * Deprecated: support for tests was removed. | 10891 * Deprecated: support for tests was removed. |
10225 */ | 10892 */ |
10226 static const ElementKind UNIT_TEST_GROUP = const ElementKind._("UNIT_TEST_GROU
P"); | 10893 static const ElementKind UNIT_TEST_GROUP = |
| 10894 const ElementKind._("UNIT_TEST_GROUP"); |
10227 | 10895 |
10228 /** | 10896 /** |
10229 * Deprecated: support for tests was removed. | 10897 * Deprecated: support for tests was removed. |
10230 */ | 10898 */ |
10231 static const ElementKind UNIT_TEST_TEST = const ElementKind._("UNIT_TEST_TEST"
); | 10899 static const ElementKind UNIT_TEST_TEST = |
| 10900 const ElementKind._("UNIT_TEST_TEST"); |
10232 | 10901 |
10233 static const ElementKind UNKNOWN = const ElementKind._("UNKNOWN"); | 10902 static const ElementKind UNKNOWN = const ElementKind._("UNKNOWN"); |
10234 | 10903 |
10235 /** | 10904 /** |
10236 * A list containing all of the enum values that are defined. | 10905 * A list containing all of the enum values that are defined. |
10237 */ | 10906 */ |
10238 static const List<ElementKind> VALUES = const <ElementKind>[CLASS, CLASS_TYPE_
ALIAS, COMPILATION_UNIT, CONSTRUCTOR, ENUM, ENUM_CONSTANT, FIELD, FILE, FUNCTION
, FUNCTION_TYPE_ALIAS, GETTER, LABEL, LIBRARY, LOCAL_VARIABLE, METHOD, PARAMETER
, PREFIX, SETTER, TOP_LEVEL_VARIABLE, TYPE_PARAMETER, UNIT_TEST_GROUP, UNIT_TEST
_TEST, UNKNOWN]; | 10907 static const List<ElementKind> VALUES = const <ElementKind>[ |
| 10908 CLASS, |
| 10909 CLASS_TYPE_ALIAS, |
| 10910 COMPILATION_UNIT, |
| 10911 CONSTRUCTOR, |
| 10912 ENUM, |
| 10913 ENUM_CONSTANT, |
| 10914 FIELD, |
| 10915 FILE, |
| 10916 FUNCTION, |
| 10917 FUNCTION_TYPE_ALIAS, |
| 10918 GETTER, |
| 10919 LABEL, |
| 10920 LIBRARY, |
| 10921 LOCAL_VARIABLE, |
| 10922 METHOD, |
| 10923 PARAMETER, |
| 10924 PREFIX, |
| 10925 SETTER, |
| 10926 TOP_LEVEL_VARIABLE, |
| 10927 TYPE_PARAMETER, |
| 10928 UNIT_TEST_GROUP, |
| 10929 UNIT_TEST_TEST, |
| 10930 UNKNOWN |
| 10931 ]; |
10239 | 10932 |
10240 final String name; | 10933 final String name; |
10241 | 10934 |
10242 const ElementKind._(this.name); | 10935 const ElementKind._(this.name); |
10243 | 10936 |
10244 factory ElementKind(String name) { | 10937 factory ElementKind(String name) { |
10245 switch (name) { | 10938 switch (name) { |
10246 case "CLASS": | 10939 case "CLASS": |
10247 return CLASS; | 10940 return CLASS; |
10248 case "CLASS_TYPE_ALIAS": | 10941 case "CLASS_TYPE_ALIAS": |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10286 case "UNIT_TEST_GROUP": | 10979 case "UNIT_TEST_GROUP": |
10287 return UNIT_TEST_GROUP; | 10980 return UNIT_TEST_GROUP; |
10288 case "UNIT_TEST_TEST": | 10981 case "UNIT_TEST_TEST": |
10289 return UNIT_TEST_TEST; | 10982 return UNIT_TEST_TEST; |
10290 case "UNKNOWN": | 10983 case "UNKNOWN": |
10291 return UNKNOWN; | 10984 return UNKNOWN; |
10292 } | 10985 } |
10293 throw new Exception('Illegal enum value: $name'); | 10986 throw new Exception('Illegal enum value: $name'); |
10294 } | 10987 } |
10295 | 10988 |
10296 factory ElementKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 10989 factory ElementKind.fromJson( |
| 10990 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10297 if (json is String) { | 10991 if (json is String) { |
10298 try { | 10992 try { |
10299 return new ElementKind(json); | 10993 return new ElementKind(json); |
10300 } catch(_) { | 10994 } catch (_) { |
10301 // Fall through | 10995 // Fall through |
10302 } | 10996 } |
10303 } | 10997 } |
10304 throw jsonDecoder.mismatch(jsonPath, "ElementKind", json); | 10998 throw jsonDecoder.mismatch(jsonPath, "ElementKind", json); |
10305 } | 10999 } |
10306 | 11000 |
10307 @override | 11001 @override |
10308 String toString() => "ElementKind.$name"; | 11002 String toString() => "ElementKind.$name"; |
10309 | 11003 |
10310 String toJson() => name; | 11004 String toJson() => name; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10349 void set kind(ExecutableKind value) { | 11043 void set kind(ExecutableKind value) { |
10350 assert(value != null); | 11044 assert(value != null); |
10351 this._kind = value; | 11045 this._kind = value; |
10352 } | 11046 } |
10353 | 11047 |
10354 ExecutableFile(String file, ExecutableKind kind) { | 11048 ExecutableFile(String file, ExecutableKind kind) { |
10355 this.file = file; | 11049 this.file = file; |
10356 this.kind = kind; | 11050 this.kind = kind; |
10357 } | 11051 } |
10358 | 11052 |
10359 factory ExecutableFile.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 11053 factory ExecutableFile.fromJson( |
| 11054 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10360 if (json == null) { | 11055 if (json == null) { |
10361 json = {}; | 11056 json = {}; |
10362 } | 11057 } |
10363 if (json is Map) { | 11058 if (json is Map) { |
10364 String file; | 11059 String file; |
10365 if (json.containsKey("file")) { | 11060 if (json.containsKey("file")) { |
10366 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 11061 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
10367 } else { | 11062 } else { |
10368 throw jsonDecoder.missingKey(jsonPath, "file"); | 11063 throw jsonDecoder.missingKey(jsonPath, "file"); |
10369 } | 11064 } |
10370 ExecutableKind kind; | 11065 ExecutableKind kind; |
10371 if (json.containsKey("kind")) { | 11066 if (json.containsKey("kind")) { |
10372 kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json
["kind"]); | 11067 kind = new ExecutableKind.fromJson( |
| 11068 jsonDecoder, jsonPath + ".kind", json["kind"]); |
10373 } else { | 11069 } else { |
10374 throw jsonDecoder.missingKey(jsonPath, "kind"); | 11070 throw jsonDecoder.missingKey(jsonPath, "kind"); |
10375 } | 11071 } |
10376 return new ExecutableFile(file, kind); | 11072 return new ExecutableFile(file, kind); |
10377 } else { | 11073 } else { |
10378 throw jsonDecoder.mismatch(jsonPath, "ExecutableFile", json); | 11074 throw jsonDecoder.mismatch(jsonPath, "ExecutableFile", json); |
10379 } | 11075 } |
10380 } | 11076 } |
10381 | 11077 |
10382 Map<String, dynamic> toJson() { | 11078 Map<String, dynamic> toJson() { |
10383 Map<String, dynamic> result = {}; | 11079 Map<String, dynamic> result = {}; |
10384 result["file"] = file; | 11080 result["file"] = file; |
10385 result["kind"] = kind.toJson(); | 11081 result["kind"] = kind.toJson(); |
10386 return result; | 11082 return result; |
10387 } | 11083 } |
10388 | 11084 |
10389 @override | 11085 @override |
10390 String toString() => JSON.encode(toJson()); | 11086 String toString() => JSON.encode(toJson()); |
10391 | 11087 |
10392 @override | 11088 @override |
10393 bool operator==(other) { | 11089 bool operator ==(other) { |
10394 if (other is ExecutableFile) { | 11090 if (other is ExecutableFile) { |
10395 return file == other.file && | 11091 return file == other.file && kind == other.kind; |
10396 kind == other.kind; | |
10397 } | 11092 } |
10398 return false; | 11093 return false; |
10399 } | 11094 } |
10400 | 11095 |
10401 @override | 11096 @override |
10402 int get hashCode { | 11097 int get hashCode { |
10403 int hash = 0; | 11098 int hash = 0; |
10404 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 11099 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
10405 hash = JenkinsSmiHash.combine(hash, kind.hashCode); | 11100 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
10406 return JenkinsSmiHash.finish(hash); | 11101 return JenkinsSmiHash.finish(hash); |
(...skipping 10 matching lines...) Expand all Loading... |
10417 * SERVER | 11112 * SERVER |
10418 * } | 11113 * } |
10419 * | 11114 * |
10420 * Clients may not extend, implement or mix-in this class. | 11115 * Clients may not extend, implement or mix-in this class. |
10421 */ | 11116 */ |
10422 class ExecutableKind implements Enum { | 11117 class ExecutableKind implements Enum { |
10423 static const ExecutableKind CLIENT = const ExecutableKind._("CLIENT"); | 11118 static const ExecutableKind CLIENT = const ExecutableKind._("CLIENT"); |
10424 | 11119 |
10425 static const ExecutableKind EITHER = const ExecutableKind._("EITHER"); | 11120 static const ExecutableKind EITHER = const ExecutableKind._("EITHER"); |
10426 | 11121 |
10427 static const ExecutableKind NOT_EXECUTABLE = const ExecutableKind._("NOT_EXECU
TABLE"); | 11122 static const ExecutableKind NOT_EXECUTABLE = |
| 11123 const ExecutableKind._("NOT_EXECUTABLE"); |
10428 | 11124 |
10429 static const ExecutableKind SERVER = const ExecutableKind._("SERVER"); | 11125 static const ExecutableKind SERVER = const ExecutableKind._("SERVER"); |
10430 | 11126 |
10431 /** | 11127 /** |
10432 * A list containing all of the enum values that are defined. | 11128 * A list containing all of the enum values that are defined. |
10433 */ | 11129 */ |
10434 static const List<ExecutableKind> VALUES = const <ExecutableKind>[CLIENT, EITH
ER, NOT_EXECUTABLE, SERVER]; | 11130 static const List<ExecutableKind> VALUES = const <ExecutableKind>[ |
| 11131 CLIENT, |
| 11132 EITHER, |
| 11133 NOT_EXECUTABLE, |
| 11134 SERVER |
| 11135 ]; |
10435 | 11136 |
10436 final String name; | 11137 final String name; |
10437 | 11138 |
10438 const ExecutableKind._(this.name); | 11139 const ExecutableKind._(this.name); |
10439 | 11140 |
10440 factory ExecutableKind(String name) { | 11141 factory ExecutableKind(String name) { |
10441 switch (name) { | 11142 switch (name) { |
10442 case "CLIENT": | 11143 case "CLIENT": |
10443 return CLIENT; | 11144 return CLIENT; |
10444 case "EITHER": | 11145 case "EITHER": |
10445 return EITHER; | 11146 return EITHER; |
10446 case "NOT_EXECUTABLE": | 11147 case "NOT_EXECUTABLE": |
10447 return NOT_EXECUTABLE; | 11148 return NOT_EXECUTABLE; |
10448 case "SERVER": | 11149 case "SERVER": |
10449 return SERVER; | 11150 return SERVER; |
10450 } | 11151 } |
10451 throw new Exception('Illegal enum value: $name'); | 11152 throw new Exception('Illegal enum value: $name'); |
10452 } | 11153 } |
10453 | 11154 |
10454 factory ExecutableKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 11155 factory ExecutableKind.fromJson( |
| 11156 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10455 if (json is String) { | 11157 if (json is String) { |
10456 try { | 11158 try { |
10457 return new ExecutableKind(json); | 11159 return new ExecutableKind(json); |
10458 } catch(_) { | 11160 } catch (_) { |
10459 // Fall through | 11161 // Fall through |
10460 } | 11162 } |
10461 } | 11163 } |
10462 throw jsonDecoder.mismatch(jsonPath, "ExecutableKind", json); | 11164 throw jsonDecoder.mismatch(jsonPath, "ExecutableKind", json); |
10463 } | 11165 } |
10464 | 11166 |
10465 @override | 11167 @override |
10466 String toString() => "ExecutableKind.$name"; | 11168 String toString() => "ExecutableKind.$name"; |
10467 | 11169 |
10468 String toJson() => name; | 11170 String toJson() => name; |
10469 } | 11171 } |
10470 | 11172 |
10471 /** | 11173 /** |
10472 * ExecutionService | 11174 * ExecutionService |
10473 * | 11175 * |
10474 * enum { | 11176 * enum { |
10475 * LAUNCH_DATA | 11177 * LAUNCH_DATA |
10476 * } | 11178 * } |
10477 * | 11179 * |
10478 * Clients may not extend, implement or mix-in this class. | 11180 * Clients may not extend, implement or mix-in this class. |
10479 */ | 11181 */ |
10480 class ExecutionService implements Enum { | 11182 class ExecutionService implements Enum { |
10481 static const ExecutionService LAUNCH_DATA = const ExecutionService._("LAUNCH_D
ATA"); | 11183 static const ExecutionService LAUNCH_DATA = |
| 11184 const ExecutionService._("LAUNCH_DATA"); |
10482 | 11185 |
10483 /** | 11186 /** |
10484 * A list containing all of the enum values that are defined. | 11187 * A list containing all of the enum values that are defined. |
10485 */ | 11188 */ |
10486 static const List<ExecutionService> VALUES = const <ExecutionService>[LAUNCH_D
ATA]; | 11189 static const List<ExecutionService> VALUES = const <ExecutionService>[ |
| 11190 LAUNCH_DATA |
| 11191 ]; |
10487 | 11192 |
10488 final String name; | 11193 final String name; |
10489 | 11194 |
10490 const ExecutionService._(this.name); | 11195 const ExecutionService._(this.name); |
10491 | 11196 |
10492 factory ExecutionService(String name) { | 11197 factory ExecutionService(String name) { |
10493 switch (name) { | 11198 switch (name) { |
10494 case "LAUNCH_DATA": | 11199 case "LAUNCH_DATA": |
10495 return LAUNCH_DATA; | 11200 return LAUNCH_DATA; |
10496 } | 11201 } |
10497 throw new Exception('Illegal enum value: $name'); | 11202 throw new Exception('Illegal enum value: $name'); |
10498 } | 11203 } |
10499 | 11204 |
10500 factory ExecutionService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 11205 factory ExecutionService.fromJson( |
| 11206 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10501 if (json is String) { | 11207 if (json is String) { |
10502 try { | 11208 try { |
10503 return new ExecutionService(json); | 11209 return new ExecutionService(json); |
10504 } catch(_) { | 11210 } catch (_) { |
10505 // Fall through | 11211 // Fall through |
10506 } | 11212 } |
10507 } | 11213 } |
10508 throw jsonDecoder.mismatch(jsonPath, "ExecutionService", json); | 11214 throw jsonDecoder.mismatch(jsonPath, "ExecutionService", json); |
10509 } | 11215 } |
10510 | 11216 |
10511 @override | 11217 @override |
10512 String toString() => "ExecutionService.$name"; | 11218 String toString() => "ExecutionService.$name"; |
10513 | 11219 |
10514 String toJson() => name; | 11220 String toJson() => name; |
(...skipping 26 matching lines...) Expand all Loading... |
10541 factory FileKind(String name) { | 11247 factory FileKind(String name) { |
10542 switch (name) { | 11248 switch (name) { |
10543 case "LIBRARY": | 11249 case "LIBRARY": |
10544 return LIBRARY; | 11250 return LIBRARY; |
10545 case "PART": | 11251 case "PART": |
10546 return PART; | 11252 return PART; |
10547 } | 11253 } |
10548 throw new Exception('Illegal enum value: $name'); | 11254 throw new Exception('Illegal enum value: $name'); |
10549 } | 11255 } |
10550 | 11256 |
10551 factory FileKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 11257 factory FileKind.fromJson( |
| 11258 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10552 if (json is String) { | 11259 if (json is String) { |
10553 try { | 11260 try { |
10554 return new FileKind(json); | 11261 return new FileKind(json); |
10555 } catch(_) { | 11262 } catch (_) { |
10556 // Fall through | 11263 // Fall through |
10557 } | 11264 } |
10558 } | 11265 } |
10559 throw jsonDecoder.mismatch(jsonPath, "FileKind", json); | 11266 throw jsonDecoder.mismatch(jsonPath, "FileKind", json); |
10560 } | 11267 } |
10561 | 11268 |
10562 @override | 11269 @override |
10563 String toString() => "FileKind.$name"; | 11270 String toString() => "FileKind.$name"; |
10564 | 11271 |
10565 String toJson() => name; | 11272 String toJson() => name; |
(...skipping 12 matching lines...) Expand all Loading... |
10578 * | 11285 * |
10579 * Clients may not extend, implement or mix-in this class. | 11286 * Clients may not extend, implement or mix-in this class. |
10580 */ | 11287 */ |
10581 class FoldingKind implements Enum { | 11288 class FoldingKind implements Enum { |
10582 static const FoldingKind COMMENT = const FoldingKind._("COMMENT"); | 11289 static const FoldingKind COMMENT = const FoldingKind._("COMMENT"); |
10583 | 11290 |
10584 static const FoldingKind CLASS_MEMBER = const FoldingKind._("CLASS_MEMBER"); | 11291 static const FoldingKind CLASS_MEMBER = const FoldingKind._("CLASS_MEMBER"); |
10585 | 11292 |
10586 static const FoldingKind DIRECTIVES = const FoldingKind._("DIRECTIVES"); | 11293 static const FoldingKind DIRECTIVES = const FoldingKind._("DIRECTIVES"); |
10587 | 11294 |
10588 static const FoldingKind DOCUMENTATION_COMMENT = const FoldingKind._("DOCUMENT
ATION_COMMENT"); | 11295 static const FoldingKind DOCUMENTATION_COMMENT = |
| 11296 const FoldingKind._("DOCUMENTATION_COMMENT"); |
10589 | 11297 |
10590 static const FoldingKind TOP_LEVEL_DECLARATION = const FoldingKind._("TOP_LEVE
L_DECLARATION"); | 11298 static const FoldingKind TOP_LEVEL_DECLARATION = |
| 11299 const FoldingKind._("TOP_LEVEL_DECLARATION"); |
10591 | 11300 |
10592 /** | 11301 /** |
10593 * A list containing all of the enum values that are defined. | 11302 * A list containing all of the enum values that are defined. |
10594 */ | 11303 */ |
10595 static const List<FoldingKind> VALUES = const <FoldingKind>[COMMENT, CLASS_MEM
BER, DIRECTIVES, DOCUMENTATION_COMMENT, TOP_LEVEL_DECLARATION]; | 11304 static const List<FoldingKind> VALUES = const <FoldingKind>[ |
| 11305 COMMENT, |
| 11306 CLASS_MEMBER, |
| 11307 DIRECTIVES, |
| 11308 DOCUMENTATION_COMMENT, |
| 11309 TOP_LEVEL_DECLARATION |
| 11310 ]; |
10596 | 11311 |
10597 final String name; | 11312 final String name; |
10598 | 11313 |
10599 const FoldingKind._(this.name); | 11314 const FoldingKind._(this.name); |
10600 | 11315 |
10601 factory FoldingKind(String name) { | 11316 factory FoldingKind(String name) { |
10602 switch (name) { | 11317 switch (name) { |
10603 case "COMMENT": | 11318 case "COMMENT": |
10604 return COMMENT; | 11319 return COMMENT; |
10605 case "CLASS_MEMBER": | 11320 case "CLASS_MEMBER": |
10606 return CLASS_MEMBER; | 11321 return CLASS_MEMBER; |
10607 case "DIRECTIVES": | 11322 case "DIRECTIVES": |
10608 return DIRECTIVES; | 11323 return DIRECTIVES; |
10609 case "DOCUMENTATION_COMMENT": | 11324 case "DOCUMENTATION_COMMENT": |
10610 return DOCUMENTATION_COMMENT; | 11325 return DOCUMENTATION_COMMENT; |
10611 case "TOP_LEVEL_DECLARATION": | 11326 case "TOP_LEVEL_DECLARATION": |
10612 return TOP_LEVEL_DECLARATION; | 11327 return TOP_LEVEL_DECLARATION; |
10613 } | 11328 } |
10614 throw new Exception('Illegal enum value: $name'); | 11329 throw new Exception('Illegal enum value: $name'); |
10615 } | 11330 } |
10616 | 11331 |
10617 factory FoldingKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 11332 factory FoldingKind.fromJson( |
| 11333 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10618 if (json is String) { | 11334 if (json is String) { |
10619 try { | 11335 try { |
10620 return new FoldingKind(json); | 11336 return new FoldingKind(json); |
10621 } catch(_) { | 11337 } catch (_) { |
10622 // Fall through | 11338 // Fall through |
10623 } | 11339 } |
10624 } | 11340 } |
10625 throw jsonDecoder.mismatch(jsonPath, "FoldingKind", json); | 11341 throw jsonDecoder.mismatch(jsonPath, "FoldingKind", json); |
10626 } | 11342 } |
10627 | 11343 |
10628 @override | 11344 @override |
10629 String toString() => "FoldingKind.$name"; | 11345 String toString() => "FoldingKind.$name"; |
10630 | 11346 |
10631 String toJson() => name; | 11347 String toJson() => name; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10687 assert(value != null); | 11403 assert(value != null); |
10688 this._length = value; | 11404 this._length = value; |
10689 } | 11405 } |
10690 | 11406 |
10691 FoldingRegion(FoldingKind kind, int offset, int length) { | 11407 FoldingRegion(FoldingKind kind, int offset, int length) { |
10692 this.kind = kind; | 11408 this.kind = kind; |
10693 this.offset = offset; | 11409 this.offset = offset; |
10694 this.length = length; | 11410 this.length = length; |
10695 } | 11411 } |
10696 | 11412 |
10697 factory FoldingRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 11413 factory FoldingRegion.fromJson( |
| 11414 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10698 if (json == null) { | 11415 if (json == null) { |
10699 json = {}; | 11416 json = {}; |
10700 } | 11417 } |
10701 if (json is Map) { | 11418 if (json is Map) { |
10702 FoldingKind kind; | 11419 FoldingKind kind; |
10703 if (json.containsKey("kind")) { | 11420 if (json.containsKey("kind")) { |
10704 kind = new FoldingKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k
ind"]); | 11421 kind = new FoldingKind.fromJson( |
| 11422 jsonDecoder, jsonPath + ".kind", json["kind"]); |
10705 } else { | 11423 } else { |
10706 throw jsonDecoder.missingKey(jsonPath, "kind"); | 11424 throw jsonDecoder.missingKey(jsonPath, "kind"); |
10707 } | 11425 } |
10708 int offset; | 11426 int offset; |
10709 if (json.containsKey("offset")) { | 11427 if (json.containsKey("offset")) { |
10710 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 11428 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
10711 } else { | 11429 } else { |
10712 throw jsonDecoder.missingKey(jsonPath, "offset"); | 11430 throw jsonDecoder.missingKey(jsonPath, "offset"); |
10713 } | 11431 } |
10714 int length; | 11432 int length; |
(...skipping 13 matching lines...) Expand all Loading... |
10728 result["kind"] = kind.toJson(); | 11446 result["kind"] = kind.toJson(); |
10729 result["offset"] = offset; | 11447 result["offset"] = offset; |
10730 result["length"] = length; | 11448 result["length"] = length; |
10731 return result; | 11449 return result; |
10732 } | 11450 } |
10733 | 11451 |
10734 @override | 11452 @override |
10735 String toString() => JSON.encode(toJson()); | 11453 String toString() => JSON.encode(toJson()); |
10736 | 11454 |
10737 @override | 11455 @override |
10738 bool operator==(other) { | 11456 bool operator ==(other) { |
10739 if (other is FoldingRegion) { | 11457 if (other is FoldingRegion) { |
10740 return kind == other.kind && | 11458 return kind == other.kind && |
10741 offset == other.offset && | 11459 offset == other.offset && |
10742 length == other.length; | 11460 length == other.length; |
10743 } | 11461 } |
10744 return false; | 11462 return false; |
10745 } | 11463 } |
10746 | 11464 |
10747 @override | 11465 @override |
10748 int get hashCode { | 11466 int get hashCode { |
10749 int hash = 0; | 11467 int hash = 0; |
10750 hash = JenkinsSmiHash.combine(hash, kind.hashCode); | 11468 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
10751 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 11469 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
10752 hash = JenkinsSmiHash.combine(hash, length.hashCode); | 11470 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
10753 return JenkinsSmiHash.finish(hash); | 11471 return JenkinsSmiHash.finish(hash); |
10754 } | 11472 } |
10755 } | 11473 } |
10756 | 11474 |
10757 /** | 11475 /** |
10758 * GeneralAnalysisService | 11476 * GeneralAnalysisService |
10759 * | 11477 * |
10760 * enum { | 11478 * enum { |
10761 * ANALYZED_FILES | 11479 * ANALYZED_FILES |
10762 * } | 11480 * } |
10763 * | 11481 * |
10764 * Clients may not extend, implement or mix-in this class. | 11482 * Clients may not extend, implement or mix-in this class. |
10765 */ | 11483 */ |
10766 class GeneralAnalysisService implements Enum { | 11484 class GeneralAnalysisService implements Enum { |
10767 static const GeneralAnalysisService ANALYZED_FILES = const GeneralAnalysisServ
ice._("ANALYZED_FILES"); | 11485 static const GeneralAnalysisService ANALYZED_FILES = |
| 11486 const GeneralAnalysisService._("ANALYZED_FILES"); |
10768 | 11487 |
10769 /** | 11488 /** |
10770 * A list containing all of the enum values that are defined. | 11489 * A list containing all of the enum values that are defined. |
10771 */ | 11490 */ |
10772 static const List<GeneralAnalysisService> VALUES = const <GeneralAnalysisServi
ce>[ANALYZED_FILES]; | 11491 static const List<GeneralAnalysisService> VALUES = |
| 11492 const <GeneralAnalysisService>[ANALYZED_FILES]; |
10773 | 11493 |
10774 final String name; | 11494 final String name; |
10775 | 11495 |
10776 const GeneralAnalysisService._(this.name); | 11496 const GeneralAnalysisService._(this.name); |
10777 | 11497 |
10778 factory GeneralAnalysisService(String name) { | 11498 factory GeneralAnalysisService(String name) { |
10779 switch (name) { | 11499 switch (name) { |
10780 case "ANALYZED_FILES": | 11500 case "ANALYZED_FILES": |
10781 return ANALYZED_FILES; | 11501 return ANALYZED_FILES; |
10782 } | 11502 } |
10783 throw new Exception('Illegal enum value: $name'); | 11503 throw new Exception('Illegal enum value: $name'); |
10784 } | 11504 } |
10785 | 11505 |
10786 factory GeneralAnalysisService.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 11506 factory GeneralAnalysisService.fromJson( |
| 11507 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10787 if (json is String) { | 11508 if (json is String) { |
10788 try { | 11509 try { |
10789 return new GeneralAnalysisService(json); | 11510 return new GeneralAnalysisService(json); |
10790 } catch(_) { | 11511 } catch (_) { |
10791 // Fall through | 11512 // Fall through |
10792 } | 11513 } |
10793 } | 11514 } |
10794 throw jsonDecoder.mismatch(jsonPath, "GeneralAnalysisService", json); | 11515 throw jsonDecoder.mismatch(jsonPath, "GeneralAnalysisService", json); |
10795 } | 11516 } |
10796 | 11517 |
10797 @override | 11518 @override |
10798 String toString() => "GeneralAnalysisService.$name"; | 11519 String toString() => "GeneralAnalysisService.$name"; |
10799 | 11520 |
10800 String toJson() => name; | 11521 String toJson() => name; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10856 assert(value != null); | 11577 assert(value != null); |
10857 this._length = value; | 11578 this._length = value; |
10858 } | 11579 } |
10859 | 11580 |
10860 HighlightRegion(HighlightRegionType type, int offset, int length) { | 11581 HighlightRegion(HighlightRegionType type, int offset, int length) { |
10861 this.type = type; | 11582 this.type = type; |
10862 this.offset = offset; | 11583 this.offset = offset; |
10863 this.length = length; | 11584 this.length = length; |
10864 } | 11585 } |
10865 | 11586 |
10866 factory HighlightRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 11587 factory HighlightRegion.fromJson( |
| 11588 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
10867 if (json == null) { | 11589 if (json == null) { |
10868 json = {}; | 11590 json = {}; |
10869 } | 11591 } |
10870 if (json is Map) { | 11592 if (json is Map) { |
10871 HighlightRegionType type; | 11593 HighlightRegionType type; |
10872 if (json.containsKey("type")) { | 11594 if (json.containsKey("type")) { |
10873 type = new HighlightRegionType.fromJson(jsonDecoder, jsonPath + ".type",
json["type"]); | 11595 type = new HighlightRegionType.fromJson( |
| 11596 jsonDecoder, jsonPath + ".type", json["type"]); |
10874 } else { | 11597 } else { |
10875 throw jsonDecoder.missingKey(jsonPath, "type"); | 11598 throw jsonDecoder.missingKey(jsonPath, "type"); |
10876 } | 11599 } |
10877 int offset; | 11600 int offset; |
10878 if (json.containsKey("offset")) { | 11601 if (json.containsKey("offset")) { |
10879 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 11602 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
10880 } else { | 11603 } else { |
10881 throw jsonDecoder.missingKey(jsonPath, "offset"); | 11604 throw jsonDecoder.missingKey(jsonPath, "offset"); |
10882 } | 11605 } |
10883 int length; | 11606 int length; |
(...skipping 13 matching lines...) Expand all Loading... |
10897 result["type"] = type.toJson(); | 11620 result["type"] = type.toJson(); |
10898 result["offset"] = offset; | 11621 result["offset"] = offset; |
10899 result["length"] = length; | 11622 result["length"] = length; |
10900 return result; | 11623 return result; |
10901 } | 11624 } |
10902 | 11625 |
10903 @override | 11626 @override |
10904 String toString() => JSON.encode(toJson()); | 11627 String toString() => JSON.encode(toJson()); |
10905 | 11628 |
10906 @override | 11629 @override |
10907 bool operator==(other) { | 11630 bool operator ==(other) { |
10908 if (other is HighlightRegion) { | 11631 if (other is HighlightRegion) { |
10909 return type == other.type && | 11632 return type == other.type && |
10910 offset == other.offset && | 11633 offset == other.offset && |
10911 length == other.length; | 11634 length == other.length; |
10912 } | 11635 } |
10913 return false; | 11636 return false; |
10914 } | 11637 } |
10915 | 11638 |
10916 @override | 11639 @override |
10917 int get hashCode { | 11640 int get hashCode { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10998 * TOP_LEVEL_VARIABLE_DECLARATION | 11721 * TOP_LEVEL_VARIABLE_DECLARATION |
10999 * TYPE_NAME_DYNAMIC | 11722 * TYPE_NAME_DYNAMIC |
11000 * TYPE_PARAMETER | 11723 * TYPE_PARAMETER |
11001 * UNRESOLVED_INSTANCE_MEMBER_REFERENCE | 11724 * UNRESOLVED_INSTANCE_MEMBER_REFERENCE |
11002 * VALID_STRING_ESCAPE | 11725 * VALID_STRING_ESCAPE |
11003 * } | 11726 * } |
11004 * | 11727 * |
11005 * Clients may not extend, implement or mix-in this class. | 11728 * Clients may not extend, implement or mix-in this class. |
11006 */ | 11729 */ |
11007 class HighlightRegionType implements Enum { | 11730 class HighlightRegionType implements Enum { |
11008 static const HighlightRegionType ANNOTATION = const HighlightRegionType._("ANN
OTATION"); | 11731 static const HighlightRegionType ANNOTATION = |
| 11732 const HighlightRegionType._("ANNOTATION"); |
11009 | 11733 |
11010 static const HighlightRegionType BUILT_IN = const HighlightRegionType._("BUILT
_IN"); | 11734 static const HighlightRegionType BUILT_IN = |
| 11735 const HighlightRegionType._("BUILT_IN"); |
11011 | 11736 |
11012 static const HighlightRegionType CLASS = const HighlightRegionType._("CLASS"); | 11737 static const HighlightRegionType CLASS = const HighlightRegionType._("CLASS"); |
11013 | 11738 |
11014 static const HighlightRegionType COMMENT_BLOCK = const HighlightRegionType._("
COMMENT_BLOCK"); | 11739 static const HighlightRegionType COMMENT_BLOCK = |
| 11740 const HighlightRegionType._("COMMENT_BLOCK"); |
11015 | 11741 |
11016 static const HighlightRegionType COMMENT_DOCUMENTATION = const HighlightRegion
Type._("COMMENT_DOCUMENTATION"); | 11742 static const HighlightRegionType COMMENT_DOCUMENTATION = |
| 11743 const HighlightRegionType._("COMMENT_DOCUMENTATION"); |
11017 | 11744 |
11018 static const HighlightRegionType COMMENT_END_OF_LINE = const HighlightRegionTy
pe._("COMMENT_END_OF_LINE"); | 11745 static const HighlightRegionType COMMENT_END_OF_LINE = |
| 11746 const HighlightRegionType._("COMMENT_END_OF_LINE"); |
11019 | 11747 |
11020 static const HighlightRegionType CONSTRUCTOR = const HighlightRegionType._("CO
NSTRUCTOR"); | 11748 static const HighlightRegionType CONSTRUCTOR = |
| 11749 const HighlightRegionType._("CONSTRUCTOR"); |
11021 | 11750 |
11022 static const HighlightRegionType DIRECTIVE = const HighlightRegionType._("DIRE
CTIVE"); | 11751 static const HighlightRegionType DIRECTIVE = |
| 11752 const HighlightRegionType._("DIRECTIVE"); |
11023 | 11753 |
11024 /** | 11754 /** |
11025 * Only for version 1 of highlight. | 11755 * Only for version 1 of highlight. |
11026 */ | 11756 */ |
11027 static const HighlightRegionType DYNAMIC_TYPE = const HighlightRegionType._("D
YNAMIC_TYPE"); | 11757 static const HighlightRegionType DYNAMIC_TYPE = |
| 11758 const HighlightRegionType._("DYNAMIC_TYPE"); |
11028 | 11759 |
11029 /** | 11760 /** |
11030 * Only for version 2 of highlight. | 11761 * Only for version 2 of highlight. |
11031 */ | 11762 */ |
11032 static const HighlightRegionType DYNAMIC_LOCAL_VARIABLE_DECLARATION = const Hi
ghlightRegionType._("DYNAMIC_LOCAL_VARIABLE_DECLARATION"); | 11763 static const HighlightRegionType DYNAMIC_LOCAL_VARIABLE_DECLARATION = |
| 11764 const HighlightRegionType._("DYNAMIC_LOCAL_VARIABLE_DECLARATION"); |
11033 | 11765 |
11034 /** | 11766 /** |
11035 * Only for version 2 of highlight. | 11767 * Only for version 2 of highlight. |
11036 */ | 11768 */ |
11037 static const HighlightRegionType DYNAMIC_LOCAL_VARIABLE_REFERENCE = const High
lightRegionType._("DYNAMIC_LOCAL_VARIABLE_REFERENCE"); | 11769 static const HighlightRegionType DYNAMIC_LOCAL_VARIABLE_REFERENCE = |
| 11770 const HighlightRegionType._("DYNAMIC_LOCAL_VARIABLE_REFERENCE"); |
11038 | 11771 |
11039 /** | 11772 /** |
11040 * Only for version 2 of highlight. | 11773 * Only for version 2 of highlight. |
11041 */ | 11774 */ |
11042 static const HighlightRegionType DYNAMIC_PARAMETER_DECLARATION = const Highlig
htRegionType._("DYNAMIC_PARAMETER_DECLARATION"); | 11775 static const HighlightRegionType DYNAMIC_PARAMETER_DECLARATION = |
| 11776 const HighlightRegionType._("DYNAMIC_PARAMETER_DECLARATION"); |
11043 | 11777 |
11044 /** | 11778 /** |
11045 * Only for version 2 of highlight. | 11779 * Only for version 2 of highlight. |
11046 */ | 11780 */ |
11047 static const HighlightRegionType DYNAMIC_PARAMETER_REFERENCE = const Highlight
RegionType._("DYNAMIC_PARAMETER_REFERENCE"); | 11781 static const HighlightRegionType DYNAMIC_PARAMETER_REFERENCE = |
| 11782 const HighlightRegionType._("DYNAMIC_PARAMETER_REFERENCE"); |
11048 | 11783 |
11049 static const HighlightRegionType ENUM = const HighlightRegionType._("ENUM"); | 11784 static const HighlightRegionType ENUM = const HighlightRegionType._("ENUM"); |
11050 | 11785 |
11051 static const HighlightRegionType ENUM_CONSTANT = const HighlightRegionType._("
ENUM_CONSTANT"); | 11786 static const HighlightRegionType ENUM_CONSTANT = |
| 11787 const HighlightRegionType._("ENUM_CONSTANT"); |
11052 | 11788 |
11053 /** | 11789 /** |
11054 * Only for version 1 of highlight. | 11790 * Only for version 1 of highlight. |
11055 */ | 11791 */ |
11056 static const HighlightRegionType FIELD = const HighlightRegionType._("FIELD"); | 11792 static const HighlightRegionType FIELD = const HighlightRegionType._("FIELD"); |
11057 | 11793 |
11058 /** | 11794 /** |
11059 * Only for version 1 of highlight. | 11795 * Only for version 1 of highlight. |
11060 */ | 11796 */ |
11061 static const HighlightRegionType FIELD_STATIC = const HighlightRegionType._("F
IELD_STATIC"); | 11797 static const HighlightRegionType FIELD_STATIC = |
11062 | 11798 const HighlightRegionType._("FIELD_STATIC"); |
11063 /** | 11799 |
11064 * Only for version 1 of highlight. | 11800 /** |
11065 */ | 11801 * Only for version 1 of highlight. |
11066 static const HighlightRegionType FUNCTION = const HighlightRegionType._("FUNCT
ION"); | 11802 */ |
11067 | 11803 static const HighlightRegionType FUNCTION = |
11068 /** | 11804 const HighlightRegionType._("FUNCTION"); |
11069 * Only for version 1 of highlight. | 11805 |
11070 */ | 11806 /** |
11071 static const HighlightRegionType FUNCTION_DECLARATION = const HighlightRegionT
ype._("FUNCTION_DECLARATION"); | 11807 * Only for version 1 of highlight. |
11072 | 11808 */ |
11073 static const HighlightRegionType FUNCTION_TYPE_ALIAS = const HighlightRegionTy
pe._("FUNCTION_TYPE_ALIAS"); | 11809 static const HighlightRegionType FUNCTION_DECLARATION = |
11074 | 11810 const HighlightRegionType._("FUNCTION_DECLARATION"); |
11075 /** | 11811 |
11076 * Only for version 1 of highlight. | 11812 static const HighlightRegionType FUNCTION_TYPE_ALIAS = |
11077 */ | 11813 const HighlightRegionType._("FUNCTION_TYPE_ALIAS"); |
11078 static const HighlightRegionType GETTER_DECLARATION = const HighlightRegionTyp
e._("GETTER_DECLARATION"); | 11814 |
11079 | 11815 /** |
11080 static const HighlightRegionType IDENTIFIER_DEFAULT = const HighlightRegionTyp
e._("IDENTIFIER_DEFAULT"); | 11816 * Only for version 1 of highlight. |
11081 | 11817 */ |
11082 static const HighlightRegionType IMPORT_PREFIX = const HighlightRegionType._("
IMPORT_PREFIX"); | 11818 static const HighlightRegionType GETTER_DECLARATION = |
11083 | 11819 const HighlightRegionType._("GETTER_DECLARATION"); |
11084 /** | 11820 |
11085 * Only for version 2 of highlight. | 11821 static const HighlightRegionType IDENTIFIER_DEFAULT = |
11086 */ | 11822 const HighlightRegionType._("IDENTIFIER_DEFAULT"); |
11087 static const HighlightRegionType INSTANCE_FIELD_DECLARATION = const HighlightR
egionType._("INSTANCE_FIELD_DECLARATION"); | 11823 |
11088 | 11824 static const HighlightRegionType IMPORT_PREFIX = |
11089 /** | 11825 const HighlightRegionType._("IMPORT_PREFIX"); |
11090 * Only for version 2 of highlight. | 11826 |
11091 */ | 11827 /** |
11092 static const HighlightRegionType INSTANCE_FIELD_REFERENCE = const HighlightReg
ionType._("INSTANCE_FIELD_REFERENCE"); | 11828 * Only for version 2 of highlight. |
11093 | 11829 */ |
11094 /** | 11830 static const HighlightRegionType INSTANCE_FIELD_DECLARATION = |
11095 * Only for version 2 of highlight. | 11831 const HighlightRegionType._("INSTANCE_FIELD_DECLARATION"); |
11096 */ | 11832 |
11097 static const HighlightRegionType INSTANCE_GETTER_DECLARATION = const Highlight
RegionType._("INSTANCE_GETTER_DECLARATION"); | 11833 /** |
11098 | 11834 * Only for version 2 of highlight. |
11099 /** | 11835 */ |
11100 * Only for version 2 of highlight. | 11836 static const HighlightRegionType INSTANCE_FIELD_REFERENCE = |
11101 */ | 11837 const HighlightRegionType._("INSTANCE_FIELD_REFERENCE"); |
11102 static const HighlightRegionType INSTANCE_GETTER_REFERENCE = const HighlightRe
gionType._("INSTANCE_GETTER_REFERENCE"); | 11838 |
11103 | 11839 /** |
11104 /** | 11840 * Only for version 2 of highlight. |
11105 * Only for version 2 of highlight. | 11841 */ |
11106 */ | 11842 static const HighlightRegionType INSTANCE_GETTER_DECLARATION = |
11107 static const HighlightRegionType INSTANCE_METHOD_DECLARATION = const Highlight
RegionType._("INSTANCE_METHOD_DECLARATION"); | 11843 const HighlightRegionType._("INSTANCE_GETTER_DECLARATION"); |
11108 | 11844 |
11109 /** | 11845 /** |
11110 * Only for version 2 of highlight. | 11846 * Only for version 2 of highlight. |
11111 */ | 11847 */ |
11112 static const HighlightRegionType INSTANCE_METHOD_REFERENCE = const HighlightRe
gionType._("INSTANCE_METHOD_REFERENCE"); | 11848 static const HighlightRegionType INSTANCE_GETTER_REFERENCE = |
11113 | 11849 const HighlightRegionType._("INSTANCE_GETTER_REFERENCE"); |
11114 /** | 11850 |
11115 * Only for version 2 of highlight. | 11851 /** |
11116 */ | 11852 * Only for version 2 of highlight. |
11117 static const HighlightRegionType INSTANCE_SETTER_DECLARATION = const Highlight
RegionType._("INSTANCE_SETTER_DECLARATION"); | 11853 */ |
11118 | 11854 static const HighlightRegionType INSTANCE_METHOD_DECLARATION = |
11119 /** | 11855 const HighlightRegionType._("INSTANCE_METHOD_DECLARATION"); |
11120 * Only for version 2 of highlight. | 11856 |
11121 */ | 11857 /** |
11122 static const HighlightRegionType INSTANCE_SETTER_REFERENCE = const HighlightRe
gionType._("INSTANCE_SETTER_REFERENCE"); | 11858 * Only for version 2 of highlight. |
11123 | 11859 */ |
11124 /** | 11860 static const HighlightRegionType INSTANCE_METHOD_REFERENCE = |
11125 * Only for version 2 of highlight. | 11861 const HighlightRegionType._("INSTANCE_METHOD_REFERENCE"); |
11126 */ | 11862 |
11127 static const HighlightRegionType INVALID_STRING_ESCAPE = const HighlightRegion
Type._("INVALID_STRING_ESCAPE"); | 11863 /** |
11128 | 11864 * Only for version 2 of highlight. |
11129 static const HighlightRegionType KEYWORD = const HighlightRegionType._("KEYWOR
D"); | 11865 */ |
| 11866 static const HighlightRegionType INSTANCE_SETTER_DECLARATION = |
| 11867 const HighlightRegionType._("INSTANCE_SETTER_DECLARATION"); |
| 11868 |
| 11869 /** |
| 11870 * Only for version 2 of highlight. |
| 11871 */ |
| 11872 static const HighlightRegionType INSTANCE_SETTER_REFERENCE = |
| 11873 const HighlightRegionType._("INSTANCE_SETTER_REFERENCE"); |
| 11874 |
| 11875 /** |
| 11876 * Only for version 2 of highlight. |
| 11877 */ |
| 11878 static const HighlightRegionType INVALID_STRING_ESCAPE = |
| 11879 const HighlightRegionType._("INVALID_STRING_ESCAPE"); |
| 11880 |
| 11881 static const HighlightRegionType KEYWORD = |
| 11882 const HighlightRegionType._("KEYWORD"); |
11130 | 11883 |
11131 static const HighlightRegionType LABEL = const HighlightRegionType._("LABEL"); | 11884 static const HighlightRegionType LABEL = const HighlightRegionType._("LABEL"); |
11132 | 11885 |
11133 /** | 11886 /** |
11134 * Only for version 2 of highlight. | 11887 * Only for version 2 of highlight. |
11135 */ | 11888 */ |
11136 static const HighlightRegionType LIBRARY_NAME = const HighlightRegionType._("L
IBRARY_NAME"); | 11889 static const HighlightRegionType LIBRARY_NAME = |
11137 | 11890 const HighlightRegionType._("LIBRARY_NAME"); |
11138 static const HighlightRegionType LITERAL_BOOLEAN = const HighlightRegionType._
("LITERAL_BOOLEAN"); | 11891 |
11139 | 11892 static const HighlightRegionType LITERAL_BOOLEAN = |
11140 static const HighlightRegionType LITERAL_DOUBLE = const HighlightRegionType._(
"LITERAL_DOUBLE"); | 11893 const HighlightRegionType._("LITERAL_BOOLEAN"); |
11141 | 11894 |
11142 static const HighlightRegionType LITERAL_INTEGER = const HighlightRegionType._
("LITERAL_INTEGER"); | 11895 static const HighlightRegionType LITERAL_DOUBLE = |
11143 | 11896 const HighlightRegionType._("LITERAL_DOUBLE"); |
11144 static const HighlightRegionType LITERAL_LIST = const HighlightRegionType._("L
ITERAL_LIST"); | 11897 |
11145 | 11898 static const HighlightRegionType LITERAL_INTEGER = |
11146 static const HighlightRegionType LITERAL_MAP = const HighlightRegionType._("LI
TERAL_MAP"); | 11899 const HighlightRegionType._("LITERAL_INTEGER"); |
11147 | 11900 |
11148 static const HighlightRegionType LITERAL_STRING = const HighlightRegionType._(
"LITERAL_STRING"); | 11901 static const HighlightRegionType LITERAL_LIST = |
11149 | 11902 const HighlightRegionType._("LITERAL_LIST"); |
11150 /** | 11903 |
11151 * Only for version 2 of highlight. | 11904 static const HighlightRegionType LITERAL_MAP = |
11152 */ | 11905 const HighlightRegionType._("LITERAL_MAP"); |
11153 static const HighlightRegionType LOCAL_FUNCTION_DECLARATION = const HighlightR
egionType._("LOCAL_FUNCTION_DECLARATION"); | 11906 |
11154 | 11907 static const HighlightRegionType LITERAL_STRING = |
11155 /** | 11908 const HighlightRegionType._("LITERAL_STRING"); |
11156 * Only for version 2 of highlight. | 11909 |
11157 */ | 11910 /** |
11158 static const HighlightRegionType LOCAL_FUNCTION_REFERENCE = const HighlightReg
ionType._("LOCAL_FUNCTION_REFERENCE"); | 11911 * Only for version 2 of highlight. |
11159 | 11912 */ |
11160 /** | 11913 static const HighlightRegionType LOCAL_FUNCTION_DECLARATION = |
11161 * Only for version 1 of highlight. | 11914 const HighlightRegionType._("LOCAL_FUNCTION_DECLARATION"); |
11162 */ | 11915 |
11163 static const HighlightRegionType LOCAL_VARIABLE = const HighlightRegionType._(
"LOCAL_VARIABLE"); | 11916 /** |
11164 | 11917 * Only for version 2 of highlight. |
11165 static const HighlightRegionType LOCAL_VARIABLE_DECLARATION = const HighlightR
egionType._("LOCAL_VARIABLE_DECLARATION"); | 11918 */ |
11166 | 11919 static const HighlightRegionType LOCAL_FUNCTION_REFERENCE = |
11167 /** | 11920 const HighlightRegionType._("LOCAL_FUNCTION_REFERENCE"); |
11168 * Only for version 2 of highlight. | 11921 |
11169 */ | 11922 /** |
11170 static const HighlightRegionType LOCAL_VARIABLE_REFERENCE = const HighlightReg
ionType._("LOCAL_VARIABLE_REFERENCE"); | 11923 * Only for version 1 of highlight. |
11171 | 11924 */ |
11172 /** | 11925 static const HighlightRegionType LOCAL_VARIABLE = |
11173 * Only for version 1 of highlight. | 11926 const HighlightRegionType._("LOCAL_VARIABLE"); |
11174 */ | 11927 |
11175 static const HighlightRegionType METHOD = const HighlightRegionType._("METHOD"
); | 11928 static const HighlightRegionType LOCAL_VARIABLE_DECLARATION = |
11176 | 11929 const HighlightRegionType._("LOCAL_VARIABLE_DECLARATION"); |
11177 /** | 11930 |
11178 * Only for version 1 of highlight. | 11931 /** |
11179 */ | 11932 * Only for version 2 of highlight. |
11180 static const HighlightRegionType METHOD_DECLARATION = const HighlightRegionTyp
e._("METHOD_DECLARATION"); | 11933 */ |
11181 | 11934 static const HighlightRegionType LOCAL_VARIABLE_REFERENCE = |
11182 /** | 11935 const HighlightRegionType._("LOCAL_VARIABLE_REFERENCE"); |
11183 * Only for version 1 of highlight. | 11936 |
11184 */ | 11937 /** |
11185 static const HighlightRegionType METHOD_DECLARATION_STATIC = const HighlightRe
gionType._("METHOD_DECLARATION_STATIC"); | 11938 * Only for version 1 of highlight. |
11186 | 11939 */ |
11187 /** | 11940 static const HighlightRegionType METHOD = |
11188 * Only for version 1 of highlight. | 11941 const HighlightRegionType._("METHOD"); |
11189 */ | 11942 |
11190 static const HighlightRegionType METHOD_STATIC = const HighlightRegionType._("
METHOD_STATIC"); | 11943 /** |
11191 | 11944 * Only for version 1 of highlight. |
11192 /** | 11945 */ |
11193 * Only for version 1 of highlight. | 11946 static const HighlightRegionType METHOD_DECLARATION = |
11194 */ | 11947 const HighlightRegionType._("METHOD_DECLARATION"); |
11195 static const HighlightRegionType PARAMETER = const HighlightRegionType._("PARA
METER"); | 11948 |
11196 | 11949 /** |
11197 /** | 11950 * Only for version 1 of highlight. |
11198 * Only for version 1 of highlight. | 11951 */ |
11199 */ | 11952 static const HighlightRegionType METHOD_DECLARATION_STATIC = |
11200 static const HighlightRegionType SETTER_DECLARATION = const HighlightRegionTyp
e._("SETTER_DECLARATION"); | 11953 const HighlightRegionType._("METHOD_DECLARATION_STATIC"); |
11201 | 11954 |
11202 /** | 11955 /** |
11203 * Only for version 1 of highlight. | 11956 * Only for version 1 of highlight. |
11204 */ | 11957 */ |
11205 static const HighlightRegionType TOP_LEVEL_VARIABLE = const HighlightRegionTyp
e._("TOP_LEVEL_VARIABLE"); | 11958 static const HighlightRegionType METHOD_STATIC = |
11206 | 11959 const HighlightRegionType._("METHOD_STATIC"); |
11207 /** | 11960 |
11208 * Only for version 2 of highlight. | 11961 /** |
11209 */ | 11962 * Only for version 1 of highlight. |
11210 static const HighlightRegionType PARAMETER_DECLARATION = const HighlightRegion
Type._("PARAMETER_DECLARATION"); | 11963 */ |
11211 | 11964 static const HighlightRegionType PARAMETER = |
11212 /** | 11965 const HighlightRegionType._("PARAMETER"); |
11213 * Only for version 2 of highlight. | 11966 |
11214 */ | 11967 /** |
11215 static const HighlightRegionType PARAMETER_REFERENCE = const HighlightRegionTy
pe._("PARAMETER_REFERENCE"); | 11968 * Only for version 1 of highlight. |
11216 | 11969 */ |
11217 /** | 11970 static const HighlightRegionType SETTER_DECLARATION = |
11218 * Only for version 2 of highlight. | 11971 const HighlightRegionType._("SETTER_DECLARATION"); |
11219 */ | 11972 |
11220 static const HighlightRegionType STATIC_FIELD_DECLARATION = const HighlightReg
ionType._("STATIC_FIELD_DECLARATION"); | 11973 /** |
11221 | 11974 * Only for version 1 of highlight. |
11222 /** | 11975 */ |
11223 * Only for version 2 of highlight. | 11976 static const HighlightRegionType TOP_LEVEL_VARIABLE = |
11224 */ | 11977 const HighlightRegionType._("TOP_LEVEL_VARIABLE"); |
11225 static const HighlightRegionType STATIC_GETTER_DECLARATION = const HighlightRe
gionType._("STATIC_GETTER_DECLARATION"); | 11978 |
11226 | 11979 /** |
11227 /** | 11980 * Only for version 2 of highlight. |
11228 * Only for version 2 of highlight. | 11981 */ |
11229 */ | 11982 static const HighlightRegionType PARAMETER_DECLARATION = |
11230 static const HighlightRegionType STATIC_GETTER_REFERENCE = const HighlightRegi
onType._("STATIC_GETTER_REFERENCE"); | 11983 const HighlightRegionType._("PARAMETER_DECLARATION"); |
11231 | 11984 |
11232 /** | 11985 /** |
11233 * Only for version 2 of highlight. | 11986 * Only for version 2 of highlight. |
11234 */ | 11987 */ |
11235 static const HighlightRegionType STATIC_METHOD_DECLARATION = const HighlightRe
gionType._("STATIC_METHOD_DECLARATION"); | 11988 static const HighlightRegionType PARAMETER_REFERENCE = |
11236 | 11989 const HighlightRegionType._("PARAMETER_REFERENCE"); |
11237 /** | 11990 |
11238 * Only for version 2 of highlight. | 11991 /** |
11239 */ | 11992 * Only for version 2 of highlight. |
11240 static const HighlightRegionType STATIC_METHOD_REFERENCE = const HighlightRegi
onType._("STATIC_METHOD_REFERENCE"); | 11993 */ |
11241 | 11994 static const HighlightRegionType STATIC_FIELD_DECLARATION = |
11242 /** | 11995 const HighlightRegionType._("STATIC_FIELD_DECLARATION"); |
11243 * Only for version 2 of highlight. | 11996 |
11244 */ | 11997 /** |
11245 static const HighlightRegionType STATIC_SETTER_DECLARATION = const HighlightRe
gionType._("STATIC_SETTER_DECLARATION"); | 11998 * Only for version 2 of highlight. |
11246 | 11999 */ |
11247 /** | 12000 static const HighlightRegionType STATIC_GETTER_DECLARATION = |
11248 * Only for version 2 of highlight. | 12001 const HighlightRegionType._("STATIC_GETTER_DECLARATION"); |
11249 */ | 12002 |
11250 static const HighlightRegionType STATIC_SETTER_REFERENCE = const HighlightRegi
onType._("STATIC_SETTER_REFERENCE"); | 12003 /** |
11251 | 12004 * Only for version 2 of highlight. |
11252 /** | 12005 */ |
11253 * Only for version 2 of highlight. | 12006 static const HighlightRegionType STATIC_GETTER_REFERENCE = |
11254 */ | 12007 const HighlightRegionType._("STATIC_GETTER_REFERENCE"); |
11255 static const HighlightRegionType TOP_LEVEL_FUNCTION_DECLARATION = const Highli
ghtRegionType._("TOP_LEVEL_FUNCTION_DECLARATION"); | 12008 |
11256 | 12009 /** |
11257 /** | 12010 * Only for version 2 of highlight. |
11258 * Only for version 2 of highlight. | 12011 */ |
11259 */ | 12012 static const HighlightRegionType STATIC_METHOD_DECLARATION = |
11260 static const HighlightRegionType TOP_LEVEL_FUNCTION_REFERENCE = const Highligh
tRegionType._("TOP_LEVEL_FUNCTION_REFERENCE"); | 12013 const HighlightRegionType._("STATIC_METHOD_DECLARATION"); |
11261 | 12014 |
11262 /** | 12015 /** |
11263 * Only for version 2 of highlight. | 12016 * Only for version 2 of highlight. |
11264 */ | 12017 */ |
11265 static const HighlightRegionType TOP_LEVEL_GETTER_DECLARATION = const Highligh
tRegionType._("TOP_LEVEL_GETTER_DECLARATION"); | 12018 static const HighlightRegionType STATIC_METHOD_REFERENCE = |
11266 | 12019 const HighlightRegionType._("STATIC_METHOD_REFERENCE"); |
11267 /** | 12020 |
11268 * Only for version 2 of highlight. | 12021 /** |
11269 */ | 12022 * Only for version 2 of highlight. |
11270 static const HighlightRegionType TOP_LEVEL_GETTER_REFERENCE = const HighlightR
egionType._("TOP_LEVEL_GETTER_REFERENCE"); | 12023 */ |
11271 | 12024 static const HighlightRegionType STATIC_SETTER_DECLARATION = |
11272 /** | 12025 const HighlightRegionType._("STATIC_SETTER_DECLARATION"); |
11273 * Only for version 2 of highlight. | 12026 |
11274 */ | 12027 /** |
11275 static const HighlightRegionType TOP_LEVEL_SETTER_DECLARATION = const Highligh
tRegionType._("TOP_LEVEL_SETTER_DECLARATION"); | 12028 * Only for version 2 of highlight. |
11276 | 12029 */ |
11277 /** | 12030 static const HighlightRegionType STATIC_SETTER_REFERENCE = |
11278 * Only for version 2 of highlight. | 12031 const HighlightRegionType._("STATIC_SETTER_REFERENCE"); |
11279 */ | 12032 |
11280 static const HighlightRegionType TOP_LEVEL_SETTER_REFERENCE = const HighlightR
egionType._("TOP_LEVEL_SETTER_REFERENCE"); | 12033 /** |
11281 | 12034 * Only for version 2 of highlight. |
11282 /** | 12035 */ |
11283 * Only for version 2 of highlight. | 12036 static const HighlightRegionType TOP_LEVEL_FUNCTION_DECLARATION = |
11284 */ | 12037 const HighlightRegionType._("TOP_LEVEL_FUNCTION_DECLARATION"); |
11285 static const HighlightRegionType TOP_LEVEL_VARIABLE_DECLARATION = const Highli
ghtRegionType._("TOP_LEVEL_VARIABLE_DECLARATION"); | 12038 |
11286 | 12039 /** |
11287 static const HighlightRegionType TYPE_NAME_DYNAMIC = const HighlightRegionType
._("TYPE_NAME_DYNAMIC"); | 12040 * Only for version 2 of highlight. |
11288 | 12041 */ |
11289 static const HighlightRegionType TYPE_PARAMETER = const HighlightRegionType._(
"TYPE_PARAMETER"); | 12042 static const HighlightRegionType TOP_LEVEL_FUNCTION_REFERENCE = |
11290 | 12043 const HighlightRegionType._("TOP_LEVEL_FUNCTION_REFERENCE"); |
11291 /** | 12044 |
11292 * Only for version 2 of highlight. | 12045 /** |
11293 */ | 12046 * Only for version 2 of highlight. |
11294 static const HighlightRegionType UNRESOLVED_INSTANCE_MEMBER_REFERENCE = const
HighlightRegionType._("UNRESOLVED_INSTANCE_MEMBER_REFERENCE"); | 12047 */ |
11295 | 12048 static const HighlightRegionType TOP_LEVEL_GETTER_DECLARATION = |
11296 /** | 12049 const HighlightRegionType._("TOP_LEVEL_GETTER_DECLARATION"); |
11297 * Only for version 2 of highlight. | 12050 |
11298 */ | 12051 /** |
11299 static const HighlightRegionType VALID_STRING_ESCAPE = const HighlightRegionTy
pe._("VALID_STRING_ESCAPE"); | 12052 * Only for version 2 of highlight. |
| 12053 */ |
| 12054 static const HighlightRegionType TOP_LEVEL_GETTER_REFERENCE = |
| 12055 const HighlightRegionType._("TOP_LEVEL_GETTER_REFERENCE"); |
| 12056 |
| 12057 /** |
| 12058 * Only for version 2 of highlight. |
| 12059 */ |
| 12060 static const HighlightRegionType TOP_LEVEL_SETTER_DECLARATION = |
| 12061 const HighlightRegionType._("TOP_LEVEL_SETTER_DECLARATION"); |
| 12062 |
| 12063 /** |
| 12064 * Only for version 2 of highlight. |
| 12065 */ |
| 12066 static const HighlightRegionType TOP_LEVEL_SETTER_REFERENCE = |
| 12067 const HighlightRegionType._("TOP_LEVEL_SETTER_REFERENCE"); |
| 12068 |
| 12069 /** |
| 12070 * Only for version 2 of highlight. |
| 12071 */ |
| 12072 static const HighlightRegionType TOP_LEVEL_VARIABLE_DECLARATION = |
| 12073 const HighlightRegionType._("TOP_LEVEL_VARIABLE_DECLARATION"); |
| 12074 |
| 12075 static const HighlightRegionType TYPE_NAME_DYNAMIC = |
| 12076 const HighlightRegionType._("TYPE_NAME_DYNAMIC"); |
| 12077 |
| 12078 static const HighlightRegionType TYPE_PARAMETER = |
| 12079 const HighlightRegionType._("TYPE_PARAMETER"); |
| 12080 |
| 12081 /** |
| 12082 * Only for version 2 of highlight. |
| 12083 */ |
| 12084 static const HighlightRegionType UNRESOLVED_INSTANCE_MEMBER_REFERENCE = |
| 12085 const HighlightRegionType._("UNRESOLVED_INSTANCE_MEMBER_REFERENCE"); |
| 12086 |
| 12087 /** |
| 12088 * Only for version 2 of highlight. |
| 12089 */ |
| 12090 static const HighlightRegionType VALID_STRING_ESCAPE = |
| 12091 const HighlightRegionType._("VALID_STRING_ESCAPE"); |
11300 | 12092 |
11301 /** | 12093 /** |
11302 * A list containing all of the enum values that are defined. | 12094 * A list containing all of the enum values that are defined. |
11303 */ | 12095 */ |
11304 static const List<HighlightRegionType> VALUES = const <HighlightRegionType>[AN
NOTATION, BUILT_IN, CLASS, COMMENT_BLOCK, COMMENT_DOCUMENTATION, COMMENT_END_OF_
LINE, CONSTRUCTOR, DIRECTIVE, DYNAMIC_TYPE, DYNAMIC_LOCAL_VARIABLE_DECLARATION,
DYNAMIC_LOCAL_VARIABLE_REFERENCE, DYNAMIC_PARAMETER_DECLARATION, DYNAMIC_PARAMET
ER_REFERENCE, ENUM, ENUM_CONSTANT, FIELD, FIELD_STATIC, FUNCTION, FUNCTION_DECLA
RATION, FUNCTION_TYPE_ALIAS, GETTER_DECLARATION, IDENTIFIER_DEFAULT, IMPORT_PREF
IX, INSTANCE_FIELD_DECLARATION, INSTANCE_FIELD_REFERENCE, INSTANCE_GETTER_DECLAR
ATION, INSTANCE_GETTER_REFERENCE, INSTANCE_METHOD_DECLARATION, INSTANCE_METHOD_R
EFERENCE, INSTANCE_SETTER_DECLARATION, INSTANCE_SETTER_REFERENCE, INVALID_STRING
_ESCAPE, KEYWORD, LABEL, LIBRARY_NAME, LITERAL_BOOLEAN, LITERAL_DOUBLE, LITERAL_
INTEGER, LITERAL_LIST, LITERAL_MAP, LITERAL_STRING, LOCAL_FUNCTION_DECLARATION,
LOCAL_FUNCTION_REFERENCE, LOCAL_VARIABLE, LOCAL_VARIABLE_DECLARATION, LOCAL_VARI
ABLE_REFERENCE, METHOD, METHOD_DECLARATION, METHOD_DECLARATION_STATIC, METHOD_ST
ATIC, PARAMETER, SETTER_DECLARATION, TOP_LEVEL_VARIABLE, PARAMETER_DECLARATION,
PARAMETER_REFERENCE, STATIC_FIELD_DECLARATION, STATIC_GETTER_DECLARATION, STATIC
_GETTER_REFERENCE, STATIC_METHOD_DECLARATION, STATIC_METHOD_REFERENCE, STATIC_SE
TTER_DECLARATION, STATIC_SETTER_REFERENCE, TOP_LEVEL_FUNCTION_DECLARATION, TOP_L
EVEL_FUNCTION_REFERENCE, TOP_LEVEL_GETTER_DECLARATION, TOP_LEVEL_GETTER_REFERENC
E, TOP_LEVEL_SETTER_DECLARATION, TOP_LEVEL_SETTER_REFERENCE, TOP_LEVEL_VARIABLE_
DECLARATION, TYPE_NAME_DYNAMIC, TYPE_PARAMETER, UNRESOLVED_INSTANCE_MEMBER_REFER
ENCE, VALID_STRING_ESCAPE]; | 12096 static const List<HighlightRegionType> VALUES = const <HighlightRegionType>[ |
| 12097 ANNOTATION, |
| 12098 BUILT_IN, |
| 12099 CLASS, |
| 12100 COMMENT_BLOCK, |
| 12101 COMMENT_DOCUMENTATION, |
| 12102 COMMENT_END_OF_LINE, |
| 12103 CONSTRUCTOR, |
| 12104 DIRECTIVE, |
| 12105 DYNAMIC_TYPE, |
| 12106 DYNAMIC_LOCAL_VARIABLE_DECLARATION, |
| 12107 DYNAMIC_LOCAL_VARIABLE_REFERENCE, |
| 12108 DYNAMIC_PARAMETER_DECLARATION, |
| 12109 DYNAMIC_PARAMETER_REFERENCE, |
| 12110 ENUM, |
| 12111 ENUM_CONSTANT, |
| 12112 FIELD, |
| 12113 FIELD_STATIC, |
| 12114 FUNCTION, |
| 12115 FUNCTION_DECLARATION, |
| 12116 FUNCTION_TYPE_ALIAS, |
| 12117 GETTER_DECLARATION, |
| 12118 IDENTIFIER_DEFAULT, |
| 12119 IMPORT_PREFIX, |
| 12120 INSTANCE_FIELD_DECLARATION, |
| 12121 INSTANCE_FIELD_REFERENCE, |
| 12122 INSTANCE_GETTER_DECLARATION, |
| 12123 INSTANCE_GETTER_REFERENCE, |
| 12124 INSTANCE_METHOD_DECLARATION, |
| 12125 INSTANCE_METHOD_REFERENCE, |
| 12126 INSTANCE_SETTER_DECLARATION, |
| 12127 INSTANCE_SETTER_REFERENCE, |
| 12128 INVALID_STRING_ESCAPE, |
| 12129 KEYWORD, |
| 12130 LABEL, |
| 12131 LIBRARY_NAME, |
| 12132 LITERAL_BOOLEAN, |
| 12133 LITERAL_DOUBLE, |
| 12134 LITERAL_INTEGER, |
| 12135 LITERAL_LIST, |
| 12136 LITERAL_MAP, |
| 12137 LITERAL_STRING, |
| 12138 LOCAL_FUNCTION_DECLARATION, |
| 12139 LOCAL_FUNCTION_REFERENCE, |
| 12140 LOCAL_VARIABLE, |
| 12141 LOCAL_VARIABLE_DECLARATION, |
| 12142 LOCAL_VARIABLE_REFERENCE, |
| 12143 METHOD, |
| 12144 METHOD_DECLARATION, |
| 12145 METHOD_DECLARATION_STATIC, |
| 12146 METHOD_STATIC, |
| 12147 PARAMETER, |
| 12148 SETTER_DECLARATION, |
| 12149 TOP_LEVEL_VARIABLE, |
| 12150 PARAMETER_DECLARATION, |
| 12151 PARAMETER_REFERENCE, |
| 12152 STATIC_FIELD_DECLARATION, |
| 12153 STATIC_GETTER_DECLARATION, |
| 12154 STATIC_GETTER_REFERENCE, |
| 12155 STATIC_METHOD_DECLARATION, |
| 12156 STATIC_METHOD_REFERENCE, |
| 12157 STATIC_SETTER_DECLARATION, |
| 12158 STATIC_SETTER_REFERENCE, |
| 12159 TOP_LEVEL_FUNCTION_DECLARATION, |
| 12160 TOP_LEVEL_FUNCTION_REFERENCE, |
| 12161 TOP_LEVEL_GETTER_DECLARATION, |
| 12162 TOP_LEVEL_GETTER_REFERENCE, |
| 12163 TOP_LEVEL_SETTER_DECLARATION, |
| 12164 TOP_LEVEL_SETTER_REFERENCE, |
| 12165 TOP_LEVEL_VARIABLE_DECLARATION, |
| 12166 TYPE_NAME_DYNAMIC, |
| 12167 TYPE_PARAMETER, |
| 12168 UNRESOLVED_INSTANCE_MEMBER_REFERENCE, |
| 12169 VALID_STRING_ESCAPE |
| 12170 ]; |
11305 | 12171 |
11306 final String name; | 12172 final String name; |
11307 | 12173 |
11308 const HighlightRegionType._(this.name); | 12174 const HighlightRegionType._(this.name); |
11309 | 12175 |
11310 factory HighlightRegionType(String name) { | 12176 factory HighlightRegionType(String name) { |
11311 switch (name) { | 12177 switch (name) { |
11312 case "ANNOTATION": | 12178 case "ANNOTATION": |
11313 return ANNOTATION; | 12179 return ANNOTATION; |
11314 case "BUILT_IN": | 12180 case "BUILT_IN": |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11452 case "TYPE_PARAMETER": | 12318 case "TYPE_PARAMETER": |
11453 return TYPE_PARAMETER; | 12319 return TYPE_PARAMETER; |
11454 case "UNRESOLVED_INSTANCE_MEMBER_REFERENCE": | 12320 case "UNRESOLVED_INSTANCE_MEMBER_REFERENCE": |
11455 return UNRESOLVED_INSTANCE_MEMBER_REFERENCE; | 12321 return UNRESOLVED_INSTANCE_MEMBER_REFERENCE; |
11456 case "VALID_STRING_ESCAPE": | 12322 case "VALID_STRING_ESCAPE": |
11457 return VALID_STRING_ESCAPE; | 12323 return VALID_STRING_ESCAPE; |
11458 } | 12324 } |
11459 throw new Exception('Illegal enum value: $name'); | 12325 throw new Exception('Illegal enum value: $name'); |
11460 } | 12326 } |
11461 | 12327 |
11462 factory HighlightRegionType.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 12328 factory HighlightRegionType.fromJson( |
| 12329 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
11463 if (json is String) { | 12330 if (json is String) { |
11464 try { | 12331 try { |
11465 return new HighlightRegionType(json); | 12332 return new HighlightRegionType(json); |
11466 } catch(_) { | 12333 } catch (_) { |
11467 // Fall through | 12334 // Fall through |
11468 } | 12335 } |
11469 } | 12336 } |
11470 throw jsonDecoder.mismatch(jsonPath, "HighlightRegionType", json); | 12337 throw jsonDecoder.mismatch(jsonPath, "HighlightRegionType", json); |
11471 } | 12338 } |
11472 | 12339 |
11473 @override | 12340 @override |
11474 String toString() => "HighlightRegionType.$name"; | 12341 String toString() => "HighlightRegionType.$name"; |
11475 | 12342 |
11476 String toJson() => name; | 12343 String toJson() => name; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11698 String get staticType => _staticType; | 12565 String get staticType => _staticType; |
11699 | 12566 |
11700 /** | 12567 /** |
11701 * The name of the static type of the expression. This data is omitted if the | 12568 * The name of the static type of the expression. This data is omitted if the |
11702 * location does not correspond to an expression. | 12569 * location does not correspond to an expression. |
11703 */ | 12570 */ |
11704 void set staticType(String value) { | 12571 void set staticType(String value) { |
11705 this._staticType = value; | 12572 this._staticType = value; |
11706 } | 12573 } |
11707 | 12574 |
11708 HoverInformation(int offset, int length, {String containingLibraryPath, String
containingLibraryName, String containingClassDescription, String dartdoc, Strin
g elementDescription, String elementKind, bool isDeprecated, String parameter, S
tring propagatedType, String staticType}) { | 12575 HoverInformation(int offset, int length, |
| 12576 {String containingLibraryPath, |
| 12577 String containingLibraryName, |
| 12578 String containingClassDescription, |
| 12579 String dartdoc, |
| 12580 String elementDescription, |
| 12581 String elementKind, |
| 12582 bool isDeprecated, |
| 12583 String parameter, |
| 12584 String propagatedType, |
| 12585 String staticType}) { |
11709 this.offset = offset; | 12586 this.offset = offset; |
11710 this.length = length; | 12587 this.length = length; |
11711 this.containingLibraryPath = containingLibraryPath; | 12588 this.containingLibraryPath = containingLibraryPath; |
11712 this.containingLibraryName = containingLibraryName; | 12589 this.containingLibraryName = containingLibraryName; |
11713 this.containingClassDescription = containingClassDescription; | 12590 this.containingClassDescription = containingClassDescription; |
11714 this.dartdoc = dartdoc; | 12591 this.dartdoc = dartdoc; |
11715 this.elementDescription = elementDescription; | 12592 this.elementDescription = elementDescription; |
11716 this.elementKind = elementKind; | 12593 this.elementKind = elementKind; |
11717 this.isDeprecated = isDeprecated; | 12594 this.isDeprecated = isDeprecated; |
11718 this.parameter = parameter; | 12595 this.parameter = parameter; |
11719 this.propagatedType = propagatedType; | 12596 this.propagatedType = propagatedType; |
11720 this.staticType = staticType; | 12597 this.staticType = staticType; |
11721 } | 12598 } |
11722 | 12599 |
11723 factory HoverInformation.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 12600 factory HoverInformation.fromJson( |
| 12601 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
11724 if (json == null) { | 12602 if (json == null) { |
11725 json = {}; | 12603 json = {}; |
11726 } | 12604 } |
11727 if (json is Map) { | 12605 if (json is Map) { |
11728 int offset; | 12606 int offset; |
11729 if (json.containsKey("offset")) { | 12607 if (json.containsKey("offset")) { |
11730 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 12608 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
11731 } else { | 12609 } else { |
11732 throw jsonDecoder.missingKey(jsonPath, "offset"); | 12610 throw jsonDecoder.missingKey(jsonPath, "offset"); |
11733 } | 12611 } |
11734 int length; | 12612 int length; |
11735 if (json.containsKey("length")) { | 12613 if (json.containsKey("length")) { |
11736 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 12614 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
11737 } else { | 12615 } else { |
11738 throw jsonDecoder.missingKey(jsonPath, "length"); | 12616 throw jsonDecoder.missingKey(jsonPath, "length"); |
11739 } | 12617 } |
11740 String containingLibraryPath; | 12618 String containingLibraryPath; |
11741 if (json.containsKey("containingLibraryPath")) { | 12619 if (json.containsKey("containingLibraryPath")) { |
11742 containingLibraryPath = jsonDecoder.decodeString(jsonPath + ".containing
LibraryPath", json["containingLibraryPath"]); | 12620 containingLibraryPath = jsonDecoder.decodeString( |
| 12621 jsonPath + ".containingLibraryPath", json["containingLibraryPath"]); |
11743 } | 12622 } |
11744 String containingLibraryName; | 12623 String containingLibraryName; |
11745 if (json.containsKey("containingLibraryName")) { | 12624 if (json.containsKey("containingLibraryName")) { |
11746 containingLibraryName = jsonDecoder.decodeString(jsonPath + ".containing
LibraryName", json["containingLibraryName"]); | 12625 containingLibraryName = jsonDecoder.decodeString( |
| 12626 jsonPath + ".containingLibraryName", json["containingLibraryName"]); |
11747 } | 12627 } |
11748 String containingClassDescription; | 12628 String containingClassDescription; |
11749 if (json.containsKey("containingClassDescription")) { | 12629 if (json.containsKey("containingClassDescription")) { |
11750 containingClassDescription = jsonDecoder.decodeString(jsonPath + ".conta
iningClassDescription", json["containingClassDescription"]); | 12630 containingClassDescription = jsonDecoder.decodeString( |
| 12631 jsonPath + ".containingClassDescription", |
| 12632 json["containingClassDescription"]); |
11751 } | 12633 } |
11752 String dartdoc; | 12634 String dartdoc; |
11753 if (json.containsKey("dartdoc")) { | 12635 if (json.containsKey("dartdoc")) { |
11754 dartdoc = jsonDecoder.decodeString(jsonPath + ".dartdoc", json["dartdoc"
]); | 12636 dartdoc = |
| 12637 jsonDecoder.decodeString(jsonPath + ".dartdoc", json["dartdoc"]); |
11755 } | 12638 } |
11756 String elementDescription; | 12639 String elementDescription; |
11757 if (json.containsKey("elementDescription")) { | 12640 if (json.containsKey("elementDescription")) { |
11758 elementDescription = jsonDecoder.decodeString(jsonPath + ".elementDescri
ption", json["elementDescription"]); | 12641 elementDescription = jsonDecoder.decodeString( |
| 12642 jsonPath + ".elementDescription", json["elementDescription"]); |
11759 } | 12643 } |
11760 String elementKind; | 12644 String elementKind; |
11761 if (json.containsKey("elementKind")) { | 12645 if (json.containsKey("elementKind")) { |
11762 elementKind = jsonDecoder.decodeString(jsonPath + ".elementKind", json["
elementKind"]); | 12646 elementKind = jsonDecoder.decodeString( |
| 12647 jsonPath + ".elementKind", json["elementKind"]); |
11763 } | 12648 } |
11764 bool isDeprecated; | 12649 bool isDeprecated; |
11765 if (json.containsKey("isDeprecated")) { | 12650 if (json.containsKey("isDeprecated")) { |
11766 isDeprecated = jsonDecoder.decodeBool(jsonPath + ".isDeprecated", json["
isDeprecated"]); | 12651 isDeprecated = jsonDecoder.decodeBool( |
| 12652 jsonPath + ".isDeprecated", json["isDeprecated"]); |
11767 } | 12653 } |
11768 String parameter; | 12654 String parameter; |
11769 if (json.containsKey("parameter")) { | 12655 if (json.containsKey("parameter")) { |
11770 parameter = jsonDecoder.decodeString(jsonPath + ".parameter", json["para
meter"]); | 12656 parameter = jsonDecoder.decodeString( |
| 12657 jsonPath + ".parameter", json["parameter"]); |
11771 } | 12658 } |
11772 String propagatedType; | 12659 String propagatedType; |
11773 if (json.containsKey("propagatedType")) { | 12660 if (json.containsKey("propagatedType")) { |
11774 propagatedType = jsonDecoder.decodeString(jsonPath + ".propagatedType",
json["propagatedType"]); | 12661 propagatedType = jsonDecoder.decodeString( |
| 12662 jsonPath + ".propagatedType", json["propagatedType"]); |
11775 } | 12663 } |
11776 String staticType; | 12664 String staticType; |
11777 if (json.containsKey("staticType")) { | 12665 if (json.containsKey("staticType")) { |
11778 staticType = jsonDecoder.decodeString(jsonPath + ".staticType", json["st
aticType"]); | 12666 staticType = jsonDecoder.decodeString( |
| 12667 jsonPath + ".staticType", json["staticType"]); |
11779 } | 12668 } |
11780 return new HoverInformation(offset, length, containingLibraryPath: contain
ingLibraryPath, containingLibraryName: containingLibraryName, containingClassDes
cription: containingClassDescription, dartdoc: dartdoc, elementDescription: elem
entDescription, elementKind: elementKind, isDeprecated: isDeprecated, parameter:
parameter, propagatedType: propagatedType, staticType: staticType); | 12669 return new HoverInformation(offset, length, |
| 12670 containingLibraryPath: containingLibraryPath, |
| 12671 containingLibraryName: containingLibraryName, |
| 12672 containingClassDescription: containingClassDescription, |
| 12673 dartdoc: dartdoc, |
| 12674 elementDescription: elementDescription, |
| 12675 elementKind: elementKind, |
| 12676 isDeprecated: isDeprecated, |
| 12677 parameter: parameter, |
| 12678 propagatedType: propagatedType, |
| 12679 staticType: staticType); |
11781 } else { | 12680 } else { |
11782 throw jsonDecoder.mismatch(jsonPath, "HoverInformation", json); | 12681 throw jsonDecoder.mismatch(jsonPath, "HoverInformation", json); |
11783 } | 12682 } |
11784 } | 12683 } |
11785 | 12684 |
11786 Map<String, dynamic> toJson() { | 12685 Map<String, dynamic> toJson() { |
11787 Map<String, dynamic> result = {}; | 12686 Map<String, dynamic> result = {}; |
11788 result["offset"] = offset; | 12687 result["offset"] = offset; |
11789 result["length"] = length; | 12688 result["length"] = length; |
11790 if (containingLibraryPath != null) { | 12689 if (containingLibraryPath != null) { |
(...skipping 26 matching lines...) Expand all Loading... |
11817 if (staticType != null) { | 12716 if (staticType != null) { |
11818 result["staticType"] = staticType; | 12717 result["staticType"] = staticType; |
11819 } | 12718 } |
11820 return result; | 12719 return result; |
11821 } | 12720 } |
11822 | 12721 |
11823 @override | 12722 @override |
11824 String toString() => JSON.encode(toJson()); | 12723 String toString() => JSON.encode(toJson()); |
11825 | 12724 |
11826 @override | 12725 @override |
11827 bool operator==(other) { | 12726 bool operator ==(other) { |
11828 if (other is HoverInformation) { | 12727 if (other is HoverInformation) { |
11829 return offset == other.offset && | 12728 return offset == other.offset && |
11830 length == other.length && | 12729 length == other.length && |
11831 containingLibraryPath == other.containingLibraryPath && | 12730 containingLibraryPath == other.containingLibraryPath && |
11832 containingLibraryName == other.containingLibraryName && | 12731 containingLibraryName == other.containingLibraryName && |
11833 containingClassDescription == other.containingClassDescription && | 12732 containingClassDescription == other.containingClassDescription && |
11834 dartdoc == other.dartdoc && | 12733 dartdoc == other.dartdoc && |
11835 elementDescription == other.elementDescription && | 12734 elementDescription == other.elementDescription && |
11836 elementKind == other.elementKind && | 12735 elementKind == other.elementKind && |
11837 isDeprecated == other.isDeprecated && | 12736 isDeprecated == other.isDeprecated && |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11900 void set length(int value) { | 12799 void set length(int value) { |
11901 assert(value != null); | 12800 assert(value != null); |
11902 this._length = value; | 12801 this._length = value; |
11903 } | 12802 } |
11904 | 12803 |
11905 ImplementedClass(int offset, int length) { | 12804 ImplementedClass(int offset, int length) { |
11906 this.offset = offset; | 12805 this.offset = offset; |
11907 this.length = length; | 12806 this.length = length; |
11908 } | 12807 } |
11909 | 12808 |
11910 factory ImplementedClass.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 12809 factory ImplementedClass.fromJson( |
| 12810 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
11911 if (json == null) { | 12811 if (json == null) { |
11912 json = {}; | 12812 json = {}; |
11913 } | 12813 } |
11914 if (json is Map) { | 12814 if (json is Map) { |
11915 int offset; | 12815 int offset; |
11916 if (json.containsKey("offset")) { | 12816 if (json.containsKey("offset")) { |
11917 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 12817 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
11918 } else { | 12818 } else { |
11919 throw jsonDecoder.missingKey(jsonPath, "offset"); | 12819 throw jsonDecoder.missingKey(jsonPath, "offset"); |
11920 } | 12820 } |
(...skipping 13 matching lines...) Expand all Loading... |
11934 Map<String, dynamic> result = {}; | 12834 Map<String, dynamic> result = {}; |
11935 result["offset"] = offset; | 12835 result["offset"] = offset; |
11936 result["length"] = length; | 12836 result["length"] = length; |
11937 return result; | 12837 return result; |
11938 } | 12838 } |
11939 | 12839 |
11940 @override | 12840 @override |
11941 String toString() => JSON.encode(toJson()); | 12841 String toString() => JSON.encode(toJson()); |
11942 | 12842 |
11943 @override | 12843 @override |
11944 bool operator==(other) { | 12844 bool operator ==(other) { |
11945 if (other is ImplementedClass) { | 12845 if (other is ImplementedClass) { |
11946 return offset == other.offset && | 12846 return offset == other.offset && length == other.length; |
11947 length == other.length; | |
11948 } | 12847 } |
11949 return false; | 12848 return false; |
11950 } | 12849 } |
11951 | 12850 |
11952 @override | 12851 @override |
11953 int get hashCode { | 12852 int get hashCode { |
11954 int hash = 0; | 12853 int hash = 0; |
11955 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 12854 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
11956 hash = JenkinsSmiHash.combine(hash, length.hashCode); | 12855 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
11957 return JenkinsSmiHash.finish(hash); | 12856 return JenkinsSmiHash.finish(hash); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11997 void set length(int value) { | 12896 void set length(int value) { |
11998 assert(value != null); | 12897 assert(value != null); |
11999 this._length = value; | 12898 this._length = value; |
12000 } | 12899 } |
12001 | 12900 |
12002 ImplementedMember(int offset, int length) { | 12901 ImplementedMember(int offset, int length) { |
12003 this.offset = offset; | 12902 this.offset = offset; |
12004 this.length = length; | 12903 this.length = length; |
12005 } | 12904 } |
12006 | 12905 |
12007 factory ImplementedMember.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 12906 factory ImplementedMember.fromJson( |
| 12907 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
12008 if (json == null) { | 12908 if (json == null) { |
12009 json = {}; | 12909 json = {}; |
12010 } | 12910 } |
12011 if (json is Map) { | 12911 if (json is Map) { |
12012 int offset; | 12912 int offset; |
12013 if (json.containsKey("offset")) { | 12913 if (json.containsKey("offset")) { |
12014 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 12914 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
12015 } else { | 12915 } else { |
12016 throw jsonDecoder.missingKey(jsonPath, "offset"); | 12916 throw jsonDecoder.missingKey(jsonPath, "offset"); |
12017 } | 12917 } |
(...skipping 13 matching lines...) Expand all Loading... |
12031 Map<String, dynamic> result = {}; | 12931 Map<String, dynamic> result = {}; |
12032 result["offset"] = offset; | 12932 result["offset"] = offset; |
12033 result["length"] = length; | 12933 result["length"] = length; |
12034 return result; | 12934 return result; |
12035 } | 12935 } |
12036 | 12936 |
12037 @override | 12937 @override |
12038 String toString() => JSON.encode(toJson()); | 12938 String toString() => JSON.encode(toJson()); |
12039 | 12939 |
12040 @override | 12940 @override |
12041 bool operator==(other) { | 12941 bool operator ==(other) { |
12042 if (other is ImplementedMember) { | 12942 if (other is ImplementedMember) { |
12043 return offset == other.offset && | 12943 return offset == other.offset && length == other.length; |
12044 length == other.length; | |
12045 } | 12944 } |
12046 return false; | 12945 return false; |
12047 } | 12946 } |
12048 | 12947 |
12049 @override | 12948 @override |
12050 int get hashCode { | 12949 int get hashCode { |
12051 int hash = 0; | 12950 int hash = 0; |
12052 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 12951 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
12053 hash = JenkinsSmiHash.combine(hash, length.hashCode); | 12952 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
12054 return JenkinsSmiHash.finish(hash); | 12953 return JenkinsSmiHash.finish(hash); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12107 | 13006 |
12108 /** | 13007 /** |
12109 * Pre-computed suggestions for what every region might want to be changed | 13008 * Pre-computed suggestions for what every region might want to be changed |
12110 * to. | 13009 * to. |
12111 */ | 13010 */ |
12112 void set suggestions(List<LinkedEditSuggestion> value) { | 13011 void set suggestions(List<LinkedEditSuggestion> value) { |
12113 assert(value != null); | 13012 assert(value != null); |
12114 this._suggestions = value; | 13013 this._suggestions = value; |
12115 } | 13014 } |
12116 | 13015 |
12117 LinkedEditGroup(List<Position> positions, int length, List<LinkedEditSuggestio
n> suggestions) { | 13016 LinkedEditGroup(List<Position> positions, int length, |
| 13017 List<LinkedEditSuggestion> suggestions) { |
12118 this.positions = positions; | 13018 this.positions = positions; |
12119 this.length = length; | 13019 this.length = length; |
12120 this.suggestions = suggestions; | 13020 this.suggestions = suggestions; |
12121 } | 13021 } |
12122 | 13022 |
12123 factory LinkedEditGroup.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 13023 factory LinkedEditGroup.fromJson( |
| 13024 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
12124 if (json == null) { | 13025 if (json == null) { |
12125 json = {}; | 13026 json = {}; |
12126 } | 13027 } |
12127 if (json is Map) { | 13028 if (json is Map) { |
12128 List<Position> positions; | 13029 List<Position> positions; |
12129 if (json.containsKey("positions")) { | 13030 if (json.containsKey("positions")) { |
12130 positions = jsonDecoder.decodeList(jsonPath + ".positions", json["positi
ons"], (String jsonPath, Object json) => new Position.fromJson(jsonDecoder, json
Path, json)); | 13031 positions = jsonDecoder.decodeList( |
| 13032 jsonPath + ".positions", |
| 13033 json["positions"], |
| 13034 (String jsonPath, Object json) => |
| 13035 new Position.fromJson(jsonDecoder, jsonPath, json)); |
12131 } else { | 13036 } else { |
12132 throw jsonDecoder.missingKey(jsonPath, "positions"); | 13037 throw jsonDecoder.missingKey(jsonPath, "positions"); |
12133 } | 13038 } |
12134 int length; | 13039 int length; |
12135 if (json.containsKey("length")) { | 13040 if (json.containsKey("length")) { |
12136 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 13041 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
12137 } else { | 13042 } else { |
12138 throw jsonDecoder.missingKey(jsonPath, "length"); | 13043 throw jsonDecoder.missingKey(jsonPath, "length"); |
12139 } | 13044 } |
12140 List<LinkedEditSuggestion> suggestions; | 13045 List<LinkedEditSuggestion> suggestions; |
12141 if (json.containsKey("suggestions")) { | 13046 if (json.containsKey("suggestions")) { |
12142 suggestions = jsonDecoder.decodeList(jsonPath + ".suggestions", json["su
ggestions"], (String jsonPath, Object json) => new LinkedEditSuggestion.fromJson
(jsonDecoder, jsonPath, json)); | 13047 suggestions = jsonDecoder.decodeList( |
| 13048 jsonPath + ".suggestions", |
| 13049 json["suggestions"], |
| 13050 (String jsonPath, Object json) => |
| 13051 new LinkedEditSuggestion.fromJson(jsonDecoder, jsonPath, json)); |
12143 } else { | 13052 } else { |
12144 throw jsonDecoder.missingKey(jsonPath, "suggestions"); | 13053 throw jsonDecoder.missingKey(jsonPath, "suggestions"); |
12145 } | 13054 } |
12146 return new LinkedEditGroup(positions, length, suggestions); | 13055 return new LinkedEditGroup(positions, length, suggestions); |
12147 } else { | 13056 } else { |
12148 throw jsonDecoder.mismatch(jsonPath, "LinkedEditGroup", json); | 13057 throw jsonDecoder.mismatch(jsonPath, "LinkedEditGroup", json); |
12149 } | 13058 } |
12150 } | 13059 } |
12151 | 13060 |
12152 /** | 13061 /** |
12153 * Construct an empty LinkedEditGroup. | 13062 * Construct an empty LinkedEditGroup. |
12154 */ | 13063 */ |
12155 LinkedEditGroup.empty() : this(<Position>[], 0, <LinkedEditSuggestion>[]); | 13064 LinkedEditGroup.empty() : this(<Position>[], 0, <LinkedEditSuggestion>[]); |
12156 | 13065 |
12157 Map<String, dynamic> toJson() { | 13066 Map<String, dynamic> toJson() { |
12158 Map<String, dynamic> result = {}; | 13067 Map<String, dynamic> result = {}; |
12159 result["positions"] = positions.map((Position value) => value.toJson()).toLi
st(); | 13068 result["positions"] = |
| 13069 positions.map((Position value) => value.toJson()).toList(); |
12160 result["length"] = length; | 13070 result["length"] = length; |
12161 result["suggestions"] = suggestions.map((LinkedEditSuggestion value) => valu
e.toJson()).toList(); | 13071 result["suggestions"] = suggestions |
| 13072 .map((LinkedEditSuggestion value) => value.toJson()) |
| 13073 .toList(); |
12162 return result; | 13074 return result; |
12163 } | 13075 } |
12164 | 13076 |
12165 /** | 13077 /** |
12166 * Add a new position and change the length. | 13078 * Add a new position and change the length. |
12167 */ | 13079 */ |
12168 void addPosition(Position position, int length) { | 13080 void addPosition(Position position, int length) { |
12169 positions.add(position); | 13081 positions.add(position); |
12170 this.length = length; | 13082 this.length = length; |
12171 } | 13083 } |
12172 | 13084 |
12173 /** | 13085 /** |
12174 * Add a new suggestion. | 13086 * Add a new suggestion. |
12175 */ | 13087 */ |
12176 void addSuggestion(LinkedEditSuggestion suggestion) { | 13088 void addSuggestion(LinkedEditSuggestion suggestion) { |
12177 suggestions.add(suggestion); | 13089 suggestions.add(suggestion); |
12178 } | 13090 } |
12179 | 13091 |
12180 @override | 13092 @override |
12181 String toString() => JSON.encode(toJson()); | 13093 String toString() => JSON.encode(toJson()); |
12182 | 13094 |
12183 @override | 13095 @override |
12184 bool operator==(other) { | 13096 bool operator ==(other) { |
12185 if (other is LinkedEditGroup) { | 13097 if (other is LinkedEditGroup) { |
12186 return listEqual(positions, other.positions, (Position a, Position b) => a
== b) && | 13098 return listEqual( |
| 13099 positions, other.positions, (Position a, Position b) => a == b) && |
12187 length == other.length && | 13100 length == other.length && |
12188 listEqual(suggestions, other.suggestions, (LinkedEditSuggestion a, Lin
kedEditSuggestion b) => a == b); | 13101 listEqual(suggestions, other.suggestions, |
| 13102 (LinkedEditSuggestion a, LinkedEditSuggestion b) => a == b); |
12189 } | 13103 } |
12190 return false; | 13104 return false; |
12191 } | 13105 } |
12192 | 13106 |
12193 @override | 13107 @override |
12194 int get hashCode { | 13108 int get hashCode { |
12195 int hash = 0; | 13109 int hash = 0; |
12196 hash = JenkinsSmiHash.combine(hash, positions.hashCode); | 13110 hash = JenkinsSmiHash.combine(hash, positions.hashCode); |
12197 hash = JenkinsSmiHash.combine(hash, length.hashCode); | 13111 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
12198 hash = JenkinsSmiHash.combine(hash, suggestions.hashCode); | 13112 hash = JenkinsSmiHash.combine(hash, suggestions.hashCode); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12239 void set kind(LinkedEditSuggestionKind value) { | 13153 void set kind(LinkedEditSuggestionKind value) { |
12240 assert(value != null); | 13154 assert(value != null); |
12241 this._kind = value; | 13155 this._kind = value; |
12242 } | 13156 } |
12243 | 13157 |
12244 LinkedEditSuggestion(String value, LinkedEditSuggestionKind kind) { | 13158 LinkedEditSuggestion(String value, LinkedEditSuggestionKind kind) { |
12245 this.value = value; | 13159 this.value = value; |
12246 this.kind = kind; | 13160 this.kind = kind; |
12247 } | 13161 } |
12248 | 13162 |
12249 factory LinkedEditSuggestion.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 13163 factory LinkedEditSuggestion.fromJson( |
| 13164 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
12250 if (json == null) { | 13165 if (json == null) { |
12251 json = {}; | 13166 json = {}; |
12252 } | 13167 } |
12253 if (json is Map) { | 13168 if (json is Map) { |
12254 String value; | 13169 String value; |
12255 if (json.containsKey("value")) { | 13170 if (json.containsKey("value")) { |
12256 value = jsonDecoder.decodeString(jsonPath + ".value", json["value"]); | 13171 value = jsonDecoder.decodeString(jsonPath + ".value", json["value"]); |
12257 } else { | 13172 } else { |
12258 throw jsonDecoder.missingKey(jsonPath, "value"); | 13173 throw jsonDecoder.missingKey(jsonPath, "value"); |
12259 } | 13174 } |
12260 LinkedEditSuggestionKind kind; | 13175 LinkedEditSuggestionKind kind; |
12261 if (json.containsKey("kind")) { | 13176 if (json.containsKey("kind")) { |
12262 kind = new LinkedEditSuggestionKind.fromJson(jsonDecoder, jsonPath + ".k
ind", json["kind"]); | 13177 kind = new LinkedEditSuggestionKind.fromJson( |
| 13178 jsonDecoder, jsonPath + ".kind", json["kind"]); |
12263 } else { | 13179 } else { |
12264 throw jsonDecoder.missingKey(jsonPath, "kind"); | 13180 throw jsonDecoder.missingKey(jsonPath, "kind"); |
12265 } | 13181 } |
12266 return new LinkedEditSuggestion(value, kind); | 13182 return new LinkedEditSuggestion(value, kind); |
12267 } else { | 13183 } else { |
12268 throw jsonDecoder.mismatch(jsonPath, "LinkedEditSuggestion", json); | 13184 throw jsonDecoder.mismatch(jsonPath, "LinkedEditSuggestion", json); |
12269 } | 13185 } |
12270 } | 13186 } |
12271 | 13187 |
12272 Map<String, dynamic> toJson() { | 13188 Map<String, dynamic> toJson() { |
12273 Map<String, dynamic> result = {}; | 13189 Map<String, dynamic> result = {}; |
12274 result["value"] = value; | 13190 result["value"] = value; |
12275 result["kind"] = kind.toJson(); | 13191 result["kind"] = kind.toJson(); |
12276 return result; | 13192 return result; |
12277 } | 13193 } |
12278 | 13194 |
12279 @override | 13195 @override |
12280 String toString() => JSON.encode(toJson()); | 13196 String toString() => JSON.encode(toJson()); |
12281 | 13197 |
12282 @override | 13198 @override |
12283 bool operator==(other) { | 13199 bool operator ==(other) { |
12284 if (other is LinkedEditSuggestion) { | 13200 if (other is LinkedEditSuggestion) { |
12285 return value == other.value && | 13201 return value == other.value && kind == other.kind; |
12286 kind == other.kind; | |
12287 } | 13202 } |
12288 return false; | 13203 return false; |
12289 } | 13204 } |
12290 | 13205 |
12291 @override | 13206 @override |
12292 int get hashCode { | 13207 int get hashCode { |
12293 int hash = 0; | 13208 int hash = 0; |
12294 hash = JenkinsSmiHash.combine(hash, value.hashCode); | 13209 hash = JenkinsSmiHash.combine(hash, value.hashCode); |
12295 hash = JenkinsSmiHash.combine(hash, kind.hashCode); | 13210 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
12296 return JenkinsSmiHash.finish(hash); | 13211 return JenkinsSmiHash.finish(hash); |
12297 } | 13212 } |
12298 } | 13213 } |
12299 | 13214 |
12300 /** | 13215 /** |
12301 * LinkedEditSuggestionKind | 13216 * LinkedEditSuggestionKind |
12302 * | 13217 * |
12303 * enum { | 13218 * enum { |
12304 * METHOD | 13219 * METHOD |
12305 * PARAMETER | 13220 * PARAMETER |
12306 * TYPE | 13221 * TYPE |
12307 * VARIABLE | 13222 * VARIABLE |
12308 * } | 13223 * } |
12309 * | 13224 * |
12310 * Clients may not extend, implement or mix-in this class. | 13225 * Clients may not extend, implement or mix-in this class. |
12311 */ | 13226 */ |
12312 class LinkedEditSuggestionKind implements Enum { | 13227 class LinkedEditSuggestionKind implements Enum { |
12313 static const LinkedEditSuggestionKind METHOD = const LinkedEditSuggestionKind.
_("METHOD"); | 13228 static const LinkedEditSuggestionKind METHOD = |
| 13229 const LinkedEditSuggestionKind._("METHOD"); |
12314 | 13230 |
12315 static const LinkedEditSuggestionKind PARAMETER = const LinkedEditSuggestionKi
nd._("PARAMETER"); | 13231 static const LinkedEditSuggestionKind PARAMETER = |
| 13232 const LinkedEditSuggestionKind._("PARAMETER"); |
12316 | 13233 |
12317 static const LinkedEditSuggestionKind TYPE = const LinkedEditSuggestionKind._(
"TYPE"); | 13234 static const LinkedEditSuggestionKind TYPE = |
| 13235 const LinkedEditSuggestionKind._("TYPE"); |
12318 | 13236 |
12319 static const LinkedEditSuggestionKind VARIABLE = const LinkedEditSuggestionKin
d._("VARIABLE"); | 13237 static const LinkedEditSuggestionKind VARIABLE = |
| 13238 const LinkedEditSuggestionKind._("VARIABLE"); |
12320 | 13239 |
12321 /** | 13240 /** |
12322 * A list containing all of the enum values that are defined. | 13241 * A list containing all of the enum values that are defined. |
12323 */ | 13242 */ |
12324 static const List<LinkedEditSuggestionKind> VALUES = const <LinkedEditSuggesti
onKind>[METHOD, PARAMETER, TYPE, VARIABLE]; | 13243 static const List<LinkedEditSuggestionKind> VALUES = |
| 13244 const <LinkedEditSuggestionKind>[METHOD, PARAMETER, TYPE, VARIABLE]; |
12325 | 13245 |
12326 final String name; | 13246 final String name; |
12327 | 13247 |
12328 const LinkedEditSuggestionKind._(this.name); | 13248 const LinkedEditSuggestionKind._(this.name); |
12329 | 13249 |
12330 factory LinkedEditSuggestionKind(String name) { | 13250 factory LinkedEditSuggestionKind(String name) { |
12331 switch (name) { | 13251 switch (name) { |
12332 case "METHOD": | 13252 case "METHOD": |
12333 return METHOD; | 13253 return METHOD; |
12334 case "PARAMETER": | 13254 case "PARAMETER": |
12335 return PARAMETER; | 13255 return PARAMETER; |
12336 case "TYPE": | 13256 case "TYPE": |
12337 return TYPE; | 13257 return TYPE; |
12338 case "VARIABLE": | 13258 case "VARIABLE": |
12339 return VARIABLE; | 13259 return VARIABLE; |
12340 } | 13260 } |
12341 throw new Exception('Illegal enum value: $name'); | 13261 throw new Exception('Illegal enum value: $name'); |
12342 } | 13262 } |
12343 | 13263 |
12344 factory LinkedEditSuggestionKind.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 13264 factory LinkedEditSuggestionKind.fromJson( |
| 13265 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
12345 if (json is String) { | 13266 if (json is String) { |
12346 try { | 13267 try { |
12347 return new LinkedEditSuggestionKind(json); | 13268 return new LinkedEditSuggestionKind(json); |
12348 } catch(_) { | 13269 } catch (_) { |
12349 // Fall through | 13270 // Fall through |
12350 } | 13271 } |
12351 } | 13272 } |
12352 throw jsonDecoder.mismatch(jsonPath, "LinkedEditSuggestionKind", json); | 13273 throw jsonDecoder.mismatch(jsonPath, "LinkedEditSuggestionKind", json); |
12353 } | 13274 } |
12354 | 13275 |
12355 @override | 13276 @override |
12356 String toString() => "LinkedEditSuggestionKind.$name"; | 13277 String toString() => "LinkedEditSuggestionKind.$name"; |
12357 | 13278 |
12358 String toJson() => name; | 13279 String toJson() => name; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12444 | 13365 |
12445 /** | 13366 /** |
12446 * The one-based index of the column containing the first character of the | 13367 * The one-based index of the column containing the first character of the |
12447 * range. | 13368 * range. |
12448 */ | 13369 */ |
12449 void set startColumn(int value) { | 13370 void set startColumn(int value) { |
12450 assert(value != null); | 13371 assert(value != null); |
12451 this._startColumn = value; | 13372 this._startColumn = value; |
12452 } | 13373 } |
12453 | 13374 |
12454 Location(String file, int offset, int length, int startLine, int startColumn)
{ | 13375 Location( |
| 13376 String file, int offset, int length, int startLine, int startColumn) { |
12455 this.file = file; | 13377 this.file = file; |
12456 this.offset = offset; | 13378 this.offset = offset; |
12457 this.length = length; | 13379 this.length = length; |
12458 this.startLine = startLine; | 13380 this.startLine = startLine; |
12459 this.startColumn = startColumn; | 13381 this.startColumn = startColumn; |
12460 } | 13382 } |
12461 | 13383 |
12462 factory Location.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 13384 factory Location.fromJson( |
| 13385 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
12463 if (json == null) { | 13386 if (json == null) { |
12464 json = {}; | 13387 json = {}; |
12465 } | 13388 } |
12466 if (json is Map) { | 13389 if (json is Map) { |
12467 String file; | 13390 String file; |
12468 if (json.containsKey("file")) { | 13391 if (json.containsKey("file")) { |
12469 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 13392 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
12470 } else { | 13393 } else { |
12471 throw jsonDecoder.missingKey(jsonPath, "file"); | 13394 throw jsonDecoder.missingKey(jsonPath, "file"); |
12472 } | 13395 } |
12473 int offset; | 13396 int offset; |
12474 if (json.containsKey("offset")) { | 13397 if (json.containsKey("offset")) { |
12475 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 13398 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
12476 } else { | 13399 } else { |
12477 throw jsonDecoder.missingKey(jsonPath, "offset"); | 13400 throw jsonDecoder.missingKey(jsonPath, "offset"); |
12478 } | 13401 } |
12479 int length; | 13402 int length; |
12480 if (json.containsKey("length")) { | 13403 if (json.containsKey("length")) { |
12481 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 13404 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
12482 } else { | 13405 } else { |
12483 throw jsonDecoder.missingKey(jsonPath, "length"); | 13406 throw jsonDecoder.missingKey(jsonPath, "length"); |
12484 } | 13407 } |
12485 int startLine; | 13408 int startLine; |
12486 if (json.containsKey("startLine")) { | 13409 if (json.containsKey("startLine")) { |
12487 startLine = jsonDecoder.decodeInt(jsonPath + ".startLine", json["startLi
ne"]); | 13410 startLine = |
| 13411 jsonDecoder.decodeInt(jsonPath + ".startLine", json["startLine"]); |
12488 } else { | 13412 } else { |
12489 throw jsonDecoder.missingKey(jsonPath, "startLine"); | 13413 throw jsonDecoder.missingKey(jsonPath, "startLine"); |
12490 } | 13414 } |
12491 int startColumn; | 13415 int startColumn; |
12492 if (json.containsKey("startColumn")) { | 13416 if (json.containsKey("startColumn")) { |
12493 startColumn = jsonDecoder.decodeInt(jsonPath + ".startColumn", json["sta
rtColumn"]); | 13417 startColumn = jsonDecoder.decodeInt( |
| 13418 jsonPath + ".startColumn", json["startColumn"]); |
12494 } else { | 13419 } else { |
12495 throw jsonDecoder.missingKey(jsonPath, "startColumn"); | 13420 throw jsonDecoder.missingKey(jsonPath, "startColumn"); |
12496 } | 13421 } |
12497 return new Location(file, offset, length, startLine, startColumn); | 13422 return new Location(file, offset, length, startLine, startColumn); |
12498 } else { | 13423 } else { |
12499 throw jsonDecoder.mismatch(jsonPath, "Location", json); | 13424 throw jsonDecoder.mismatch(jsonPath, "Location", json); |
12500 } | 13425 } |
12501 } | 13426 } |
12502 | 13427 |
12503 Map<String, dynamic> toJson() { | 13428 Map<String, dynamic> toJson() { |
12504 Map<String, dynamic> result = {}; | 13429 Map<String, dynamic> result = {}; |
12505 result["file"] = file; | 13430 result["file"] = file; |
12506 result["offset"] = offset; | 13431 result["offset"] = offset; |
12507 result["length"] = length; | 13432 result["length"] = length; |
12508 result["startLine"] = startLine; | 13433 result["startLine"] = startLine; |
12509 result["startColumn"] = startColumn; | 13434 result["startColumn"] = startColumn; |
12510 return result; | 13435 return result; |
12511 } | 13436 } |
12512 | 13437 |
12513 @override | 13438 @override |
12514 String toString() => JSON.encode(toJson()); | 13439 String toString() => JSON.encode(toJson()); |
12515 | 13440 |
12516 @override | 13441 @override |
12517 bool operator==(other) { | 13442 bool operator ==(other) { |
12518 if (other is Location) { | 13443 if (other is Location) { |
12519 return file == other.file && | 13444 return file == other.file && |
12520 offset == other.offset && | 13445 offset == other.offset && |
12521 length == other.length && | 13446 length == other.length && |
12522 startLine == other.startLine && | 13447 startLine == other.startLine && |
12523 startColumn == other.startColumn; | 13448 startColumn == other.startColumn; |
12524 } | 13449 } |
12525 return false; | 13450 return false; |
12526 } | 13451 } |
12527 | 13452 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12597 assert(value != null); | 13522 assert(value != null); |
12598 this._targets = value; | 13523 this._targets = value; |
12599 } | 13524 } |
12600 | 13525 |
12601 NavigationRegion(int offset, int length, List<int> targets) { | 13526 NavigationRegion(int offset, int length, List<int> targets) { |
12602 this.offset = offset; | 13527 this.offset = offset; |
12603 this.length = length; | 13528 this.length = length; |
12604 this.targets = targets; | 13529 this.targets = targets; |
12605 } | 13530 } |
12606 | 13531 |
12607 factory NavigationRegion.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 13532 factory NavigationRegion.fromJson( |
| 13533 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
12608 if (json == null) { | 13534 if (json == null) { |
12609 json = {}; | 13535 json = {}; |
12610 } | 13536 } |
12611 if (json is Map) { | 13537 if (json is Map) { |
12612 int offset; | 13538 int offset; |
12613 if (json.containsKey("offset")) { | 13539 if (json.containsKey("offset")) { |
12614 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 13540 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
12615 } else { | 13541 } else { |
12616 throw jsonDecoder.missingKey(jsonPath, "offset"); | 13542 throw jsonDecoder.missingKey(jsonPath, "offset"); |
12617 } | 13543 } |
12618 int length; | 13544 int length; |
12619 if (json.containsKey("length")) { | 13545 if (json.containsKey("length")) { |
12620 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 13546 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
12621 } else { | 13547 } else { |
12622 throw jsonDecoder.missingKey(jsonPath, "length"); | 13548 throw jsonDecoder.missingKey(jsonPath, "length"); |
12623 } | 13549 } |
12624 List<int> targets; | 13550 List<int> targets; |
12625 if (json.containsKey("targets")) { | 13551 if (json.containsKey("targets")) { |
12626 targets = jsonDecoder.decodeList(jsonPath + ".targets", json["targets"],
jsonDecoder.decodeInt); | 13552 targets = jsonDecoder.decodeList( |
| 13553 jsonPath + ".targets", json["targets"], jsonDecoder.decodeInt); |
12627 } else { | 13554 } else { |
12628 throw jsonDecoder.missingKey(jsonPath, "targets"); | 13555 throw jsonDecoder.missingKey(jsonPath, "targets"); |
12629 } | 13556 } |
12630 return new NavigationRegion(offset, length, targets); | 13557 return new NavigationRegion(offset, length, targets); |
12631 } else { | 13558 } else { |
12632 throw jsonDecoder.mismatch(jsonPath, "NavigationRegion", json); | 13559 throw jsonDecoder.mismatch(jsonPath, "NavigationRegion", json); |
12633 } | 13560 } |
12634 } | 13561 } |
12635 | 13562 |
12636 Map<String, dynamic> toJson() { | 13563 Map<String, dynamic> toJson() { |
12637 Map<String, dynamic> result = {}; | 13564 Map<String, dynamic> result = {}; |
12638 result["offset"] = offset; | 13565 result["offset"] = offset; |
12639 result["length"] = length; | 13566 result["length"] = length; |
12640 result["targets"] = targets; | 13567 result["targets"] = targets; |
12641 return result; | 13568 return result; |
12642 } | 13569 } |
12643 | 13570 |
12644 @override | 13571 @override |
12645 String toString() => JSON.encode(toJson()); | 13572 String toString() => JSON.encode(toJson()); |
12646 | 13573 |
12647 @override | 13574 @override |
12648 bool operator==(other) { | 13575 bool operator ==(other) { |
12649 if (other is NavigationRegion) { | 13576 if (other is NavigationRegion) { |
12650 return offset == other.offset && | 13577 return offset == other.offset && |
12651 length == other.length && | 13578 length == other.length && |
12652 listEqual(targets, other.targets, (int a, int b) => a == b); | 13579 listEqual(targets, other.targets, (int a, int b) => a == b); |
12653 } | 13580 } |
12654 return false; | 13581 return false; |
12655 } | 13582 } |
12656 | 13583 |
12657 @override | 13584 @override |
12658 int get hashCode { | 13585 int get hashCode { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12768 | 13695 |
12769 /** | 13696 /** |
12770 * The one-based index of the column containing the first character of the | 13697 * The one-based index of the column containing the first character of the |
12771 * region. | 13698 * region. |
12772 */ | 13699 */ |
12773 void set startColumn(int value) { | 13700 void set startColumn(int value) { |
12774 assert(value != null); | 13701 assert(value != null); |
12775 this._startColumn = value; | 13702 this._startColumn = value; |
12776 } | 13703 } |
12777 | 13704 |
12778 NavigationTarget(ElementKind kind, int fileIndex, int offset, int length, int
startLine, int startColumn) { | 13705 NavigationTarget(ElementKind kind, int fileIndex, int offset, int length, |
| 13706 int startLine, int startColumn) { |
12779 this.kind = kind; | 13707 this.kind = kind; |
12780 this.fileIndex = fileIndex; | 13708 this.fileIndex = fileIndex; |
12781 this.offset = offset; | 13709 this.offset = offset; |
12782 this.length = length; | 13710 this.length = length; |
12783 this.startLine = startLine; | 13711 this.startLine = startLine; |
12784 this.startColumn = startColumn; | 13712 this.startColumn = startColumn; |
12785 } | 13713 } |
12786 | 13714 |
12787 factory NavigationTarget.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 13715 factory NavigationTarget.fromJson( |
| 13716 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
12788 if (json == null) { | 13717 if (json == null) { |
12789 json = {}; | 13718 json = {}; |
12790 } | 13719 } |
12791 if (json is Map) { | 13720 if (json is Map) { |
12792 ElementKind kind; | 13721 ElementKind kind; |
12793 if (json.containsKey("kind")) { | 13722 if (json.containsKey("kind")) { |
12794 kind = new ElementKind.fromJson(jsonDecoder, jsonPath + ".kind", json["k
ind"]); | 13723 kind = new ElementKind.fromJson( |
| 13724 jsonDecoder, jsonPath + ".kind", json["kind"]); |
12795 } else { | 13725 } else { |
12796 throw jsonDecoder.missingKey(jsonPath, "kind"); | 13726 throw jsonDecoder.missingKey(jsonPath, "kind"); |
12797 } | 13727 } |
12798 int fileIndex; | 13728 int fileIndex; |
12799 if (json.containsKey("fileIndex")) { | 13729 if (json.containsKey("fileIndex")) { |
12800 fileIndex = jsonDecoder.decodeInt(jsonPath + ".fileIndex", json["fileInd
ex"]); | 13730 fileIndex = |
| 13731 jsonDecoder.decodeInt(jsonPath + ".fileIndex", json["fileIndex"]); |
12801 } else { | 13732 } else { |
12802 throw jsonDecoder.missingKey(jsonPath, "fileIndex"); | 13733 throw jsonDecoder.missingKey(jsonPath, "fileIndex"); |
12803 } | 13734 } |
12804 int offset; | 13735 int offset; |
12805 if (json.containsKey("offset")) { | 13736 if (json.containsKey("offset")) { |
12806 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 13737 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
12807 } else { | 13738 } else { |
12808 throw jsonDecoder.missingKey(jsonPath, "offset"); | 13739 throw jsonDecoder.missingKey(jsonPath, "offset"); |
12809 } | 13740 } |
12810 int length; | 13741 int length; |
12811 if (json.containsKey("length")) { | 13742 if (json.containsKey("length")) { |
12812 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 13743 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
12813 } else { | 13744 } else { |
12814 throw jsonDecoder.missingKey(jsonPath, "length"); | 13745 throw jsonDecoder.missingKey(jsonPath, "length"); |
12815 } | 13746 } |
12816 int startLine; | 13747 int startLine; |
12817 if (json.containsKey("startLine")) { | 13748 if (json.containsKey("startLine")) { |
12818 startLine = jsonDecoder.decodeInt(jsonPath + ".startLine", json["startLi
ne"]); | 13749 startLine = |
| 13750 jsonDecoder.decodeInt(jsonPath + ".startLine", json["startLine"]); |
12819 } else { | 13751 } else { |
12820 throw jsonDecoder.missingKey(jsonPath, "startLine"); | 13752 throw jsonDecoder.missingKey(jsonPath, "startLine"); |
12821 } | 13753 } |
12822 int startColumn; | 13754 int startColumn; |
12823 if (json.containsKey("startColumn")) { | 13755 if (json.containsKey("startColumn")) { |
12824 startColumn = jsonDecoder.decodeInt(jsonPath + ".startColumn", json["sta
rtColumn"]); | 13756 startColumn = jsonDecoder.decodeInt( |
| 13757 jsonPath + ".startColumn", json["startColumn"]); |
12825 } else { | 13758 } else { |
12826 throw jsonDecoder.missingKey(jsonPath, "startColumn"); | 13759 throw jsonDecoder.missingKey(jsonPath, "startColumn"); |
12827 } | 13760 } |
12828 return new NavigationTarget(kind, fileIndex, offset, length, startLine, st
artColumn); | 13761 return new NavigationTarget( |
| 13762 kind, fileIndex, offset, length, startLine, startColumn); |
12829 } else { | 13763 } else { |
12830 throw jsonDecoder.mismatch(jsonPath, "NavigationTarget", json); | 13764 throw jsonDecoder.mismatch(jsonPath, "NavigationTarget", json); |
12831 } | 13765 } |
12832 } | 13766 } |
12833 | 13767 |
12834 Map<String, dynamic> toJson() { | 13768 Map<String, dynamic> toJson() { |
12835 Map<String, dynamic> result = {}; | 13769 Map<String, dynamic> result = {}; |
12836 result["kind"] = kind.toJson(); | 13770 result["kind"] = kind.toJson(); |
12837 result["fileIndex"] = fileIndex; | 13771 result["fileIndex"] = fileIndex; |
12838 result["offset"] = offset; | 13772 result["offset"] = offset; |
12839 result["length"] = length; | 13773 result["length"] = length; |
12840 result["startLine"] = startLine; | 13774 result["startLine"] = startLine; |
12841 result["startColumn"] = startColumn; | 13775 result["startColumn"] = startColumn; |
12842 return result; | 13776 return result; |
12843 } | 13777 } |
12844 | 13778 |
12845 @override | 13779 @override |
12846 String toString() => JSON.encode(toJson()); | 13780 String toString() => JSON.encode(toJson()); |
12847 | 13781 |
12848 @override | 13782 @override |
12849 bool operator==(other) { | 13783 bool operator ==(other) { |
12850 if (other is NavigationTarget) { | 13784 if (other is NavigationTarget) { |
12851 return kind == other.kind && | 13785 return kind == other.kind && |
12852 fileIndex == other.fileIndex && | 13786 fileIndex == other.fileIndex && |
12853 offset == other.offset && | 13787 offset == other.offset && |
12854 length == other.length && | 13788 length == other.length && |
12855 startLine == other.startLine && | 13789 startLine == other.startLine && |
12856 startColumn == other.startColumn; | 13790 startColumn == other.startColumn; |
12857 } | 13791 } |
12858 return false; | 13792 return false; |
12859 } | 13793 } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12927 assert(value != null); | 13861 assert(value != null); |
12928 this._length = value; | 13862 this._length = value; |
12929 } | 13863 } |
12930 | 13864 |
12931 Occurrences(Element element, List<int> offsets, int length) { | 13865 Occurrences(Element element, List<int> offsets, int length) { |
12932 this.element = element; | 13866 this.element = element; |
12933 this.offsets = offsets; | 13867 this.offsets = offsets; |
12934 this.length = length; | 13868 this.length = length; |
12935 } | 13869 } |
12936 | 13870 |
12937 factory Occurrences.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 13871 factory Occurrences.fromJson( |
| 13872 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
12938 if (json == null) { | 13873 if (json == null) { |
12939 json = {}; | 13874 json = {}; |
12940 } | 13875 } |
12941 if (json is Map) { | 13876 if (json is Map) { |
12942 Element element; | 13877 Element element; |
12943 if (json.containsKey("element")) { | 13878 if (json.containsKey("element")) { |
12944 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 13879 element = new Element.fromJson( |
| 13880 jsonDecoder, jsonPath + ".element", json["element"]); |
12945 } else { | 13881 } else { |
12946 throw jsonDecoder.missingKey(jsonPath, "element"); | 13882 throw jsonDecoder.missingKey(jsonPath, "element"); |
12947 } | 13883 } |
12948 List<int> offsets; | 13884 List<int> offsets; |
12949 if (json.containsKey("offsets")) { | 13885 if (json.containsKey("offsets")) { |
12950 offsets = jsonDecoder.decodeList(jsonPath + ".offsets", json["offsets"],
jsonDecoder.decodeInt); | 13886 offsets = jsonDecoder.decodeList( |
| 13887 jsonPath + ".offsets", json["offsets"], jsonDecoder.decodeInt); |
12951 } else { | 13888 } else { |
12952 throw jsonDecoder.missingKey(jsonPath, "offsets"); | 13889 throw jsonDecoder.missingKey(jsonPath, "offsets"); |
12953 } | 13890 } |
12954 int length; | 13891 int length; |
12955 if (json.containsKey("length")) { | 13892 if (json.containsKey("length")) { |
12956 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 13893 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
12957 } else { | 13894 } else { |
12958 throw jsonDecoder.missingKey(jsonPath, "length"); | 13895 throw jsonDecoder.missingKey(jsonPath, "length"); |
12959 } | 13896 } |
12960 return new Occurrences(element, offsets, length); | 13897 return new Occurrences(element, offsets, length); |
12961 } else { | 13898 } else { |
12962 throw jsonDecoder.mismatch(jsonPath, "Occurrences", json); | 13899 throw jsonDecoder.mismatch(jsonPath, "Occurrences", json); |
12963 } | 13900 } |
12964 } | 13901 } |
12965 | 13902 |
12966 Map<String, dynamic> toJson() { | 13903 Map<String, dynamic> toJson() { |
12967 Map<String, dynamic> result = {}; | 13904 Map<String, dynamic> result = {}; |
12968 result["element"] = element.toJson(); | 13905 result["element"] = element.toJson(); |
12969 result["offsets"] = offsets; | 13906 result["offsets"] = offsets; |
12970 result["length"] = length; | 13907 result["length"] = length; |
12971 return result; | 13908 return result; |
12972 } | 13909 } |
12973 | 13910 |
12974 @override | 13911 @override |
12975 String toString() => JSON.encode(toJson()); | 13912 String toString() => JSON.encode(toJson()); |
12976 | 13913 |
12977 @override | 13914 @override |
12978 bool operator==(other) { | 13915 bool operator ==(other) { |
12979 if (other is Occurrences) { | 13916 if (other is Occurrences) { |
12980 return element == other.element && | 13917 return element == other.element && |
12981 listEqual(offsets, other.offsets, (int a, int b) => a == b) && | 13918 listEqual(offsets, other.offsets, (int a, int b) => a == b) && |
12982 length == other.length; | 13919 length == other.length; |
12983 } | 13920 } |
12984 return false; | 13921 return false; |
12985 } | 13922 } |
12986 | 13923 |
12987 @override | 13924 @override |
12988 int get hashCode { | 13925 int get hashCode { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13074 this._children = value; | 14011 this._children = value; |
13075 } | 14012 } |
13076 | 14013 |
13077 Outline(Element element, int offset, int length, {List<Outline> children}) { | 14014 Outline(Element element, int offset, int length, {List<Outline> children}) { |
13078 this.element = element; | 14015 this.element = element; |
13079 this.offset = offset; | 14016 this.offset = offset; |
13080 this.length = length; | 14017 this.length = length; |
13081 this.children = children; | 14018 this.children = children; |
13082 } | 14019 } |
13083 | 14020 |
13084 factory Outline.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json
) { | 14021 factory Outline.fromJson( |
| 14022 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
13085 if (json == null) { | 14023 if (json == null) { |
13086 json = {}; | 14024 json = {}; |
13087 } | 14025 } |
13088 if (json is Map) { | 14026 if (json is Map) { |
13089 Element element; | 14027 Element element; |
13090 if (json.containsKey("element")) { | 14028 if (json.containsKey("element")) { |
13091 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 14029 element = new Element.fromJson( |
| 14030 jsonDecoder, jsonPath + ".element", json["element"]); |
13092 } else { | 14031 } else { |
13093 throw jsonDecoder.missingKey(jsonPath, "element"); | 14032 throw jsonDecoder.missingKey(jsonPath, "element"); |
13094 } | 14033 } |
13095 int offset; | 14034 int offset; |
13096 if (json.containsKey("offset")) { | 14035 if (json.containsKey("offset")) { |
13097 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 14036 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
13098 } else { | 14037 } else { |
13099 throw jsonDecoder.missingKey(jsonPath, "offset"); | 14038 throw jsonDecoder.missingKey(jsonPath, "offset"); |
13100 } | 14039 } |
13101 int length; | 14040 int length; |
13102 if (json.containsKey("length")) { | 14041 if (json.containsKey("length")) { |
13103 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 14042 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
13104 } else { | 14043 } else { |
13105 throw jsonDecoder.missingKey(jsonPath, "length"); | 14044 throw jsonDecoder.missingKey(jsonPath, "length"); |
13106 } | 14045 } |
13107 List<Outline> children; | 14046 List<Outline> children; |
13108 if (json.containsKey("children")) { | 14047 if (json.containsKey("children")) { |
13109 children = jsonDecoder.decodeList(jsonPath + ".children", json["children
"], (String jsonPath, Object json) => new Outline.fromJson(jsonDecoder, jsonPath
, json)); | 14048 children = jsonDecoder.decodeList( |
| 14049 jsonPath + ".children", |
| 14050 json["children"], |
| 14051 (String jsonPath, Object json) => |
| 14052 new Outline.fromJson(jsonDecoder, jsonPath, json)); |
13110 } | 14053 } |
13111 return new Outline(element, offset, length, children: children); | 14054 return new Outline(element, offset, length, children: children); |
13112 } else { | 14055 } else { |
13113 throw jsonDecoder.mismatch(jsonPath, "Outline", json); | 14056 throw jsonDecoder.mismatch(jsonPath, "Outline", json); |
13114 } | 14057 } |
13115 } | 14058 } |
13116 | 14059 |
13117 Map<String, dynamic> toJson() { | 14060 Map<String, dynamic> toJson() { |
13118 Map<String, dynamic> result = {}; | 14061 Map<String, dynamic> result = {}; |
13119 result["element"] = element.toJson(); | 14062 result["element"] = element.toJson(); |
13120 result["offset"] = offset; | 14063 result["offset"] = offset; |
13121 result["length"] = length; | 14064 result["length"] = length; |
13122 if (children != null) { | 14065 if (children != null) { |
13123 result["children"] = children.map((Outline value) => value.toJson()).toLis
t(); | 14066 result["children"] = |
| 14067 children.map((Outline value) => value.toJson()).toList(); |
13124 } | 14068 } |
13125 return result; | 14069 return result; |
13126 } | 14070 } |
13127 | 14071 |
13128 @override | 14072 @override |
13129 String toString() => JSON.encode(toJson()); | 14073 String toString() => JSON.encode(toJson()); |
13130 | 14074 |
13131 @override | 14075 @override |
13132 bool operator==(other) { | 14076 bool operator ==(other) { |
13133 if (other is Outline) { | 14077 if (other is Outline) { |
13134 return element == other.element && | 14078 return element == other.element && |
13135 offset == other.offset && | 14079 offset == other.offset && |
13136 length == other.length && | 14080 length == other.length && |
13137 listEqual(children, other.children, (Outline a, Outline b) => a == b); | 14081 listEqual(children, other.children, (Outline a, Outline b) => a == b); |
13138 } | 14082 } |
13139 return false; | 14083 return false; |
13140 } | 14084 } |
13141 | 14085 |
13142 @override | 14086 @override |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13222 | 14166 |
13223 /** | 14167 /** |
13224 * The members inherited from interfaces that are overridden by the | 14168 * The members inherited from interfaces that are overridden by the |
13225 * overriding member. The field is omitted if there are no interface members, | 14169 * overriding member. The field is omitted if there are no interface members, |
13226 * in which case there must be a superclass member. | 14170 * in which case there must be a superclass member. |
13227 */ | 14171 */ |
13228 void set interfaceMembers(List<OverriddenMember> value) { | 14172 void set interfaceMembers(List<OverriddenMember> value) { |
13229 this._interfaceMembers = value; | 14173 this._interfaceMembers = value; |
13230 } | 14174 } |
13231 | 14175 |
13232 Override(int offset, int length, {OverriddenMember superclassMember, List<Over
riddenMember> interfaceMembers}) { | 14176 Override(int offset, int length, |
| 14177 {OverriddenMember superclassMember, |
| 14178 List<OverriddenMember> interfaceMembers}) { |
13233 this.offset = offset; | 14179 this.offset = offset; |
13234 this.length = length; | 14180 this.length = length; |
13235 this.superclassMember = superclassMember; | 14181 this.superclassMember = superclassMember; |
13236 this.interfaceMembers = interfaceMembers; | 14182 this.interfaceMembers = interfaceMembers; |
13237 } | 14183 } |
13238 | 14184 |
13239 factory Override.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 14185 factory Override.fromJson( |
| 14186 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
13240 if (json == null) { | 14187 if (json == null) { |
13241 json = {}; | 14188 json = {}; |
13242 } | 14189 } |
13243 if (json is Map) { | 14190 if (json is Map) { |
13244 int offset; | 14191 int offset; |
13245 if (json.containsKey("offset")) { | 14192 if (json.containsKey("offset")) { |
13246 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 14193 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
13247 } else { | 14194 } else { |
13248 throw jsonDecoder.missingKey(jsonPath, "offset"); | 14195 throw jsonDecoder.missingKey(jsonPath, "offset"); |
13249 } | 14196 } |
13250 int length; | 14197 int length; |
13251 if (json.containsKey("length")) { | 14198 if (json.containsKey("length")) { |
13252 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 14199 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
13253 } else { | 14200 } else { |
13254 throw jsonDecoder.missingKey(jsonPath, "length"); | 14201 throw jsonDecoder.missingKey(jsonPath, "length"); |
13255 } | 14202 } |
13256 OverriddenMember superclassMember; | 14203 OverriddenMember superclassMember; |
13257 if (json.containsKey("superclassMember")) { | 14204 if (json.containsKey("superclassMember")) { |
13258 superclassMember = new OverriddenMember.fromJson(jsonDecoder, jsonPath +
".superclassMember", json["superclassMember"]); | 14205 superclassMember = new OverriddenMember.fromJson(jsonDecoder, |
| 14206 jsonPath + ".superclassMember", json["superclassMember"]); |
13259 } | 14207 } |
13260 List<OverriddenMember> interfaceMembers; | 14208 List<OverriddenMember> interfaceMembers; |
13261 if (json.containsKey("interfaceMembers")) { | 14209 if (json.containsKey("interfaceMembers")) { |
13262 interfaceMembers = jsonDecoder.decodeList(jsonPath + ".interfaceMembers"
, json["interfaceMembers"], (String jsonPath, Object json) => new OverriddenMemb
er.fromJson(jsonDecoder, jsonPath, json)); | 14210 interfaceMembers = jsonDecoder.decodeList( |
| 14211 jsonPath + ".interfaceMembers", |
| 14212 json["interfaceMembers"], |
| 14213 (String jsonPath, Object json) => |
| 14214 new OverriddenMember.fromJson(jsonDecoder, jsonPath, json)); |
13263 } | 14215 } |
13264 return new Override(offset, length, superclassMember: superclassMember, in
terfaceMembers: interfaceMembers); | 14216 return new Override(offset, length, |
| 14217 superclassMember: superclassMember, |
| 14218 interfaceMembers: interfaceMembers); |
13265 } else { | 14219 } else { |
13266 throw jsonDecoder.mismatch(jsonPath, "Override", json); | 14220 throw jsonDecoder.mismatch(jsonPath, "Override", json); |
13267 } | 14221 } |
13268 } | 14222 } |
13269 | 14223 |
13270 Map<String, dynamic> toJson() { | 14224 Map<String, dynamic> toJson() { |
13271 Map<String, dynamic> result = {}; | 14225 Map<String, dynamic> result = {}; |
13272 result["offset"] = offset; | 14226 result["offset"] = offset; |
13273 result["length"] = length; | 14227 result["length"] = length; |
13274 if (superclassMember != null) { | 14228 if (superclassMember != null) { |
13275 result["superclassMember"] = superclassMember.toJson(); | 14229 result["superclassMember"] = superclassMember.toJson(); |
13276 } | 14230 } |
13277 if (interfaceMembers != null) { | 14231 if (interfaceMembers != null) { |
13278 result["interfaceMembers"] = interfaceMembers.map((OverriddenMember value)
=> value.toJson()).toList(); | 14232 result["interfaceMembers"] = interfaceMembers |
| 14233 .map((OverriddenMember value) => value.toJson()) |
| 14234 .toList(); |
13279 } | 14235 } |
13280 return result; | 14236 return result; |
13281 } | 14237 } |
13282 | 14238 |
13283 @override | 14239 @override |
13284 String toString() => JSON.encode(toJson()); | 14240 String toString() => JSON.encode(toJson()); |
13285 | 14241 |
13286 @override | 14242 @override |
13287 bool operator==(other) { | 14243 bool operator ==(other) { |
13288 if (other is Override) { | 14244 if (other is Override) { |
13289 return offset == other.offset && | 14245 return offset == other.offset && |
13290 length == other.length && | 14246 length == other.length && |
13291 superclassMember == other.superclassMember && | 14247 superclassMember == other.superclassMember && |
13292 listEqual(interfaceMembers, other.interfaceMembers, (OverriddenMember
a, OverriddenMember b) => a == b); | 14248 listEqual(interfaceMembers, other.interfaceMembers, |
| 14249 (OverriddenMember a, OverriddenMember b) => a == b); |
13293 } | 14250 } |
13294 return false; | 14251 return false; |
13295 } | 14252 } |
13296 | 14253 |
13297 @override | 14254 @override |
13298 int get hashCode { | 14255 int get hashCode { |
13299 int hash = 0; | 14256 int hash = 0; |
13300 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 14257 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
13301 hash = JenkinsSmiHash.combine(hash, length.hashCode); | 14258 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
13302 hash = JenkinsSmiHash.combine(hash, superclassMember.hashCode); | 14259 hash = JenkinsSmiHash.combine(hash, superclassMember.hashCode); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13344 void set className(String value) { | 14301 void set className(String value) { |
13345 assert(value != null); | 14302 assert(value != null); |
13346 this._className = value; | 14303 this._className = value; |
13347 } | 14304 } |
13348 | 14305 |
13349 OverriddenMember(Element element, String className) { | 14306 OverriddenMember(Element element, String className) { |
13350 this.element = element; | 14307 this.element = element; |
13351 this.className = className; | 14308 this.className = className; |
13352 } | 14309 } |
13353 | 14310 |
13354 factory OverriddenMember.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 14311 factory OverriddenMember.fromJson( |
| 14312 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
13355 if (json == null) { | 14313 if (json == null) { |
13356 json = {}; | 14314 json = {}; |
13357 } | 14315 } |
13358 if (json is Map) { | 14316 if (json is Map) { |
13359 Element element; | 14317 Element element; |
13360 if (json.containsKey("element")) { | 14318 if (json.containsKey("element")) { |
13361 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 14319 element = new Element.fromJson( |
| 14320 jsonDecoder, jsonPath + ".element", json["element"]); |
13362 } else { | 14321 } else { |
13363 throw jsonDecoder.missingKey(jsonPath, "element"); | 14322 throw jsonDecoder.missingKey(jsonPath, "element"); |
13364 } | 14323 } |
13365 String className; | 14324 String className; |
13366 if (json.containsKey("className")) { | 14325 if (json.containsKey("className")) { |
13367 className = jsonDecoder.decodeString(jsonPath + ".className", json["clas
sName"]); | 14326 className = jsonDecoder.decodeString( |
| 14327 jsonPath + ".className", json["className"]); |
13368 } else { | 14328 } else { |
13369 throw jsonDecoder.missingKey(jsonPath, "className"); | 14329 throw jsonDecoder.missingKey(jsonPath, "className"); |
13370 } | 14330 } |
13371 return new OverriddenMember(element, className); | 14331 return new OverriddenMember(element, className); |
13372 } else { | 14332 } else { |
13373 throw jsonDecoder.mismatch(jsonPath, "OverriddenMember", json); | 14333 throw jsonDecoder.mismatch(jsonPath, "OverriddenMember", json); |
13374 } | 14334 } |
13375 } | 14335 } |
13376 | 14336 |
13377 Map<String, dynamic> toJson() { | 14337 Map<String, dynamic> toJson() { |
13378 Map<String, dynamic> result = {}; | 14338 Map<String, dynamic> result = {}; |
13379 result["element"] = element.toJson(); | 14339 result["element"] = element.toJson(); |
13380 result["className"] = className; | 14340 result["className"] = className; |
13381 return result; | 14341 return result; |
13382 } | 14342 } |
13383 | 14343 |
13384 @override | 14344 @override |
13385 String toString() => JSON.encode(toJson()); | 14345 String toString() => JSON.encode(toJson()); |
13386 | 14346 |
13387 @override | 14347 @override |
13388 bool operator==(other) { | 14348 bool operator ==(other) { |
13389 if (other is OverriddenMember) { | 14349 if (other is OverriddenMember) { |
13390 return element == other.element && | 14350 return element == other.element && className == other.className; |
13391 className == other.className; | |
13392 } | 14351 } |
13393 return false; | 14352 return false; |
13394 } | 14353 } |
13395 | 14354 |
13396 @override | 14355 @override |
13397 int get hashCode { | 14356 int get hashCode { |
13398 int hash = 0; | 14357 int hash = 0; |
13399 hash = JenkinsSmiHash.combine(hash, element.hashCode); | 14358 hash = JenkinsSmiHash.combine(hash, element.hashCode); |
13400 hash = JenkinsSmiHash.combine(hash, className.hashCode); | 14359 hash = JenkinsSmiHash.combine(hash, className.hashCode); |
13401 return JenkinsSmiHash.finish(hash); | 14360 return JenkinsSmiHash.finish(hash); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13441 void set offset(int value) { | 14400 void set offset(int value) { |
13442 assert(value != null); | 14401 assert(value != null); |
13443 this._offset = value; | 14402 this._offset = value; |
13444 } | 14403 } |
13445 | 14404 |
13446 Position(String file, int offset) { | 14405 Position(String file, int offset) { |
13447 this.file = file; | 14406 this.file = file; |
13448 this.offset = offset; | 14407 this.offset = offset; |
13449 } | 14408 } |
13450 | 14409 |
13451 factory Position.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object jso
n) { | 14410 factory Position.fromJson( |
| 14411 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
13452 if (json == null) { | 14412 if (json == null) { |
13453 json = {}; | 14413 json = {}; |
13454 } | 14414 } |
13455 if (json is Map) { | 14415 if (json is Map) { |
13456 String file; | 14416 String file; |
13457 if (json.containsKey("file")) { | 14417 if (json.containsKey("file")) { |
13458 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 14418 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
13459 } else { | 14419 } else { |
13460 throw jsonDecoder.missingKey(jsonPath, "file"); | 14420 throw jsonDecoder.missingKey(jsonPath, "file"); |
13461 } | 14421 } |
(...skipping 13 matching lines...) Expand all Loading... |
13475 Map<String, dynamic> result = {}; | 14435 Map<String, dynamic> result = {}; |
13476 result["file"] = file; | 14436 result["file"] = file; |
13477 result["offset"] = offset; | 14437 result["offset"] = offset; |
13478 return result; | 14438 return result; |
13479 } | 14439 } |
13480 | 14440 |
13481 @override | 14441 @override |
13482 String toString() => JSON.encode(toJson()); | 14442 String toString() => JSON.encode(toJson()); |
13483 | 14443 |
13484 @override | 14444 @override |
13485 bool operator==(other) { | 14445 bool operator ==(other) { |
13486 if (other is Position) { | 14446 if (other is Position) { |
13487 return file == other.file && | 14447 return file == other.file && offset == other.offset; |
13488 offset == other.offset; | |
13489 } | 14448 } |
13490 return false; | 14449 return false; |
13491 } | 14450 } |
13492 | 14451 |
13493 @override | 14452 @override |
13494 int get hashCode { | 14453 int get hashCode { |
13495 int hash = 0; | 14454 int hash = 0; |
13496 hash = JenkinsSmiHash.combine(hash, file.hashCode); | 14455 hash = JenkinsSmiHash.combine(hash, file.hashCode); |
13497 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 14456 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
13498 return JenkinsSmiHash.finish(hash); | 14457 return JenkinsSmiHash.finish(hash); |
(...skipping 24 matching lines...) Expand all Loading... |
13523 */ | 14482 */ |
13524 void set isListingPackageDirs(bool value) { | 14483 void set isListingPackageDirs(bool value) { |
13525 assert(value != null); | 14484 assert(value != null); |
13526 this._isListingPackageDirs = value; | 14485 this._isListingPackageDirs = value; |
13527 } | 14486 } |
13528 | 14487 |
13529 PubStatus(bool isListingPackageDirs) { | 14488 PubStatus(bool isListingPackageDirs) { |
13530 this.isListingPackageDirs = isListingPackageDirs; | 14489 this.isListingPackageDirs = isListingPackageDirs; |
13531 } | 14490 } |
13532 | 14491 |
13533 factory PubStatus.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object js
on) { | 14492 factory PubStatus.fromJson( |
| 14493 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
13534 if (json == null) { | 14494 if (json == null) { |
13535 json = {}; | 14495 json = {}; |
13536 } | 14496 } |
13537 if (json is Map) { | 14497 if (json is Map) { |
13538 bool isListingPackageDirs; | 14498 bool isListingPackageDirs; |
13539 if (json.containsKey("isListingPackageDirs")) { | 14499 if (json.containsKey("isListingPackageDirs")) { |
13540 isListingPackageDirs = jsonDecoder.decodeBool(jsonPath + ".isListingPack
ageDirs", json["isListingPackageDirs"]); | 14500 isListingPackageDirs = jsonDecoder.decodeBool( |
| 14501 jsonPath + ".isListingPackageDirs", json["isListingPackageDirs"]); |
13541 } else { | 14502 } else { |
13542 throw jsonDecoder.missingKey(jsonPath, "isListingPackageDirs"); | 14503 throw jsonDecoder.missingKey(jsonPath, "isListingPackageDirs"); |
13543 } | 14504 } |
13544 return new PubStatus(isListingPackageDirs); | 14505 return new PubStatus(isListingPackageDirs); |
13545 } else { | 14506 } else { |
13546 throw jsonDecoder.mismatch(jsonPath, "PubStatus", json); | 14507 throw jsonDecoder.mismatch(jsonPath, "PubStatus", json); |
13547 } | 14508 } |
13548 } | 14509 } |
13549 | 14510 |
13550 Map<String, dynamic> toJson() { | 14511 Map<String, dynamic> toJson() { |
13551 Map<String, dynamic> result = {}; | 14512 Map<String, dynamic> result = {}; |
13552 result["isListingPackageDirs"] = isListingPackageDirs; | 14513 result["isListingPackageDirs"] = isListingPackageDirs; |
13553 return result; | 14514 return result; |
13554 } | 14515 } |
13555 | 14516 |
13556 @override | 14517 @override |
13557 String toString() => JSON.encode(toJson()); | 14518 String toString() => JSON.encode(toJson()); |
13558 | 14519 |
13559 @override | 14520 @override |
13560 bool operator==(other) { | 14521 bool operator ==(other) { |
13561 if (other is PubStatus) { | 14522 if (other is PubStatus) { |
13562 return isListingPackageDirs == other.isListingPackageDirs; | 14523 return isListingPackageDirs == other.isListingPackageDirs; |
13563 } | 14524 } |
13564 return false; | 14525 return false; |
13565 } | 14526 } |
13566 | 14527 |
13567 @override | 14528 @override |
13568 int get hashCode { | 14529 int get hashCode { |
13569 int hash = 0; | 14530 int hash = 0; |
13570 hash = JenkinsSmiHash.combine(hash, isListingPackageDirs.hashCode); | 14531 hash = JenkinsSmiHash.combine(hash, isListingPackageDirs.hashCode); |
(...skipping 12 matching lines...) Expand all Loading... |
13583 * INLINE_LOCAL_VARIABLE | 14544 * INLINE_LOCAL_VARIABLE |
13584 * INLINE_METHOD | 14545 * INLINE_METHOD |
13585 * MOVE_FILE | 14546 * MOVE_FILE |
13586 * RENAME | 14547 * RENAME |
13587 * SORT_MEMBERS | 14548 * SORT_MEMBERS |
13588 * } | 14549 * } |
13589 * | 14550 * |
13590 * Clients may not extend, implement or mix-in this class. | 14551 * Clients may not extend, implement or mix-in this class. |
13591 */ | 14552 */ |
13592 class RefactoringKind implements Enum { | 14553 class RefactoringKind implements Enum { |
13593 static const RefactoringKind CONVERT_GETTER_TO_METHOD = const RefactoringKind.
_("CONVERT_GETTER_TO_METHOD"); | 14554 static const RefactoringKind CONVERT_GETTER_TO_METHOD = |
| 14555 const RefactoringKind._("CONVERT_GETTER_TO_METHOD"); |
13594 | 14556 |
13595 static const RefactoringKind CONVERT_METHOD_TO_GETTER = const RefactoringKind.
_("CONVERT_METHOD_TO_GETTER"); | 14557 static const RefactoringKind CONVERT_METHOD_TO_GETTER = |
| 14558 const RefactoringKind._("CONVERT_METHOD_TO_GETTER"); |
13596 | 14559 |
13597 static const RefactoringKind EXTRACT_LOCAL_VARIABLE = const RefactoringKind._(
"EXTRACT_LOCAL_VARIABLE"); | 14560 static const RefactoringKind EXTRACT_LOCAL_VARIABLE = |
| 14561 const RefactoringKind._("EXTRACT_LOCAL_VARIABLE"); |
13598 | 14562 |
13599 static const RefactoringKind EXTRACT_METHOD = const RefactoringKind._("EXTRACT
_METHOD"); | 14563 static const RefactoringKind EXTRACT_METHOD = |
| 14564 const RefactoringKind._("EXTRACT_METHOD"); |
13600 | 14565 |
13601 static const RefactoringKind INLINE_LOCAL_VARIABLE = const RefactoringKind._("
INLINE_LOCAL_VARIABLE"); | 14566 static const RefactoringKind INLINE_LOCAL_VARIABLE = |
| 14567 const RefactoringKind._("INLINE_LOCAL_VARIABLE"); |
13602 | 14568 |
13603 static const RefactoringKind INLINE_METHOD = const RefactoringKind._("INLINE_M
ETHOD"); | 14569 static const RefactoringKind INLINE_METHOD = |
| 14570 const RefactoringKind._("INLINE_METHOD"); |
13604 | 14571 |
13605 static const RefactoringKind MOVE_FILE = const RefactoringKind._("MOVE_FILE"); | 14572 static const RefactoringKind MOVE_FILE = const RefactoringKind._("MOVE_FILE"); |
13606 | 14573 |
13607 static const RefactoringKind RENAME = const RefactoringKind._("RENAME"); | 14574 static const RefactoringKind RENAME = const RefactoringKind._("RENAME"); |
13608 | 14575 |
13609 static const RefactoringKind SORT_MEMBERS = const RefactoringKind._("SORT_MEMB
ERS"); | 14576 static const RefactoringKind SORT_MEMBERS = |
| 14577 const RefactoringKind._("SORT_MEMBERS"); |
13610 | 14578 |
13611 /** | 14579 /** |
13612 * A list containing all of the enum values that are defined. | 14580 * A list containing all of the enum values that are defined. |
13613 */ | 14581 */ |
13614 static const List<RefactoringKind> VALUES = const <RefactoringKind>[CONVERT_GE
TTER_TO_METHOD, CONVERT_METHOD_TO_GETTER, EXTRACT_LOCAL_VARIABLE, EXTRACT_METHOD
, INLINE_LOCAL_VARIABLE, INLINE_METHOD, MOVE_FILE, RENAME, SORT_MEMBERS]; | 14582 static const List<RefactoringKind> VALUES = const <RefactoringKind>[ |
| 14583 CONVERT_GETTER_TO_METHOD, |
| 14584 CONVERT_METHOD_TO_GETTER, |
| 14585 EXTRACT_LOCAL_VARIABLE, |
| 14586 EXTRACT_METHOD, |
| 14587 INLINE_LOCAL_VARIABLE, |
| 14588 INLINE_METHOD, |
| 14589 MOVE_FILE, |
| 14590 RENAME, |
| 14591 SORT_MEMBERS |
| 14592 ]; |
13615 | 14593 |
13616 final String name; | 14594 final String name; |
13617 | 14595 |
13618 const RefactoringKind._(this.name); | 14596 const RefactoringKind._(this.name); |
13619 | 14597 |
13620 factory RefactoringKind(String name) { | 14598 factory RefactoringKind(String name) { |
13621 switch (name) { | 14599 switch (name) { |
13622 case "CONVERT_GETTER_TO_METHOD": | 14600 case "CONVERT_GETTER_TO_METHOD": |
13623 return CONVERT_GETTER_TO_METHOD; | 14601 return CONVERT_GETTER_TO_METHOD; |
13624 case "CONVERT_METHOD_TO_GETTER": | 14602 case "CONVERT_METHOD_TO_GETTER": |
13625 return CONVERT_METHOD_TO_GETTER; | 14603 return CONVERT_METHOD_TO_GETTER; |
13626 case "EXTRACT_LOCAL_VARIABLE": | 14604 case "EXTRACT_LOCAL_VARIABLE": |
13627 return EXTRACT_LOCAL_VARIABLE; | 14605 return EXTRACT_LOCAL_VARIABLE; |
13628 case "EXTRACT_METHOD": | 14606 case "EXTRACT_METHOD": |
13629 return EXTRACT_METHOD; | 14607 return EXTRACT_METHOD; |
13630 case "INLINE_LOCAL_VARIABLE": | 14608 case "INLINE_LOCAL_VARIABLE": |
13631 return INLINE_LOCAL_VARIABLE; | 14609 return INLINE_LOCAL_VARIABLE; |
13632 case "INLINE_METHOD": | 14610 case "INLINE_METHOD": |
13633 return INLINE_METHOD; | 14611 return INLINE_METHOD; |
13634 case "MOVE_FILE": | 14612 case "MOVE_FILE": |
13635 return MOVE_FILE; | 14613 return MOVE_FILE; |
13636 case "RENAME": | 14614 case "RENAME": |
13637 return RENAME; | 14615 return RENAME; |
13638 case "SORT_MEMBERS": | 14616 case "SORT_MEMBERS": |
13639 return SORT_MEMBERS; | 14617 return SORT_MEMBERS; |
13640 } | 14618 } |
13641 throw new Exception('Illegal enum value: $name'); | 14619 throw new Exception('Illegal enum value: $name'); |
13642 } | 14620 } |
13643 | 14621 |
13644 factory RefactoringKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 14622 factory RefactoringKind.fromJson( |
| 14623 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
13645 if (json is String) { | 14624 if (json is String) { |
13646 try { | 14625 try { |
13647 return new RefactoringKind(json); | 14626 return new RefactoringKind(json); |
13648 } catch(_) { | 14627 } catch (_) { |
13649 // Fall through | 14628 // Fall through |
13650 } | 14629 } |
13651 } | 14630 } |
13652 throw jsonDecoder.mismatch(jsonPath, "RefactoringKind", json); | 14631 throw jsonDecoder.mismatch(jsonPath, "RefactoringKind", json); |
13653 } | 14632 } |
13654 | 14633 |
13655 @override | 14634 @override |
13656 String toString() => "RefactoringKind.$name"; | 14635 String toString() => "RefactoringKind.$name"; |
13657 | 14636 |
13658 String toJson() => name; | 14637 String toJson() => name; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13746 | 14725 |
13747 /** | 14726 /** |
13748 * The parameter list of the parameter's function type. If the parameter is | 14727 * The parameter list of the parameter's function type. If the parameter is |
13749 * not of a function type, this field will not be defined. If the function | 14728 * not of a function type, this field will not be defined. If the function |
13750 * type has zero parameters, this field will have a value of "()". | 14729 * type has zero parameters, this field will have a value of "()". |
13751 */ | 14730 */ |
13752 void set parameters(String value) { | 14731 void set parameters(String value) { |
13753 this._parameters = value; | 14732 this._parameters = value; |
13754 } | 14733 } |
13755 | 14734 |
13756 RefactoringMethodParameter(RefactoringMethodParameterKind kind, String type, S
tring name, {String id, String parameters}) { | 14735 RefactoringMethodParameter( |
| 14736 RefactoringMethodParameterKind kind, String type, String name, |
| 14737 {String id, String parameters}) { |
13757 this.id = id; | 14738 this.id = id; |
13758 this.kind = kind; | 14739 this.kind = kind; |
13759 this.type = type; | 14740 this.type = type; |
13760 this.name = name; | 14741 this.name = name; |
13761 this.parameters = parameters; | 14742 this.parameters = parameters; |
13762 } | 14743 } |
13763 | 14744 |
13764 factory RefactoringMethodParameter.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 14745 factory RefactoringMethodParameter.fromJson( |
| 14746 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
13765 if (json == null) { | 14747 if (json == null) { |
13766 json = {}; | 14748 json = {}; |
13767 } | 14749 } |
13768 if (json is Map) { | 14750 if (json is Map) { |
13769 String id; | 14751 String id; |
13770 if (json.containsKey("id")) { | 14752 if (json.containsKey("id")) { |
13771 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 14753 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
13772 } | 14754 } |
13773 RefactoringMethodParameterKind kind; | 14755 RefactoringMethodParameterKind kind; |
13774 if (json.containsKey("kind")) { | 14756 if (json.containsKey("kind")) { |
13775 kind = new RefactoringMethodParameterKind.fromJson(jsonDecoder, jsonPath
+ ".kind", json["kind"]); | 14757 kind = new RefactoringMethodParameterKind.fromJson( |
| 14758 jsonDecoder, jsonPath + ".kind", json["kind"]); |
13776 } else { | 14759 } else { |
13777 throw jsonDecoder.missingKey(jsonPath, "kind"); | 14760 throw jsonDecoder.missingKey(jsonPath, "kind"); |
13778 } | 14761 } |
13779 String type; | 14762 String type; |
13780 if (json.containsKey("type")) { | 14763 if (json.containsKey("type")) { |
13781 type = jsonDecoder.decodeString(jsonPath + ".type", json["type"]); | 14764 type = jsonDecoder.decodeString(jsonPath + ".type", json["type"]); |
13782 } else { | 14765 } else { |
13783 throw jsonDecoder.missingKey(jsonPath, "type"); | 14766 throw jsonDecoder.missingKey(jsonPath, "type"); |
13784 } | 14767 } |
13785 String name; | 14768 String name; |
13786 if (json.containsKey("name")) { | 14769 if (json.containsKey("name")) { |
13787 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); | 14770 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
13788 } else { | 14771 } else { |
13789 throw jsonDecoder.missingKey(jsonPath, "name"); | 14772 throw jsonDecoder.missingKey(jsonPath, "name"); |
13790 } | 14773 } |
13791 String parameters; | 14774 String parameters; |
13792 if (json.containsKey("parameters")) { | 14775 if (json.containsKey("parameters")) { |
13793 parameters = jsonDecoder.decodeString(jsonPath + ".parameters", json["pa
rameters"]); | 14776 parameters = jsonDecoder.decodeString( |
| 14777 jsonPath + ".parameters", json["parameters"]); |
13794 } | 14778 } |
13795 return new RefactoringMethodParameter(kind, type, name, id: id, parameters
: parameters); | 14779 return new RefactoringMethodParameter(kind, type, name, |
| 14780 id: id, parameters: parameters); |
13796 } else { | 14781 } else { |
13797 throw jsonDecoder.mismatch(jsonPath, "RefactoringMethodParameter", json); | 14782 throw jsonDecoder.mismatch(jsonPath, "RefactoringMethodParameter", json); |
13798 } | 14783 } |
13799 } | 14784 } |
13800 | 14785 |
13801 Map<String, dynamic> toJson() { | 14786 Map<String, dynamic> toJson() { |
13802 Map<String, dynamic> result = {}; | 14787 Map<String, dynamic> result = {}; |
13803 if (id != null) { | 14788 if (id != null) { |
13804 result["id"] = id; | 14789 result["id"] = id; |
13805 } | 14790 } |
13806 result["kind"] = kind.toJson(); | 14791 result["kind"] = kind.toJson(); |
13807 result["type"] = type; | 14792 result["type"] = type; |
13808 result["name"] = name; | 14793 result["name"] = name; |
13809 if (parameters != null) { | 14794 if (parameters != null) { |
13810 result["parameters"] = parameters; | 14795 result["parameters"] = parameters; |
13811 } | 14796 } |
13812 return result; | 14797 return result; |
13813 } | 14798 } |
13814 | 14799 |
13815 @override | 14800 @override |
13816 String toString() => JSON.encode(toJson()); | 14801 String toString() => JSON.encode(toJson()); |
13817 | 14802 |
13818 @override | 14803 @override |
13819 bool operator==(other) { | 14804 bool operator ==(other) { |
13820 if (other is RefactoringMethodParameter) { | 14805 if (other is RefactoringMethodParameter) { |
13821 return id == other.id && | 14806 return id == other.id && |
13822 kind == other.kind && | 14807 kind == other.kind && |
13823 type == other.type && | 14808 type == other.type && |
13824 name == other.name && | 14809 name == other.name && |
13825 parameters == other.parameters; | 14810 parameters == other.parameters; |
13826 } | 14811 } |
13827 return false; | 14812 return false; |
13828 } | 14813 } |
13829 | 14814 |
(...skipping 13 matching lines...) Expand all Loading... |
13843 * RefactoringFeedback | 14828 * RefactoringFeedback |
13844 * | 14829 * |
13845 * { | 14830 * { |
13846 * } | 14831 * } |
13847 * | 14832 * |
13848 * Clients may not extend, implement or mix-in this class. | 14833 * Clients may not extend, implement or mix-in this class. |
13849 */ | 14834 */ |
13850 class RefactoringFeedback implements HasToJson { | 14835 class RefactoringFeedback implements HasToJson { |
13851 RefactoringFeedback(); | 14836 RefactoringFeedback(); |
13852 | 14837 |
13853 factory RefactoringFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json, Map responseJson) { | 14838 factory RefactoringFeedback.fromJson( |
13854 return refactoringFeedbackFromJson(jsonDecoder, jsonPath, json, responseJson
); | 14839 JsonDecoder jsonDecoder, String jsonPath, Object json, Map responseJson) { |
| 14840 return refactoringFeedbackFromJson( |
| 14841 jsonDecoder, jsonPath, json, responseJson); |
13855 } | 14842 } |
13856 | 14843 |
13857 Map<String, dynamic> toJson() { | 14844 Map<String, dynamic> toJson() { |
13858 Map<String, dynamic> result = {}; | 14845 Map<String, dynamic> result = {}; |
13859 return result; | 14846 return result; |
13860 } | 14847 } |
13861 | 14848 |
13862 @override | 14849 @override |
13863 String toString() => JSON.encode(toJson()); | 14850 String toString() => JSON.encode(toJson()); |
13864 | 14851 |
13865 @override | 14852 @override |
13866 bool operator==(other) { | 14853 bool operator ==(other) { |
13867 if (other is RefactoringFeedback) { | 14854 if (other is RefactoringFeedback) { |
13868 return true; | 14855 return true; |
13869 } | 14856 } |
13870 return false; | 14857 return false; |
13871 } | 14858 } |
13872 | 14859 |
13873 @override | 14860 @override |
13874 int get hashCode { | 14861 int get hashCode { |
13875 int hash = 0; | 14862 int hash = 0; |
13876 return JenkinsSmiHash.finish(hash); | 14863 return JenkinsSmiHash.finish(hash); |
13877 } | 14864 } |
13878 } | 14865 } |
13879 | 14866 |
13880 /** | 14867 /** |
13881 * RefactoringOptions | 14868 * RefactoringOptions |
13882 * | 14869 * |
13883 * { | 14870 * { |
13884 * } | 14871 * } |
13885 * | 14872 * |
13886 * Clients may not extend, implement or mix-in this class. | 14873 * Clients may not extend, implement or mix-in this class. |
13887 */ | 14874 */ |
13888 class RefactoringOptions implements HasToJson { | 14875 class RefactoringOptions implements HasToJson { |
13889 RefactoringOptions(); | 14876 RefactoringOptions(); |
13890 | 14877 |
13891 factory RefactoringOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json, RefactoringKind kind) { | 14878 factory RefactoringOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, |
| 14879 Object json, RefactoringKind kind) { |
13892 return refactoringOptionsFromJson(jsonDecoder, jsonPath, json, kind); | 14880 return refactoringOptionsFromJson(jsonDecoder, jsonPath, json, kind); |
13893 } | 14881 } |
13894 | 14882 |
13895 Map<String, dynamic> toJson() { | 14883 Map<String, dynamic> toJson() { |
13896 Map<String, dynamic> result = {}; | 14884 Map<String, dynamic> result = {}; |
13897 return result; | 14885 return result; |
13898 } | 14886 } |
13899 | 14887 |
13900 @override | 14888 @override |
13901 String toString() => JSON.encode(toJson()); | 14889 String toString() => JSON.encode(toJson()); |
13902 | 14890 |
13903 @override | 14891 @override |
13904 bool operator==(other) { | 14892 bool operator ==(other) { |
13905 if (other is RefactoringOptions) { | 14893 if (other is RefactoringOptions) { |
13906 return true; | 14894 return true; |
13907 } | 14895 } |
13908 return false; | 14896 return false; |
13909 } | 14897 } |
13910 | 14898 |
13911 @override | 14899 @override |
13912 int get hashCode { | 14900 int get hashCode { |
13913 int hash = 0; | 14901 int hash = 0; |
13914 return JenkinsSmiHash.finish(hash); | 14902 return JenkinsSmiHash.finish(hash); |
13915 } | 14903 } |
13916 } | 14904 } |
13917 | 14905 |
13918 /** | 14906 /** |
13919 * RefactoringMethodParameterKind | 14907 * RefactoringMethodParameterKind |
13920 * | 14908 * |
13921 * enum { | 14909 * enum { |
13922 * REQUIRED | 14910 * REQUIRED |
13923 * POSITIONAL | 14911 * POSITIONAL |
13924 * NAMED | 14912 * NAMED |
13925 * } | 14913 * } |
13926 * | 14914 * |
13927 * Clients may not extend, implement or mix-in this class. | 14915 * Clients may not extend, implement or mix-in this class. |
13928 */ | 14916 */ |
13929 class RefactoringMethodParameterKind implements Enum { | 14917 class RefactoringMethodParameterKind implements Enum { |
13930 static const RefactoringMethodParameterKind REQUIRED = const RefactoringMethod
ParameterKind._("REQUIRED"); | 14918 static const RefactoringMethodParameterKind REQUIRED = |
| 14919 const RefactoringMethodParameterKind._("REQUIRED"); |
13931 | 14920 |
13932 static const RefactoringMethodParameterKind POSITIONAL = const RefactoringMeth
odParameterKind._("POSITIONAL"); | 14921 static const RefactoringMethodParameterKind POSITIONAL = |
| 14922 const RefactoringMethodParameterKind._("POSITIONAL"); |
13933 | 14923 |
13934 static const RefactoringMethodParameterKind NAMED = const RefactoringMethodPar
ameterKind._("NAMED"); | 14924 static const RefactoringMethodParameterKind NAMED = |
| 14925 const RefactoringMethodParameterKind._("NAMED"); |
13935 | 14926 |
13936 /** | 14927 /** |
13937 * A list containing all of the enum values that are defined. | 14928 * A list containing all of the enum values that are defined. |
13938 */ | 14929 */ |
13939 static const List<RefactoringMethodParameterKind> VALUES = const <RefactoringM
ethodParameterKind>[REQUIRED, POSITIONAL, NAMED]; | 14930 static const List<RefactoringMethodParameterKind> VALUES = |
| 14931 const <RefactoringMethodParameterKind>[REQUIRED, POSITIONAL, NAMED]; |
13940 | 14932 |
13941 final String name; | 14933 final String name; |
13942 | 14934 |
13943 const RefactoringMethodParameterKind._(this.name); | 14935 const RefactoringMethodParameterKind._(this.name); |
13944 | 14936 |
13945 factory RefactoringMethodParameterKind(String name) { | 14937 factory RefactoringMethodParameterKind(String name) { |
13946 switch (name) { | 14938 switch (name) { |
13947 case "REQUIRED": | 14939 case "REQUIRED": |
13948 return REQUIRED; | 14940 return REQUIRED; |
13949 case "POSITIONAL": | 14941 case "POSITIONAL": |
13950 return POSITIONAL; | 14942 return POSITIONAL; |
13951 case "NAMED": | 14943 case "NAMED": |
13952 return NAMED; | 14944 return NAMED; |
13953 } | 14945 } |
13954 throw new Exception('Illegal enum value: $name'); | 14946 throw new Exception('Illegal enum value: $name'); |
13955 } | 14947 } |
13956 | 14948 |
13957 factory RefactoringMethodParameterKind.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 14949 factory RefactoringMethodParameterKind.fromJson( |
| 14950 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
13958 if (json is String) { | 14951 if (json is String) { |
13959 try { | 14952 try { |
13960 return new RefactoringMethodParameterKind(json); | 14953 return new RefactoringMethodParameterKind(json); |
13961 } catch(_) { | 14954 } catch (_) { |
13962 // Fall through | 14955 // Fall through |
13963 } | 14956 } |
13964 } | 14957 } |
13965 throw jsonDecoder.mismatch(jsonPath, "RefactoringMethodParameterKind", json)
; | 14958 throw jsonDecoder.mismatch( |
| 14959 jsonPath, "RefactoringMethodParameterKind", json); |
13966 } | 14960 } |
13967 | 14961 |
13968 @override | 14962 @override |
13969 String toString() => "RefactoringMethodParameterKind.$name"; | 14963 String toString() => "RefactoringMethodParameterKind.$name"; |
13970 | 14964 |
13971 String toJson() => name; | 14965 String toJson() => name; |
13972 } | 14966 } |
13973 | 14967 |
13974 /** | 14968 /** |
13975 * RefactoringProblem | 14969 * RefactoringProblem |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14024 | 15018 |
14025 /** | 15019 /** |
14026 * The location of the problem being represented. This field is omitted | 15020 * The location of the problem being represented. This field is omitted |
14027 * unless there is a specific location associated with the problem (such as a | 15021 * unless there is a specific location associated with the problem (such as a |
14028 * location where an element being renamed will be shadowed). | 15022 * location where an element being renamed will be shadowed). |
14029 */ | 15023 */ |
14030 void set location(Location value) { | 15024 void set location(Location value) { |
14031 this._location = value; | 15025 this._location = value; |
14032 } | 15026 } |
14033 | 15027 |
14034 RefactoringProblem(RefactoringProblemSeverity severity, String message, {Locat
ion location}) { | 15028 RefactoringProblem(RefactoringProblemSeverity severity, String message, |
| 15029 {Location location}) { |
14035 this.severity = severity; | 15030 this.severity = severity; |
14036 this.message = message; | 15031 this.message = message; |
14037 this.location = location; | 15032 this.location = location; |
14038 } | 15033 } |
14039 | 15034 |
14040 factory RefactoringProblem.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 15035 factory RefactoringProblem.fromJson( |
| 15036 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
14041 if (json == null) { | 15037 if (json == null) { |
14042 json = {}; | 15038 json = {}; |
14043 } | 15039 } |
14044 if (json is Map) { | 15040 if (json is Map) { |
14045 RefactoringProblemSeverity severity; | 15041 RefactoringProblemSeverity severity; |
14046 if (json.containsKey("severity")) { | 15042 if (json.containsKey("severity")) { |
14047 severity = new RefactoringProblemSeverity.fromJson(jsonDecoder, jsonPath
+ ".severity", json["severity"]); | 15043 severity = new RefactoringProblemSeverity.fromJson( |
| 15044 jsonDecoder, jsonPath + ".severity", json["severity"]); |
14048 } else { | 15045 } else { |
14049 throw jsonDecoder.missingKey(jsonPath, "severity"); | 15046 throw jsonDecoder.missingKey(jsonPath, "severity"); |
14050 } | 15047 } |
14051 String message; | 15048 String message; |
14052 if (json.containsKey("message")) { | 15049 if (json.containsKey("message")) { |
14053 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); | 15050 message = |
| 15051 jsonDecoder.decodeString(jsonPath + ".message", json["message"]); |
14054 } else { | 15052 } else { |
14055 throw jsonDecoder.missingKey(jsonPath, "message"); | 15053 throw jsonDecoder.missingKey(jsonPath, "message"); |
14056 } | 15054 } |
14057 Location location; | 15055 Location location; |
14058 if (json.containsKey("location")) { | 15056 if (json.containsKey("location")) { |
14059 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); | 15057 location = new Location.fromJson( |
| 15058 jsonDecoder, jsonPath + ".location", json["location"]); |
14060 } | 15059 } |
14061 return new RefactoringProblem(severity, message, location: location); | 15060 return new RefactoringProblem(severity, message, location: location); |
14062 } else { | 15061 } else { |
14063 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblem", json); | 15062 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblem", json); |
14064 } | 15063 } |
14065 } | 15064 } |
14066 | 15065 |
14067 Map<String, dynamic> toJson() { | 15066 Map<String, dynamic> toJson() { |
14068 Map<String, dynamic> result = {}; | 15067 Map<String, dynamic> result = {}; |
14069 result["severity"] = severity.toJson(); | 15068 result["severity"] = severity.toJson(); |
14070 result["message"] = message; | 15069 result["message"] = message; |
14071 if (location != null) { | 15070 if (location != null) { |
14072 result["location"] = location.toJson(); | 15071 result["location"] = location.toJson(); |
14073 } | 15072 } |
14074 return result; | 15073 return result; |
14075 } | 15074 } |
14076 | 15075 |
14077 @override | 15076 @override |
14078 String toString() => JSON.encode(toJson()); | 15077 String toString() => JSON.encode(toJson()); |
14079 | 15078 |
14080 @override | 15079 @override |
14081 bool operator==(other) { | 15080 bool operator ==(other) { |
14082 if (other is RefactoringProblem) { | 15081 if (other is RefactoringProblem) { |
14083 return severity == other.severity && | 15082 return severity == other.severity && |
14084 message == other.message && | 15083 message == other.message && |
14085 location == other.location; | 15084 location == other.location; |
14086 } | 15085 } |
14087 return false; | 15086 return false; |
14088 } | 15087 } |
14089 | 15088 |
14090 @override | 15089 @override |
14091 int get hashCode { | 15090 int get hashCode { |
(...skipping 14 matching lines...) Expand all Loading... |
14106 * ERROR | 15105 * ERROR |
14107 * FATAL | 15106 * FATAL |
14108 * } | 15107 * } |
14109 * | 15108 * |
14110 * Clients may not extend, implement or mix-in this class. | 15109 * Clients may not extend, implement or mix-in this class. |
14111 */ | 15110 */ |
14112 class RefactoringProblemSeverity implements Enum { | 15111 class RefactoringProblemSeverity implements Enum { |
14113 /** | 15112 /** |
14114 * A minor code problem. No example, because it is not used yet. | 15113 * A minor code problem. No example, because it is not used yet. |
14115 */ | 15114 */ |
14116 static const RefactoringProblemSeverity INFO = const RefactoringProblemSeverit
y._("INFO"); | 15115 static const RefactoringProblemSeverity INFO = |
| 15116 const RefactoringProblemSeverity._("INFO"); |
14117 | 15117 |
14118 /** | 15118 /** |
14119 * A minor code problem. For example names of local variables should be camel | 15119 * A minor code problem. For example names of local variables should be camel |
14120 * case and start with a lower case letter. Staring the name of a variable | 15120 * case and start with a lower case letter. Staring the name of a variable |
14121 * with an upper case is OK from the language point of view, but it is nice | 15121 * with an upper case is OK from the language point of view, but it is nice |
14122 * to warn the user. | 15122 * to warn the user. |
14123 */ | 15123 */ |
14124 static const RefactoringProblemSeverity WARNING = const RefactoringProblemSeve
rity._("WARNING"); | 15124 static const RefactoringProblemSeverity WARNING = |
| 15125 const RefactoringProblemSeverity._("WARNING"); |
14125 | 15126 |
14126 /** | 15127 /** |
14127 * The refactoring technically can be performed, but there is a logical | 15128 * The refactoring technically can be performed, but there is a logical |
14128 * problem. For example the name of a local variable being extracted | 15129 * problem. For example the name of a local variable being extracted |
14129 * conflicts with another name in the scope, or duplicate parameter names in | 15130 * conflicts with another name in the scope, or duplicate parameter names in |
14130 * the method being extracted, or a conflict between a parameter name and a | 15131 * the method being extracted, or a conflict between a parameter name and a |
14131 * local variable, etc. In some cases the location of the problem is also | 15132 * local variable, etc. In some cases the location of the problem is also |
14132 * provided, so the IDE can show user the location and the problem, and let | 15133 * provided, so the IDE can show user the location and the problem, and let |
14133 * the user decide whether she wants to perform the refactoring. For example | 15134 * the user decide whether she wants to perform the refactoring. For example |
14134 * the name conflict might be expected, and the user wants to fix it | 15135 * the name conflict might be expected, and the user wants to fix it |
14135 * afterwards. | 15136 * afterwards. |
14136 */ | 15137 */ |
14137 static const RefactoringProblemSeverity ERROR = const RefactoringProblemSeveri
ty._("ERROR"); | 15138 static const RefactoringProblemSeverity ERROR = |
| 15139 const RefactoringProblemSeverity._("ERROR"); |
14138 | 15140 |
14139 /** | 15141 /** |
14140 * A fatal error, which prevents performing the refactoring. For example the | 15142 * A fatal error, which prevents performing the refactoring. For example the |
14141 * name of a local variable being extracted is not a valid identifier, or | 15143 * name of a local variable being extracted is not a valid identifier, or |
14142 * selection is not a valid expression. | 15144 * selection is not a valid expression. |
14143 */ | 15145 */ |
14144 static const RefactoringProblemSeverity FATAL = const RefactoringProblemSeveri
ty._("FATAL"); | 15146 static const RefactoringProblemSeverity FATAL = |
| 15147 const RefactoringProblemSeverity._("FATAL"); |
14145 | 15148 |
14146 /** | 15149 /** |
14147 * A list containing all of the enum values that are defined. | 15150 * A list containing all of the enum values that are defined. |
14148 */ | 15151 */ |
14149 static const List<RefactoringProblemSeverity> VALUES = const <RefactoringProbl
emSeverity>[INFO, WARNING, ERROR, FATAL]; | 15152 static const List<RefactoringProblemSeverity> VALUES = |
| 15153 const <RefactoringProblemSeverity>[INFO, WARNING, ERROR, FATAL]; |
14150 | 15154 |
14151 final String name; | 15155 final String name; |
14152 | 15156 |
14153 const RefactoringProblemSeverity._(this.name); | 15157 const RefactoringProblemSeverity._(this.name); |
14154 | 15158 |
14155 factory RefactoringProblemSeverity(String name) { | 15159 factory RefactoringProblemSeverity(String name) { |
14156 switch (name) { | 15160 switch (name) { |
14157 case "INFO": | 15161 case "INFO": |
14158 return INFO; | 15162 return INFO; |
14159 case "WARNING": | 15163 case "WARNING": |
14160 return WARNING; | 15164 return WARNING; |
14161 case "ERROR": | 15165 case "ERROR": |
14162 return ERROR; | 15166 return ERROR; |
14163 case "FATAL": | 15167 case "FATAL": |
14164 return FATAL; | 15168 return FATAL; |
14165 } | 15169 } |
14166 throw new Exception('Illegal enum value: $name'); | 15170 throw new Exception('Illegal enum value: $name'); |
14167 } | 15171 } |
14168 | 15172 |
14169 factory RefactoringProblemSeverity.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 15173 factory RefactoringProblemSeverity.fromJson( |
| 15174 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
14170 if (json is String) { | 15175 if (json is String) { |
14171 try { | 15176 try { |
14172 return new RefactoringProblemSeverity(json); | 15177 return new RefactoringProblemSeverity(json); |
14173 } catch(_) { | 15178 } catch (_) { |
14174 // Fall through | 15179 // Fall through |
14175 } | 15180 } |
14176 } | 15181 } |
14177 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblemSeverity", json); | 15182 throw jsonDecoder.mismatch(jsonPath, "RefactoringProblemSeverity", json); |
14178 } | 15183 } |
14179 | 15184 |
14180 /** | 15185 /** |
14181 * Returns the [RefactoringProblemSeverity] with the maximal severity. | 15186 * Returns the [RefactoringProblemSeverity] with the maximal severity. |
14182 */ | 15187 */ |
14183 static RefactoringProblemSeverity max(RefactoringProblemSeverity a, Refactorin
gProblemSeverity b) => | 15188 static RefactoringProblemSeverity max( |
| 15189 RefactoringProblemSeverity a, RefactoringProblemSeverity b) => |
14184 maxRefactoringProblemSeverity(a, b); | 15190 maxRefactoringProblemSeverity(a, b); |
14185 | 15191 |
14186 @override | 15192 @override |
14187 String toString() => "RefactoringProblemSeverity.$name"; | 15193 String toString() => "RefactoringProblemSeverity.$name"; |
14188 | 15194 |
14189 String toJson() => name; | 15195 String toJson() => name; |
14190 } | 15196 } |
14191 | 15197 |
14192 /** | 15198 /** |
14193 * RemoveContentOverlay | 15199 * RemoveContentOverlay |
14194 * | 15200 * |
14195 * { | 15201 * { |
14196 * "type": "remove" | 15202 * "type": "remove" |
14197 * } | 15203 * } |
14198 * | 15204 * |
14199 * Clients may not extend, implement or mix-in this class. | 15205 * Clients may not extend, implement or mix-in this class. |
14200 */ | 15206 */ |
14201 class RemoveContentOverlay implements HasToJson { | 15207 class RemoveContentOverlay implements HasToJson { |
14202 RemoveContentOverlay(); | 15208 RemoveContentOverlay(); |
14203 | 15209 |
14204 factory RemoveContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 15210 factory RemoveContentOverlay.fromJson( |
| 15211 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
14205 if (json == null) { | 15212 if (json == null) { |
14206 json = {}; | 15213 json = {}; |
14207 } | 15214 } |
14208 if (json is Map) { | 15215 if (json is Map) { |
14209 if (json["type"] != "remove") { | 15216 if (json["type"] != "remove") { |
14210 throw jsonDecoder.mismatch(jsonPath, "equal " + "remove", json); | 15217 throw jsonDecoder.mismatch(jsonPath, "equal " + "remove", json); |
14211 } | 15218 } |
14212 return new RemoveContentOverlay(); | 15219 return new RemoveContentOverlay(); |
14213 } else { | 15220 } else { |
14214 throw jsonDecoder.mismatch(jsonPath, "RemoveContentOverlay", json); | 15221 throw jsonDecoder.mismatch(jsonPath, "RemoveContentOverlay", json); |
14215 } | 15222 } |
14216 } | 15223 } |
14217 | 15224 |
14218 Map<String, dynamic> toJson() { | 15225 Map<String, dynamic> toJson() { |
14219 Map<String, dynamic> result = {}; | 15226 Map<String, dynamic> result = {}; |
14220 result["type"] = "remove"; | 15227 result["type"] = "remove"; |
14221 return result; | 15228 return result; |
14222 } | 15229 } |
14223 | 15230 |
14224 @override | 15231 @override |
14225 String toString() => JSON.encode(toJson()); | 15232 String toString() => JSON.encode(toJson()); |
14226 | 15233 |
14227 @override | 15234 @override |
14228 bool operator==(other) { | 15235 bool operator ==(other) { |
14229 if (other is RemoveContentOverlay) { | 15236 if (other is RemoveContentOverlay) { |
14230 return true; | 15237 return true; |
14231 } | 15238 } |
14232 return false; | 15239 return false; |
14233 } | 15240 } |
14234 | 15241 |
14235 @override | 15242 @override |
14236 int get hashCode { | 15243 int get hashCode { |
14237 int hash = 0; | 15244 int hash = 0; |
14238 hash = JenkinsSmiHash.combine(hash, 114870849); | 15245 hash = JenkinsSmiHash.combine(hash, 114870849); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14297 void set stackTrace(String value) { | 15304 void set stackTrace(String value) { |
14298 this._stackTrace = value; | 15305 this._stackTrace = value; |
14299 } | 15306 } |
14300 | 15307 |
14301 RequestError(RequestErrorCode code, String message, {String stackTrace}) { | 15308 RequestError(RequestErrorCode code, String message, {String stackTrace}) { |
14302 this.code = code; | 15309 this.code = code; |
14303 this.message = message; | 15310 this.message = message; |
14304 this.stackTrace = stackTrace; | 15311 this.stackTrace = stackTrace; |
14305 } | 15312 } |
14306 | 15313 |
14307 factory RequestError.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 15314 factory RequestError.fromJson( |
| 15315 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
14308 if (json == null) { | 15316 if (json == null) { |
14309 json = {}; | 15317 json = {}; |
14310 } | 15318 } |
14311 if (json is Map) { | 15319 if (json is Map) { |
14312 RequestErrorCode code; | 15320 RequestErrorCode code; |
14313 if (json.containsKey("code")) { | 15321 if (json.containsKey("code")) { |
14314 code = new RequestErrorCode.fromJson(jsonDecoder, jsonPath + ".code", js
on["code"]); | 15322 code = new RequestErrorCode.fromJson( |
| 15323 jsonDecoder, jsonPath + ".code", json["code"]); |
14315 } else { | 15324 } else { |
14316 throw jsonDecoder.missingKey(jsonPath, "code"); | 15325 throw jsonDecoder.missingKey(jsonPath, "code"); |
14317 } | 15326 } |
14318 String message; | 15327 String message; |
14319 if (json.containsKey("message")) { | 15328 if (json.containsKey("message")) { |
14320 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); | 15329 message = |
| 15330 jsonDecoder.decodeString(jsonPath + ".message", json["message"]); |
14321 } else { | 15331 } else { |
14322 throw jsonDecoder.missingKey(jsonPath, "message"); | 15332 throw jsonDecoder.missingKey(jsonPath, "message"); |
14323 } | 15333 } |
14324 String stackTrace; | 15334 String stackTrace; |
14325 if (json.containsKey("stackTrace")) { | 15335 if (json.containsKey("stackTrace")) { |
14326 stackTrace = jsonDecoder.decodeString(jsonPath + ".stackTrace", json["st
ackTrace"]); | 15336 stackTrace = jsonDecoder.decodeString( |
| 15337 jsonPath + ".stackTrace", json["stackTrace"]); |
14327 } | 15338 } |
14328 return new RequestError(code, message, stackTrace: stackTrace); | 15339 return new RequestError(code, message, stackTrace: stackTrace); |
14329 } else { | 15340 } else { |
14330 throw jsonDecoder.mismatch(jsonPath, "RequestError", json); | 15341 throw jsonDecoder.mismatch(jsonPath, "RequestError", json); |
14331 } | 15342 } |
14332 } | 15343 } |
14333 | 15344 |
14334 Map<String, dynamic> toJson() { | 15345 Map<String, dynamic> toJson() { |
14335 Map<String, dynamic> result = {}; | 15346 Map<String, dynamic> result = {}; |
14336 result["code"] = code.toJson(); | 15347 result["code"] = code.toJson(); |
14337 result["message"] = message; | 15348 result["message"] = message; |
14338 if (stackTrace != null) { | 15349 if (stackTrace != null) { |
14339 result["stackTrace"] = stackTrace; | 15350 result["stackTrace"] = stackTrace; |
14340 } | 15351 } |
14341 return result; | 15352 return result; |
14342 } | 15353 } |
14343 | 15354 |
14344 @override | 15355 @override |
14345 String toString() => JSON.encode(toJson()); | 15356 String toString() => JSON.encode(toJson()); |
14346 | 15357 |
14347 @override | 15358 @override |
14348 bool operator==(other) { | 15359 bool operator ==(other) { |
14349 if (other is RequestError) { | 15360 if (other is RequestError) { |
14350 return code == other.code && | 15361 return code == other.code && |
14351 message == other.message && | 15362 message == other.message && |
14352 stackTrace == other.stackTrace; | 15363 stackTrace == other.stackTrace; |
14353 } | 15364 } |
14354 return false; | 15365 return false; |
14355 } | 15366 } |
14356 | 15367 |
14357 @override | 15368 @override |
14358 int get hashCode { | 15369 int get hashCode { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14396 * } | 15407 * } |
14397 * | 15408 * |
14398 * Clients may not extend, implement or mix-in this class. | 15409 * Clients may not extend, implement or mix-in this class. |
14399 */ | 15410 */ |
14400 class RequestErrorCode implements Enum { | 15411 class RequestErrorCode implements Enum { |
14401 /** | 15412 /** |
14402 * An "analysis.getErrors" or "analysis.getNavigation" request could not be | 15413 * An "analysis.getErrors" or "analysis.getNavigation" request could not be |
14403 * satisfied because the content of the file changed before the requested | 15414 * satisfied because the content of the file changed before the requested |
14404 * results could be computed. | 15415 * results could be computed. |
14405 */ | 15416 */ |
14406 static const RequestErrorCode CONTENT_MODIFIED = const RequestErrorCode._("CON
TENT_MODIFIED"); | 15417 static const RequestErrorCode CONTENT_MODIFIED = |
| 15418 const RequestErrorCode._("CONTENT_MODIFIED"); |
14407 | 15419 |
14408 /** | 15420 /** |
14409 * The server was unable to open a port for the diagnostic server. | 15421 * The server was unable to open a port for the diagnostic server. |
14410 */ | 15422 */ |
14411 static const RequestErrorCode DEBUG_PORT_COULD_NOT_BE_OPENED = const RequestEr
rorCode._("DEBUG_PORT_COULD_NOT_BE_OPENED"); | 15423 static const RequestErrorCode DEBUG_PORT_COULD_NOT_BE_OPENED = |
| 15424 const RequestErrorCode._("DEBUG_PORT_COULD_NOT_BE_OPENED"); |
14412 | 15425 |
14413 /** | 15426 /** |
14414 * A request specified a FilePath which does not match a file in an analysis | 15427 * A request specified a FilePath which does not match a file in an analysis |
14415 * root, or the requested operation is not available for the file. | 15428 * root, or the requested operation is not available for the file. |
14416 */ | 15429 */ |
14417 static const RequestErrorCode FILE_NOT_ANALYZED = const RequestErrorCode._("FI
LE_NOT_ANALYZED"); | 15430 static const RequestErrorCode FILE_NOT_ANALYZED = |
| 15431 const RequestErrorCode._("FILE_NOT_ANALYZED"); |
14418 | 15432 |
14419 /** | 15433 /** |
14420 * An "edit.format" request specified a FilePath which does not match a Dart | 15434 * An "edit.format" request specified a FilePath which does not match a Dart |
14421 * file in an analysis root. | 15435 * file in an analysis root. |
14422 */ | 15436 */ |
14423 static const RequestErrorCode FORMAT_INVALID_FILE = const RequestErrorCode._("
FORMAT_INVALID_FILE"); | 15437 static const RequestErrorCode FORMAT_INVALID_FILE = |
| 15438 const RequestErrorCode._("FORMAT_INVALID_FILE"); |
14424 | 15439 |
14425 /** | 15440 /** |
14426 * An "edit.format" request specified a file that contains syntax errors. | 15441 * An "edit.format" request specified a file that contains syntax errors. |
14427 */ | 15442 */ |
14428 static const RequestErrorCode FORMAT_WITH_ERRORS = const RequestErrorCode._("F
ORMAT_WITH_ERRORS"); | 15443 static const RequestErrorCode FORMAT_WITH_ERRORS = |
| 15444 const RequestErrorCode._("FORMAT_WITH_ERRORS"); |
14429 | 15445 |
14430 /** | 15446 /** |
14431 * An "analysis.getErrors" request specified a FilePath which does not match | 15447 * An "analysis.getErrors" request specified a FilePath which does not match |
14432 * a file currently subject to analysis. | 15448 * a file currently subject to analysis. |
14433 */ | 15449 */ |
14434 static const RequestErrorCode GET_ERRORS_INVALID_FILE = const RequestErrorCode
._("GET_ERRORS_INVALID_FILE"); | 15450 static const RequestErrorCode GET_ERRORS_INVALID_FILE = |
| 15451 const RequestErrorCode._("GET_ERRORS_INVALID_FILE"); |
14435 | 15452 |
14436 /** | 15453 /** |
14437 * An "analysis.getNavigation" request specified a FilePath which does not | 15454 * An "analysis.getNavigation" request specified a FilePath which does not |
14438 * match a file currently subject to analysis. | 15455 * match a file currently subject to analysis. |
14439 */ | 15456 */ |
14440 static const RequestErrorCode GET_NAVIGATION_INVALID_FILE = const RequestError
Code._("GET_NAVIGATION_INVALID_FILE"); | 15457 static const RequestErrorCode GET_NAVIGATION_INVALID_FILE = |
| 15458 const RequestErrorCode._("GET_NAVIGATION_INVALID_FILE"); |
14441 | 15459 |
14442 /** | 15460 /** |
14443 * An "analysis.getReachableSources" request specified a FilePath which does | 15461 * An "analysis.getReachableSources" request specified a FilePath which does |
14444 * not match a file currently subject to analysis. | 15462 * not match a file currently subject to analysis. |
14445 */ | 15463 */ |
14446 static const RequestErrorCode GET_REACHABLE_SOURCES_INVALID_FILE = const Reque
stErrorCode._("GET_REACHABLE_SOURCES_INVALID_FILE"); | 15464 static const RequestErrorCode GET_REACHABLE_SOURCES_INVALID_FILE = |
| 15465 const RequestErrorCode._("GET_REACHABLE_SOURCES_INVALID_FILE"); |
14447 | 15466 |
14448 /** | 15467 /** |
14449 * A path passed as an argument to a request (such as analysis.reanalyze) is | 15468 * A path passed as an argument to a request (such as analysis.reanalyze) is |
14450 * required to be an analysis root, but isn't. | 15469 * required to be an analysis root, but isn't. |
14451 */ | 15470 */ |
14452 static const RequestErrorCode INVALID_ANALYSIS_ROOT = const RequestErrorCode._
("INVALID_ANALYSIS_ROOT"); | 15471 static const RequestErrorCode INVALID_ANALYSIS_ROOT = |
| 15472 const RequestErrorCode._("INVALID_ANALYSIS_ROOT"); |
14453 | 15473 |
14454 /** | 15474 /** |
14455 * The context root used to create an execution context does not exist. | 15475 * The context root used to create an execution context does not exist. |
14456 */ | 15476 */ |
14457 static const RequestErrorCode INVALID_EXECUTION_CONTEXT = const RequestErrorCo
de._("INVALID_EXECUTION_CONTEXT"); | 15477 static const RequestErrorCode INVALID_EXECUTION_CONTEXT = |
| 15478 const RequestErrorCode._("INVALID_EXECUTION_CONTEXT"); |
14458 | 15479 |
14459 /** | 15480 /** |
14460 * The format of the given file path is invalid, e.g. is not absolute and | 15481 * The format of the given file path is invalid, e.g. is not absolute and |
14461 * normalized. | 15482 * normalized. |
14462 */ | 15483 */ |
14463 static const RequestErrorCode INVALID_FILE_PATH_FORMAT = const RequestErrorCod
e._("INVALID_FILE_PATH_FORMAT"); | 15484 static const RequestErrorCode INVALID_FILE_PATH_FORMAT = |
| 15485 const RequestErrorCode._("INVALID_FILE_PATH_FORMAT"); |
14464 | 15486 |
14465 /** | 15487 /** |
14466 * An "analysis.updateContent" request contained a ChangeContentOverlay | 15488 * An "analysis.updateContent" request contained a ChangeContentOverlay |
14467 * object which can't be applied, due to an edit having an offset or length | 15489 * object which can't be applied, due to an edit having an offset or length |
14468 * that is out of range. | 15490 * that is out of range. |
14469 */ | 15491 */ |
14470 static const RequestErrorCode INVALID_OVERLAY_CHANGE = const RequestErrorCode.
_("INVALID_OVERLAY_CHANGE"); | 15492 static const RequestErrorCode INVALID_OVERLAY_CHANGE = |
| 15493 const RequestErrorCode._("INVALID_OVERLAY_CHANGE"); |
14471 | 15494 |
14472 /** | 15495 /** |
14473 * One of the method parameters was invalid. | 15496 * One of the method parameters was invalid. |
14474 */ | 15497 */ |
14475 static const RequestErrorCode INVALID_PARAMETER = const RequestErrorCode._("IN
VALID_PARAMETER"); | 15498 static const RequestErrorCode INVALID_PARAMETER = |
| 15499 const RequestErrorCode._("INVALID_PARAMETER"); |
14476 | 15500 |
14477 /** | 15501 /** |
14478 * A malformed request was received. | 15502 * A malformed request was received. |
14479 */ | 15503 */ |
14480 static const RequestErrorCode INVALID_REQUEST = const RequestErrorCode._("INVA
LID_REQUEST"); | 15504 static const RequestErrorCode INVALID_REQUEST = |
| 15505 const RequestErrorCode._("INVALID_REQUEST"); |
14481 | 15506 |
14482 /** | 15507 /** |
14483 * The "--no-index" flag was passed when the analysis server created, but | 15508 * The "--no-index" flag was passed when the analysis server created, but |
14484 * this API call requires an index to have been generated. | 15509 * this API call requires an index to have been generated. |
14485 */ | 15510 */ |
14486 static const RequestErrorCode NO_INDEX_GENERATED = const RequestErrorCode._("N
O_INDEX_GENERATED"); | 15511 static const RequestErrorCode NO_INDEX_GENERATED = |
| 15512 const RequestErrorCode._("NO_INDEX_GENERATED"); |
14487 | 15513 |
14488 /** | 15514 /** |
14489 * An "edit.organizeDirectives" request specified a Dart file that cannot be | 15515 * An "edit.organizeDirectives" request specified a Dart file that cannot be |
14490 * analyzed. The reason is described in the message. | 15516 * analyzed. The reason is described in the message. |
14491 */ | 15517 */ |
14492 static const RequestErrorCode ORGANIZE_DIRECTIVES_ERROR = const RequestErrorCo
de._("ORGANIZE_DIRECTIVES_ERROR"); | 15518 static const RequestErrorCode ORGANIZE_DIRECTIVES_ERROR = |
| 15519 const RequestErrorCode._("ORGANIZE_DIRECTIVES_ERROR"); |
14493 | 15520 |
14494 /** | 15521 /** |
14495 * Another refactoring request was received during processing of this one. | 15522 * Another refactoring request was received during processing of this one. |
14496 */ | 15523 */ |
14497 static const RequestErrorCode REFACTORING_REQUEST_CANCELLED = const RequestErr
orCode._("REFACTORING_REQUEST_CANCELLED"); | 15524 static const RequestErrorCode REFACTORING_REQUEST_CANCELLED = |
| 15525 const RequestErrorCode._("REFACTORING_REQUEST_CANCELLED"); |
14498 | 15526 |
14499 /** | 15527 /** |
14500 * The analysis server has already been started (and hence won't accept new | 15528 * The analysis server has already been started (and hence won't accept new |
14501 * connections). | 15529 * connections). |
14502 * | 15530 * |
14503 * This error is included for future expansion; at present the analysis | 15531 * This error is included for future expansion; at present the analysis |
14504 * server can only speak to one client at a time so this error will never | 15532 * server can only speak to one client at a time so this error will never |
14505 * occur. | 15533 * occur. |
14506 */ | 15534 */ |
14507 static const RequestErrorCode SERVER_ALREADY_STARTED = const RequestErrorCode.
_("SERVER_ALREADY_STARTED"); | 15535 static const RequestErrorCode SERVER_ALREADY_STARTED = |
| 15536 const RequestErrorCode._("SERVER_ALREADY_STARTED"); |
14508 | 15537 |
14509 /** | 15538 /** |
14510 * An internal error occurred in the analysis server. Also see the | 15539 * An internal error occurred in the analysis server. Also see the |
14511 * server.error notification. | 15540 * server.error notification. |
14512 */ | 15541 */ |
14513 static const RequestErrorCode SERVER_ERROR = const RequestErrorCode._("SERVER_
ERROR"); | 15542 static const RequestErrorCode SERVER_ERROR = |
| 15543 const RequestErrorCode._("SERVER_ERROR"); |
14514 | 15544 |
14515 /** | 15545 /** |
14516 * An "edit.sortMembers" request specified a FilePath which does not match a | 15546 * An "edit.sortMembers" request specified a FilePath which does not match a |
14517 * Dart file in an analysis root. | 15547 * Dart file in an analysis root. |
14518 */ | 15548 */ |
14519 static const RequestErrorCode SORT_MEMBERS_INVALID_FILE = const RequestErrorCo
de._("SORT_MEMBERS_INVALID_FILE"); | 15549 static const RequestErrorCode SORT_MEMBERS_INVALID_FILE = |
| 15550 const RequestErrorCode._("SORT_MEMBERS_INVALID_FILE"); |
14520 | 15551 |
14521 /** | 15552 /** |
14522 * An "edit.sortMembers" request specified a Dart file that has scan or parse | 15553 * An "edit.sortMembers" request specified a Dart file that has scan or parse |
14523 * errors. | 15554 * errors. |
14524 */ | 15555 */ |
14525 static const RequestErrorCode SORT_MEMBERS_PARSE_ERRORS = const RequestErrorCo
de._("SORT_MEMBERS_PARSE_ERRORS"); | 15556 static const RequestErrorCode SORT_MEMBERS_PARSE_ERRORS = |
| 15557 const RequestErrorCode._("SORT_MEMBERS_PARSE_ERRORS"); |
14526 | 15558 |
14527 /** | 15559 /** |
14528 * An "analysis.setPriorityFiles" request includes one or more files that are | 15560 * An "analysis.setPriorityFiles" request includes one or more files that are |
14529 * not being analyzed. | 15561 * not being analyzed. |
14530 * | 15562 * |
14531 * This is a legacy error; it will be removed before the API reaches version | 15563 * This is a legacy error; it will be removed before the API reaches version |
14532 * 1.0. | 15564 * 1.0. |
14533 */ | 15565 */ |
14534 static const RequestErrorCode UNANALYZED_PRIORITY_FILES = const RequestErrorCo
de._("UNANALYZED_PRIORITY_FILES"); | 15566 static const RequestErrorCode UNANALYZED_PRIORITY_FILES = |
| 15567 const RequestErrorCode._("UNANALYZED_PRIORITY_FILES"); |
14535 | 15568 |
14536 /** | 15569 /** |
14537 * A request was received which the analysis server does not recognize, or | 15570 * A request was received which the analysis server does not recognize, or |
14538 * cannot handle in its current configuration. | 15571 * cannot handle in its current configuration. |
14539 */ | 15572 */ |
14540 static const RequestErrorCode UNKNOWN_REQUEST = const RequestErrorCode._("UNKN
OWN_REQUEST"); | 15573 static const RequestErrorCode UNKNOWN_REQUEST = |
| 15574 const RequestErrorCode._("UNKNOWN_REQUEST"); |
14541 | 15575 |
14542 /** | 15576 /** |
14543 * The analysis server was requested to perform an action on a source that | 15577 * The analysis server was requested to perform an action on a source that |
14544 * does not exist. | 15578 * does not exist. |
14545 */ | 15579 */ |
14546 static const RequestErrorCode UNKNOWN_SOURCE = const RequestErrorCode._("UNKNO
WN_SOURCE"); | 15580 static const RequestErrorCode UNKNOWN_SOURCE = |
| 15581 const RequestErrorCode._("UNKNOWN_SOURCE"); |
14547 | 15582 |
14548 /** | 15583 /** |
14549 * The analysis server was requested to perform an action which is not | 15584 * The analysis server was requested to perform an action which is not |
14550 * supported. | 15585 * supported. |
14551 * | 15586 * |
14552 * This is a legacy error; it will be removed before the API reaches version | 15587 * This is a legacy error; it will be removed before the API reaches version |
14553 * 1.0. | 15588 * 1.0. |
14554 */ | 15589 */ |
14555 static const RequestErrorCode UNSUPPORTED_FEATURE = const RequestErrorCode._("
UNSUPPORTED_FEATURE"); | 15590 static const RequestErrorCode UNSUPPORTED_FEATURE = |
| 15591 const RequestErrorCode._("UNSUPPORTED_FEATURE"); |
14556 | 15592 |
14557 /** | 15593 /** |
14558 * A list containing all of the enum values that are defined. | 15594 * A list containing all of the enum values that are defined. |
14559 */ | 15595 */ |
14560 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_
MODIFIED, DEBUG_PORT_COULD_NOT_BE_OPENED, FILE_NOT_ANALYZED, FORMAT_INVALID_FILE
, FORMAT_WITH_ERRORS, GET_ERRORS_INVALID_FILE, GET_NAVIGATION_INVALID_FILE, GET_
REACHABLE_SOURCES_INVALID_FILE, INVALID_ANALYSIS_ROOT, INVALID_EXECUTION_CONTEXT
, INVALID_FILE_PATH_FORMAT, INVALID_OVERLAY_CHANGE, INVALID_PARAMETER, INVALID_R
EQUEST, NO_INDEX_GENERATED, ORGANIZE_DIRECTIVES_ERROR, REFACTORING_REQUEST_CANCE
LLED, SERVER_ALREADY_STARTED, SERVER_ERROR, SORT_MEMBERS_INVALID_FILE, SORT_MEMB
ERS_PARSE_ERRORS, UNANALYZED_PRIORITY_FILES, UNKNOWN_REQUEST, UNKNOWN_SOURCE, UN
SUPPORTED_FEATURE]; | 15596 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[ |
| 15597 CONTENT_MODIFIED, |
| 15598 DEBUG_PORT_COULD_NOT_BE_OPENED, |
| 15599 FILE_NOT_ANALYZED, |
| 15600 FORMAT_INVALID_FILE, |
| 15601 FORMAT_WITH_ERRORS, |
| 15602 GET_ERRORS_INVALID_FILE, |
| 15603 GET_NAVIGATION_INVALID_FILE, |
| 15604 GET_REACHABLE_SOURCES_INVALID_FILE, |
| 15605 INVALID_ANALYSIS_ROOT, |
| 15606 INVALID_EXECUTION_CONTEXT, |
| 15607 INVALID_FILE_PATH_FORMAT, |
| 15608 INVALID_OVERLAY_CHANGE, |
| 15609 INVALID_PARAMETER, |
| 15610 INVALID_REQUEST, |
| 15611 NO_INDEX_GENERATED, |
| 15612 ORGANIZE_DIRECTIVES_ERROR, |
| 15613 REFACTORING_REQUEST_CANCELLED, |
| 15614 SERVER_ALREADY_STARTED, |
| 15615 SERVER_ERROR, |
| 15616 SORT_MEMBERS_INVALID_FILE, |
| 15617 SORT_MEMBERS_PARSE_ERRORS, |
| 15618 UNANALYZED_PRIORITY_FILES, |
| 15619 UNKNOWN_REQUEST, |
| 15620 UNKNOWN_SOURCE, |
| 15621 UNSUPPORTED_FEATURE |
| 15622 ]; |
14561 | 15623 |
14562 final String name; | 15624 final String name; |
14563 | 15625 |
14564 const RequestErrorCode._(this.name); | 15626 const RequestErrorCode._(this.name); |
14565 | 15627 |
14566 factory RequestErrorCode(String name) { | 15628 factory RequestErrorCode(String name) { |
14567 switch (name) { | 15629 switch (name) { |
14568 case "CONTENT_MODIFIED": | 15630 case "CONTENT_MODIFIED": |
14569 return CONTENT_MODIFIED; | 15631 return CONTENT_MODIFIED; |
14570 case "DEBUG_PORT_COULD_NOT_BE_OPENED": | 15632 case "DEBUG_PORT_COULD_NOT_BE_OPENED": |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14612 case "UNKNOWN_REQUEST": | 15674 case "UNKNOWN_REQUEST": |
14613 return UNKNOWN_REQUEST; | 15675 return UNKNOWN_REQUEST; |
14614 case "UNKNOWN_SOURCE": | 15676 case "UNKNOWN_SOURCE": |
14615 return UNKNOWN_SOURCE; | 15677 return UNKNOWN_SOURCE; |
14616 case "UNSUPPORTED_FEATURE": | 15678 case "UNSUPPORTED_FEATURE": |
14617 return UNSUPPORTED_FEATURE; | 15679 return UNSUPPORTED_FEATURE; |
14618 } | 15680 } |
14619 throw new Exception('Illegal enum value: $name'); | 15681 throw new Exception('Illegal enum value: $name'); |
14620 } | 15682 } |
14621 | 15683 |
14622 factory RequestErrorCode.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 15684 factory RequestErrorCode.fromJson( |
| 15685 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
14623 if (json is String) { | 15686 if (json is String) { |
14624 try { | 15687 try { |
14625 return new RequestErrorCode(json); | 15688 return new RequestErrorCode(json); |
14626 } catch(_) { | 15689 } catch (_) { |
14627 // Fall through | 15690 // Fall through |
14628 } | 15691 } |
14629 } | 15692 } |
14630 throw jsonDecoder.mismatch(jsonPath, "RequestErrorCode", json); | 15693 throw jsonDecoder.mismatch(jsonPath, "RequestErrorCode", json); |
14631 } | 15694 } |
14632 | 15695 |
14633 @override | 15696 @override |
14634 String toString() => "RequestErrorCode.$name"; | 15697 String toString() => "RequestErrorCode.$name"; |
14635 | 15698 |
14636 String toJson() => name; | 15699 String toJson() => name; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14712 | 15775 |
14713 /** | 15776 /** |
14714 * The elements that contain the result, starting with the most immediately | 15777 * The elements that contain the result, starting with the most immediately |
14715 * enclosing ancestor and ending with the library. | 15778 * enclosing ancestor and ending with the library. |
14716 */ | 15779 */ |
14717 void set path(List<Element> value) { | 15780 void set path(List<Element> value) { |
14718 assert(value != null); | 15781 assert(value != null); |
14719 this._path = value; | 15782 this._path = value; |
14720 } | 15783 } |
14721 | 15784 |
14722 SearchResult(Location location, SearchResultKind kind, bool isPotential, List<
Element> path) { | 15785 SearchResult(Location location, SearchResultKind kind, bool isPotential, |
| 15786 List<Element> path) { |
14723 this.location = location; | 15787 this.location = location; |
14724 this.kind = kind; | 15788 this.kind = kind; |
14725 this.isPotential = isPotential; | 15789 this.isPotential = isPotential; |
14726 this.path = path; | 15790 this.path = path; |
14727 } | 15791 } |
14728 | 15792 |
14729 factory SearchResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 15793 factory SearchResult.fromJson( |
| 15794 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
14730 if (json == null) { | 15795 if (json == null) { |
14731 json = {}; | 15796 json = {}; |
14732 } | 15797 } |
14733 if (json is Map) { | 15798 if (json is Map) { |
14734 Location location; | 15799 Location location; |
14735 if (json.containsKey("location")) { | 15800 if (json.containsKey("location")) { |
14736 location = new Location.fromJson(jsonDecoder, jsonPath + ".location", js
on["location"]); | 15801 location = new Location.fromJson( |
| 15802 jsonDecoder, jsonPath + ".location", json["location"]); |
14737 } else { | 15803 } else { |
14738 throw jsonDecoder.missingKey(jsonPath, "location"); | 15804 throw jsonDecoder.missingKey(jsonPath, "location"); |
14739 } | 15805 } |
14740 SearchResultKind kind; | 15806 SearchResultKind kind; |
14741 if (json.containsKey("kind")) { | 15807 if (json.containsKey("kind")) { |
14742 kind = new SearchResultKind.fromJson(jsonDecoder, jsonPath + ".kind", js
on["kind"]); | 15808 kind = new SearchResultKind.fromJson( |
| 15809 jsonDecoder, jsonPath + ".kind", json["kind"]); |
14743 } else { | 15810 } else { |
14744 throw jsonDecoder.missingKey(jsonPath, "kind"); | 15811 throw jsonDecoder.missingKey(jsonPath, "kind"); |
14745 } | 15812 } |
14746 bool isPotential; | 15813 bool isPotential; |
14747 if (json.containsKey("isPotential")) { | 15814 if (json.containsKey("isPotential")) { |
14748 isPotential = jsonDecoder.decodeBool(jsonPath + ".isPotential", json["is
Potential"]); | 15815 isPotential = jsonDecoder.decodeBool( |
| 15816 jsonPath + ".isPotential", json["isPotential"]); |
14749 } else { | 15817 } else { |
14750 throw jsonDecoder.missingKey(jsonPath, "isPotential"); | 15818 throw jsonDecoder.missingKey(jsonPath, "isPotential"); |
14751 } | 15819 } |
14752 List<Element> path; | 15820 List<Element> path; |
14753 if (json.containsKey("path")) { | 15821 if (json.containsKey("path")) { |
14754 path = jsonDecoder.decodeList(jsonPath + ".path", json["path"], (String
jsonPath, Object json) => new Element.fromJson(jsonDecoder, jsonPath, json)); | 15822 path = jsonDecoder.decodeList( |
| 15823 jsonPath + ".path", |
| 15824 json["path"], |
| 15825 (String jsonPath, Object json) => |
| 15826 new Element.fromJson(jsonDecoder, jsonPath, json)); |
14755 } else { | 15827 } else { |
14756 throw jsonDecoder.missingKey(jsonPath, "path"); | 15828 throw jsonDecoder.missingKey(jsonPath, "path"); |
14757 } | 15829 } |
14758 return new SearchResult(location, kind, isPotential, path); | 15830 return new SearchResult(location, kind, isPotential, path); |
14759 } else { | 15831 } else { |
14760 throw jsonDecoder.mismatch(jsonPath, "SearchResult", json); | 15832 throw jsonDecoder.mismatch(jsonPath, "SearchResult", json); |
14761 } | 15833 } |
14762 } | 15834 } |
14763 | 15835 |
14764 Map<String, dynamic> toJson() { | 15836 Map<String, dynamic> toJson() { |
14765 Map<String, dynamic> result = {}; | 15837 Map<String, dynamic> result = {}; |
14766 result["location"] = location.toJson(); | 15838 result["location"] = location.toJson(); |
14767 result["kind"] = kind.toJson(); | 15839 result["kind"] = kind.toJson(); |
14768 result["isPotential"] = isPotential; | 15840 result["isPotential"] = isPotential; |
14769 result["path"] = path.map((Element value) => value.toJson()).toList(); | 15841 result["path"] = path.map((Element value) => value.toJson()).toList(); |
14770 return result; | 15842 return result; |
14771 } | 15843 } |
14772 | 15844 |
14773 @override | 15845 @override |
14774 String toString() => JSON.encode(toJson()); | 15846 String toString() => JSON.encode(toJson()); |
14775 | 15847 |
14776 @override | 15848 @override |
14777 bool operator==(other) { | 15849 bool operator ==(other) { |
14778 if (other is SearchResult) { | 15850 if (other is SearchResult) { |
14779 return location == other.location && | 15851 return location == other.location && |
14780 kind == other.kind && | 15852 kind == other.kind && |
14781 isPotential == other.isPotential && | 15853 isPotential == other.isPotential && |
14782 listEqual(path, other.path, (Element a, Element b) => a == b); | 15854 listEqual(path, other.path, (Element a, Element b) => a == b); |
14783 } | 15855 } |
14784 return false; | 15856 return false; |
14785 } | 15857 } |
14786 | 15858 |
14787 @override | 15859 @override |
(...skipping 19 matching lines...) Expand all Loading... |
14807 * UNKNOWN | 15879 * UNKNOWN |
14808 * WRITE | 15880 * WRITE |
14809 * } | 15881 * } |
14810 * | 15882 * |
14811 * Clients may not extend, implement or mix-in this class. | 15883 * Clients may not extend, implement or mix-in this class. |
14812 */ | 15884 */ |
14813 class SearchResultKind implements Enum { | 15885 class SearchResultKind implements Enum { |
14814 /** | 15886 /** |
14815 * The declaration of an element. | 15887 * The declaration of an element. |
14816 */ | 15888 */ |
14817 static const SearchResultKind DECLARATION = const SearchResultKind._("DECLARAT
ION"); | 15889 static const SearchResultKind DECLARATION = |
| 15890 const SearchResultKind._("DECLARATION"); |
14818 | 15891 |
14819 /** | 15892 /** |
14820 * The invocation of a function or method. | 15893 * The invocation of a function or method. |
14821 */ | 15894 */ |
14822 static const SearchResultKind INVOCATION = const SearchResultKind._("INVOCATIO
N"); | 15895 static const SearchResultKind INVOCATION = |
| 15896 const SearchResultKind._("INVOCATION"); |
14823 | 15897 |
14824 /** | 15898 /** |
14825 * A reference to a field, parameter or variable where it is being read. | 15899 * A reference to a field, parameter or variable where it is being read. |
14826 */ | 15900 */ |
14827 static const SearchResultKind READ = const SearchResultKind._("READ"); | 15901 static const SearchResultKind READ = const SearchResultKind._("READ"); |
14828 | 15902 |
14829 /** | 15903 /** |
14830 * A reference to a field, parameter or variable where it is being read and | 15904 * A reference to a field, parameter or variable where it is being read and |
14831 * written. | 15905 * written. |
14832 */ | 15906 */ |
14833 static const SearchResultKind READ_WRITE = const SearchResultKind._("READ_WRIT
E"); | 15907 static const SearchResultKind READ_WRITE = |
| 15908 const SearchResultKind._("READ_WRITE"); |
14834 | 15909 |
14835 /** | 15910 /** |
14836 * A reference to an element. | 15911 * A reference to an element. |
14837 */ | 15912 */ |
14838 static const SearchResultKind REFERENCE = const SearchResultKind._("REFERENCE"
); | 15913 static const SearchResultKind REFERENCE = |
| 15914 const SearchResultKind._("REFERENCE"); |
14839 | 15915 |
14840 /** | 15916 /** |
14841 * Some other kind of search result. | 15917 * Some other kind of search result. |
14842 */ | 15918 */ |
14843 static const SearchResultKind UNKNOWN = const SearchResultKind._("UNKNOWN"); | 15919 static const SearchResultKind UNKNOWN = const SearchResultKind._("UNKNOWN"); |
14844 | 15920 |
14845 /** | 15921 /** |
14846 * A reference to a field, parameter or variable where it is being written. | 15922 * A reference to a field, parameter or variable where it is being written. |
14847 */ | 15923 */ |
14848 static const SearchResultKind WRITE = const SearchResultKind._("WRITE"); | 15924 static const SearchResultKind WRITE = const SearchResultKind._("WRITE"); |
14849 | 15925 |
14850 /** | 15926 /** |
14851 * A list containing all of the enum values that are defined. | 15927 * A list containing all of the enum values that are defined. |
14852 */ | 15928 */ |
14853 static const List<SearchResultKind> VALUES = const <SearchResultKind>[DECLARAT
ION, INVOCATION, READ, READ_WRITE, REFERENCE, UNKNOWN, WRITE]; | 15929 static const List<SearchResultKind> VALUES = const <SearchResultKind>[ |
| 15930 DECLARATION, |
| 15931 INVOCATION, |
| 15932 READ, |
| 15933 READ_WRITE, |
| 15934 REFERENCE, |
| 15935 UNKNOWN, |
| 15936 WRITE |
| 15937 ]; |
14854 | 15938 |
14855 final String name; | 15939 final String name; |
14856 | 15940 |
14857 const SearchResultKind._(this.name); | 15941 const SearchResultKind._(this.name); |
14858 | 15942 |
14859 factory SearchResultKind(String name) { | 15943 factory SearchResultKind(String name) { |
14860 switch (name) { | 15944 switch (name) { |
14861 case "DECLARATION": | 15945 case "DECLARATION": |
14862 return DECLARATION; | 15946 return DECLARATION; |
14863 case "INVOCATION": | 15947 case "INVOCATION": |
14864 return INVOCATION; | 15948 return INVOCATION; |
14865 case "READ": | 15949 case "READ": |
14866 return READ; | 15950 return READ; |
14867 case "READ_WRITE": | 15951 case "READ_WRITE": |
14868 return READ_WRITE; | 15952 return READ_WRITE; |
14869 case "REFERENCE": | 15953 case "REFERENCE": |
14870 return REFERENCE; | 15954 return REFERENCE; |
14871 case "UNKNOWN": | 15955 case "UNKNOWN": |
14872 return UNKNOWN; | 15956 return UNKNOWN; |
14873 case "WRITE": | 15957 case "WRITE": |
14874 return WRITE; | 15958 return WRITE; |
14875 } | 15959 } |
14876 throw new Exception('Illegal enum value: $name'); | 15960 throw new Exception('Illegal enum value: $name'); |
14877 } | 15961 } |
14878 | 15962 |
14879 factory SearchResultKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 15963 factory SearchResultKind.fromJson( |
| 15964 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
14880 if (json is String) { | 15965 if (json is String) { |
14881 try { | 15966 try { |
14882 return new SearchResultKind(json); | 15967 return new SearchResultKind(json); |
14883 } catch(_) { | 15968 } catch (_) { |
14884 // Fall through | 15969 // Fall through |
14885 } | 15970 } |
14886 } | 15971 } |
14887 throw jsonDecoder.mismatch(jsonPath, "SearchResultKind", json); | 15972 throw jsonDecoder.mismatch(jsonPath, "SearchResultKind", json); |
14888 } | 15973 } |
14889 | 15974 |
14890 @override | 15975 @override |
14891 String toString() => "SearchResultKind.$name"; | 15976 String toString() => "SearchResultKind.$name"; |
14892 | 15977 |
14893 String toJson() => name; | 15978 String toJson() => name; |
(...skipping 21 matching lines...) Expand all Loading... |
14915 const ServerService._(this.name); | 16000 const ServerService._(this.name); |
14916 | 16001 |
14917 factory ServerService(String name) { | 16002 factory ServerService(String name) { |
14918 switch (name) { | 16003 switch (name) { |
14919 case "STATUS": | 16004 case "STATUS": |
14920 return STATUS; | 16005 return STATUS; |
14921 } | 16006 } |
14922 throw new Exception('Illegal enum value: $name'); | 16007 throw new Exception('Illegal enum value: $name'); |
14923 } | 16008 } |
14924 | 16009 |
14925 factory ServerService.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 16010 factory ServerService.fromJson( |
| 16011 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
14926 if (json is String) { | 16012 if (json is String) { |
14927 try { | 16013 try { |
14928 return new ServerService(json); | 16014 return new ServerService(json); |
14929 } catch(_) { | 16015 } catch (_) { |
14930 // Fall through | 16016 // Fall through |
14931 } | 16017 } |
14932 } | 16018 } |
14933 throw jsonDecoder.mismatch(jsonPath, "ServerService", json); | 16019 throw jsonDecoder.mismatch(jsonPath, "ServerService", json); |
14934 } | 16020 } |
14935 | 16021 |
14936 @override | 16022 @override |
14937 String toString() => "ServerService.$name"; | 16023 String toString() => "ServerService.$name"; |
14938 | 16024 |
14939 String toJson() => name; | 16025 String toJson() => name; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15006 */ | 16092 */ |
15007 Position get selection => _selection; | 16093 Position get selection => _selection; |
15008 | 16094 |
15009 /** | 16095 /** |
15010 * The position that should be selected after the edits have been applied. | 16096 * The position that should be selected after the edits have been applied. |
15011 */ | 16097 */ |
15012 void set selection(Position value) { | 16098 void set selection(Position value) { |
15013 this._selection = value; | 16099 this._selection = value; |
15014 } | 16100 } |
15015 | 16101 |
15016 SourceChange(String message, {List<SourceFileEdit> edits, List<LinkedEditGroup
> linkedEditGroups, Position selection}) { | 16102 SourceChange(String message, |
| 16103 {List<SourceFileEdit> edits, |
| 16104 List<LinkedEditGroup> linkedEditGroups, |
| 16105 Position selection}) { |
15017 this.message = message; | 16106 this.message = message; |
15018 if (edits == null) { | 16107 if (edits == null) { |
15019 this.edits = <SourceFileEdit>[]; | 16108 this.edits = <SourceFileEdit>[]; |
15020 } else { | 16109 } else { |
15021 this.edits = edits; | 16110 this.edits = edits; |
15022 } | 16111 } |
15023 if (linkedEditGroups == null) { | 16112 if (linkedEditGroups == null) { |
15024 this.linkedEditGroups = <LinkedEditGroup>[]; | 16113 this.linkedEditGroups = <LinkedEditGroup>[]; |
15025 } else { | 16114 } else { |
15026 this.linkedEditGroups = linkedEditGroups; | 16115 this.linkedEditGroups = linkedEditGroups; |
15027 } | 16116 } |
15028 this.selection = selection; | 16117 this.selection = selection; |
15029 } | 16118 } |
15030 | 16119 |
15031 factory SourceChange.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object
json) { | 16120 factory SourceChange.fromJson( |
| 16121 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
15032 if (json == null) { | 16122 if (json == null) { |
15033 json = {}; | 16123 json = {}; |
15034 } | 16124 } |
15035 if (json is Map) { | 16125 if (json is Map) { |
15036 String message; | 16126 String message; |
15037 if (json.containsKey("message")) { | 16127 if (json.containsKey("message")) { |
15038 message = jsonDecoder.decodeString(jsonPath + ".message", json["message"
]); | 16128 message = |
| 16129 jsonDecoder.decodeString(jsonPath + ".message", json["message"]); |
15039 } else { | 16130 } else { |
15040 throw jsonDecoder.missingKey(jsonPath, "message"); | 16131 throw jsonDecoder.missingKey(jsonPath, "message"); |
15041 } | 16132 } |
15042 List<SourceFileEdit> edits; | 16133 List<SourceFileEdit> edits; |
15043 if (json.containsKey("edits")) { | 16134 if (json.containsKey("edits")) { |
15044 edits = jsonDecoder.decodeList(jsonPath + ".edits", json["edits"], (Stri
ng jsonPath, Object json) => new SourceFileEdit.fromJson(jsonDecoder, jsonPath,
json)); | 16135 edits = jsonDecoder.decodeList( |
| 16136 jsonPath + ".edits", |
| 16137 json["edits"], |
| 16138 (String jsonPath, Object json) => |
| 16139 new SourceFileEdit.fromJson(jsonDecoder, jsonPath, json)); |
15045 } else { | 16140 } else { |
15046 throw jsonDecoder.missingKey(jsonPath, "edits"); | 16141 throw jsonDecoder.missingKey(jsonPath, "edits"); |
15047 } | 16142 } |
15048 List<LinkedEditGroup> linkedEditGroups; | 16143 List<LinkedEditGroup> linkedEditGroups; |
15049 if (json.containsKey("linkedEditGroups")) { | 16144 if (json.containsKey("linkedEditGroups")) { |
15050 linkedEditGroups = jsonDecoder.decodeList(jsonPath + ".linkedEditGroups"
, json["linkedEditGroups"], (String jsonPath, Object json) => new LinkedEditGrou
p.fromJson(jsonDecoder, jsonPath, json)); | 16145 linkedEditGroups = jsonDecoder.decodeList( |
| 16146 jsonPath + ".linkedEditGroups", |
| 16147 json["linkedEditGroups"], |
| 16148 (String jsonPath, Object json) => |
| 16149 new LinkedEditGroup.fromJson(jsonDecoder, jsonPath, json)); |
15051 } else { | 16150 } else { |
15052 throw jsonDecoder.missingKey(jsonPath, "linkedEditGroups"); | 16151 throw jsonDecoder.missingKey(jsonPath, "linkedEditGroups"); |
15053 } | 16152 } |
15054 Position selection; | 16153 Position selection; |
15055 if (json.containsKey("selection")) { | 16154 if (json.containsKey("selection")) { |
15056 selection = new Position.fromJson(jsonDecoder, jsonPath + ".selection",
json["selection"]); | 16155 selection = new Position.fromJson( |
| 16156 jsonDecoder, jsonPath + ".selection", json["selection"]); |
15057 } | 16157 } |
15058 return new SourceChange(message, edits: edits, linkedEditGroups: linkedEdi
tGroups, selection: selection); | 16158 return new SourceChange(message, |
| 16159 edits: edits, |
| 16160 linkedEditGroups: linkedEditGroups, |
| 16161 selection: selection); |
15059 } else { | 16162 } else { |
15060 throw jsonDecoder.mismatch(jsonPath, "SourceChange", json); | 16163 throw jsonDecoder.mismatch(jsonPath, "SourceChange", json); |
15061 } | 16164 } |
15062 } | 16165 } |
15063 | 16166 |
15064 Map<String, dynamic> toJson() { | 16167 Map<String, dynamic> toJson() { |
15065 Map<String, dynamic> result = {}; | 16168 Map<String, dynamic> result = {}; |
15066 result["message"] = message; | 16169 result["message"] = message; |
15067 result["edits"] = edits.map((SourceFileEdit value) => value.toJson()).toList
(); | 16170 result["edits"] = |
15068 result["linkedEditGroups"] = linkedEditGroups.map((LinkedEditGroup value) =>
value.toJson()).toList(); | 16171 edits.map((SourceFileEdit value) => value.toJson()).toList(); |
| 16172 result["linkedEditGroups"] = linkedEditGroups |
| 16173 .map((LinkedEditGroup value) => value.toJson()) |
| 16174 .toList(); |
15069 if (selection != null) { | 16175 if (selection != null) { |
15070 result["selection"] = selection.toJson(); | 16176 result["selection"] = selection.toJson(); |
15071 } | 16177 } |
15072 return result; | 16178 return result; |
15073 } | 16179 } |
15074 | 16180 |
15075 /** | 16181 /** |
15076 * Adds [edit] to the [FileEdit] for the given [file]. | 16182 * Adds [edit] to the [FileEdit] for the given [file]. |
15077 */ | 16183 */ |
15078 void addEdit(String file, int fileStamp, SourceEdit edit) => | 16184 void addEdit(String file, int fileStamp, SourceEdit edit) => |
15079 addEditToSourceChange(this, file, fileStamp, edit); | 16185 addEditToSourceChange(this, file, fileStamp, edit); |
15080 | 16186 |
15081 /** | 16187 /** |
15082 * Adds the given [FileEdit]. | 16188 * Adds the given [FileEdit]. |
15083 */ | 16189 */ |
15084 void addFileEdit(SourceFileEdit edit) { | 16190 void addFileEdit(SourceFileEdit edit) { |
15085 edits.add(edit); | 16191 edits.add(edit); |
15086 } | 16192 } |
15087 | 16193 |
15088 /** | 16194 /** |
15089 * Adds the given [LinkedEditGroup]. | 16195 * Adds the given [LinkedEditGroup]. |
15090 */ | 16196 */ |
15091 void addLinkedEditGroup(LinkedEditGroup linkedEditGroup) { | 16197 void addLinkedEditGroup(LinkedEditGroup linkedEditGroup) { |
15092 linkedEditGroups.add(linkedEditGroup); | 16198 linkedEditGroups.add(linkedEditGroup); |
15093 } | 16199 } |
15094 | 16200 |
15095 /** | 16201 /** |
15096 * Returns the [FileEdit] for the given [file], maybe `null`. | 16202 * Returns the [FileEdit] for the given [file], maybe `null`. |
15097 */ | 16203 */ |
15098 SourceFileEdit getFileEdit(String file) => | 16204 SourceFileEdit getFileEdit(String file) => getChangeFileEdit(this, file); |
15099 getChangeFileEdit(this, file); | |
15100 | 16205 |
15101 @override | 16206 @override |
15102 String toString() => JSON.encode(toJson()); | 16207 String toString() => JSON.encode(toJson()); |
15103 | 16208 |
15104 @override | 16209 @override |
15105 bool operator==(other) { | 16210 bool operator ==(other) { |
15106 if (other is SourceChange) { | 16211 if (other is SourceChange) { |
15107 return message == other.message && | 16212 return message == other.message && |
15108 listEqual(edits, other.edits, (SourceFileEdit a, SourceFileEdit b) =>
a == b) && | 16213 listEqual(edits, other.edits, |
15109 listEqual(linkedEditGroups, other.linkedEditGroups, (LinkedEditGroup a
, LinkedEditGroup b) => a == b) && | 16214 (SourceFileEdit a, SourceFileEdit b) => a == b) && |
| 16215 listEqual(linkedEditGroups, other.linkedEditGroups, |
| 16216 (LinkedEditGroup a, LinkedEditGroup b) => a == b) && |
15110 selection == other.selection; | 16217 selection == other.selection; |
15111 } | 16218 } |
15112 return false; | 16219 return false; |
15113 } | 16220 } |
15114 | 16221 |
15115 @override | 16222 @override |
15116 int get hashCode { | 16223 int get hashCode { |
15117 int hash = 0; | 16224 int hash = 0; |
15118 hash = JenkinsSmiHash.combine(hash, message.hashCode); | 16225 hash = JenkinsSmiHash.combine(hash, message.hashCode); |
15119 hash = JenkinsSmiHash.combine(hash, edits.hashCode); | 16226 hash = JenkinsSmiHash.combine(hash, edits.hashCode); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15216 this._id = value; | 16323 this._id = value; |
15217 } | 16324 } |
15218 | 16325 |
15219 SourceEdit(int offset, int length, String replacement, {String id}) { | 16326 SourceEdit(int offset, int length, String replacement, {String id}) { |
15220 this.offset = offset; | 16327 this.offset = offset; |
15221 this.length = length; | 16328 this.length = length; |
15222 this.replacement = replacement; | 16329 this.replacement = replacement; |
15223 this.id = id; | 16330 this.id = id; |
15224 } | 16331 } |
15225 | 16332 |
15226 factory SourceEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object j
son) { | 16333 factory SourceEdit.fromJson( |
| 16334 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
15227 if (json == null) { | 16335 if (json == null) { |
15228 json = {}; | 16336 json = {}; |
15229 } | 16337 } |
15230 if (json is Map) { | 16338 if (json is Map) { |
15231 int offset; | 16339 int offset; |
15232 if (json.containsKey("offset")) { | 16340 if (json.containsKey("offset")) { |
15233 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 16341 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
15234 } else { | 16342 } else { |
15235 throw jsonDecoder.missingKey(jsonPath, "offset"); | 16343 throw jsonDecoder.missingKey(jsonPath, "offset"); |
15236 } | 16344 } |
15237 int length; | 16345 int length; |
15238 if (json.containsKey("length")) { | 16346 if (json.containsKey("length")) { |
15239 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 16347 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
15240 } else { | 16348 } else { |
15241 throw jsonDecoder.missingKey(jsonPath, "length"); | 16349 throw jsonDecoder.missingKey(jsonPath, "length"); |
15242 } | 16350 } |
15243 String replacement; | 16351 String replacement; |
15244 if (json.containsKey("replacement")) { | 16352 if (json.containsKey("replacement")) { |
15245 replacement = jsonDecoder.decodeString(jsonPath + ".replacement", json["
replacement"]); | 16353 replacement = jsonDecoder.decodeString( |
| 16354 jsonPath + ".replacement", json["replacement"]); |
15246 } else { | 16355 } else { |
15247 throw jsonDecoder.missingKey(jsonPath, "replacement"); | 16356 throw jsonDecoder.missingKey(jsonPath, "replacement"); |
15248 } | 16357 } |
15249 String id; | 16358 String id; |
15250 if (json.containsKey("id")) { | 16359 if (json.containsKey("id")) { |
15251 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); | 16360 id = jsonDecoder.decodeString(jsonPath + ".id", json["id"]); |
15252 } | 16361 } |
15253 return new SourceEdit(offset, length, replacement, id: id); | 16362 return new SourceEdit(offset, length, replacement, id: id); |
15254 } else { | 16363 } else { |
15255 throw jsonDecoder.mismatch(jsonPath, "SourceEdit", json); | 16364 throw jsonDecoder.mismatch(jsonPath, "SourceEdit", json); |
(...skipping 18 matching lines...) Expand all Loading... |
15274 | 16383 |
15275 /** | 16384 /** |
15276 * Get the result of applying the edit to the given [code]. | 16385 * Get the result of applying the edit to the given [code]. |
15277 */ | 16386 */ |
15278 String apply(String code) => applyEdit(code, this); | 16387 String apply(String code) => applyEdit(code, this); |
15279 | 16388 |
15280 @override | 16389 @override |
15281 String toString() => JSON.encode(toJson()); | 16390 String toString() => JSON.encode(toJson()); |
15282 | 16391 |
15283 @override | 16392 @override |
15284 bool operator==(other) { | 16393 bool operator ==(other) { |
15285 if (other is SourceEdit) { | 16394 if (other is SourceEdit) { |
15286 return offset == other.offset && | 16395 return offset == other.offset && |
15287 length == other.length && | 16396 length == other.length && |
15288 replacement == other.replacement && | 16397 replacement == other.replacement && |
15289 id == other.id; | 16398 id == other.id; |
15290 } | 16399 } |
15291 return false; | 16400 return false; |
15292 } | 16401 } |
15293 | 16402 |
15294 @override | 16403 @override |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15370 SourceFileEdit(String file, int fileStamp, {List<SourceEdit> edits}) { | 16479 SourceFileEdit(String file, int fileStamp, {List<SourceEdit> edits}) { |
15371 this.file = file; | 16480 this.file = file; |
15372 this.fileStamp = fileStamp; | 16481 this.fileStamp = fileStamp; |
15373 if (edits == null) { | 16482 if (edits == null) { |
15374 this.edits = <SourceEdit>[]; | 16483 this.edits = <SourceEdit>[]; |
15375 } else { | 16484 } else { |
15376 this.edits = edits; | 16485 this.edits = edits; |
15377 } | 16486 } |
15378 } | 16487 } |
15379 | 16488 |
15380 factory SourceFileEdit.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 16489 factory SourceFileEdit.fromJson( |
| 16490 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
15381 if (json == null) { | 16491 if (json == null) { |
15382 json = {}; | 16492 json = {}; |
15383 } | 16493 } |
15384 if (json is Map) { | 16494 if (json is Map) { |
15385 String file; | 16495 String file; |
15386 if (json.containsKey("file")) { | 16496 if (json.containsKey("file")) { |
15387 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); | 16497 file = jsonDecoder.decodeString(jsonPath + ".file", json["file"]); |
15388 } else { | 16498 } else { |
15389 throw jsonDecoder.missingKey(jsonPath, "file"); | 16499 throw jsonDecoder.missingKey(jsonPath, "file"); |
15390 } | 16500 } |
15391 int fileStamp; | 16501 int fileStamp; |
15392 if (json.containsKey("fileStamp")) { | 16502 if (json.containsKey("fileStamp")) { |
15393 fileStamp = jsonDecoder.decodeInt(jsonPath + ".fileStamp", json["fileSta
mp"]); | 16503 fileStamp = |
| 16504 jsonDecoder.decodeInt(jsonPath + ".fileStamp", json["fileStamp"]); |
15394 } else { | 16505 } else { |
15395 throw jsonDecoder.missingKey(jsonPath, "fileStamp"); | 16506 throw jsonDecoder.missingKey(jsonPath, "fileStamp"); |
15396 } | 16507 } |
15397 List<SourceEdit> edits; | 16508 List<SourceEdit> edits; |
15398 if (json.containsKey("edits")) { | 16509 if (json.containsKey("edits")) { |
15399 edits = jsonDecoder.decodeList(jsonPath + ".edits", json["edits"], (Stri
ng jsonPath, Object json) => new SourceEdit.fromJson(jsonDecoder, jsonPath, json
)); | 16510 edits = jsonDecoder.decodeList( |
| 16511 jsonPath + ".edits", |
| 16512 json["edits"], |
| 16513 (String jsonPath, Object json) => |
| 16514 new SourceEdit.fromJson(jsonDecoder, jsonPath, json)); |
15400 } else { | 16515 } else { |
15401 throw jsonDecoder.missingKey(jsonPath, "edits"); | 16516 throw jsonDecoder.missingKey(jsonPath, "edits"); |
15402 } | 16517 } |
15403 return new SourceFileEdit(file, fileStamp, edits: edits); | 16518 return new SourceFileEdit(file, fileStamp, edits: edits); |
15404 } else { | 16519 } else { |
15405 throw jsonDecoder.mismatch(jsonPath, "SourceFileEdit", json); | 16520 throw jsonDecoder.mismatch(jsonPath, "SourceFileEdit", json); |
15406 } | 16521 } |
15407 } | 16522 } |
15408 | 16523 |
15409 Map<String, dynamic> toJson() { | 16524 Map<String, dynamic> toJson() { |
15410 Map<String, dynamic> result = {}; | 16525 Map<String, dynamic> result = {}; |
15411 result["file"] = file; | 16526 result["file"] = file; |
15412 result["fileStamp"] = fileStamp; | 16527 result["fileStamp"] = fileStamp; |
15413 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); | 16528 result["edits"] = edits.map((SourceEdit value) => value.toJson()).toList(); |
15414 return result; | 16529 return result; |
15415 } | 16530 } |
15416 | 16531 |
15417 /** | 16532 /** |
15418 * Adds the given [Edit] to the list. | 16533 * Adds the given [Edit] to the list. |
15419 */ | 16534 */ |
15420 void add(SourceEdit edit) => addEditForSource(this, edit); | 16535 void add(SourceEdit edit) => addEditForSource(this, edit); |
15421 | 16536 |
15422 /** | 16537 /** |
15423 * Adds the given [Edit]s. | 16538 * Adds the given [Edit]s. |
15424 */ | 16539 */ |
15425 void addAll(Iterable<SourceEdit> edits) => | 16540 void addAll(Iterable<SourceEdit> edits) => addAllEditsForSource(this, edits); |
15426 addAllEditsForSource(this, edits); | |
15427 | 16541 |
15428 @override | 16542 @override |
15429 String toString() => JSON.encode(toJson()); | 16543 String toString() => JSON.encode(toJson()); |
15430 | 16544 |
15431 @override | 16545 @override |
15432 bool operator==(other) { | 16546 bool operator ==(other) { |
15433 if (other is SourceFileEdit) { | 16547 if (other is SourceFileEdit) { |
15434 return file == other.file && | 16548 return file == other.file && |
15435 fileStamp == other.fileStamp && | 16549 fileStamp == other.fileStamp && |
15436 listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a == b); | 16550 listEqual(edits, other.edits, (SourceEdit a, SourceEdit b) => a == b); |
15437 } | 16551 } |
15438 return false; | 16552 return false; |
15439 } | 16553 } |
15440 | 16554 |
15441 @override | 16555 @override |
15442 int get hashCode { | 16556 int get hashCode { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15581 /** | 16695 /** |
15582 * The indexes of the items representing the subtypes of this class. The list | 16696 * The indexes of the items representing the subtypes of this class. The list |
15583 * will be empty if there are no subtypes or if this item represents a | 16697 * will be empty if there are no subtypes or if this item represents a |
15584 * supertype of the pivot type. | 16698 * supertype of the pivot type. |
15585 */ | 16699 */ |
15586 void set subclasses(List<int> value) { | 16700 void set subclasses(List<int> value) { |
15587 assert(value != null); | 16701 assert(value != null); |
15588 this._subclasses = value; | 16702 this._subclasses = value; |
15589 } | 16703 } |
15590 | 16704 |
15591 TypeHierarchyItem(Element classElement, {String displayName, Element memberEle
ment, int superclass, List<int> interfaces, List<int> mixins, List<int> subclass
es}) { | 16705 TypeHierarchyItem(Element classElement, |
| 16706 {String displayName, |
| 16707 Element memberElement, |
| 16708 int superclass, |
| 16709 List<int> interfaces, |
| 16710 List<int> mixins, |
| 16711 List<int> subclasses}) { |
15592 this.classElement = classElement; | 16712 this.classElement = classElement; |
15593 this.displayName = displayName; | 16713 this.displayName = displayName; |
15594 this.memberElement = memberElement; | 16714 this.memberElement = memberElement; |
15595 this.superclass = superclass; | 16715 this.superclass = superclass; |
15596 if (interfaces == null) { | 16716 if (interfaces == null) { |
15597 this.interfaces = <int>[]; | 16717 this.interfaces = <int>[]; |
15598 } else { | 16718 } else { |
15599 this.interfaces = interfaces; | 16719 this.interfaces = interfaces; |
15600 } | 16720 } |
15601 if (mixins == null) { | 16721 if (mixins == null) { |
15602 this.mixins = <int>[]; | 16722 this.mixins = <int>[]; |
15603 } else { | 16723 } else { |
15604 this.mixins = mixins; | 16724 this.mixins = mixins; |
15605 } | 16725 } |
15606 if (subclasses == null) { | 16726 if (subclasses == null) { |
15607 this.subclasses = <int>[]; | 16727 this.subclasses = <int>[]; |
15608 } else { | 16728 } else { |
15609 this.subclasses = subclasses; | 16729 this.subclasses = subclasses; |
15610 } | 16730 } |
15611 } | 16731 } |
15612 | 16732 |
15613 factory TypeHierarchyItem.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 16733 factory TypeHierarchyItem.fromJson( |
| 16734 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
15614 if (json == null) { | 16735 if (json == null) { |
15615 json = {}; | 16736 json = {}; |
15616 } | 16737 } |
15617 if (json is Map) { | 16738 if (json is Map) { |
15618 Element classElement; | 16739 Element classElement; |
15619 if (json.containsKey("classElement")) { | 16740 if (json.containsKey("classElement")) { |
15620 classElement = new Element.fromJson(jsonDecoder, jsonPath + ".classEleme
nt", json["classElement"]); | 16741 classElement = new Element.fromJson( |
| 16742 jsonDecoder, jsonPath + ".classElement", json["classElement"]); |
15621 } else { | 16743 } else { |
15622 throw jsonDecoder.missingKey(jsonPath, "classElement"); | 16744 throw jsonDecoder.missingKey(jsonPath, "classElement"); |
15623 } | 16745 } |
15624 String displayName; | 16746 String displayName; |
15625 if (json.containsKey("displayName")) { | 16747 if (json.containsKey("displayName")) { |
15626 displayName = jsonDecoder.decodeString(jsonPath + ".displayName", json["
displayName"]); | 16748 displayName = jsonDecoder.decodeString( |
| 16749 jsonPath + ".displayName", json["displayName"]); |
15627 } | 16750 } |
15628 Element memberElement; | 16751 Element memberElement; |
15629 if (json.containsKey("memberElement")) { | 16752 if (json.containsKey("memberElement")) { |
15630 memberElement = new Element.fromJson(jsonDecoder, jsonPath + ".memberEle
ment", json["memberElement"]); | 16753 memberElement = new Element.fromJson( |
| 16754 jsonDecoder, jsonPath + ".memberElement", json["memberElement"]); |
15631 } | 16755 } |
15632 int superclass; | 16756 int superclass; |
15633 if (json.containsKey("superclass")) { | 16757 if (json.containsKey("superclass")) { |
15634 superclass = jsonDecoder.decodeInt(jsonPath + ".superclass", json["super
class"]); | 16758 superclass = |
| 16759 jsonDecoder.decodeInt(jsonPath + ".superclass", json["superclass"]); |
15635 } | 16760 } |
15636 List<int> interfaces; | 16761 List<int> interfaces; |
15637 if (json.containsKey("interfaces")) { | 16762 if (json.containsKey("interfaces")) { |
15638 interfaces = jsonDecoder.decodeList(jsonPath + ".interfaces", json["inte
rfaces"], jsonDecoder.decodeInt); | 16763 interfaces = jsonDecoder.decodeList(jsonPath + ".interfaces", |
| 16764 json["interfaces"], jsonDecoder.decodeInt); |
15639 } else { | 16765 } else { |
15640 throw jsonDecoder.missingKey(jsonPath, "interfaces"); | 16766 throw jsonDecoder.missingKey(jsonPath, "interfaces"); |
15641 } | 16767 } |
15642 List<int> mixins; | 16768 List<int> mixins; |
15643 if (json.containsKey("mixins")) { | 16769 if (json.containsKey("mixins")) { |
15644 mixins = jsonDecoder.decodeList(jsonPath + ".mixins", json["mixins"], js
onDecoder.decodeInt); | 16770 mixins = jsonDecoder.decodeList( |
| 16771 jsonPath + ".mixins", json["mixins"], jsonDecoder.decodeInt); |
15645 } else { | 16772 } else { |
15646 throw jsonDecoder.missingKey(jsonPath, "mixins"); | 16773 throw jsonDecoder.missingKey(jsonPath, "mixins"); |
15647 } | 16774 } |
15648 List<int> subclasses; | 16775 List<int> subclasses; |
15649 if (json.containsKey("subclasses")) { | 16776 if (json.containsKey("subclasses")) { |
15650 subclasses = jsonDecoder.decodeList(jsonPath + ".subclasses", json["subc
lasses"], jsonDecoder.decodeInt); | 16777 subclasses = jsonDecoder.decodeList(jsonPath + ".subclasses", |
| 16778 json["subclasses"], jsonDecoder.decodeInt); |
15651 } else { | 16779 } else { |
15652 throw jsonDecoder.missingKey(jsonPath, "subclasses"); | 16780 throw jsonDecoder.missingKey(jsonPath, "subclasses"); |
15653 } | 16781 } |
15654 return new TypeHierarchyItem(classElement, displayName: displayName, membe
rElement: memberElement, superclass: superclass, interfaces: interfaces, mixins:
mixins, subclasses: subclasses); | 16782 return new TypeHierarchyItem(classElement, |
| 16783 displayName: displayName, |
| 16784 memberElement: memberElement, |
| 16785 superclass: superclass, |
| 16786 interfaces: interfaces, |
| 16787 mixins: mixins, |
| 16788 subclasses: subclasses); |
15655 } else { | 16789 } else { |
15656 throw jsonDecoder.mismatch(jsonPath, "TypeHierarchyItem", json); | 16790 throw jsonDecoder.mismatch(jsonPath, "TypeHierarchyItem", json); |
15657 } | 16791 } |
15658 } | 16792 } |
15659 | 16793 |
15660 Map<String, dynamic> toJson() { | 16794 Map<String, dynamic> toJson() { |
15661 Map<String, dynamic> result = {}; | 16795 Map<String, dynamic> result = {}; |
15662 result["classElement"] = classElement.toJson(); | 16796 result["classElement"] = classElement.toJson(); |
15663 if (displayName != null) { | 16797 if (displayName != null) { |
15664 result["displayName"] = displayName; | 16798 result["displayName"] = displayName; |
15665 } | 16799 } |
15666 if (memberElement != null) { | 16800 if (memberElement != null) { |
15667 result["memberElement"] = memberElement.toJson(); | 16801 result["memberElement"] = memberElement.toJson(); |
15668 } | 16802 } |
15669 if (superclass != null) { | 16803 if (superclass != null) { |
15670 result["superclass"] = superclass; | 16804 result["superclass"] = superclass; |
15671 } | 16805 } |
15672 result["interfaces"] = interfaces; | 16806 result["interfaces"] = interfaces; |
15673 result["mixins"] = mixins; | 16807 result["mixins"] = mixins; |
15674 result["subclasses"] = subclasses; | 16808 result["subclasses"] = subclasses; |
15675 return result; | 16809 return result; |
15676 } | 16810 } |
15677 | 16811 |
15678 @override | 16812 @override |
15679 String toString() => JSON.encode(toJson()); | 16813 String toString() => JSON.encode(toJson()); |
15680 | 16814 |
15681 @override | 16815 @override |
15682 bool operator==(other) { | 16816 bool operator ==(other) { |
15683 if (other is TypeHierarchyItem) { | 16817 if (other is TypeHierarchyItem) { |
15684 return classElement == other.classElement && | 16818 return classElement == other.classElement && |
15685 displayName == other.displayName && | 16819 displayName == other.displayName && |
15686 memberElement == other.memberElement && | 16820 memberElement == other.memberElement && |
15687 superclass == other.superclass && | 16821 superclass == other.superclass && |
15688 listEqual(interfaces, other.interfaces, (int a, int b) => a == b) && | 16822 listEqual(interfaces, other.interfaces, (int a, int b) => a == b) && |
15689 listEqual(mixins, other.mixins, (int a, int b) => a == b) && | 16823 listEqual(mixins, other.mixins, (int a, int b) => a == b) && |
15690 listEqual(subclasses, other.subclasses, (int a, int b) => a == b); | 16824 listEqual(subclasses, other.subclasses, (int a, int b) => a == b); |
15691 } | 16825 } |
15692 return false; | 16826 return false; |
15693 } | 16827 } |
15694 | 16828 |
15695 @override | 16829 @override |
15696 int get hashCode { | 16830 int get hashCode { |
15697 int hash = 0; | 16831 int hash = 0; |
15698 hash = JenkinsSmiHash.combine(hash, classElement.hashCode); | 16832 hash = JenkinsSmiHash.combine(hash, classElement.hashCode); |
15699 hash = JenkinsSmiHash.combine(hash, displayName.hashCode); | 16833 hash = JenkinsSmiHash.combine(hash, displayName.hashCode); |
15700 hash = JenkinsSmiHash.combine(hash, memberElement.hashCode); | 16834 hash = JenkinsSmiHash.combine(hash, memberElement.hashCode); |
15701 hash = JenkinsSmiHash.combine(hash, superclass.hashCode); | 16835 hash = JenkinsSmiHash.combine(hash, superclass.hashCode); |
15702 hash = JenkinsSmiHash.combine(hash, interfaces.hashCode); | 16836 hash = JenkinsSmiHash.combine(hash, interfaces.hashCode); |
15703 hash = JenkinsSmiHash.combine(hash, mixins.hashCode); | 16837 hash = JenkinsSmiHash.combine(hash, mixins.hashCode); |
15704 hash = JenkinsSmiHash.combine(hash, subclasses.hashCode); | 16838 hash = JenkinsSmiHash.combine(hash, subclasses.hashCode); |
15705 return JenkinsSmiHash.finish(hash); | 16839 return JenkinsSmiHash.finish(hash); |
15706 } | 16840 } |
15707 } | 16841 } |
| 16842 |
15708 /** | 16843 /** |
15709 * convertGetterToMethod feedback | 16844 * convertGetterToMethod feedback |
15710 * | 16845 * |
15711 * Clients may not extend, implement or mix-in this class. | 16846 * Clients may not extend, implement or mix-in this class. |
15712 */ | 16847 */ |
15713 class ConvertGetterToMethodFeedback extends RefactoringFeedback { | 16848 class ConvertGetterToMethodFeedback extends RefactoringFeedback { |
15714 @override | 16849 @override |
15715 bool operator==(other) { | 16850 bool operator ==(other) { |
15716 if (other is ConvertGetterToMethodFeedback) { | 16851 if (other is ConvertGetterToMethodFeedback) { |
15717 return true; | 16852 return true; |
15718 } | 16853 } |
15719 return false; | 16854 return false; |
15720 } | 16855 } |
15721 | 16856 |
15722 @override | 16857 @override |
15723 int get hashCode { | 16858 int get hashCode { |
15724 return 616032599; | 16859 return 616032599; |
15725 } | 16860 } |
15726 } | 16861 } |
| 16862 |
15727 /** | 16863 /** |
15728 * convertGetterToMethod options | 16864 * convertGetterToMethod options |
15729 * | 16865 * |
15730 * Clients may not extend, implement or mix-in this class. | 16866 * Clients may not extend, implement or mix-in this class. |
15731 */ | 16867 */ |
15732 class ConvertGetterToMethodOptions extends RefactoringOptions { | 16868 class ConvertGetterToMethodOptions extends RefactoringOptions { |
15733 @override | 16869 @override |
15734 bool operator==(other) { | 16870 bool operator ==(other) { |
15735 if (other is ConvertGetterToMethodOptions) { | 16871 if (other is ConvertGetterToMethodOptions) { |
15736 return true; | 16872 return true; |
15737 } | 16873 } |
15738 return false; | 16874 return false; |
15739 } | 16875 } |
15740 | 16876 |
15741 @override | 16877 @override |
15742 int get hashCode { | 16878 int get hashCode { |
15743 return 488848400; | 16879 return 488848400; |
15744 } | 16880 } |
15745 } | 16881 } |
| 16882 |
15746 /** | 16883 /** |
15747 * convertMethodToGetter feedback | 16884 * convertMethodToGetter feedback |
15748 * | 16885 * |
15749 * Clients may not extend, implement or mix-in this class. | 16886 * Clients may not extend, implement or mix-in this class. |
15750 */ | 16887 */ |
15751 class ConvertMethodToGetterFeedback extends RefactoringFeedback { | 16888 class ConvertMethodToGetterFeedback extends RefactoringFeedback { |
15752 @override | 16889 @override |
15753 bool operator==(other) { | 16890 bool operator ==(other) { |
15754 if (other is ConvertMethodToGetterFeedback) { | 16891 if (other is ConvertMethodToGetterFeedback) { |
15755 return true; | 16892 return true; |
15756 } | 16893 } |
15757 return false; | 16894 return false; |
15758 } | 16895 } |
15759 | 16896 |
15760 @override | 16897 @override |
15761 int get hashCode { | 16898 int get hashCode { |
15762 return 165291526; | 16899 return 165291526; |
15763 } | 16900 } |
15764 } | 16901 } |
| 16902 |
15765 /** | 16903 /** |
15766 * convertMethodToGetter options | 16904 * convertMethodToGetter options |
15767 * | 16905 * |
15768 * Clients may not extend, implement or mix-in this class. | 16906 * Clients may not extend, implement or mix-in this class. |
15769 */ | 16907 */ |
15770 class ConvertMethodToGetterOptions extends RefactoringOptions { | 16908 class ConvertMethodToGetterOptions extends RefactoringOptions { |
15771 @override | 16909 @override |
15772 bool operator==(other) { | 16910 bool operator ==(other) { |
15773 if (other is ConvertMethodToGetterOptions) { | 16911 if (other is ConvertMethodToGetterOptions) { |
15774 return true; | 16912 return true; |
15775 } | 16913 } |
15776 return false; | 16914 return false; |
15777 } | 16915 } |
15778 | 16916 |
15779 @override | 16917 @override |
15780 int get hashCode { | 16918 int get hashCode { |
15781 return 27952290; | 16919 return 27952290; |
15782 } | 16920 } |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15874 * The lengths of the expressions that would be replaced by a reference to | 17012 * The lengths of the expressions that would be replaced by a reference to |
15875 * the variable. The lengths correspond to the offsets. In other words, for a | 17013 * the variable. The lengths correspond to the offsets. In other words, for a |
15876 * given expression, if the offset of that expression is offsets[i], then the | 17014 * given expression, if the offset of that expression is offsets[i], then the |
15877 * length of that expression is lengths[i]. | 17015 * length of that expression is lengths[i]. |
15878 */ | 17016 */ |
15879 void set lengths(List<int> value) { | 17017 void set lengths(List<int> value) { |
15880 assert(value != null); | 17018 assert(value != null); |
15881 this._lengths = value; | 17019 this._lengths = value; |
15882 } | 17020 } |
15883 | 17021 |
15884 ExtractLocalVariableFeedback(List<String> names, List<int> offsets, List<int>
lengths, {List<int> coveringExpressionOffsets, List<int> coveringExpressionLengt
hs}) { | 17022 ExtractLocalVariableFeedback( |
| 17023 List<String> names, List<int> offsets, List<int> lengths, |
| 17024 {List<int> coveringExpressionOffsets, |
| 17025 List<int> coveringExpressionLengths}) { |
15885 this.coveringExpressionOffsets = coveringExpressionOffsets; | 17026 this.coveringExpressionOffsets = coveringExpressionOffsets; |
15886 this.coveringExpressionLengths = coveringExpressionLengths; | 17027 this.coveringExpressionLengths = coveringExpressionLengths; |
15887 this.names = names; | 17028 this.names = names; |
15888 this.offsets = offsets; | 17029 this.offsets = offsets; |
15889 this.lengths = lengths; | 17030 this.lengths = lengths; |
15890 } | 17031 } |
15891 | 17032 |
15892 factory ExtractLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 17033 factory ExtractLocalVariableFeedback.fromJson( |
| 17034 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
15893 if (json == null) { | 17035 if (json == null) { |
15894 json = {}; | 17036 json = {}; |
15895 } | 17037 } |
15896 if (json is Map) { | 17038 if (json is Map) { |
15897 List<int> coveringExpressionOffsets; | 17039 List<int> coveringExpressionOffsets; |
15898 if (json.containsKey("coveringExpressionOffsets")) { | 17040 if (json.containsKey("coveringExpressionOffsets")) { |
15899 coveringExpressionOffsets = jsonDecoder.decodeList(jsonPath + ".covering
ExpressionOffsets", json["coveringExpressionOffsets"], jsonDecoder.decodeInt); | 17041 coveringExpressionOffsets = jsonDecoder.decodeList( |
| 17042 jsonPath + ".coveringExpressionOffsets", |
| 17043 json["coveringExpressionOffsets"], |
| 17044 jsonDecoder.decodeInt); |
15900 } | 17045 } |
15901 List<int> coveringExpressionLengths; | 17046 List<int> coveringExpressionLengths; |
15902 if (json.containsKey("coveringExpressionLengths")) { | 17047 if (json.containsKey("coveringExpressionLengths")) { |
15903 coveringExpressionLengths = jsonDecoder.decodeList(jsonPath + ".covering
ExpressionLengths", json["coveringExpressionLengths"], jsonDecoder.decodeInt); | 17048 coveringExpressionLengths = jsonDecoder.decodeList( |
| 17049 jsonPath + ".coveringExpressionLengths", |
| 17050 json["coveringExpressionLengths"], |
| 17051 jsonDecoder.decodeInt); |
15904 } | 17052 } |
15905 List<String> names; | 17053 List<String> names; |
15906 if (json.containsKey("names")) { | 17054 if (json.containsKey("names")) { |
15907 names = jsonDecoder.decodeList(jsonPath + ".names", json["names"], jsonD
ecoder.decodeString); | 17055 names = jsonDecoder.decodeList( |
| 17056 jsonPath + ".names", json["names"], jsonDecoder.decodeString); |
15908 } else { | 17057 } else { |
15909 throw jsonDecoder.missingKey(jsonPath, "names"); | 17058 throw jsonDecoder.missingKey(jsonPath, "names"); |
15910 } | 17059 } |
15911 List<int> offsets; | 17060 List<int> offsets; |
15912 if (json.containsKey("offsets")) { | 17061 if (json.containsKey("offsets")) { |
15913 offsets = jsonDecoder.decodeList(jsonPath + ".offsets", json["offsets"],
jsonDecoder.decodeInt); | 17062 offsets = jsonDecoder.decodeList( |
| 17063 jsonPath + ".offsets", json["offsets"], jsonDecoder.decodeInt); |
15914 } else { | 17064 } else { |
15915 throw jsonDecoder.missingKey(jsonPath, "offsets"); | 17065 throw jsonDecoder.missingKey(jsonPath, "offsets"); |
15916 } | 17066 } |
15917 List<int> lengths; | 17067 List<int> lengths; |
15918 if (json.containsKey("lengths")) { | 17068 if (json.containsKey("lengths")) { |
15919 lengths = jsonDecoder.decodeList(jsonPath + ".lengths", json["lengths"],
jsonDecoder.decodeInt); | 17069 lengths = jsonDecoder.decodeList( |
| 17070 jsonPath + ".lengths", json["lengths"], jsonDecoder.decodeInt); |
15920 } else { | 17071 } else { |
15921 throw jsonDecoder.missingKey(jsonPath, "lengths"); | 17072 throw jsonDecoder.missingKey(jsonPath, "lengths"); |
15922 } | 17073 } |
15923 return new ExtractLocalVariableFeedback(names, offsets, lengths, coveringE
xpressionOffsets: coveringExpressionOffsets, coveringExpressionLengths: covering
ExpressionLengths); | 17074 return new ExtractLocalVariableFeedback(names, offsets, lengths, |
| 17075 coveringExpressionOffsets: coveringExpressionOffsets, |
| 17076 coveringExpressionLengths: coveringExpressionLengths); |
15924 } else { | 17077 } else { |
15925 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable feedback", json
); | 17078 throw jsonDecoder.mismatch( |
| 17079 jsonPath, "extractLocalVariable feedback", json); |
15926 } | 17080 } |
15927 } | 17081 } |
15928 | 17082 |
15929 Map<String, dynamic> toJson() { | 17083 Map<String, dynamic> toJson() { |
15930 Map<String, dynamic> result = {}; | 17084 Map<String, dynamic> result = {}; |
15931 if (coveringExpressionOffsets != null) { | 17085 if (coveringExpressionOffsets != null) { |
15932 result["coveringExpressionOffsets"] = coveringExpressionOffsets; | 17086 result["coveringExpressionOffsets"] = coveringExpressionOffsets; |
15933 } | 17087 } |
15934 if (coveringExpressionLengths != null) { | 17088 if (coveringExpressionLengths != null) { |
15935 result["coveringExpressionLengths"] = coveringExpressionLengths; | 17089 result["coveringExpressionLengths"] = coveringExpressionLengths; |
15936 } | 17090 } |
15937 result["names"] = names; | 17091 result["names"] = names; |
15938 result["offsets"] = offsets; | 17092 result["offsets"] = offsets; |
15939 result["lengths"] = lengths; | 17093 result["lengths"] = lengths; |
15940 return result; | 17094 return result; |
15941 } | 17095 } |
15942 | 17096 |
15943 @override | 17097 @override |
15944 String toString() => JSON.encode(toJson()); | 17098 String toString() => JSON.encode(toJson()); |
15945 | 17099 |
15946 @override | 17100 @override |
15947 bool operator==(other) { | 17101 bool operator ==(other) { |
15948 if (other is ExtractLocalVariableFeedback) { | 17102 if (other is ExtractLocalVariableFeedback) { |
15949 return listEqual(coveringExpressionOffsets, other.coveringExpressionOffset
s, (int a, int b) => a == b) && | 17103 return listEqual(coveringExpressionOffsets, |
15950 listEqual(coveringExpressionLengths, other.coveringExpressionLengths,
(int a, int b) => a == b) && | 17104 other.coveringExpressionOffsets, (int a, int b) => a == b) && |
| 17105 listEqual(coveringExpressionLengths, other.coveringExpressionLengths, |
| 17106 (int a, int b) => a == b) && |
15951 listEqual(names, other.names, (String a, String b) => a == b) && | 17107 listEqual(names, other.names, (String a, String b) => a == b) && |
15952 listEqual(offsets, other.offsets, (int a, int b) => a == b) && | 17108 listEqual(offsets, other.offsets, (int a, int b) => a == b) && |
15953 listEqual(lengths, other.lengths, (int a, int b) => a == b); | 17109 listEqual(lengths, other.lengths, (int a, int b) => a == b); |
15954 } | 17110 } |
15955 return false; | 17111 return false; |
15956 } | 17112 } |
15957 | 17113 |
15958 @override | 17114 @override |
15959 int get hashCode { | 17115 int get hashCode { |
15960 int hash = 0; | 17116 int hash = 0; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16012 void set extractAll(bool value) { | 17168 void set extractAll(bool value) { |
16013 assert(value != null); | 17169 assert(value != null); |
16014 this._extractAll = value; | 17170 this._extractAll = value; |
16015 } | 17171 } |
16016 | 17172 |
16017 ExtractLocalVariableOptions(String name, bool extractAll) { | 17173 ExtractLocalVariableOptions(String name, bool extractAll) { |
16018 this.name = name; | 17174 this.name = name; |
16019 this.extractAll = extractAll; | 17175 this.extractAll = extractAll; |
16020 } | 17176 } |
16021 | 17177 |
16022 factory ExtractLocalVariableOptions.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 17178 factory ExtractLocalVariableOptions.fromJson( |
| 17179 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
16023 if (json == null) { | 17180 if (json == null) { |
16024 json = {}; | 17181 json = {}; |
16025 } | 17182 } |
16026 if (json is Map) { | 17183 if (json is Map) { |
16027 String name; | 17184 String name; |
16028 if (json.containsKey("name")) { | 17185 if (json.containsKey("name")) { |
16029 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); | 17186 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
16030 } else { | 17187 } else { |
16031 throw jsonDecoder.missingKey(jsonPath, "name"); | 17188 throw jsonDecoder.missingKey(jsonPath, "name"); |
16032 } | 17189 } |
16033 bool extractAll; | 17190 bool extractAll; |
16034 if (json.containsKey("extractAll")) { | 17191 if (json.containsKey("extractAll")) { |
16035 extractAll = jsonDecoder.decodeBool(jsonPath + ".extractAll", json["extr
actAll"]); | 17192 extractAll = jsonDecoder.decodeBool( |
| 17193 jsonPath + ".extractAll", json["extractAll"]); |
16036 } else { | 17194 } else { |
16037 throw jsonDecoder.missingKey(jsonPath, "extractAll"); | 17195 throw jsonDecoder.missingKey(jsonPath, "extractAll"); |
16038 } | 17196 } |
16039 return new ExtractLocalVariableOptions(name, extractAll); | 17197 return new ExtractLocalVariableOptions(name, extractAll); |
16040 } else { | 17198 } else { |
16041 throw jsonDecoder.mismatch(jsonPath, "extractLocalVariable options", json)
; | 17199 throw jsonDecoder.mismatch( |
| 17200 jsonPath, "extractLocalVariable options", json); |
16042 } | 17201 } |
16043 } | 17202 } |
16044 | 17203 |
16045 factory ExtractLocalVariableOptions.fromRefactoringParams(EditGetRefactoringPa
rams refactoringParams, Request request) { | 17204 factory ExtractLocalVariableOptions.fromRefactoringParams( |
| 17205 EditGetRefactoringParams refactoringParams, Request request) { |
16046 return new ExtractLocalVariableOptions.fromJson( | 17206 return new ExtractLocalVariableOptions.fromJson( |
16047 new RequestDecoder(request), "options", refactoringParams.options); | 17207 new RequestDecoder(request), "options", refactoringParams.options); |
16048 } | 17208 } |
16049 | 17209 |
16050 Map<String, dynamic> toJson() { | 17210 Map<String, dynamic> toJson() { |
16051 Map<String, dynamic> result = {}; | 17211 Map<String, dynamic> result = {}; |
16052 result["name"] = name; | 17212 result["name"] = name; |
16053 result["extractAll"] = extractAll; | 17213 result["extractAll"] = extractAll; |
16054 return result; | 17214 return result; |
16055 } | 17215 } |
16056 | 17216 |
16057 @override | 17217 @override |
16058 String toString() => JSON.encode(toJson()); | 17218 String toString() => JSON.encode(toJson()); |
16059 | 17219 |
16060 @override | 17220 @override |
16061 bool operator==(other) { | 17221 bool operator ==(other) { |
16062 if (other is ExtractLocalVariableOptions) { | 17222 if (other is ExtractLocalVariableOptions) { |
16063 return name == other.name && | 17223 return name == other.name && extractAll == other.extractAll; |
16064 extractAll == other.extractAll; | |
16065 } | 17224 } |
16066 return false; | 17225 return false; |
16067 } | 17226 } |
16068 | 17227 |
16069 @override | 17228 @override |
16070 int get hashCode { | 17229 int get hashCode { |
16071 int hash = 0; | 17230 int hash = 0; |
16072 hash = JenkinsSmiHash.combine(hash, name.hashCode); | 17231 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
16073 hash = JenkinsSmiHash.combine(hash, extractAll.hashCode); | 17232 hash = JenkinsSmiHash.combine(hash, extractAll.hashCode); |
16074 return JenkinsSmiHash.finish(hash); | 17233 return JenkinsSmiHash.finish(hash); |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16219 * invocation of the method. The lengths correspond to the offsets. In other | 17378 * invocation of the method. The lengths correspond to the offsets. In other |
16220 * words, for a given expression (or block of statements), if the offset of | 17379 * words, for a given expression (or block of statements), if the offset of |
16221 * that expression is offsets[i], then the length of that expression is | 17380 * that expression is offsets[i], then the length of that expression is |
16222 * lengths[i]. | 17381 * lengths[i]. |
16223 */ | 17382 */ |
16224 void set lengths(List<int> value) { | 17383 void set lengths(List<int> value) { |
16225 assert(value != null); | 17384 assert(value != null); |
16226 this._lengths = value; | 17385 this._lengths = value; |
16227 } | 17386 } |
16228 | 17387 |
16229 ExtractMethodFeedback(int offset, int length, String returnType, List<String>
names, bool canCreateGetter, List<RefactoringMethodParameter> parameters, List<i
nt> offsets, List<int> lengths) { | 17388 ExtractMethodFeedback( |
| 17389 int offset, |
| 17390 int length, |
| 17391 String returnType, |
| 17392 List<String> names, |
| 17393 bool canCreateGetter, |
| 17394 List<RefactoringMethodParameter> parameters, |
| 17395 List<int> offsets, |
| 17396 List<int> lengths) { |
16230 this.offset = offset; | 17397 this.offset = offset; |
16231 this.length = length; | 17398 this.length = length; |
16232 this.returnType = returnType; | 17399 this.returnType = returnType; |
16233 this.names = names; | 17400 this.names = names; |
16234 this.canCreateGetter = canCreateGetter; | 17401 this.canCreateGetter = canCreateGetter; |
16235 this.parameters = parameters; | 17402 this.parameters = parameters; |
16236 this.offsets = offsets; | 17403 this.offsets = offsets; |
16237 this.lengths = lengths; | 17404 this.lengths = lengths; |
16238 } | 17405 } |
16239 | 17406 |
16240 factory ExtractMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 17407 factory ExtractMethodFeedback.fromJson( |
| 17408 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
16241 if (json == null) { | 17409 if (json == null) { |
16242 json = {}; | 17410 json = {}; |
16243 } | 17411 } |
16244 if (json is Map) { | 17412 if (json is Map) { |
16245 int offset; | 17413 int offset; |
16246 if (json.containsKey("offset")) { | 17414 if (json.containsKey("offset")) { |
16247 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 17415 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
16248 } else { | 17416 } else { |
16249 throw jsonDecoder.missingKey(jsonPath, "offset"); | 17417 throw jsonDecoder.missingKey(jsonPath, "offset"); |
16250 } | 17418 } |
16251 int length; | 17419 int length; |
16252 if (json.containsKey("length")) { | 17420 if (json.containsKey("length")) { |
16253 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 17421 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
16254 } else { | 17422 } else { |
16255 throw jsonDecoder.missingKey(jsonPath, "length"); | 17423 throw jsonDecoder.missingKey(jsonPath, "length"); |
16256 } | 17424 } |
16257 String returnType; | 17425 String returnType; |
16258 if (json.containsKey("returnType")) { | 17426 if (json.containsKey("returnType")) { |
16259 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); | 17427 returnType = jsonDecoder.decodeString( |
| 17428 jsonPath + ".returnType", json["returnType"]); |
16260 } else { | 17429 } else { |
16261 throw jsonDecoder.missingKey(jsonPath, "returnType"); | 17430 throw jsonDecoder.missingKey(jsonPath, "returnType"); |
16262 } | 17431 } |
16263 List<String> names; | 17432 List<String> names; |
16264 if (json.containsKey("names")) { | 17433 if (json.containsKey("names")) { |
16265 names = jsonDecoder.decodeList(jsonPath + ".names", json["names"], jsonD
ecoder.decodeString); | 17434 names = jsonDecoder.decodeList( |
| 17435 jsonPath + ".names", json["names"], jsonDecoder.decodeString); |
16266 } else { | 17436 } else { |
16267 throw jsonDecoder.missingKey(jsonPath, "names"); | 17437 throw jsonDecoder.missingKey(jsonPath, "names"); |
16268 } | 17438 } |
16269 bool canCreateGetter; | 17439 bool canCreateGetter; |
16270 if (json.containsKey("canCreateGetter")) { | 17440 if (json.containsKey("canCreateGetter")) { |
16271 canCreateGetter = jsonDecoder.decodeBool(jsonPath + ".canCreateGetter",
json["canCreateGetter"]); | 17441 canCreateGetter = jsonDecoder.decodeBool( |
| 17442 jsonPath + ".canCreateGetter", json["canCreateGetter"]); |
16272 } else { | 17443 } else { |
16273 throw jsonDecoder.missingKey(jsonPath, "canCreateGetter"); | 17444 throw jsonDecoder.missingKey(jsonPath, "canCreateGetter"); |
16274 } | 17445 } |
16275 List<RefactoringMethodParameter> parameters; | 17446 List<RefactoringMethodParameter> parameters; |
16276 if (json.containsKey("parameters")) { | 17447 if (json.containsKey("parameters")) { |
16277 parameters = jsonDecoder.decodeList(jsonPath + ".parameters", json["para
meters"], (String jsonPath, Object json) => new RefactoringMethodParameter.fromJ
son(jsonDecoder, jsonPath, json)); | 17448 parameters = jsonDecoder.decodeList( |
| 17449 jsonPath + ".parameters", |
| 17450 json["parameters"], |
| 17451 (String jsonPath, Object json) => |
| 17452 new RefactoringMethodParameter.fromJson( |
| 17453 jsonDecoder, jsonPath, json)); |
16278 } else { | 17454 } else { |
16279 throw jsonDecoder.missingKey(jsonPath, "parameters"); | 17455 throw jsonDecoder.missingKey(jsonPath, "parameters"); |
16280 } | 17456 } |
16281 List<int> offsets; | 17457 List<int> offsets; |
16282 if (json.containsKey("offsets")) { | 17458 if (json.containsKey("offsets")) { |
16283 offsets = jsonDecoder.decodeList(jsonPath + ".offsets", json["offsets"],
jsonDecoder.decodeInt); | 17459 offsets = jsonDecoder.decodeList( |
| 17460 jsonPath + ".offsets", json["offsets"], jsonDecoder.decodeInt); |
16284 } else { | 17461 } else { |
16285 throw jsonDecoder.missingKey(jsonPath, "offsets"); | 17462 throw jsonDecoder.missingKey(jsonPath, "offsets"); |
16286 } | 17463 } |
16287 List<int> lengths; | 17464 List<int> lengths; |
16288 if (json.containsKey("lengths")) { | 17465 if (json.containsKey("lengths")) { |
16289 lengths = jsonDecoder.decodeList(jsonPath + ".lengths", json["lengths"],
jsonDecoder.decodeInt); | 17466 lengths = jsonDecoder.decodeList( |
| 17467 jsonPath + ".lengths", json["lengths"], jsonDecoder.decodeInt); |
16290 } else { | 17468 } else { |
16291 throw jsonDecoder.missingKey(jsonPath, "lengths"); | 17469 throw jsonDecoder.missingKey(jsonPath, "lengths"); |
16292 } | 17470 } |
16293 return new ExtractMethodFeedback(offset, length, returnType, names, canCre
ateGetter, parameters, offsets, lengths); | 17471 return new ExtractMethodFeedback(offset, length, returnType, names, |
| 17472 canCreateGetter, parameters, offsets, lengths); |
16294 } else { | 17473 } else { |
16295 throw jsonDecoder.mismatch(jsonPath, "extractMethod feedback", json); | 17474 throw jsonDecoder.mismatch(jsonPath, "extractMethod feedback", json); |
16296 } | 17475 } |
16297 } | 17476 } |
16298 | 17477 |
16299 Map<String, dynamic> toJson() { | 17478 Map<String, dynamic> toJson() { |
16300 Map<String, dynamic> result = {}; | 17479 Map<String, dynamic> result = {}; |
16301 result["offset"] = offset; | 17480 result["offset"] = offset; |
16302 result["length"] = length; | 17481 result["length"] = length; |
16303 result["returnType"] = returnType; | 17482 result["returnType"] = returnType; |
16304 result["names"] = names; | 17483 result["names"] = names; |
16305 result["canCreateGetter"] = canCreateGetter; | 17484 result["canCreateGetter"] = canCreateGetter; |
16306 result["parameters"] = parameters.map((RefactoringMethodParameter value) =>
value.toJson()).toList(); | 17485 result["parameters"] = parameters |
| 17486 .map((RefactoringMethodParameter value) => value.toJson()) |
| 17487 .toList(); |
16307 result["offsets"] = offsets; | 17488 result["offsets"] = offsets; |
16308 result["lengths"] = lengths; | 17489 result["lengths"] = lengths; |
16309 return result; | 17490 return result; |
16310 } | 17491 } |
16311 | 17492 |
16312 @override | 17493 @override |
16313 String toString() => JSON.encode(toJson()); | 17494 String toString() => JSON.encode(toJson()); |
16314 | 17495 |
16315 @override | 17496 @override |
16316 bool operator==(other) { | 17497 bool operator ==(other) { |
16317 if (other is ExtractMethodFeedback) { | 17498 if (other is ExtractMethodFeedback) { |
16318 return offset == other.offset && | 17499 return offset == other.offset && |
16319 length == other.length && | 17500 length == other.length && |
16320 returnType == other.returnType && | 17501 returnType == other.returnType && |
16321 listEqual(names, other.names, (String a, String b) => a == b) && | 17502 listEqual(names, other.names, (String a, String b) => a == b) && |
16322 canCreateGetter == other.canCreateGetter && | 17503 canCreateGetter == other.canCreateGetter && |
16323 listEqual(parameters, other.parameters, (RefactoringMethodParameter a,
RefactoringMethodParameter b) => a == b) && | 17504 listEqual( |
| 17505 parameters, |
| 17506 other.parameters, |
| 17507 (RefactoringMethodParameter a, RefactoringMethodParameter b) => |
| 17508 a == b) && |
16324 listEqual(offsets, other.offsets, (int a, int b) => a == b) && | 17509 listEqual(offsets, other.offsets, (int a, int b) => a == b) && |
16325 listEqual(lengths, other.lengths, (int a, int b) => a == b); | 17510 listEqual(lengths, other.lengths, (int a, int b) => a == b); |
16326 } | 17511 } |
16327 return false; | 17512 return false; |
16328 } | 17513 } |
16329 | 17514 |
16330 @override | 17515 @override |
16331 int get hashCode { | 17516 int get hashCode { |
16332 int hash = 0; | 17517 int hash = 0; |
16333 hash = JenkinsSmiHash.combine(hash, offset.hashCode); | 17518 hash = JenkinsSmiHash.combine(hash, offset.hashCode); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16448 /** | 17633 /** |
16449 * True if all occurrences of the expression or statements should be replaced | 17634 * True if all occurrences of the expression or statements should be replaced |
16450 * by an invocation of the method. The expression or statements used to | 17635 * by an invocation of the method. The expression or statements used to |
16451 * initiate the refactoring will always be replaced. | 17636 * initiate the refactoring will always be replaced. |
16452 */ | 17637 */ |
16453 void set extractAll(bool value) { | 17638 void set extractAll(bool value) { |
16454 assert(value != null); | 17639 assert(value != null); |
16455 this._extractAll = value; | 17640 this._extractAll = value; |
16456 } | 17641 } |
16457 | 17642 |
16458 ExtractMethodOptions(String returnType, bool createGetter, String name, List<R
efactoringMethodParameter> parameters, bool extractAll) { | 17643 ExtractMethodOptions(String returnType, bool createGetter, String name, |
| 17644 List<RefactoringMethodParameter> parameters, bool extractAll) { |
16459 this.returnType = returnType; | 17645 this.returnType = returnType; |
16460 this.createGetter = createGetter; | 17646 this.createGetter = createGetter; |
16461 this.name = name; | 17647 this.name = name; |
16462 this.parameters = parameters; | 17648 this.parameters = parameters; |
16463 this.extractAll = extractAll; | 17649 this.extractAll = extractAll; |
16464 } | 17650 } |
16465 | 17651 |
16466 factory ExtractMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 17652 factory ExtractMethodOptions.fromJson( |
| 17653 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
16467 if (json == null) { | 17654 if (json == null) { |
16468 json = {}; | 17655 json = {}; |
16469 } | 17656 } |
16470 if (json is Map) { | 17657 if (json is Map) { |
16471 String returnType; | 17658 String returnType; |
16472 if (json.containsKey("returnType")) { | 17659 if (json.containsKey("returnType")) { |
16473 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); | 17660 returnType = jsonDecoder.decodeString( |
| 17661 jsonPath + ".returnType", json["returnType"]); |
16474 } else { | 17662 } else { |
16475 throw jsonDecoder.missingKey(jsonPath, "returnType"); | 17663 throw jsonDecoder.missingKey(jsonPath, "returnType"); |
16476 } | 17664 } |
16477 bool createGetter; | 17665 bool createGetter; |
16478 if (json.containsKey("createGetter")) { | 17666 if (json.containsKey("createGetter")) { |
16479 createGetter = jsonDecoder.decodeBool(jsonPath + ".createGetter", json["
createGetter"]); | 17667 createGetter = jsonDecoder.decodeBool( |
| 17668 jsonPath + ".createGetter", json["createGetter"]); |
16480 } else { | 17669 } else { |
16481 throw jsonDecoder.missingKey(jsonPath, "createGetter"); | 17670 throw jsonDecoder.missingKey(jsonPath, "createGetter"); |
16482 } | 17671 } |
16483 String name; | 17672 String name; |
16484 if (json.containsKey("name")) { | 17673 if (json.containsKey("name")) { |
16485 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); | 17674 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
16486 } else { | 17675 } else { |
16487 throw jsonDecoder.missingKey(jsonPath, "name"); | 17676 throw jsonDecoder.missingKey(jsonPath, "name"); |
16488 } | 17677 } |
16489 List<RefactoringMethodParameter> parameters; | 17678 List<RefactoringMethodParameter> parameters; |
16490 if (json.containsKey("parameters")) { | 17679 if (json.containsKey("parameters")) { |
16491 parameters = jsonDecoder.decodeList(jsonPath + ".parameters", json["para
meters"], (String jsonPath, Object json) => new RefactoringMethodParameter.fromJ
son(jsonDecoder, jsonPath, json)); | 17680 parameters = jsonDecoder.decodeList( |
| 17681 jsonPath + ".parameters", |
| 17682 json["parameters"], |
| 17683 (String jsonPath, Object json) => |
| 17684 new RefactoringMethodParameter.fromJson( |
| 17685 jsonDecoder, jsonPath, json)); |
16492 } else { | 17686 } else { |
16493 throw jsonDecoder.missingKey(jsonPath, "parameters"); | 17687 throw jsonDecoder.missingKey(jsonPath, "parameters"); |
16494 } | 17688 } |
16495 bool extractAll; | 17689 bool extractAll; |
16496 if (json.containsKey("extractAll")) { | 17690 if (json.containsKey("extractAll")) { |
16497 extractAll = jsonDecoder.decodeBool(jsonPath + ".extractAll", json["extr
actAll"]); | 17691 extractAll = jsonDecoder.decodeBool( |
| 17692 jsonPath + ".extractAll", json["extractAll"]); |
16498 } else { | 17693 } else { |
16499 throw jsonDecoder.missingKey(jsonPath, "extractAll"); | 17694 throw jsonDecoder.missingKey(jsonPath, "extractAll"); |
16500 } | 17695 } |
16501 return new ExtractMethodOptions(returnType, createGetter, name, parameters
, extractAll); | 17696 return new ExtractMethodOptions( |
| 17697 returnType, createGetter, name, parameters, extractAll); |
16502 } else { | 17698 } else { |
16503 throw jsonDecoder.mismatch(jsonPath, "extractMethod options", json); | 17699 throw jsonDecoder.mismatch(jsonPath, "extractMethod options", json); |
16504 } | 17700 } |
16505 } | 17701 } |
16506 | 17702 |
16507 factory ExtractMethodOptions.fromRefactoringParams(EditGetRefactoringParams re
factoringParams, Request request) { | 17703 factory ExtractMethodOptions.fromRefactoringParams( |
| 17704 EditGetRefactoringParams refactoringParams, Request request) { |
16508 return new ExtractMethodOptions.fromJson( | 17705 return new ExtractMethodOptions.fromJson( |
16509 new RequestDecoder(request), "options", refactoringParams.options); | 17706 new RequestDecoder(request), "options", refactoringParams.options); |
16510 } | 17707 } |
16511 | 17708 |
16512 Map<String, dynamic> toJson() { | 17709 Map<String, dynamic> toJson() { |
16513 Map<String, dynamic> result = {}; | 17710 Map<String, dynamic> result = {}; |
16514 result["returnType"] = returnType; | 17711 result["returnType"] = returnType; |
16515 result["createGetter"] = createGetter; | 17712 result["createGetter"] = createGetter; |
16516 result["name"] = name; | 17713 result["name"] = name; |
16517 result["parameters"] = parameters.map((RefactoringMethodParameter value) =>
value.toJson()).toList(); | 17714 result["parameters"] = parameters |
| 17715 .map((RefactoringMethodParameter value) => value.toJson()) |
| 17716 .toList(); |
16518 result["extractAll"] = extractAll; | 17717 result["extractAll"] = extractAll; |
16519 return result; | 17718 return result; |
16520 } | 17719 } |
16521 | 17720 |
16522 @override | 17721 @override |
16523 String toString() => JSON.encode(toJson()); | 17722 String toString() => JSON.encode(toJson()); |
16524 | 17723 |
16525 @override | 17724 @override |
16526 bool operator==(other) { | 17725 bool operator ==(other) { |
16527 if (other is ExtractMethodOptions) { | 17726 if (other is ExtractMethodOptions) { |
16528 return returnType == other.returnType && | 17727 return returnType == other.returnType && |
16529 createGetter == other.createGetter && | 17728 createGetter == other.createGetter && |
16530 name == other.name && | 17729 name == other.name && |
16531 listEqual(parameters, other.parameters, (RefactoringMethodParameter a,
RefactoringMethodParameter b) => a == b) && | 17730 listEqual( |
| 17731 parameters, |
| 17732 other.parameters, |
| 17733 (RefactoringMethodParameter a, RefactoringMethodParameter b) => |
| 17734 a == b) && |
16532 extractAll == other.extractAll; | 17735 extractAll == other.extractAll; |
16533 } | 17736 } |
16534 return false; | 17737 return false; |
16535 } | 17738 } |
16536 | 17739 |
16537 @override | 17740 @override |
16538 int get hashCode { | 17741 int get hashCode { |
16539 int hash = 0; | 17742 int hash = 0; |
16540 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); | 17743 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); |
16541 hash = JenkinsSmiHash.combine(hash, createGetter.hashCode); | 17744 hash = JenkinsSmiHash.combine(hash, createGetter.hashCode); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16585 void set occurrences(int value) { | 17788 void set occurrences(int value) { |
16586 assert(value != null); | 17789 assert(value != null); |
16587 this._occurrences = value; | 17790 this._occurrences = value; |
16588 } | 17791 } |
16589 | 17792 |
16590 InlineLocalVariableFeedback(String name, int occurrences) { | 17793 InlineLocalVariableFeedback(String name, int occurrences) { |
16591 this.name = name; | 17794 this.name = name; |
16592 this.occurrences = occurrences; | 17795 this.occurrences = occurrences; |
16593 } | 17796 } |
16594 | 17797 |
16595 factory InlineLocalVariableFeedback.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 17798 factory InlineLocalVariableFeedback.fromJson( |
| 17799 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
16596 if (json == null) { | 17800 if (json == null) { |
16597 json = {}; | 17801 json = {}; |
16598 } | 17802 } |
16599 if (json is Map) { | 17803 if (json is Map) { |
16600 String name; | 17804 String name; |
16601 if (json.containsKey("name")) { | 17805 if (json.containsKey("name")) { |
16602 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); | 17806 name = jsonDecoder.decodeString(jsonPath + ".name", json["name"]); |
16603 } else { | 17807 } else { |
16604 throw jsonDecoder.missingKey(jsonPath, "name"); | 17808 throw jsonDecoder.missingKey(jsonPath, "name"); |
16605 } | 17809 } |
16606 int occurrences; | 17810 int occurrences; |
16607 if (json.containsKey("occurrences")) { | 17811 if (json.containsKey("occurrences")) { |
16608 occurrences = jsonDecoder.decodeInt(jsonPath + ".occurrences", json["occ
urrences"]); | 17812 occurrences = jsonDecoder.decodeInt( |
| 17813 jsonPath + ".occurrences", json["occurrences"]); |
16609 } else { | 17814 } else { |
16610 throw jsonDecoder.missingKey(jsonPath, "occurrences"); | 17815 throw jsonDecoder.missingKey(jsonPath, "occurrences"); |
16611 } | 17816 } |
16612 return new InlineLocalVariableFeedback(name, occurrences); | 17817 return new InlineLocalVariableFeedback(name, occurrences); |
16613 } else { | 17818 } else { |
16614 throw jsonDecoder.mismatch(jsonPath, "inlineLocalVariable feedback", json)
; | 17819 throw jsonDecoder.mismatch( |
| 17820 jsonPath, "inlineLocalVariable feedback", json); |
16615 } | 17821 } |
16616 } | 17822 } |
16617 | 17823 |
16618 Map<String, dynamic> toJson() { | 17824 Map<String, dynamic> toJson() { |
16619 Map<String, dynamic> result = {}; | 17825 Map<String, dynamic> result = {}; |
16620 result["name"] = name; | 17826 result["name"] = name; |
16621 result["occurrences"] = occurrences; | 17827 result["occurrences"] = occurrences; |
16622 return result; | 17828 return result; |
16623 } | 17829 } |
16624 | 17830 |
16625 @override | 17831 @override |
16626 String toString() => JSON.encode(toJson()); | 17832 String toString() => JSON.encode(toJson()); |
16627 | 17833 |
16628 @override | 17834 @override |
16629 bool operator==(other) { | 17835 bool operator ==(other) { |
16630 if (other is InlineLocalVariableFeedback) { | 17836 if (other is InlineLocalVariableFeedback) { |
16631 return name == other.name && | 17837 return name == other.name && occurrences == other.occurrences; |
16632 occurrences == other.occurrences; | |
16633 } | 17838 } |
16634 return false; | 17839 return false; |
16635 } | 17840 } |
16636 | 17841 |
16637 @override | 17842 @override |
16638 int get hashCode { | 17843 int get hashCode { |
16639 int hash = 0; | 17844 int hash = 0; |
16640 hash = JenkinsSmiHash.combine(hash, name.hashCode); | 17845 hash = JenkinsSmiHash.combine(hash, name.hashCode); |
16641 hash = JenkinsSmiHash.combine(hash, occurrences.hashCode); | 17846 hash = JenkinsSmiHash.combine(hash, occurrences.hashCode); |
16642 return JenkinsSmiHash.finish(hash); | 17847 return JenkinsSmiHash.finish(hash); |
16643 } | 17848 } |
16644 } | 17849 } |
| 17850 |
16645 /** | 17851 /** |
16646 * inlineLocalVariable options | 17852 * inlineLocalVariable options |
16647 * | 17853 * |
16648 * Clients may not extend, implement or mix-in this class. | 17854 * Clients may not extend, implement or mix-in this class. |
16649 */ | 17855 */ |
16650 class InlineLocalVariableOptions extends RefactoringOptions { | 17856 class InlineLocalVariableOptions extends RefactoringOptions { |
16651 @override | 17857 @override |
16652 bool operator==(other) { | 17858 bool operator ==(other) { |
16653 if (other is InlineLocalVariableOptions) { | 17859 if (other is InlineLocalVariableOptions) { |
16654 return true; | 17860 return true; |
16655 } | 17861 } |
16656 return false; | 17862 return false; |
16657 } | 17863 } |
16658 | 17864 |
16659 @override | 17865 @override |
16660 int get hashCode { | 17866 int get hashCode { |
16661 return 540364977; | 17867 return 540364977; |
16662 } | 17868 } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16715 | 17921 |
16716 /** | 17922 /** |
16717 * True if the declaration of the method is selected. So all references | 17923 * True if the declaration of the method is selected. So all references |
16718 * should be inlined. | 17924 * should be inlined. |
16719 */ | 17925 */ |
16720 void set isDeclaration(bool value) { | 17926 void set isDeclaration(bool value) { |
16721 assert(value != null); | 17927 assert(value != null); |
16722 this._isDeclaration = value; | 17928 this._isDeclaration = value; |
16723 } | 17929 } |
16724 | 17930 |
16725 InlineMethodFeedback(String methodName, bool isDeclaration, {String className}
) { | 17931 InlineMethodFeedback(String methodName, bool isDeclaration, |
| 17932 {String className}) { |
16726 this.className = className; | 17933 this.className = className; |
16727 this.methodName = methodName; | 17934 this.methodName = methodName; |
16728 this.isDeclaration = isDeclaration; | 17935 this.isDeclaration = isDeclaration; |
16729 } | 17936 } |
16730 | 17937 |
16731 factory InlineMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 17938 factory InlineMethodFeedback.fromJson( |
| 17939 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
16732 if (json == null) { | 17940 if (json == null) { |
16733 json = {}; | 17941 json = {}; |
16734 } | 17942 } |
16735 if (json is Map) { | 17943 if (json is Map) { |
16736 String className; | 17944 String className; |
16737 if (json.containsKey("className")) { | 17945 if (json.containsKey("className")) { |
16738 className = jsonDecoder.decodeString(jsonPath + ".className", json["clas
sName"]); | 17946 className = jsonDecoder.decodeString( |
| 17947 jsonPath + ".className", json["className"]); |
16739 } | 17948 } |
16740 String methodName; | 17949 String methodName; |
16741 if (json.containsKey("methodName")) { | 17950 if (json.containsKey("methodName")) { |
16742 methodName = jsonDecoder.decodeString(jsonPath + ".methodName", json["me
thodName"]); | 17951 methodName = jsonDecoder.decodeString( |
| 17952 jsonPath + ".methodName", json["methodName"]); |
16743 } else { | 17953 } else { |
16744 throw jsonDecoder.missingKey(jsonPath, "methodName"); | 17954 throw jsonDecoder.missingKey(jsonPath, "methodName"); |
16745 } | 17955 } |
16746 bool isDeclaration; | 17956 bool isDeclaration; |
16747 if (json.containsKey("isDeclaration")) { | 17957 if (json.containsKey("isDeclaration")) { |
16748 isDeclaration = jsonDecoder.decodeBool(jsonPath + ".isDeclaration", json
["isDeclaration"]); | 17958 isDeclaration = jsonDecoder.decodeBool( |
| 17959 jsonPath + ".isDeclaration", json["isDeclaration"]); |
16749 } else { | 17960 } else { |
16750 throw jsonDecoder.missingKey(jsonPath, "isDeclaration"); | 17961 throw jsonDecoder.missingKey(jsonPath, "isDeclaration"); |
16751 } | 17962 } |
16752 return new InlineMethodFeedback(methodName, isDeclaration, className: clas
sName); | 17963 return new InlineMethodFeedback(methodName, isDeclaration, |
| 17964 className: className); |
16753 } else { | 17965 } else { |
16754 throw jsonDecoder.mismatch(jsonPath, "inlineMethod feedback", json); | 17966 throw jsonDecoder.mismatch(jsonPath, "inlineMethod feedback", json); |
16755 } | 17967 } |
16756 } | 17968 } |
16757 | 17969 |
16758 Map<String, dynamic> toJson() { | 17970 Map<String, dynamic> toJson() { |
16759 Map<String, dynamic> result = {}; | 17971 Map<String, dynamic> result = {}; |
16760 if (className != null) { | 17972 if (className != null) { |
16761 result["className"] = className; | 17973 result["className"] = className; |
16762 } | 17974 } |
16763 result["methodName"] = methodName; | 17975 result["methodName"] = methodName; |
16764 result["isDeclaration"] = isDeclaration; | 17976 result["isDeclaration"] = isDeclaration; |
16765 return result; | 17977 return result; |
16766 } | 17978 } |
16767 | 17979 |
16768 @override | 17980 @override |
16769 String toString() => JSON.encode(toJson()); | 17981 String toString() => JSON.encode(toJson()); |
16770 | 17982 |
16771 @override | 17983 @override |
16772 bool operator==(other) { | 17984 bool operator ==(other) { |
16773 if (other is InlineMethodFeedback) { | 17985 if (other is InlineMethodFeedback) { |
16774 return className == other.className && | 17986 return className == other.className && |
16775 methodName == other.methodName && | 17987 methodName == other.methodName && |
16776 isDeclaration == other.isDeclaration; | 17988 isDeclaration == other.isDeclaration; |
16777 } | 17989 } |
16778 return false; | 17990 return false; |
16779 } | 17991 } |
16780 | 17992 |
16781 @override | 17993 @override |
16782 int get hashCode { | 17994 int get hashCode { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16831 void set inlineAll(bool value) { | 18043 void set inlineAll(bool value) { |
16832 assert(value != null); | 18044 assert(value != null); |
16833 this._inlineAll = value; | 18045 this._inlineAll = value; |
16834 } | 18046 } |
16835 | 18047 |
16836 InlineMethodOptions(bool deleteSource, bool inlineAll) { | 18048 InlineMethodOptions(bool deleteSource, bool inlineAll) { |
16837 this.deleteSource = deleteSource; | 18049 this.deleteSource = deleteSource; |
16838 this.inlineAll = inlineAll; | 18050 this.inlineAll = inlineAll; |
16839 } | 18051 } |
16840 | 18052 |
16841 factory InlineMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 18053 factory InlineMethodOptions.fromJson( |
| 18054 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
16842 if (json == null) { | 18055 if (json == null) { |
16843 json = {}; | 18056 json = {}; |
16844 } | 18057 } |
16845 if (json is Map) { | 18058 if (json is Map) { |
16846 bool deleteSource; | 18059 bool deleteSource; |
16847 if (json.containsKey("deleteSource")) { | 18060 if (json.containsKey("deleteSource")) { |
16848 deleteSource = jsonDecoder.decodeBool(jsonPath + ".deleteSource", json["
deleteSource"]); | 18061 deleteSource = jsonDecoder.decodeBool( |
| 18062 jsonPath + ".deleteSource", json["deleteSource"]); |
16849 } else { | 18063 } else { |
16850 throw jsonDecoder.missingKey(jsonPath, "deleteSource"); | 18064 throw jsonDecoder.missingKey(jsonPath, "deleteSource"); |
16851 } | 18065 } |
16852 bool inlineAll; | 18066 bool inlineAll; |
16853 if (json.containsKey("inlineAll")) { | 18067 if (json.containsKey("inlineAll")) { |
16854 inlineAll = jsonDecoder.decodeBool(jsonPath + ".inlineAll", json["inline
All"]); | 18068 inlineAll = |
| 18069 jsonDecoder.decodeBool(jsonPath + ".inlineAll", json["inlineAll"]); |
16855 } else { | 18070 } else { |
16856 throw jsonDecoder.missingKey(jsonPath, "inlineAll"); | 18071 throw jsonDecoder.missingKey(jsonPath, "inlineAll"); |
16857 } | 18072 } |
16858 return new InlineMethodOptions(deleteSource, inlineAll); | 18073 return new InlineMethodOptions(deleteSource, inlineAll); |
16859 } else { | 18074 } else { |
16860 throw jsonDecoder.mismatch(jsonPath, "inlineMethod options", json); | 18075 throw jsonDecoder.mismatch(jsonPath, "inlineMethod options", json); |
16861 } | 18076 } |
16862 } | 18077 } |
16863 | 18078 |
16864 factory InlineMethodOptions.fromRefactoringParams(EditGetRefactoringParams ref
actoringParams, Request request) { | 18079 factory InlineMethodOptions.fromRefactoringParams( |
| 18080 EditGetRefactoringParams refactoringParams, Request request) { |
16865 return new InlineMethodOptions.fromJson( | 18081 return new InlineMethodOptions.fromJson( |
16866 new RequestDecoder(request), "options", refactoringParams.options); | 18082 new RequestDecoder(request), "options", refactoringParams.options); |
16867 } | 18083 } |
16868 | 18084 |
16869 Map<String, dynamic> toJson() { | 18085 Map<String, dynamic> toJson() { |
16870 Map<String, dynamic> result = {}; | 18086 Map<String, dynamic> result = {}; |
16871 result["deleteSource"] = deleteSource; | 18087 result["deleteSource"] = deleteSource; |
16872 result["inlineAll"] = inlineAll; | 18088 result["inlineAll"] = inlineAll; |
16873 return result; | 18089 return result; |
16874 } | 18090 } |
16875 | 18091 |
16876 @override | 18092 @override |
16877 String toString() => JSON.encode(toJson()); | 18093 String toString() => JSON.encode(toJson()); |
16878 | 18094 |
16879 @override | 18095 @override |
16880 bool operator==(other) { | 18096 bool operator ==(other) { |
16881 if (other is InlineMethodOptions) { | 18097 if (other is InlineMethodOptions) { |
16882 return deleteSource == other.deleteSource && | 18098 return deleteSource == other.deleteSource && inlineAll == other.inlineAll; |
16883 inlineAll == other.inlineAll; | |
16884 } | 18099 } |
16885 return false; | 18100 return false; |
16886 } | 18101 } |
16887 | 18102 |
16888 @override | 18103 @override |
16889 int get hashCode { | 18104 int get hashCode { |
16890 int hash = 0; | 18105 int hash = 0; |
16891 hash = JenkinsSmiHash.combine(hash, deleteSource.hashCode); | 18106 hash = JenkinsSmiHash.combine(hash, deleteSource.hashCode); |
16892 hash = JenkinsSmiHash.combine(hash, inlineAll.hashCode); | 18107 hash = JenkinsSmiHash.combine(hash, inlineAll.hashCode); |
16893 return JenkinsSmiHash.finish(hash); | 18108 return JenkinsSmiHash.finish(hash); |
16894 } | 18109 } |
16895 } | 18110 } |
| 18111 |
16896 /** | 18112 /** |
16897 * moveFile feedback | 18113 * moveFile feedback |
16898 * | 18114 * |
16899 * Clients may not extend, implement or mix-in this class. | 18115 * Clients may not extend, implement or mix-in this class. |
16900 */ | 18116 */ |
16901 class MoveFileFeedback extends RefactoringFeedback { | 18117 class MoveFileFeedback extends RefactoringFeedback { |
16902 @override | 18118 @override |
16903 bool operator==(other) { | 18119 bool operator ==(other) { |
16904 if (other is MoveFileFeedback) { | 18120 if (other is MoveFileFeedback) { |
16905 return true; | 18121 return true; |
16906 } | 18122 } |
16907 return false; | 18123 return false; |
16908 } | 18124 } |
16909 | 18125 |
16910 @override | 18126 @override |
16911 int get hashCode { | 18127 int get hashCode { |
16912 return 438975893; | 18128 return 438975893; |
16913 } | 18129 } |
(...skipping 21 matching lines...) Expand all Loading... |
16935 */ | 18151 */ |
16936 void set newFile(String value) { | 18152 void set newFile(String value) { |
16937 assert(value != null); | 18153 assert(value != null); |
16938 this._newFile = value; | 18154 this._newFile = value; |
16939 } | 18155 } |
16940 | 18156 |
16941 MoveFileOptions(String newFile) { | 18157 MoveFileOptions(String newFile) { |
16942 this.newFile = newFile; | 18158 this.newFile = newFile; |
16943 } | 18159 } |
16944 | 18160 |
16945 factory MoveFileOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 18161 factory MoveFileOptions.fromJson( |
| 18162 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
16946 if (json == null) { | 18163 if (json == null) { |
16947 json = {}; | 18164 json = {}; |
16948 } | 18165 } |
16949 if (json is Map) { | 18166 if (json is Map) { |
16950 String newFile; | 18167 String newFile; |
16951 if (json.containsKey("newFile")) { | 18168 if (json.containsKey("newFile")) { |
16952 newFile = jsonDecoder.decodeString(jsonPath + ".newFile", json["newFile"
]); | 18169 newFile = |
| 18170 jsonDecoder.decodeString(jsonPath + ".newFile", json["newFile"]); |
16953 } else { | 18171 } else { |
16954 throw jsonDecoder.missingKey(jsonPath, "newFile"); | 18172 throw jsonDecoder.missingKey(jsonPath, "newFile"); |
16955 } | 18173 } |
16956 return new MoveFileOptions(newFile); | 18174 return new MoveFileOptions(newFile); |
16957 } else { | 18175 } else { |
16958 throw jsonDecoder.mismatch(jsonPath, "moveFile options", json); | 18176 throw jsonDecoder.mismatch(jsonPath, "moveFile options", json); |
16959 } | 18177 } |
16960 } | 18178 } |
16961 | 18179 |
16962 factory MoveFileOptions.fromRefactoringParams(EditGetRefactoringParams refacto
ringParams, Request request) { | 18180 factory MoveFileOptions.fromRefactoringParams( |
| 18181 EditGetRefactoringParams refactoringParams, Request request) { |
16963 return new MoveFileOptions.fromJson( | 18182 return new MoveFileOptions.fromJson( |
16964 new RequestDecoder(request), "options", refactoringParams.options); | 18183 new RequestDecoder(request), "options", refactoringParams.options); |
16965 } | 18184 } |
16966 | 18185 |
16967 Map<String, dynamic> toJson() { | 18186 Map<String, dynamic> toJson() { |
16968 Map<String, dynamic> result = {}; | 18187 Map<String, dynamic> result = {}; |
16969 result["newFile"] = newFile; | 18188 result["newFile"] = newFile; |
16970 return result; | 18189 return result; |
16971 } | 18190 } |
16972 | 18191 |
16973 @override | 18192 @override |
16974 String toString() => JSON.encode(toJson()); | 18193 String toString() => JSON.encode(toJson()); |
16975 | 18194 |
16976 @override | 18195 @override |
16977 bool operator==(other) { | 18196 bool operator ==(other) { |
16978 if (other is MoveFileOptions) { | 18197 if (other is MoveFileOptions) { |
16979 return newFile == other.newFile; | 18198 return newFile == other.newFile; |
16980 } | 18199 } |
16981 return false; | 18200 return false; |
16982 } | 18201 } |
16983 | 18202 |
16984 @override | 18203 @override |
16985 int get hashCode { | 18204 int get hashCode { |
16986 int hash = 0; | 18205 int hash = 0; |
16987 hash = JenkinsSmiHash.combine(hash, newFile.hashCode); | 18206 hash = JenkinsSmiHash.combine(hash, newFile.hashCode); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17057 String get oldName => _oldName; | 18276 String get oldName => _oldName; |
17058 | 18277 |
17059 /** | 18278 /** |
17060 * The old name of the element before the refactoring. | 18279 * The old name of the element before the refactoring. |
17061 */ | 18280 */ |
17062 void set oldName(String value) { | 18281 void set oldName(String value) { |
17063 assert(value != null); | 18282 assert(value != null); |
17064 this._oldName = value; | 18283 this._oldName = value; |
17065 } | 18284 } |
17066 | 18285 |
17067 RenameFeedback(int offset, int length, String elementKindName, String oldName)
{ | 18286 RenameFeedback( |
| 18287 int offset, int length, String elementKindName, String oldName) { |
17068 this.offset = offset; | 18288 this.offset = offset; |
17069 this.length = length; | 18289 this.length = length; |
17070 this.elementKindName = elementKindName; | 18290 this.elementKindName = elementKindName; |
17071 this.oldName = oldName; | 18291 this.oldName = oldName; |
17072 } | 18292 } |
17073 | 18293 |
17074 factory RenameFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obje
ct json) { | 18294 factory RenameFeedback.fromJson( |
| 18295 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
17075 if (json == null) { | 18296 if (json == null) { |
17076 json = {}; | 18297 json = {}; |
17077 } | 18298 } |
17078 if (json is Map) { | 18299 if (json is Map) { |
17079 int offset; | 18300 int offset; |
17080 if (json.containsKey("offset")) { | 18301 if (json.containsKey("offset")) { |
17081 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); | 18302 offset = jsonDecoder.decodeInt(jsonPath + ".offset", json["offset"]); |
17082 } else { | 18303 } else { |
17083 throw jsonDecoder.missingKey(jsonPath, "offset"); | 18304 throw jsonDecoder.missingKey(jsonPath, "offset"); |
17084 } | 18305 } |
17085 int length; | 18306 int length; |
17086 if (json.containsKey("length")) { | 18307 if (json.containsKey("length")) { |
17087 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); | 18308 length = jsonDecoder.decodeInt(jsonPath + ".length", json["length"]); |
17088 } else { | 18309 } else { |
17089 throw jsonDecoder.missingKey(jsonPath, "length"); | 18310 throw jsonDecoder.missingKey(jsonPath, "length"); |
17090 } | 18311 } |
17091 String elementKindName; | 18312 String elementKindName; |
17092 if (json.containsKey("elementKindName")) { | 18313 if (json.containsKey("elementKindName")) { |
17093 elementKindName = jsonDecoder.decodeString(jsonPath + ".elementKindName"
, json["elementKindName"]); | 18314 elementKindName = jsonDecoder.decodeString( |
| 18315 jsonPath + ".elementKindName", json["elementKindName"]); |
17094 } else { | 18316 } else { |
17095 throw jsonDecoder.missingKey(jsonPath, "elementKindName"); | 18317 throw jsonDecoder.missingKey(jsonPath, "elementKindName"); |
17096 } | 18318 } |
17097 String oldName; | 18319 String oldName; |
17098 if (json.containsKey("oldName")) { | 18320 if (json.containsKey("oldName")) { |
17099 oldName = jsonDecoder.decodeString(jsonPath + ".oldName", json["oldName"
]); | 18321 oldName = |
| 18322 jsonDecoder.decodeString(jsonPath + ".oldName", json["oldName"]); |
17100 } else { | 18323 } else { |
17101 throw jsonDecoder.missingKey(jsonPath, "oldName"); | 18324 throw jsonDecoder.missingKey(jsonPath, "oldName"); |
17102 } | 18325 } |
17103 return new RenameFeedback(offset, length, elementKindName, oldName); | 18326 return new RenameFeedback(offset, length, elementKindName, oldName); |
17104 } else { | 18327 } else { |
17105 throw jsonDecoder.mismatch(jsonPath, "rename feedback", json); | 18328 throw jsonDecoder.mismatch(jsonPath, "rename feedback", json); |
17106 } | 18329 } |
17107 } | 18330 } |
17108 | 18331 |
17109 Map<String, dynamic> toJson() { | 18332 Map<String, dynamic> toJson() { |
17110 Map<String, dynamic> result = {}; | 18333 Map<String, dynamic> result = {}; |
17111 result["offset"] = offset; | 18334 result["offset"] = offset; |
17112 result["length"] = length; | 18335 result["length"] = length; |
17113 result["elementKindName"] = elementKindName; | 18336 result["elementKindName"] = elementKindName; |
17114 result["oldName"] = oldName; | 18337 result["oldName"] = oldName; |
17115 return result; | 18338 return result; |
17116 } | 18339 } |
17117 | 18340 |
17118 @override | 18341 @override |
17119 String toString() => JSON.encode(toJson()); | 18342 String toString() => JSON.encode(toJson()); |
17120 | 18343 |
17121 @override | 18344 @override |
17122 bool operator==(other) { | 18345 bool operator ==(other) { |
17123 if (other is RenameFeedback) { | 18346 if (other is RenameFeedback) { |
17124 return offset == other.offset && | 18347 return offset == other.offset && |
17125 length == other.length && | 18348 length == other.length && |
17126 elementKindName == other.elementKindName && | 18349 elementKindName == other.elementKindName && |
17127 oldName == other.oldName; | 18350 oldName == other.oldName; |
17128 } | 18351 } |
17129 return false; | 18352 return false; |
17130 } | 18353 } |
17131 | 18354 |
17132 @override | 18355 @override |
(...skipping 29 matching lines...) Expand all Loading... |
17162 */ | 18385 */ |
17163 void set newName(String value) { | 18386 void set newName(String value) { |
17164 assert(value != null); | 18387 assert(value != null); |
17165 this._newName = value; | 18388 this._newName = value; |
17166 } | 18389 } |
17167 | 18390 |
17168 RenameOptions(String newName) { | 18391 RenameOptions(String newName) { |
17169 this.newName = newName; | 18392 this.newName = newName; |
17170 } | 18393 } |
17171 | 18394 |
17172 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 18395 factory RenameOptions.fromJson( |
| 18396 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
17173 if (json == null) { | 18397 if (json == null) { |
17174 json = {}; | 18398 json = {}; |
17175 } | 18399 } |
17176 if (json is Map) { | 18400 if (json is Map) { |
17177 String newName; | 18401 String newName; |
17178 if (json.containsKey("newName")) { | 18402 if (json.containsKey("newName")) { |
17179 newName = jsonDecoder.decodeString(jsonPath + ".newName", json["newName"
]); | 18403 newName = |
| 18404 jsonDecoder.decodeString(jsonPath + ".newName", json["newName"]); |
17180 } else { | 18405 } else { |
17181 throw jsonDecoder.missingKey(jsonPath, "newName"); | 18406 throw jsonDecoder.missingKey(jsonPath, "newName"); |
17182 } | 18407 } |
17183 return new RenameOptions(newName); | 18408 return new RenameOptions(newName); |
17184 } else { | 18409 } else { |
17185 throw jsonDecoder.mismatch(jsonPath, "rename options", json); | 18410 throw jsonDecoder.mismatch(jsonPath, "rename options", json); |
17186 } | 18411 } |
17187 } | 18412 } |
17188 | 18413 |
17189 factory RenameOptions.fromRefactoringParams(EditGetRefactoringParams refactori
ngParams, Request request) { | 18414 factory RenameOptions.fromRefactoringParams( |
| 18415 EditGetRefactoringParams refactoringParams, Request request) { |
17190 return new RenameOptions.fromJson( | 18416 return new RenameOptions.fromJson( |
17191 new RequestDecoder(request), "options", refactoringParams.options); | 18417 new RequestDecoder(request), "options", refactoringParams.options); |
17192 } | 18418 } |
17193 | 18419 |
17194 Map<String, dynamic> toJson() { | 18420 Map<String, dynamic> toJson() { |
17195 Map<String, dynamic> result = {}; | 18421 Map<String, dynamic> result = {}; |
17196 result["newName"] = newName; | 18422 result["newName"] = newName; |
17197 return result; | 18423 return result; |
17198 } | 18424 } |
17199 | 18425 |
17200 @override | 18426 @override |
17201 String toString() => JSON.encode(toJson()); | 18427 String toString() => JSON.encode(toJson()); |
17202 | 18428 |
17203 @override | 18429 @override |
17204 bool operator==(other) { | 18430 bool operator ==(other) { |
17205 if (other is RenameOptions) { | 18431 if (other is RenameOptions) { |
17206 return newName == other.newName; | 18432 return newName == other.newName; |
17207 } | 18433 } |
17208 return false; | 18434 return false; |
17209 } | 18435 } |
17210 | 18436 |
17211 @override | 18437 @override |
17212 int get hashCode { | 18438 int get hashCode { |
17213 int hash = 0; | 18439 int hash = 0; |
17214 hash = JenkinsSmiHash.combine(hash, newName.hashCode); | 18440 hash = JenkinsSmiHash.combine(hash, newName.hashCode); |
17215 return JenkinsSmiHash.finish(hash); | 18441 return JenkinsSmiHash.finish(hash); |
17216 } | 18442 } |
17217 } | 18443 } |
OLD | NEW |