| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file has been automatically generated. Please do not edit it manually. | 5 // This file has been automatically generated. Please do not edit it manually. |
| 6 // To regenerate the file, use the script | 6 // To regenerate the file, use the script |
| 7 // "pkg/analysis_server/spec/generate_files". | 7 // "pkg/analysis_server/spec/generate_files". |
| 8 | 8 |
| 9 part of protocol2; | 9 part of protocol; |
| 10 /** |
| 11 * server.getVersion params |
| 12 */ |
| 13 class ServerGetVersionParams { |
| 14 Request toRequest(String id) { |
| 15 return new Request(id, "server.getVersion", null); |
| 16 } |
| 17 |
| 18 @override |
| 19 bool operator==(other) { |
| 20 if (other is ServerGetVersionParams) { |
| 21 return true; |
| 22 } |
| 23 return false; |
| 24 } |
| 25 |
| 26 @override |
| 27 int get hashCode { |
| 28 return 55877452; |
| 29 } |
| 30 } |
| 10 | 31 |
| 11 /** | 32 /** |
| 12 * server.getVersion result | 33 * server.getVersion result |
| 13 * | 34 * |
| 14 * { | 35 * { |
| 15 * "version": String | 36 * "version": String |
| 16 * } | 37 * } |
| 17 */ | 38 */ |
| 18 class ServerGetVersionResult implements HasToJson { | 39 class ServerGetVersionResult { |
| 19 /** | 40 /** |
| 20 * The version number of the analysis server. | 41 * The version number of the analysis server. |
| 21 */ | 42 */ |
| 22 String version; | 43 String version; |
| 23 | 44 |
| 24 ServerGetVersionResult(this.version); | 45 ServerGetVersionResult(this.version); |
| 25 | 46 |
| 26 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { | 47 factory ServerGetVersionResult.fromJson(JsonDecoder jsonDecoder, String jsonPa
th, Object json) { |
| 27 if (json == null) { | 48 if (json == null) { |
| 28 json = {}; | 49 json = {}; |
| 29 } | 50 } |
| 30 if (json is Map) { | 51 if (json is Map) { |
| 31 String version; | 52 String version; |
| 32 if (json.containsKey("version")) { | 53 if (json.containsKey("version")) { |
| 33 version = jsonDecoder._decodeString(jsonPath + ".version", json["version
"]); | 54 version = jsonDecoder._decodeString(jsonPath + ".version", json["version
"]); |
| 34 } else { | 55 } else { |
| 35 throw jsonDecoder.missingKey(jsonPath, "version"); | 56 throw jsonDecoder.missingKey(jsonPath, "version"); |
| 36 } | 57 } |
| 37 return new ServerGetVersionResult(version); | 58 return new ServerGetVersionResult(version); |
| 38 } else { | 59 } else { |
| 39 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result"); | 60 throw jsonDecoder.mismatch(jsonPath, "server.getVersion result"); |
| 40 } | 61 } |
| 41 } | 62 } |
| 42 | 63 |
| 43 factory ServerGetVersionResult.fromResponse(Response response) { | 64 factory ServerGetVersionResult.fromResponse(Response response) { |
| 44 return new ServerGetVersionResult.fromJson( | 65 return new ServerGetVersionResult.fromJson( |
| 45 new ResponseDecoder(), "result", response.result); | 66 new ResponseDecoder(), "result", response._result); |
| 46 } | 67 } |
| 47 | 68 |
| 48 Map<String, dynamic> toJson() { | 69 Map<String, dynamic> toJson() { |
| 49 Map<String, dynamic> result = {}; | 70 Map<String, dynamic> result = {}; |
| 50 result["version"] = version; | 71 result["version"] = version; |
| 51 return result; | 72 return result; |
| 52 } | 73 } |
| 53 | 74 |
| 54 Response toResponse(String id) { | 75 Response toResponse(String id) { |
| 55 return new Response(id, result: toJson()); | 76 return new Response(id, result: toJson()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 66 return false; | 87 return false; |
| 67 } | 88 } |
| 68 | 89 |
| 69 @override | 90 @override |
| 70 int get hashCode { | 91 int get hashCode { |
| 71 int hash = 0; | 92 int hash = 0; |
| 72 hash = _JenkinsSmiHash.combine(hash, version.hashCode); | 93 hash = _JenkinsSmiHash.combine(hash, version.hashCode); |
| 73 return _JenkinsSmiHash.finish(hash); | 94 return _JenkinsSmiHash.finish(hash); |
| 74 } | 95 } |
| 75 } | 96 } |
| 97 /** |
| 98 * server.shutdown params |
| 99 */ |
| 100 class ServerShutdownParams { |
| 101 Request toRequest(String id) { |
| 102 return new Request(id, "server.shutdown", null); |
| 103 } |
| 104 |
| 105 @override |
| 106 bool operator==(other) { |
| 107 if (other is ServerShutdownParams) { |
| 108 return true; |
| 109 } |
| 110 return false; |
| 111 } |
| 112 |
| 113 @override |
| 114 int get hashCode { |
| 115 return 366630911; |
| 116 } |
| 117 } |
| 118 /** |
| 119 * server.shutdown result |
| 120 */ |
| 121 class ServerShutdownResult { |
| 122 Response toResponse(String id) { |
| 123 return new Response(id, result: null); |
| 124 } |
| 125 |
| 126 @override |
| 127 bool operator==(other) { |
| 128 if (other is ServerShutdownResult) { |
| 129 return true; |
| 130 } |
| 131 return false; |
| 132 } |
| 133 |
| 134 @override |
| 135 int get hashCode { |
| 136 return 193626532; |
| 137 } |
| 138 } |
| 76 | 139 |
| 77 /** | 140 /** |
| 78 * server.setSubscriptions params | 141 * server.setSubscriptions params |
| 79 * | 142 * |
| 80 * { | 143 * { |
| 81 * "subscriptions": List<ServerService> | 144 * "subscriptions": List<ServerService> |
| 82 * } | 145 * } |
| 83 */ | 146 */ |
| 84 class ServerSetSubscriptionsParams implements HasToJson { | 147 class ServerSetSubscriptionsParams { |
| 85 /** | 148 /** |
| 86 * A list of the services being subscribed to. | 149 * A list of the services being subscribed to. |
| 87 */ | 150 */ |
| 88 List<ServerService> subscriptions; | 151 List<ServerService> subscriptions; |
| 89 | 152 |
| 90 ServerSetSubscriptionsParams(this.subscriptions); | 153 ServerSetSubscriptionsParams(this.subscriptions); |
| 91 | 154 |
| 92 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 155 factory ServerSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
| 93 if (json == null) { | 156 if (json == null) { |
| 94 json = {}; | 157 json = {}; |
| 95 } | 158 } |
| 96 if (json is Map) { | 159 if (json is Map) { |
| 97 List<ServerService> subscriptions; | 160 List<ServerService> subscriptions; |
| 98 if (json.containsKey("subscriptions")) { | 161 if (json.containsKey("subscriptions")) { |
| 99 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new ServerService.fromJson
(jsonDecoder, jsonPath, json)); | 162 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new ServerService.fromJson
(jsonDecoder, jsonPath, json)); |
| 100 } else { | 163 } else { |
| 101 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 164 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
| 102 } | 165 } |
| 103 return new ServerSetSubscriptionsParams(subscriptions); | 166 return new ServerSetSubscriptionsParams(subscriptions); |
| 104 } else { | 167 } else { |
| 105 throw jsonDecoder.mismatch(jsonPath, "server.setSubscriptions params"); | 168 throw jsonDecoder.mismatch(jsonPath, "server.setSubscriptions params"); |
| 106 } | 169 } |
| 107 } | 170 } |
| 108 | 171 |
| 109 factory ServerSetSubscriptionsParams.fromRequest(Request request) { | 172 factory ServerSetSubscriptionsParams.fromRequest(Request request) { |
| 110 return new ServerSetSubscriptionsParams.fromJson( | 173 return new ServerSetSubscriptionsParams.fromJson( |
| 111 new RequestDecoder(request), "params", request.params); | 174 new RequestDecoder(request), "params", request._params); |
| 112 } | 175 } |
| 113 | 176 |
| 114 Map<String, dynamic> toJson() { | 177 Map<String, dynamic> toJson() { |
| 115 Map<String, dynamic> result = {}; | 178 Map<String, dynamic> result = {}; |
| 116 result["subscriptions"] = subscriptions.map((ServerService value) => value.t
oJson()).toList(); | 179 result["subscriptions"] = subscriptions.map((ServerService value) => value.t
oJson()).toList(); |
| 117 return result; | 180 return result; |
| 118 } | 181 } |
| 119 | 182 |
| 120 Request toRequest(String id) { | 183 Request toRequest(String id) { |
| 121 return new Request(id, "server.setSubscriptions", toJson()); | 184 return new Request(id, "server.setSubscriptions", toJson()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 132 return false; | 195 return false; |
| 133 } | 196 } |
| 134 | 197 |
| 135 @override | 198 @override |
| 136 int get hashCode { | 199 int get hashCode { |
| 137 int hash = 0; | 200 int hash = 0; |
| 138 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 201 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
| 139 return _JenkinsSmiHash.finish(hash); | 202 return _JenkinsSmiHash.finish(hash); |
| 140 } | 203 } |
| 141 } | 204 } |
| 205 /** |
| 206 * server.setSubscriptions result |
| 207 */ |
| 208 class ServerSetSubscriptionsResult { |
| 209 Response toResponse(String id) { |
| 210 return new Response(id, result: null); |
| 211 } |
| 212 |
| 213 @override |
| 214 bool operator==(other) { |
| 215 if (other is ServerSetSubscriptionsResult) { |
| 216 return true; |
| 217 } |
| 218 return false; |
| 219 } |
| 220 |
| 221 @override |
| 222 int get hashCode { |
| 223 return 748820900; |
| 224 } |
| 225 } |
| 226 /** |
| 227 * server.connected params |
| 228 */ |
| 229 class ServerConnectedParams { |
| 230 Notification toNotification() { |
| 231 return new Notification("server.connected", null); |
| 232 } |
| 233 |
| 234 @override |
| 235 bool operator==(other) { |
| 236 if (other is ServerConnectedParams) { |
| 237 return true; |
| 238 } |
| 239 return false; |
| 240 } |
| 241 |
| 242 @override |
| 243 int get hashCode { |
| 244 return 509239412; |
| 245 } |
| 246 } |
| 142 | 247 |
| 143 /** | 248 /** |
| 144 * server.error params | 249 * server.error params |
| 145 * | 250 * |
| 146 * { | 251 * { |
| 147 * "fatal": bool | 252 * "fatal": bool |
| 148 * "message": String | 253 * "message": String |
| 149 * "stackTrace": String | 254 * "stackTrace": String |
| 150 * } | 255 * } |
| 151 */ | 256 */ |
| 152 class ServerErrorParams implements HasToJson { | 257 class ServerErrorParams { |
| 153 /** | 258 /** |
| 154 * True if the error is a fatal error, meaning that the server will shutdown | 259 * True if the error is a fatal error, meaning that the server will shutdown |
| 155 * automatically after sending this notification. | 260 * automatically after sending this notification. |
| 156 */ | 261 */ |
| 157 bool fatal; | 262 bool fatal; |
| 158 | 263 |
| 159 /** | 264 /** |
| 160 * The error message indicating what kind of error was encountered. | 265 * The error message indicating what kind of error was encountered. |
| 161 */ | 266 */ |
| 162 String message; | 267 String message; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 193 throw jsonDecoder.missingKey(jsonPath, "stackTrace"); | 298 throw jsonDecoder.missingKey(jsonPath, "stackTrace"); |
| 194 } | 299 } |
| 195 return new ServerErrorParams(fatal, message, stackTrace); | 300 return new ServerErrorParams(fatal, message, stackTrace); |
| 196 } else { | 301 } else { |
| 197 throw jsonDecoder.mismatch(jsonPath, "server.error params"); | 302 throw jsonDecoder.mismatch(jsonPath, "server.error params"); |
| 198 } | 303 } |
| 199 } | 304 } |
| 200 | 305 |
| 201 factory ServerErrorParams.fromNotification(Notification notification) { | 306 factory ServerErrorParams.fromNotification(Notification notification) { |
| 202 return new ServerErrorParams.fromJson( | 307 return new ServerErrorParams.fromJson( |
| 203 new ResponseDecoder(), "params", notification.params); | 308 new ResponseDecoder(), "params", notification._params); |
| 204 } | 309 } |
| 205 | 310 |
| 206 Map<String, dynamic> toJson() { | 311 Map<String, dynamic> toJson() { |
| 207 Map<String, dynamic> result = {}; | 312 Map<String, dynamic> result = {}; |
| 208 result["fatal"] = fatal; | 313 result["fatal"] = fatal; |
| 209 result["message"] = message; | 314 result["message"] = message; |
| 210 result["stackTrace"] = stackTrace; | 315 result["stackTrace"] = stackTrace; |
| 211 return result; | 316 return result; |
| 212 } | 317 } |
| 213 | 318 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 238 } | 343 } |
| 239 } | 344 } |
| 240 | 345 |
| 241 /** | 346 /** |
| 242 * server.status params | 347 * server.status params |
| 243 * | 348 * |
| 244 * { | 349 * { |
| 245 * "analysis": optional AnalysisStatus | 350 * "analysis": optional AnalysisStatus |
| 246 * } | 351 * } |
| 247 */ | 352 */ |
| 248 class ServerStatusParams implements HasToJson { | 353 class ServerStatusParams { |
| 249 /** | 354 /** |
| 250 * The current status of analysis, including whether analysis is being | 355 * The current status of analysis, including whether analysis is being |
| 251 * performed and if so what is being analyzed. | 356 * performed and if so what is being analyzed. |
| 252 */ | 357 */ |
| 253 AnalysisStatus analysis; | 358 AnalysisStatus analysis; |
| 254 | 359 |
| 255 ServerStatusParams({this.analysis}); | 360 ServerStatusParams({this.analysis}); |
| 256 | 361 |
| 257 factory ServerStatusParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { | 362 factory ServerStatusParams.fromJson(JsonDecoder jsonDecoder, String jsonPath,
Object json) { |
| 258 if (json == null) { | 363 if (json == null) { |
| 259 json = {}; | 364 json = {}; |
| 260 } | 365 } |
| 261 if (json is Map) { | 366 if (json is Map) { |
| 262 AnalysisStatus analysis; | 367 AnalysisStatus analysis; |
| 263 if (json.containsKey("analysis")) { | 368 if (json.containsKey("analysis")) { |
| 264 analysis = new AnalysisStatus.fromJson(jsonDecoder, jsonPath + ".analysi
s", json["analysis"]); | 369 analysis = new AnalysisStatus.fromJson(jsonDecoder, jsonPath + ".analysi
s", json["analysis"]); |
| 265 } | 370 } |
| 266 return new ServerStatusParams(analysis: analysis); | 371 return new ServerStatusParams(analysis: analysis); |
| 267 } else { | 372 } else { |
| 268 throw jsonDecoder.mismatch(jsonPath, "server.status params"); | 373 throw jsonDecoder.mismatch(jsonPath, "server.status params"); |
| 269 } | 374 } |
| 270 } | 375 } |
| 271 | 376 |
| 272 factory ServerStatusParams.fromNotification(Notification notification) { | 377 factory ServerStatusParams.fromNotification(Notification notification) { |
| 273 return new ServerStatusParams.fromJson( | 378 return new ServerStatusParams.fromJson( |
| 274 new ResponseDecoder(), "params", notification.params); | 379 new ResponseDecoder(), "params", notification._params); |
| 275 } | 380 } |
| 276 | 381 |
| 277 Map<String, dynamic> toJson() { | 382 Map<String, dynamic> toJson() { |
| 278 Map<String, dynamic> result = {}; | 383 Map<String, dynamic> result = {}; |
| 279 if (analysis != null) { | 384 if (analysis != null) { |
| 280 result["analysis"] = analysis.toJson(); | 385 result["analysis"] = analysis.toJson(); |
| 281 } | 386 } |
| 282 return result; | 387 return result; |
| 283 } | 388 } |
| 284 | 389 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 305 } | 410 } |
| 306 } | 411 } |
| 307 | 412 |
| 308 /** | 413 /** |
| 309 * analysis.getErrors params | 414 * analysis.getErrors params |
| 310 * | 415 * |
| 311 * { | 416 * { |
| 312 * "file": FilePath | 417 * "file": FilePath |
| 313 * } | 418 * } |
| 314 */ | 419 */ |
| 315 class AnalysisGetErrorsParams implements HasToJson { | 420 class AnalysisGetErrorsParams { |
| 316 /** | 421 /** |
| 317 * The file for which errors are being requested. | 422 * The file for which errors are being requested. |
| 318 */ | 423 */ |
| 319 String file; | 424 String file; |
| 320 | 425 |
| 321 AnalysisGetErrorsParams(this.file); | 426 AnalysisGetErrorsParams(this.file); |
| 322 | 427 |
| 323 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 428 factory AnalysisGetErrorsParams.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
| 324 if (json == null) { | 429 if (json == null) { |
| 325 json = {}; | 430 json = {}; |
| 326 } | 431 } |
| 327 if (json is Map) { | 432 if (json is Map) { |
| 328 String file; | 433 String file; |
| 329 if (json.containsKey("file")) { | 434 if (json.containsKey("file")) { |
| 330 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 435 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); |
| 331 } else { | 436 } else { |
| 332 throw jsonDecoder.missingKey(jsonPath, "file"); | 437 throw jsonDecoder.missingKey(jsonPath, "file"); |
| 333 } | 438 } |
| 334 return new AnalysisGetErrorsParams(file); | 439 return new AnalysisGetErrorsParams(file); |
| 335 } else { | 440 } else { |
| 336 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors params"); | 441 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors params"); |
| 337 } | 442 } |
| 338 } | 443 } |
| 339 | 444 |
| 340 factory AnalysisGetErrorsParams.fromRequest(Request request) { | 445 factory AnalysisGetErrorsParams.fromRequest(Request request) { |
| 341 return new AnalysisGetErrorsParams.fromJson( | 446 return new AnalysisGetErrorsParams.fromJson( |
| 342 new RequestDecoder(request), "params", request.params); | 447 new RequestDecoder(request), "params", request._params); |
| 343 } | 448 } |
| 344 | 449 |
| 345 Map<String, dynamic> toJson() { | 450 Map<String, dynamic> toJson() { |
| 346 Map<String, dynamic> result = {}; | 451 Map<String, dynamic> result = {}; |
| 347 result["file"] = file; | 452 result["file"] = file; |
| 348 return result; | 453 return result; |
| 349 } | 454 } |
| 350 | 455 |
| 351 Request toRequest(String id) { | 456 Request toRequest(String id) { |
| 352 return new Request(id, "analysis.getErrors", toJson()); | 457 return new Request(id, "analysis.getErrors", toJson()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 371 } | 476 } |
| 372 } | 477 } |
| 373 | 478 |
| 374 /** | 479 /** |
| 375 * analysis.getErrors result | 480 * analysis.getErrors result |
| 376 * | 481 * |
| 377 * { | 482 * { |
| 378 * "errors": List<AnalysisError> | 483 * "errors": List<AnalysisError> |
| 379 * } | 484 * } |
| 380 */ | 485 */ |
| 381 class AnalysisGetErrorsResult implements HasToJson { | 486 class AnalysisGetErrorsResult { |
| 382 /** | 487 /** |
| 383 * The errors associated with the file. | 488 * The errors associated with the file. |
| 384 */ | 489 */ |
| 385 List<AnalysisError> errors; | 490 List<AnalysisError> errors; |
| 386 | 491 |
| 387 AnalysisGetErrorsResult(this.errors); | 492 AnalysisGetErrorsResult(this.errors); |
| 388 | 493 |
| 389 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { | 494 factory AnalysisGetErrorsResult.fromJson(JsonDecoder jsonDecoder, String jsonP
ath, Object json) { |
| 390 if (json == null) { | 495 if (json == null) { |
| 391 json = {}; | 496 json = {}; |
| 392 } | 497 } |
| 393 if (json is Map) { | 498 if (json is Map) { |
| 394 List<AnalysisError> errors; | 499 List<AnalysisError> errors; |
| 395 if (json.containsKey("errors")) { | 500 if (json.containsKey("errors")) { |
| 396 errors = jsonDecoder._decodeList(jsonPath + ".errors", json["errors"], (
String jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPat
h, json)); | 501 errors = jsonDecoder._decodeList(jsonPath + ".errors", json["errors"], (
String jsonPath, Object json) => new AnalysisError.fromJson(jsonDecoder, jsonPat
h, json)); |
| 397 } else { | 502 } else { |
| 398 throw jsonDecoder.missingKey(jsonPath, "errors"); | 503 throw jsonDecoder.missingKey(jsonPath, "errors"); |
| 399 } | 504 } |
| 400 return new AnalysisGetErrorsResult(errors); | 505 return new AnalysisGetErrorsResult(errors); |
| 401 } else { | 506 } else { |
| 402 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result"); | 507 throw jsonDecoder.mismatch(jsonPath, "analysis.getErrors result"); |
| 403 } | 508 } |
| 404 } | 509 } |
| 405 | 510 |
| 406 factory AnalysisGetErrorsResult.fromResponse(Response response) { | 511 factory AnalysisGetErrorsResult.fromResponse(Response response) { |
| 407 return new AnalysisGetErrorsResult.fromJson( | 512 return new AnalysisGetErrorsResult.fromJson( |
| 408 new ResponseDecoder(), "result", response.result); | 513 new ResponseDecoder(), "result", response._result); |
| 409 } | 514 } |
| 410 | 515 |
| 411 Map<String, dynamic> toJson() { | 516 Map<String, dynamic> toJson() { |
| 412 Map<String, dynamic> result = {}; | 517 Map<String, dynamic> result = {}; |
| 413 result["errors"] = errors.map((AnalysisError value) => value.toJson()).toLis
t(); | 518 result["errors"] = errors.map((AnalysisError value) => value.toJson()).toLis
t(); |
| 414 return result; | 519 return result; |
| 415 } | 520 } |
| 416 | 521 |
| 417 Response toResponse(String id) { | 522 Response toResponse(String id) { |
| 418 return new Response(id, result: toJson()); | 523 return new Response(id, result: toJson()); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 438 } | 543 } |
| 439 | 544 |
| 440 /** | 545 /** |
| 441 * analysis.getHover params | 546 * analysis.getHover params |
| 442 * | 547 * |
| 443 * { | 548 * { |
| 444 * "file": FilePath | 549 * "file": FilePath |
| 445 * "offset": int | 550 * "offset": int |
| 446 * } | 551 * } |
| 447 */ | 552 */ |
| 448 class AnalysisGetHoverParams implements HasToJson { | 553 class AnalysisGetHoverParams { |
| 449 /** | 554 /** |
| 450 * The file in which hover information is being requested. | 555 * The file in which hover information is being requested. |
| 451 */ | 556 */ |
| 452 String file; | 557 String file; |
| 453 | 558 |
| 454 /** | 559 /** |
| 455 * The offset for which hover information is being requested. | 560 * The offset for which hover information is being requested. |
| 456 */ | 561 */ |
| 457 int offset; | 562 int offset; |
| 458 | 563 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 476 throw jsonDecoder.missingKey(jsonPath, "offset"); | 581 throw jsonDecoder.missingKey(jsonPath, "offset"); |
| 477 } | 582 } |
| 478 return new AnalysisGetHoverParams(file, offset); | 583 return new AnalysisGetHoverParams(file, offset); |
| 479 } else { | 584 } else { |
| 480 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover params"); | 585 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover params"); |
| 481 } | 586 } |
| 482 } | 587 } |
| 483 | 588 |
| 484 factory AnalysisGetHoverParams.fromRequest(Request request) { | 589 factory AnalysisGetHoverParams.fromRequest(Request request) { |
| 485 return new AnalysisGetHoverParams.fromJson( | 590 return new AnalysisGetHoverParams.fromJson( |
| 486 new RequestDecoder(request), "params", request.params); | 591 new RequestDecoder(request), "params", request._params); |
| 487 } | 592 } |
| 488 | 593 |
| 489 Map<String, dynamic> toJson() { | 594 Map<String, dynamic> toJson() { |
| 490 Map<String, dynamic> result = {}; | 595 Map<String, dynamic> result = {}; |
| 491 result["file"] = file; | 596 result["file"] = file; |
| 492 result["offset"] = offset; | 597 result["offset"] = offset; |
| 493 return result; | 598 return result; |
| 494 } | 599 } |
| 495 | 600 |
| 496 Request toRequest(String id) { | 601 Request toRequest(String id) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 518 } | 623 } |
| 519 } | 624 } |
| 520 | 625 |
| 521 /** | 626 /** |
| 522 * analysis.getHover result | 627 * analysis.getHover result |
| 523 * | 628 * |
| 524 * { | 629 * { |
| 525 * "hovers": List<HoverInformation> | 630 * "hovers": List<HoverInformation> |
| 526 * } | 631 * } |
| 527 */ | 632 */ |
| 528 class AnalysisGetHoverResult implements HasToJson { | 633 class AnalysisGetHoverResult { |
| 529 /** | 634 /** |
| 530 * The hover information associated with the location. The list will be empty | 635 * The hover information associated with the location. The list will be empty |
| 531 * if no information could be determined for the location. The list can | 636 * if no information could be determined for the location. The list can |
| 532 * contain multiple items if the file is being analyzed in multiple contexts | 637 * contain multiple items if the file is being analyzed in multiple contexts |
| 533 * in conflicting ways (such as a part that is included in multiple | 638 * in conflicting ways (such as a part that is included in multiple |
| 534 * libraries). | 639 * libraries). |
| 535 */ | 640 */ |
| 536 List<HoverInformation> hovers; | 641 List<HoverInformation> hovers; |
| 537 | 642 |
| 538 AnalysisGetHoverResult(this.hovers); | 643 AnalysisGetHoverResult(this.hovers); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 549 throw jsonDecoder.missingKey(jsonPath, "hovers"); | 654 throw jsonDecoder.missingKey(jsonPath, "hovers"); |
| 550 } | 655 } |
| 551 return new AnalysisGetHoverResult(hovers); | 656 return new AnalysisGetHoverResult(hovers); |
| 552 } else { | 657 } else { |
| 553 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result"); | 658 throw jsonDecoder.mismatch(jsonPath, "analysis.getHover result"); |
| 554 } | 659 } |
| 555 } | 660 } |
| 556 | 661 |
| 557 factory AnalysisGetHoverResult.fromResponse(Response response) { | 662 factory AnalysisGetHoverResult.fromResponse(Response response) { |
| 558 return new AnalysisGetHoverResult.fromJson( | 663 return new AnalysisGetHoverResult.fromJson( |
| 559 new ResponseDecoder(), "result", response.result); | 664 new ResponseDecoder(), "result", response._result); |
| 560 } | 665 } |
| 561 | 666 |
| 562 Map<String, dynamic> toJson() { | 667 Map<String, dynamic> toJson() { |
| 563 Map<String, dynamic> result = {}; | 668 Map<String, dynamic> result = {}; |
| 564 result["hovers"] = hovers.map((HoverInformation value) => value.toJson()).to
List(); | 669 result["hovers"] = hovers.map((HoverInformation value) => value.toJson()).to
List(); |
| 565 return result; | 670 return result; |
| 566 } | 671 } |
| 567 | 672 |
| 568 Response toResponse(String id) { | 673 Response toResponse(String id) { |
| 569 return new Response(id, result: toJson()); | 674 return new Response(id, result: toJson()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 580 return false; | 685 return false; |
| 581 } | 686 } |
| 582 | 687 |
| 583 @override | 688 @override |
| 584 int get hashCode { | 689 int get hashCode { |
| 585 int hash = 0; | 690 int hash = 0; |
| 586 hash = _JenkinsSmiHash.combine(hash, hovers.hashCode); | 691 hash = _JenkinsSmiHash.combine(hash, hovers.hashCode); |
| 587 return _JenkinsSmiHash.finish(hash); | 692 return _JenkinsSmiHash.finish(hash); |
| 588 } | 693 } |
| 589 } | 694 } |
| 695 /** |
| 696 * analysis.reanalyze params |
| 697 */ |
| 698 class AnalysisReanalyzeParams { |
| 699 Request toRequest(String id) { |
| 700 return new Request(id, "analysis.reanalyze", null); |
| 701 } |
| 702 |
| 703 @override |
| 704 bool operator==(other) { |
| 705 if (other is AnalysisReanalyzeParams) { |
| 706 return true; |
| 707 } |
| 708 return false; |
| 709 } |
| 710 |
| 711 @override |
| 712 int get hashCode { |
| 713 return 613039876; |
| 714 } |
| 715 } |
| 716 /** |
| 717 * analysis.reanalyze result |
| 718 */ |
| 719 class AnalysisReanalyzeResult { |
| 720 Response toResponse(String id) { |
| 721 return new Response(id, result: null); |
| 722 } |
| 723 |
| 724 @override |
| 725 bool operator==(other) { |
| 726 if (other is AnalysisReanalyzeResult) { |
| 727 return true; |
| 728 } |
| 729 return false; |
| 730 } |
| 731 |
| 732 @override |
| 733 int get hashCode { |
| 734 return 846803925; |
| 735 } |
| 736 } |
| 590 | 737 |
| 591 /** | 738 /** |
| 592 * analysis.setAnalysisRoots params | 739 * analysis.setAnalysisRoots params |
| 593 * | 740 * |
| 594 * { | 741 * { |
| 595 * "included": List<FilePath> | 742 * "included": List<FilePath> |
| 596 * "excluded": List<FilePath> | 743 * "excluded": List<FilePath> |
| 597 * } | 744 * } |
| 598 */ | 745 */ |
| 599 class AnalysisSetAnalysisRootsParams implements HasToJson { | 746 class AnalysisSetAnalysisRootsParams { |
| 600 /** | 747 /** |
| 601 * A list of the files and directories that should be analyzed. | 748 * A list of the files and directories that should be analyzed. |
| 602 */ | 749 */ |
| 603 List<String> included; | 750 List<String> included; |
| 604 | 751 |
| 605 /** | 752 /** |
| 606 * A list of the files and directories within the included directories that | 753 * A list of the files and directories within the included directories that |
| 607 * should not be analyzed. | 754 * should not be analyzed. |
| 608 */ | 755 */ |
| 609 List<String> excluded; | 756 List<String> excluded; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 628 throw jsonDecoder.missingKey(jsonPath, "excluded"); | 775 throw jsonDecoder.missingKey(jsonPath, "excluded"); |
| 629 } | 776 } |
| 630 return new AnalysisSetAnalysisRootsParams(included, excluded); | 777 return new AnalysisSetAnalysisRootsParams(included, excluded); |
| 631 } else { | 778 } else { |
| 632 throw jsonDecoder.mismatch(jsonPath, "analysis.setAnalysisRoots params"); | 779 throw jsonDecoder.mismatch(jsonPath, "analysis.setAnalysisRoots params"); |
| 633 } | 780 } |
| 634 } | 781 } |
| 635 | 782 |
| 636 factory AnalysisSetAnalysisRootsParams.fromRequest(Request request) { | 783 factory AnalysisSetAnalysisRootsParams.fromRequest(Request request) { |
| 637 return new AnalysisSetAnalysisRootsParams.fromJson( | 784 return new AnalysisSetAnalysisRootsParams.fromJson( |
| 638 new RequestDecoder(request), "params", request.params); | 785 new RequestDecoder(request), "params", request._params); |
| 639 } | 786 } |
| 640 | 787 |
| 641 Map<String, dynamic> toJson() { | 788 Map<String, dynamic> toJson() { |
| 642 Map<String, dynamic> result = {}; | 789 Map<String, dynamic> result = {}; |
| 643 result["included"] = included; | 790 result["included"] = included; |
| 644 result["excluded"] = excluded; | 791 result["excluded"] = excluded; |
| 645 return result; | 792 return result; |
| 646 } | 793 } |
| 647 | 794 |
| 648 Request toRequest(String id) { | 795 Request toRequest(String id) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 662 } | 809 } |
| 663 | 810 |
| 664 @override | 811 @override |
| 665 int get hashCode { | 812 int get hashCode { |
| 666 int hash = 0; | 813 int hash = 0; |
| 667 hash = _JenkinsSmiHash.combine(hash, included.hashCode); | 814 hash = _JenkinsSmiHash.combine(hash, included.hashCode); |
| 668 hash = _JenkinsSmiHash.combine(hash, excluded.hashCode); | 815 hash = _JenkinsSmiHash.combine(hash, excluded.hashCode); |
| 669 return _JenkinsSmiHash.finish(hash); | 816 return _JenkinsSmiHash.finish(hash); |
| 670 } | 817 } |
| 671 } | 818 } |
| 819 /** |
| 820 * analysis.setAnalysisRoots result |
| 821 */ |
| 822 class AnalysisSetAnalysisRootsResult { |
| 823 Response toResponse(String id) { |
| 824 return new Response(id, result: null); |
| 825 } |
| 826 |
| 827 @override |
| 828 bool operator==(other) { |
| 829 if (other is AnalysisSetAnalysisRootsResult) { |
| 830 return true; |
| 831 } |
| 832 return false; |
| 833 } |
| 834 |
| 835 @override |
| 836 int get hashCode { |
| 837 return 866004753; |
| 838 } |
| 839 } |
| 672 | 840 |
| 673 /** | 841 /** |
| 674 * analysis.setPriorityFiles params | 842 * analysis.setPriorityFiles params |
| 675 * | 843 * |
| 676 * { | 844 * { |
| 677 * "files": List<FilePath> | 845 * "files": List<FilePath> |
| 678 * } | 846 * } |
| 679 */ | 847 */ |
| 680 class AnalysisSetPriorityFilesParams implements HasToJson { | 848 class AnalysisSetPriorityFilesParams { |
| 681 /** | 849 /** |
| 682 * The files that are to be a priority for analysis. | 850 * The files that are to be a priority for analysis. |
| 683 */ | 851 */ |
| 684 List<String> files; | 852 List<String> files; |
| 685 | 853 |
| 686 AnalysisSetPriorityFilesParams(this.files); | 854 AnalysisSetPriorityFilesParams(this.files); |
| 687 | 855 |
| 688 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 856 factory AnalysisSetPriorityFilesParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 689 if (json == null) { | 857 if (json == null) { |
| 690 json = {}; | 858 json = {}; |
| 691 } | 859 } |
| 692 if (json is Map) { | 860 if (json is Map) { |
| 693 List<String> files; | 861 List<String> files; |
| 694 if (json.containsKey("files")) { | 862 if (json.containsKey("files")) { |
| 695 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); | 863 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); |
| 696 } else { | 864 } else { |
| 697 throw jsonDecoder.missingKey(jsonPath, "files"); | 865 throw jsonDecoder.missingKey(jsonPath, "files"); |
| 698 } | 866 } |
| 699 return new AnalysisSetPriorityFilesParams(files); | 867 return new AnalysisSetPriorityFilesParams(files); |
| 700 } else { | 868 } else { |
| 701 throw jsonDecoder.mismatch(jsonPath, "analysis.setPriorityFiles params"); | 869 throw jsonDecoder.mismatch(jsonPath, "analysis.setPriorityFiles params"); |
| 702 } | 870 } |
| 703 } | 871 } |
| 704 | 872 |
| 705 factory AnalysisSetPriorityFilesParams.fromRequest(Request request) { | 873 factory AnalysisSetPriorityFilesParams.fromRequest(Request request) { |
| 706 return new AnalysisSetPriorityFilesParams.fromJson( | 874 return new AnalysisSetPriorityFilesParams.fromJson( |
| 707 new RequestDecoder(request), "params", request.params); | 875 new RequestDecoder(request), "params", request._params); |
| 708 } | 876 } |
| 709 | 877 |
| 710 Map<String, dynamic> toJson() { | 878 Map<String, dynamic> toJson() { |
| 711 Map<String, dynamic> result = {}; | 879 Map<String, dynamic> result = {}; |
| 712 result["files"] = files; | 880 result["files"] = files; |
| 713 return result; | 881 return result; |
| 714 } | 882 } |
| 715 | 883 |
| 716 Request toRequest(String id) { | 884 Request toRequest(String id) { |
| 717 return new Request(id, "analysis.setPriorityFiles", toJson()); | 885 return new Request(id, "analysis.setPriorityFiles", toJson()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 728 return false; | 896 return false; |
| 729 } | 897 } |
| 730 | 898 |
| 731 @override | 899 @override |
| 732 int get hashCode { | 900 int get hashCode { |
| 733 int hash = 0; | 901 int hash = 0; |
| 734 hash = _JenkinsSmiHash.combine(hash, files.hashCode); | 902 hash = _JenkinsSmiHash.combine(hash, files.hashCode); |
| 735 return _JenkinsSmiHash.finish(hash); | 903 return _JenkinsSmiHash.finish(hash); |
| 736 } | 904 } |
| 737 } | 905 } |
| 906 /** |
| 907 * analysis.setPriorityFiles result |
| 908 */ |
| 909 class AnalysisSetPriorityFilesResult { |
| 910 Response toResponse(String id) { |
| 911 return new Response(id, result: null); |
| 912 } |
| 913 |
| 914 @override |
| 915 bool operator==(other) { |
| 916 if (other is AnalysisSetPriorityFilesResult) { |
| 917 return true; |
| 918 } |
| 919 return false; |
| 920 } |
| 921 |
| 922 @override |
| 923 int get hashCode { |
| 924 return 330050055; |
| 925 } |
| 926 } |
| 738 | 927 |
| 739 /** | 928 /** |
| 740 * analysis.setSubscriptions params | 929 * analysis.setSubscriptions params |
| 741 * | 930 * |
| 742 * { | 931 * { |
| 743 * "subscriptions": Map<AnalysisService, List<FilePath>> | 932 * "subscriptions": Map<AnalysisService, List<FilePath>> |
| 744 * } | 933 * } |
| 745 */ | 934 */ |
| 746 class AnalysisSetSubscriptionsParams implements HasToJson { | 935 class AnalysisSetSubscriptionsParams { |
| 747 /** | 936 /** |
| 748 * A table mapping services to a list of the files being subscribed to the | 937 * A table mapping services to a list of the files being subscribed to the |
| 749 * service. | 938 * service. |
| 750 */ | 939 */ |
| 751 Map<AnalysisService, List<String>> subscriptions; | 940 Map<AnalysisService, List<String>> subscriptions; |
| 752 | 941 |
| 753 AnalysisSetSubscriptionsParams(this.subscriptions); | 942 AnalysisSetSubscriptionsParams(this.subscriptions); |
| 754 | 943 |
| 755 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 944 factory AnalysisSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 756 if (json == null) { | 945 if (json == null) { |
| 757 json = {}; | 946 json = {}; |
| 758 } | 947 } |
| 759 if (json is Map) { | 948 if (json is Map) { |
| 760 Map<AnalysisService, List<String>> subscriptions; | 949 Map<AnalysisService, List<String>> subscriptions; |
| 761 if (json.containsKey("subscriptions")) { | 950 if (json.containsKey("subscriptions")) { |
| 762 subscriptions = jsonDecoder._decodeMap(jsonPath + ".subscriptions", json
["subscriptions"], keyDecoder: (String jsonPath, Object json) => new AnalysisSer
vice.fromJson(jsonDecoder, jsonPath, json), valueDecoder: (String jsonPath, Obje
ct json) => jsonDecoder._decodeList(jsonPath, json, jsonDecoder._decodeString)); | 951 subscriptions = jsonDecoder._decodeMap(jsonPath + ".subscriptions", json
["subscriptions"], keyDecoder: (String jsonPath, Object json) => new AnalysisSer
vice.fromJson(jsonDecoder, jsonPath, json), valueDecoder: (String jsonPath, Obje
ct json) => jsonDecoder._decodeList(jsonPath, json, jsonDecoder._decodeString)); |
| 763 } else { | 952 } else { |
| 764 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 953 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
| 765 } | 954 } |
| 766 return new AnalysisSetSubscriptionsParams(subscriptions); | 955 return new AnalysisSetSubscriptionsParams(subscriptions); |
| 767 } else { | 956 } else { |
| 768 throw jsonDecoder.mismatch(jsonPath, "analysis.setSubscriptions params"); | 957 throw jsonDecoder.mismatch(jsonPath, "analysis.setSubscriptions params"); |
| 769 } | 958 } |
| 770 } | 959 } |
| 771 | 960 |
| 772 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) { | 961 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) { |
| 773 return new AnalysisSetSubscriptionsParams.fromJson( | 962 return new AnalysisSetSubscriptionsParams.fromJson( |
| 774 new RequestDecoder(request), "params", request.params); | 963 new RequestDecoder(request), "params", request._params); |
| 775 } | 964 } |
| 776 | 965 |
| 777 Map<String, dynamic> toJson() { | 966 Map<String, dynamic> toJson() { |
| 778 Map<String, dynamic> result = {}; | 967 Map<String, dynamic> result = {}; |
| 779 result["subscriptions"] = mapMap(subscriptions, keyCallback: (AnalysisServic
e value) => value.toJson()); | 968 result["subscriptions"] = mapMap(subscriptions, keyCallback: (AnalysisServic
e value) => value.toJson()); |
| 780 return result; | 969 return result; |
| 781 } | 970 } |
| 782 | 971 |
| 783 Request toRequest(String id) { | 972 Request toRequest(String id) { |
| 784 return new Request(id, "analysis.setSubscriptions", toJson()); | 973 return new Request(id, "analysis.setSubscriptions", toJson()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 795 return false; | 984 return false; |
| 796 } | 985 } |
| 797 | 986 |
| 798 @override | 987 @override |
| 799 int get hashCode { | 988 int get hashCode { |
| 800 int hash = 0; | 989 int hash = 0; |
| 801 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 990 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
| 802 return _JenkinsSmiHash.finish(hash); | 991 return _JenkinsSmiHash.finish(hash); |
| 803 } | 992 } |
| 804 } | 993 } |
| 994 /** |
| 995 * analysis.setSubscriptions result |
| 996 */ |
| 997 class AnalysisSetSubscriptionsResult { |
| 998 Response toResponse(String id) { |
| 999 return new Response(id, result: null); |
| 1000 } |
| 1001 |
| 1002 @override |
| 1003 bool operator==(other) { |
| 1004 if (other is AnalysisSetSubscriptionsResult) { |
| 1005 return true; |
| 1006 } |
| 1007 return false; |
| 1008 } |
| 1009 |
| 1010 @override |
| 1011 int get hashCode { |
| 1012 return 218088493; |
| 1013 } |
| 1014 } |
| 805 | 1015 |
| 806 /** | 1016 /** |
| 807 * analysis.updateContent params | 1017 * analysis.updateContent params |
| 808 * | 1018 * |
| 809 * { | 1019 * { |
| 810 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> | 1020 * "files": Map<FilePath, AddContentOverlay | ChangeContentOverlay | RemoveCon
tentOverlay> |
| 811 * } | 1021 * } |
| 812 */ | 1022 */ |
| 813 class AnalysisUpdateContentParams implements HasToJson { | 1023 class AnalysisUpdateContentParams { |
| 814 /** | 1024 /** |
| 815 * A table mapping the files whose content has changed to a description of | 1025 * A table mapping the files whose content has changed to a description of |
| 816 * the content change. | 1026 * the content change. |
| 817 */ | 1027 */ |
| 818 Map<String, dynamic> files; | 1028 Map<String, dynamic> files; |
| 819 | 1029 |
| 820 AnalysisUpdateContentParams(this.files); | 1030 AnalysisUpdateContentParams(this.files); |
| 821 | 1031 |
| 822 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1032 factory AnalysisUpdateContentParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 823 if (json == null) { | 1033 if (json == null) { |
| 824 json = {}; | 1034 json = {}; |
| 825 } | 1035 } |
| 826 if (json is Map) { | 1036 if (json is Map) { |
| 827 Map<String, dynamic> files; | 1037 Map<String, dynamic> files; |
| 828 if (json.containsKey("files")) { | 1038 if (json.containsKey("files")) { |
| 829 files = jsonDecoder._decodeMap(jsonPath + ".files", json["files"], value
Decoder: (String jsonPath, Object json) => jsonDecoder._decodeUnion(jsonPath, js
on, "type", {"add": (String jsonPath, Object json) => new AddContentOverlay.from
Json(jsonDecoder, jsonPath, json), "change": (String jsonPath, Object json) => n
ew ChangeContentOverlay.fromJson(jsonDecoder, jsonPath, json), "remove": (String
jsonPath, Object json) => new RemoveContentOverlay.fromJson(jsonDecoder, jsonPa
th, json)})); | 1039 files = jsonDecoder._decodeMap(jsonPath + ".files", json["files"], value
Decoder: (String jsonPath, Object json) => jsonDecoder._decodeUnion(jsonPath, js
on, "type", {"add": (String jsonPath, Object json) => new AddContentOverlay.from
Json(jsonDecoder, jsonPath, json), "change": (String jsonPath, Object json) => n
ew ChangeContentOverlay.fromJson(jsonDecoder, jsonPath, json), "remove": (String
jsonPath, Object json) => new RemoveContentOverlay.fromJson(jsonDecoder, jsonPa
th, json)})); |
| 830 } else { | 1040 } else { |
| 831 throw jsonDecoder.missingKey(jsonPath, "files"); | 1041 throw jsonDecoder.missingKey(jsonPath, "files"); |
| 832 } | 1042 } |
| 833 return new AnalysisUpdateContentParams(files); | 1043 return new AnalysisUpdateContentParams(files); |
| 834 } else { | 1044 } else { |
| 835 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent params"); | 1045 throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent params"); |
| 836 } | 1046 } |
| 837 } | 1047 } |
| 838 | 1048 |
| 839 factory AnalysisUpdateContentParams.fromRequest(Request request) { | 1049 factory AnalysisUpdateContentParams.fromRequest(Request request) { |
| 840 return new AnalysisUpdateContentParams.fromJson( | 1050 return new AnalysisUpdateContentParams.fromJson( |
| 841 new RequestDecoder(request), "params", request.params); | 1051 new RequestDecoder(request), "params", request._params); |
| 842 } | 1052 } |
| 843 | 1053 |
| 844 Map<String, dynamic> toJson() { | 1054 Map<String, dynamic> toJson() { |
| 845 Map<String, dynamic> result = {}; | 1055 Map<String, dynamic> result = {}; |
| 846 result["files"] = mapMap(files, valueCallback: (dynamic value) => value.toJs
on()); | 1056 result["files"] = mapMap(files, valueCallback: (dynamic value) => value.toJs
on()); |
| 847 return result; | 1057 return result; |
| 848 } | 1058 } |
| 849 | 1059 |
| 850 Request toRequest(String id) { | 1060 Request toRequest(String id) { |
| 851 return new Request(id, "analysis.updateContent", toJson()); | 1061 return new Request(id, "analysis.updateContent", toJson()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 862 return false; | 1072 return false; |
| 863 } | 1073 } |
| 864 | 1074 |
| 865 @override | 1075 @override |
| 866 int get hashCode { | 1076 int get hashCode { |
| 867 int hash = 0; | 1077 int hash = 0; |
| 868 hash = _JenkinsSmiHash.combine(hash, files.hashCode); | 1078 hash = _JenkinsSmiHash.combine(hash, files.hashCode); |
| 869 return _JenkinsSmiHash.finish(hash); | 1079 return _JenkinsSmiHash.finish(hash); |
| 870 } | 1080 } |
| 871 } | 1081 } |
| 1082 /** |
| 1083 * analysis.updateContent result |
| 1084 */ |
| 1085 class AnalysisUpdateContentResult { |
| 1086 Response toResponse(String id) { |
| 1087 return new Response(id, result: null); |
| 1088 } |
| 1089 |
| 1090 @override |
| 1091 bool operator==(other) { |
| 1092 if (other is AnalysisUpdateContentResult) { |
| 1093 return true; |
| 1094 } |
| 1095 return false; |
| 1096 } |
| 1097 |
| 1098 @override |
| 1099 int get hashCode { |
| 1100 return 468798730; |
| 1101 } |
| 1102 } |
| 872 | 1103 |
| 873 /** | 1104 /** |
| 874 * analysis.updateOptions params | 1105 * analysis.updateOptions params |
| 875 * | 1106 * |
| 876 * { | 1107 * { |
| 877 * "options": AnalysisOptions | 1108 * "options": AnalysisOptions |
| 878 * } | 1109 * } |
| 879 */ | 1110 */ |
| 880 class AnalysisUpdateOptionsParams implements HasToJson { | 1111 class AnalysisUpdateOptionsParams { |
| 881 /** | 1112 /** |
| 882 * The options that are to be used to control analysis. | 1113 * The options that are to be used to control analysis. |
| 883 */ | 1114 */ |
| 884 AnalysisOptions options; | 1115 AnalysisOptions options; |
| 885 | 1116 |
| 886 AnalysisUpdateOptionsParams(this.options); | 1117 AnalysisUpdateOptionsParams(this.options); |
| 887 | 1118 |
| 888 factory AnalysisUpdateOptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 1119 factory AnalysisUpdateOptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 889 if (json == null) { | 1120 if (json == null) { |
| 890 json = {}; | 1121 json = {}; |
| 891 } | 1122 } |
| 892 if (json is Map) { | 1123 if (json is Map) { |
| 893 AnalysisOptions options; | 1124 AnalysisOptions options; |
| 894 if (json.containsKey("options")) { | 1125 if (json.containsKey("options")) { |
| 895 options = new AnalysisOptions.fromJson(jsonDecoder, jsonPath + ".options
", json["options"]); | 1126 options = new AnalysisOptions.fromJson(jsonDecoder, jsonPath + ".options
", json["options"]); |
| 896 } else { | 1127 } else { |
| 897 throw jsonDecoder.missingKey(jsonPath, "options"); | 1128 throw jsonDecoder.missingKey(jsonPath, "options"); |
| 898 } | 1129 } |
| 899 return new AnalysisUpdateOptionsParams(options); | 1130 return new AnalysisUpdateOptionsParams(options); |
| 900 } else { | 1131 } else { |
| 901 throw jsonDecoder.mismatch(jsonPath, "analysis.updateOptions params"); | 1132 throw jsonDecoder.mismatch(jsonPath, "analysis.updateOptions params"); |
| 902 } | 1133 } |
| 903 } | 1134 } |
| 904 | 1135 |
| 905 factory AnalysisUpdateOptionsParams.fromRequest(Request request) { | 1136 factory AnalysisUpdateOptionsParams.fromRequest(Request request) { |
| 906 return new AnalysisUpdateOptionsParams.fromJson( | 1137 return new AnalysisUpdateOptionsParams.fromJson( |
| 907 new RequestDecoder(request), "params", request.params); | 1138 new RequestDecoder(request), "params", request._params); |
| 908 } | 1139 } |
| 909 | 1140 |
| 910 Map<String, dynamic> toJson() { | 1141 Map<String, dynamic> toJson() { |
| 911 Map<String, dynamic> result = {}; | 1142 Map<String, dynamic> result = {}; |
| 912 result["options"] = options.toJson(); | 1143 result["options"] = options.toJson(); |
| 913 return result; | 1144 return result; |
| 914 } | 1145 } |
| 915 | 1146 |
| 916 Request toRequest(String id) { | 1147 Request toRequest(String id) { |
| 917 return new Request(id, "analysis.updateOptions", toJson()); | 1148 return new Request(id, "analysis.updateOptions", toJson()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 928 return false; | 1159 return false; |
| 929 } | 1160 } |
| 930 | 1161 |
| 931 @override | 1162 @override |
| 932 int get hashCode { | 1163 int get hashCode { |
| 933 int hash = 0; | 1164 int hash = 0; |
| 934 hash = _JenkinsSmiHash.combine(hash, options.hashCode); | 1165 hash = _JenkinsSmiHash.combine(hash, options.hashCode); |
| 935 return _JenkinsSmiHash.finish(hash); | 1166 return _JenkinsSmiHash.finish(hash); |
| 936 } | 1167 } |
| 937 } | 1168 } |
| 1169 /** |
| 1170 * analysis.updateOptions result |
| 1171 */ |
| 1172 class AnalysisUpdateOptionsResult { |
| 1173 Response toResponse(String id) { |
| 1174 return new Response(id, result: null); |
| 1175 } |
| 1176 |
| 1177 @override |
| 1178 bool operator==(other) { |
| 1179 if (other is AnalysisUpdateOptionsResult) { |
| 1180 return true; |
| 1181 } |
| 1182 return false; |
| 1183 } |
| 1184 |
| 1185 @override |
| 1186 int get hashCode { |
| 1187 return 179689467; |
| 1188 } |
| 1189 } |
| 938 | 1190 |
| 939 /** | 1191 /** |
| 940 * analysis.errors params | 1192 * analysis.errors params |
| 941 * | 1193 * |
| 942 * { | 1194 * { |
| 943 * "file": FilePath | 1195 * "file": FilePath |
| 944 * "errors": List<AnalysisError> | 1196 * "errors": List<AnalysisError> |
| 945 * } | 1197 * } |
| 946 */ | 1198 */ |
| 947 class AnalysisErrorsParams implements HasToJson { | 1199 class AnalysisErrorsParams { |
| 948 /** | 1200 /** |
| 949 * The file containing the errors. | 1201 * The file containing the errors. |
| 950 */ | 1202 */ |
| 951 String file; | 1203 String file; |
| 952 | 1204 |
| 953 /** | 1205 /** |
| 954 * The errors contained in the file. | 1206 * The errors contained in the file. |
| 955 */ | 1207 */ |
| 956 List<AnalysisError> errors; | 1208 List<AnalysisError> errors; |
| 957 | 1209 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 975 throw jsonDecoder.missingKey(jsonPath, "errors"); | 1227 throw jsonDecoder.missingKey(jsonPath, "errors"); |
| 976 } | 1228 } |
| 977 return new AnalysisErrorsParams(file, errors); | 1229 return new AnalysisErrorsParams(file, errors); |
| 978 } else { | 1230 } else { |
| 979 throw jsonDecoder.mismatch(jsonPath, "analysis.errors params"); | 1231 throw jsonDecoder.mismatch(jsonPath, "analysis.errors params"); |
| 980 } | 1232 } |
| 981 } | 1233 } |
| 982 | 1234 |
| 983 factory AnalysisErrorsParams.fromNotification(Notification notification) { | 1235 factory AnalysisErrorsParams.fromNotification(Notification notification) { |
| 984 return new AnalysisErrorsParams.fromJson( | 1236 return new AnalysisErrorsParams.fromJson( |
| 985 new ResponseDecoder(), "params", notification.params); | 1237 new ResponseDecoder(), "params", notification._params); |
| 986 } | 1238 } |
| 987 | 1239 |
| 988 Map<String, dynamic> toJson() { | 1240 Map<String, dynamic> toJson() { |
| 989 Map<String, dynamic> result = {}; | 1241 Map<String, dynamic> result = {}; |
| 990 result["file"] = file; | 1242 result["file"] = file; |
| 991 result["errors"] = errors.map((AnalysisError value) => value.toJson()).toLis
t(); | 1243 result["errors"] = errors.map((AnalysisError value) => value.toJson()).toLis
t(); |
| 992 return result; | 1244 return result; |
| 993 } | 1245 } |
| 994 | 1246 |
| 995 Notification toNotification() { | 1247 Notification toNotification() { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1017 } | 1269 } |
| 1018 } | 1270 } |
| 1019 | 1271 |
| 1020 /** | 1272 /** |
| 1021 * analysis.flushResults params | 1273 * analysis.flushResults params |
| 1022 * | 1274 * |
| 1023 * { | 1275 * { |
| 1024 * "files": List<FilePath> | 1276 * "files": List<FilePath> |
| 1025 * } | 1277 * } |
| 1026 */ | 1278 */ |
| 1027 class AnalysisFlushResultsParams implements HasToJson { | 1279 class AnalysisFlushResultsParams { |
| 1028 /** | 1280 /** |
| 1029 * The files that are no longer being analyzed. | 1281 * The files that are no longer being analyzed. |
| 1030 */ | 1282 */ |
| 1031 List<String> files; | 1283 List<String> files; |
| 1032 | 1284 |
| 1033 AnalysisFlushResultsParams(this.files); | 1285 AnalysisFlushResultsParams(this.files); |
| 1034 | 1286 |
| 1035 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { | 1287 factory AnalysisFlushResultsParams.fromJson(JsonDecoder jsonDecoder, String js
onPath, Object json) { |
| 1036 if (json == null) { | 1288 if (json == null) { |
| 1037 json = {}; | 1289 json = {}; |
| 1038 } | 1290 } |
| 1039 if (json is Map) { | 1291 if (json is Map) { |
| 1040 List<String> files; | 1292 List<String> files; |
| 1041 if (json.containsKey("files")) { | 1293 if (json.containsKey("files")) { |
| 1042 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); | 1294 files = jsonDecoder._decodeList(jsonPath + ".files", json["files"], json
Decoder._decodeString); |
| 1043 } else { | 1295 } else { |
| 1044 throw jsonDecoder.missingKey(jsonPath, "files"); | 1296 throw jsonDecoder.missingKey(jsonPath, "files"); |
| 1045 } | 1297 } |
| 1046 return new AnalysisFlushResultsParams(files); | 1298 return new AnalysisFlushResultsParams(files); |
| 1047 } else { | 1299 } else { |
| 1048 throw jsonDecoder.mismatch(jsonPath, "analysis.flushResults params"); | 1300 throw jsonDecoder.mismatch(jsonPath, "analysis.flushResults params"); |
| 1049 } | 1301 } |
| 1050 } | 1302 } |
| 1051 | 1303 |
| 1052 factory AnalysisFlushResultsParams.fromNotification(Notification notification)
{ | 1304 factory AnalysisFlushResultsParams.fromNotification(Notification notification)
{ |
| 1053 return new AnalysisFlushResultsParams.fromJson( | 1305 return new AnalysisFlushResultsParams.fromJson( |
| 1054 new ResponseDecoder(), "params", notification.params); | 1306 new ResponseDecoder(), "params", notification._params); |
| 1055 } | 1307 } |
| 1056 | 1308 |
| 1057 Map<String, dynamic> toJson() { | 1309 Map<String, dynamic> toJson() { |
| 1058 Map<String, dynamic> result = {}; | 1310 Map<String, dynamic> result = {}; |
| 1059 result["files"] = files; | 1311 result["files"] = files; |
| 1060 return result; | 1312 return result; |
| 1061 } | 1313 } |
| 1062 | 1314 |
| 1063 Notification toNotification() { | 1315 Notification toNotification() { |
| 1064 return new Notification("analysis.flushResults", toJson()); | 1316 return new Notification("analysis.flushResults", toJson()); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1084 } | 1336 } |
| 1085 | 1337 |
| 1086 /** | 1338 /** |
| 1087 * analysis.folding params | 1339 * analysis.folding params |
| 1088 * | 1340 * |
| 1089 * { | 1341 * { |
| 1090 * "file": FilePath | 1342 * "file": FilePath |
| 1091 * "regions": List<FoldingRegion> | 1343 * "regions": List<FoldingRegion> |
| 1092 * } | 1344 * } |
| 1093 */ | 1345 */ |
| 1094 class AnalysisFoldingParams implements HasToJson { | 1346 class AnalysisFoldingParams { |
| 1095 /** | 1347 /** |
| 1096 * The file containing the folding regions. | 1348 * The file containing the folding regions. |
| 1097 */ | 1349 */ |
| 1098 String file; | 1350 String file; |
| 1099 | 1351 |
| 1100 /** | 1352 /** |
| 1101 * The folding regions contained in the file. | 1353 * The folding regions contained in the file. |
| 1102 */ | 1354 */ |
| 1103 List<FoldingRegion> regions; | 1355 List<FoldingRegion> regions; |
| 1104 | 1356 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1122 throw jsonDecoder.missingKey(jsonPath, "regions"); | 1374 throw jsonDecoder.missingKey(jsonPath, "regions"); |
| 1123 } | 1375 } |
| 1124 return new AnalysisFoldingParams(file, regions); | 1376 return new AnalysisFoldingParams(file, regions); |
| 1125 } else { | 1377 } else { |
| 1126 throw jsonDecoder.mismatch(jsonPath, "analysis.folding params"); | 1378 throw jsonDecoder.mismatch(jsonPath, "analysis.folding params"); |
| 1127 } | 1379 } |
| 1128 } | 1380 } |
| 1129 | 1381 |
| 1130 factory AnalysisFoldingParams.fromNotification(Notification notification) { | 1382 factory AnalysisFoldingParams.fromNotification(Notification notification) { |
| 1131 return new AnalysisFoldingParams.fromJson( | 1383 return new AnalysisFoldingParams.fromJson( |
| 1132 new ResponseDecoder(), "params", notification.params); | 1384 new ResponseDecoder(), "params", notification._params); |
| 1133 } | 1385 } |
| 1134 | 1386 |
| 1135 Map<String, dynamic> toJson() { | 1387 Map<String, dynamic> toJson() { |
| 1136 Map<String, dynamic> result = {}; | 1388 Map<String, dynamic> result = {}; |
| 1137 result["file"] = file; | 1389 result["file"] = file; |
| 1138 result["regions"] = regions.map((FoldingRegion value) => value.toJson()).toL
ist(); | 1390 result["regions"] = regions.map((FoldingRegion value) => value.toJson()).toL
ist(); |
| 1139 return result; | 1391 return result; |
| 1140 } | 1392 } |
| 1141 | 1393 |
| 1142 Notification toNotification() { | 1394 Notification toNotification() { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1165 } | 1417 } |
| 1166 | 1418 |
| 1167 /** | 1419 /** |
| 1168 * analysis.highlights params | 1420 * analysis.highlights params |
| 1169 * | 1421 * |
| 1170 * { | 1422 * { |
| 1171 * "file": FilePath | 1423 * "file": FilePath |
| 1172 * "regions": List<HighlightRegion> | 1424 * "regions": List<HighlightRegion> |
| 1173 * } | 1425 * } |
| 1174 */ | 1426 */ |
| 1175 class AnalysisHighlightsParams implements HasToJson { | 1427 class AnalysisHighlightsParams { |
| 1176 /** | 1428 /** |
| 1177 * The file containing the highlight regions. | 1429 * The file containing the highlight regions. |
| 1178 */ | 1430 */ |
| 1179 String file; | 1431 String file; |
| 1180 | 1432 |
| 1181 /** | 1433 /** |
| 1182 * The highlight regions contained in the file. Each highlight region | 1434 * The highlight regions contained in the file. Each highlight region |
| 1183 * represents a particular syntactic or semantic meaning associated with some | 1435 * represents a particular syntactic or semantic meaning associated with some |
| 1184 * range. Note that the highlight regions that are returned can overlap other | 1436 * range. Note that the highlight regions that are returned can overlap other |
| 1185 * highlight regions if there is more than one meaning associated with a | 1437 * highlight regions if there is more than one meaning associated with a |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1207 throw jsonDecoder.missingKey(jsonPath, "regions"); | 1459 throw jsonDecoder.missingKey(jsonPath, "regions"); |
| 1208 } | 1460 } |
| 1209 return new AnalysisHighlightsParams(file, regions); | 1461 return new AnalysisHighlightsParams(file, regions); |
| 1210 } else { | 1462 } else { |
| 1211 throw jsonDecoder.mismatch(jsonPath, "analysis.highlights params"); | 1463 throw jsonDecoder.mismatch(jsonPath, "analysis.highlights params"); |
| 1212 } | 1464 } |
| 1213 } | 1465 } |
| 1214 | 1466 |
| 1215 factory AnalysisHighlightsParams.fromNotification(Notification notification) { | 1467 factory AnalysisHighlightsParams.fromNotification(Notification notification) { |
| 1216 return new AnalysisHighlightsParams.fromJson( | 1468 return new AnalysisHighlightsParams.fromJson( |
| 1217 new ResponseDecoder(), "params", notification.params); | 1469 new ResponseDecoder(), "params", notification._params); |
| 1218 } | 1470 } |
| 1219 | 1471 |
| 1220 Map<String, dynamic> toJson() { | 1472 Map<String, dynamic> toJson() { |
| 1221 Map<String, dynamic> result = {}; | 1473 Map<String, dynamic> result = {}; |
| 1222 result["file"] = file; | 1474 result["file"] = file; |
| 1223 result["regions"] = regions.map((HighlightRegion value) => value.toJson()).t
oList(); | 1475 result["regions"] = regions.map((HighlightRegion value) => value.toJson()).t
oList(); |
| 1224 return result; | 1476 return result; |
| 1225 } | 1477 } |
| 1226 | 1478 |
| 1227 Notification toNotification() { | 1479 Notification toNotification() { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1250 } | 1502 } |
| 1251 | 1503 |
| 1252 /** | 1504 /** |
| 1253 * analysis.navigation params | 1505 * analysis.navigation params |
| 1254 * | 1506 * |
| 1255 * { | 1507 * { |
| 1256 * "file": FilePath | 1508 * "file": FilePath |
| 1257 * "regions": List<NavigationRegion> | 1509 * "regions": List<NavigationRegion> |
| 1258 * } | 1510 * } |
| 1259 */ | 1511 */ |
| 1260 class AnalysisNavigationParams implements HasToJson { | 1512 class AnalysisNavigationParams { |
| 1261 /** | 1513 /** |
| 1262 * The file containing the navigation regions. | 1514 * The file containing the navigation regions. |
| 1263 */ | 1515 */ |
| 1264 String file; | 1516 String file; |
| 1265 | 1517 |
| 1266 /** | 1518 /** |
| 1267 * The navigation regions contained in the file. Each navigation region | 1519 * The navigation regions contained in the file. Each navigation region |
| 1268 * represents a list of targets associated with some range. The lists will | 1520 * represents a list of targets associated with some range. The lists will |
| 1269 * usually contain a single target, but can contain more in the case of a | 1521 * usually contain a single target, but can contain more in the case of a |
| 1270 * part that is included in multiple libraries or in Dart code that is | 1522 * part that is included in multiple libraries or in Dart code that is |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1293 throw jsonDecoder.missingKey(jsonPath, "regions"); | 1545 throw jsonDecoder.missingKey(jsonPath, "regions"); |
| 1294 } | 1546 } |
| 1295 return new AnalysisNavigationParams(file, regions); | 1547 return new AnalysisNavigationParams(file, regions); |
| 1296 } else { | 1548 } else { |
| 1297 throw jsonDecoder.mismatch(jsonPath, "analysis.navigation params"); | 1549 throw jsonDecoder.mismatch(jsonPath, "analysis.navigation params"); |
| 1298 } | 1550 } |
| 1299 } | 1551 } |
| 1300 | 1552 |
| 1301 factory AnalysisNavigationParams.fromNotification(Notification notification) { | 1553 factory AnalysisNavigationParams.fromNotification(Notification notification) { |
| 1302 return new AnalysisNavigationParams.fromJson( | 1554 return new AnalysisNavigationParams.fromJson( |
| 1303 new ResponseDecoder(), "params", notification.params); | 1555 new ResponseDecoder(), "params", notification._params); |
| 1304 } | 1556 } |
| 1305 | 1557 |
| 1306 Map<String, dynamic> toJson() { | 1558 Map<String, dynamic> toJson() { |
| 1307 Map<String, dynamic> result = {}; | 1559 Map<String, dynamic> result = {}; |
| 1308 result["file"] = file; | 1560 result["file"] = file; |
| 1309 result["regions"] = regions.map((NavigationRegion value) => value.toJson()).
toList(); | 1561 result["regions"] = regions.map((NavigationRegion value) => value.toJson()).
toList(); |
| 1310 return result; | 1562 return result; |
| 1311 } | 1563 } |
| 1312 | 1564 |
| 1313 Notification toNotification() { | 1565 Notification toNotification() { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1336 } | 1588 } |
| 1337 | 1589 |
| 1338 /** | 1590 /** |
| 1339 * analysis.occurrences params | 1591 * analysis.occurrences params |
| 1340 * | 1592 * |
| 1341 * { | 1593 * { |
| 1342 * "file": FilePath | 1594 * "file": FilePath |
| 1343 * "occurrences": List<Occurrences> | 1595 * "occurrences": List<Occurrences> |
| 1344 * } | 1596 * } |
| 1345 */ | 1597 */ |
| 1346 class AnalysisOccurrencesParams implements HasToJson { | 1598 class AnalysisOccurrencesParams { |
| 1347 /** | 1599 /** |
| 1348 * The file in which the references occur. | 1600 * The file in which the references occur. |
| 1349 */ | 1601 */ |
| 1350 String file; | 1602 String file; |
| 1351 | 1603 |
| 1352 /** | 1604 /** |
| 1353 * The occurrences of references to elements within the file. | 1605 * The occurrences of references to elements within the file. |
| 1354 */ | 1606 */ |
| 1355 List<Occurrences> occurrences; | 1607 List<Occurrences> occurrences; |
| 1356 | 1608 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1374 throw jsonDecoder.missingKey(jsonPath, "occurrences"); | 1626 throw jsonDecoder.missingKey(jsonPath, "occurrences"); |
| 1375 } | 1627 } |
| 1376 return new AnalysisOccurrencesParams(file, occurrences); | 1628 return new AnalysisOccurrencesParams(file, occurrences); |
| 1377 } else { | 1629 } else { |
| 1378 throw jsonDecoder.mismatch(jsonPath, "analysis.occurrences params"); | 1630 throw jsonDecoder.mismatch(jsonPath, "analysis.occurrences params"); |
| 1379 } | 1631 } |
| 1380 } | 1632 } |
| 1381 | 1633 |
| 1382 factory AnalysisOccurrencesParams.fromNotification(Notification notification)
{ | 1634 factory AnalysisOccurrencesParams.fromNotification(Notification notification)
{ |
| 1383 return new AnalysisOccurrencesParams.fromJson( | 1635 return new AnalysisOccurrencesParams.fromJson( |
| 1384 new ResponseDecoder(), "params", notification.params); | 1636 new ResponseDecoder(), "params", notification._params); |
| 1385 } | 1637 } |
| 1386 | 1638 |
| 1387 Map<String, dynamic> toJson() { | 1639 Map<String, dynamic> toJson() { |
| 1388 Map<String, dynamic> result = {}; | 1640 Map<String, dynamic> result = {}; |
| 1389 result["file"] = file; | 1641 result["file"] = file; |
| 1390 result["occurrences"] = occurrences.map((Occurrences value) => value.toJson(
)).toList(); | 1642 result["occurrences"] = occurrences.map((Occurrences value) => value.toJson(
)).toList(); |
| 1391 return result; | 1643 return result; |
| 1392 } | 1644 } |
| 1393 | 1645 |
| 1394 Notification toNotification() { | 1646 Notification toNotification() { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1417 } | 1669 } |
| 1418 | 1670 |
| 1419 /** | 1671 /** |
| 1420 * analysis.outline params | 1672 * analysis.outline params |
| 1421 * | 1673 * |
| 1422 * { | 1674 * { |
| 1423 * "file": FilePath | 1675 * "file": FilePath |
| 1424 * "outline": Outline | 1676 * "outline": Outline |
| 1425 * } | 1677 * } |
| 1426 */ | 1678 */ |
| 1427 class AnalysisOutlineParams implements HasToJson { | 1679 class AnalysisOutlineParams { |
| 1428 /** | 1680 /** |
| 1429 * The file with which the outline is associated. | 1681 * The file with which the outline is associated. |
| 1430 */ | 1682 */ |
| 1431 String file; | 1683 String file; |
| 1432 | 1684 |
| 1433 /** | 1685 /** |
| 1434 * The outline associated with the file. | 1686 * The outline associated with the file. |
| 1435 */ | 1687 */ |
| 1436 Outline outline; | 1688 Outline outline; |
| 1437 | 1689 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1455 throw jsonDecoder.missingKey(jsonPath, "outline"); | 1707 throw jsonDecoder.missingKey(jsonPath, "outline"); |
| 1456 } | 1708 } |
| 1457 return new AnalysisOutlineParams(file, outline); | 1709 return new AnalysisOutlineParams(file, outline); |
| 1458 } else { | 1710 } else { |
| 1459 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params"); | 1711 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params"); |
| 1460 } | 1712 } |
| 1461 } | 1713 } |
| 1462 | 1714 |
| 1463 factory AnalysisOutlineParams.fromNotification(Notification notification) { | 1715 factory AnalysisOutlineParams.fromNotification(Notification notification) { |
| 1464 return new AnalysisOutlineParams.fromJson( | 1716 return new AnalysisOutlineParams.fromJson( |
| 1465 new ResponseDecoder(), "params", notification.params); | 1717 new ResponseDecoder(), "params", notification._params); |
| 1466 } | 1718 } |
| 1467 | 1719 |
| 1468 Map<String, dynamic> toJson() { | 1720 Map<String, dynamic> toJson() { |
| 1469 Map<String, dynamic> result = {}; | 1721 Map<String, dynamic> result = {}; |
| 1470 result["file"] = file; | 1722 result["file"] = file; |
| 1471 result["outline"] = outline.toJson(); | 1723 result["outline"] = outline.toJson(); |
| 1472 return result; | 1724 return result; |
| 1473 } | 1725 } |
| 1474 | 1726 |
| 1475 Notification toNotification() { | 1727 Notification toNotification() { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1498 } | 1750 } |
| 1499 | 1751 |
| 1500 /** | 1752 /** |
| 1501 * analysis.overrides params | 1753 * analysis.overrides params |
| 1502 * | 1754 * |
| 1503 * { | 1755 * { |
| 1504 * "file": FilePath | 1756 * "file": FilePath |
| 1505 * "overrides": List<Override> | 1757 * "overrides": List<Override> |
| 1506 * } | 1758 * } |
| 1507 */ | 1759 */ |
| 1508 class AnalysisOverridesParams implements HasToJson { | 1760 class AnalysisOverridesParams { |
| 1509 /** | 1761 /** |
| 1510 * The file with which the overrides are associated. | 1762 * The file with which the overrides are associated. |
| 1511 */ | 1763 */ |
| 1512 String file; | 1764 String file; |
| 1513 | 1765 |
| 1514 /** | 1766 /** |
| 1515 * The overrides associated with the file. | 1767 * The overrides associated with the file. |
| 1516 */ | 1768 */ |
| 1517 List<Override> overrides; | 1769 List<Override> overrides; |
| 1518 | 1770 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1536 throw jsonDecoder.missingKey(jsonPath, "overrides"); | 1788 throw jsonDecoder.missingKey(jsonPath, "overrides"); |
| 1537 } | 1789 } |
| 1538 return new AnalysisOverridesParams(file, overrides); | 1790 return new AnalysisOverridesParams(file, overrides); |
| 1539 } else { | 1791 } else { |
| 1540 throw jsonDecoder.mismatch(jsonPath, "analysis.overrides params"); | 1792 throw jsonDecoder.mismatch(jsonPath, "analysis.overrides params"); |
| 1541 } | 1793 } |
| 1542 } | 1794 } |
| 1543 | 1795 |
| 1544 factory AnalysisOverridesParams.fromNotification(Notification notification) { | 1796 factory AnalysisOverridesParams.fromNotification(Notification notification) { |
| 1545 return new AnalysisOverridesParams.fromJson( | 1797 return new AnalysisOverridesParams.fromJson( |
| 1546 new ResponseDecoder(), "params", notification.params); | 1798 new ResponseDecoder(), "params", notification._params); |
| 1547 } | 1799 } |
| 1548 | 1800 |
| 1549 Map<String, dynamic> toJson() { | 1801 Map<String, dynamic> toJson() { |
| 1550 Map<String, dynamic> result = {}; | 1802 Map<String, dynamic> result = {}; |
| 1551 result["file"] = file; | 1803 result["file"] = file; |
| 1552 result["overrides"] = overrides.map((Override value) => value.toJson()).toLi
st(); | 1804 result["overrides"] = overrides.map((Override value) => value.toJson()).toLi
st(); |
| 1553 return result; | 1805 return result; |
| 1554 } | 1806 } |
| 1555 | 1807 |
| 1556 Notification toNotification() { | 1808 Notification toNotification() { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1579 } | 1831 } |
| 1580 | 1832 |
| 1581 /** | 1833 /** |
| 1582 * completion.getSuggestions params | 1834 * completion.getSuggestions params |
| 1583 * | 1835 * |
| 1584 * { | 1836 * { |
| 1585 * "file": FilePath | 1837 * "file": FilePath |
| 1586 * "offset": int | 1838 * "offset": int |
| 1587 * } | 1839 * } |
| 1588 */ | 1840 */ |
| 1589 class CompletionGetSuggestionsParams implements HasToJson { | 1841 class CompletionGetSuggestionsParams { |
| 1590 /** | 1842 /** |
| 1591 * The file containing the point at which suggestions are to be made. | 1843 * The file containing the point at which suggestions are to be made. |
| 1592 */ | 1844 */ |
| 1593 String file; | 1845 String file; |
| 1594 | 1846 |
| 1595 /** | 1847 /** |
| 1596 * The offset within the file at which suggestions are to be made. | 1848 * The offset within the file at which suggestions are to be made. |
| 1597 */ | 1849 */ |
| 1598 int offset; | 1850 int offset; |
| 1599 | 1851 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1617 throw jsonDecoder.missingKey(jsonPath, "offset"); | 1869 throw jsonDecoder.missingKey(jsonPath, "offset"); |
| 1618 } | 1870 } |
| 1619 return new CompletionGetSuggestionsParams(file, offset); | 1871 return new CompletionGetSuggestionsParams(file, offset); |
| 1620 } else { | 1872 } else { |
| 1621 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions params"); | 1873 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions params"); |
| 1622 } | 1874 } |
| 1623 } | 1875 } |
| 1624 | 1876 |
| 1625 factory CompletionGetSuggestionsParams.fromRequest(Request request) { | 1877 factory CompletionGetSuggestionsParams.fromRequest(Request request) { |
| 1626 return new CompletionGetSuggestionsParams.fromJson( | 1878 return new CompletionGetSuggestionsParams.fromJson( |
| 1627 new RequestDecoder(request), "params", request.params); | 1879 new RequestDecoder(request), "params", request._params); |
| 1628 } | 1880 } |
| 1629 | 1881 |
| 1630 Map<String, dynamic> toJson() { | 1882 Map<String, dynamic> toJson() { |
| 1631 Map<String, dynamic> result = {}; | 1883 Map<String, dynamic> result = {}; |
| 1632 result["file"] = file; | 1884 result["file"] = file; |
| 1633 result["offset"] = offset; | 1885 result["offset"] = offset; |
| 1634 return result; | 1886 return result; |
| 1635 } | 1887 } |
| 1636 | 1888 |
| 1637 Request toRequest(String id) { | 1889 Request toRequest(String id) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1659 } | 1911 } |
| 1660 } | 1912 } |
| 1661 | 1913 |
| 1662 /** | 1914 /** |
| 1663 * completion.getSuggestions result | 1915 * completion.getSuggestions result |
| 1664 * | 1916 * |
| 1665 * { | 1917 * { |
| 1666 * "id": CompletionId | 1918 * "id": CompletionId |
| 1667 * } | 1919 * } |
| 1668 */ | 1920 */ |
| 1669 class CompletionGetSuggestionsResult implements HasToJson { | 1921 class CompletionGetSuggestionsResult { |
| 1670 /** | 1922 /** |
| 1671 * The identifier used to associate results with this completion request. | 1923 * The identifier used to associate results with this completion request. |
| 1672 */ | 1924 */ |
| 1673 String id; | 1925 String id; |
| 1674 | 1926 |
| 1675 CompletionGetSuggestionsResult(this.id); | 1927 CompletionGetSuggestionsResult(this.id); |
| 1676 | 1928 |
| 1677 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { | 1929 factory CompletionGetSuggestionsResult.fromJson(JsonDecoder jsonDecoder, Strin
g jsonPath, Object json) { |
| 1678 if (json == null) { | 1930 if (json == null) { |
| 1679 json = {}; | 1931 json = {}; |
| 1680 } | 1932 } |
| 1681 if (json is Map) { | 1933 if (json is Map) { |
| 1682 String id; | 1934 String id; |
| 1683 if (json.containsKey("id")) { | 1935 if (json.containsKey("id")) { |
| 1684 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 1936 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
| 1685 } else { | 1937 } else { |
| 1686 throw jsonDecoder.missingKey(jsonPath, "id"); | 1938 throw jsonDecoder.missingKey(jsonPath, "id"); |
| 1687 } | 1939 } |
| 1688 return new CompletionGetSuggestionsResult(id); | 1940 return new CompletionGetSuggestionsResult(id); |
| 1689 } else { | 1941 } else { |
| 1690 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions result"); | 1942 throw jsonDecoder.mismatch(jsonPath, "completion.getSuggestions result"); |
| 1691 } | 1943 } |
| 1692 } | 1944 } |
| 1693 | 1945 |
| 1694 factory CompletionGetSuggestionsResult.fromResponse(Response response) { | 1946 factory CompletionGetSuggestionsResult.fromResponse(Response response) { |
| 1695 return new CompletionGetSuggestionsResult.fromJson( | 1947 return new CompletionGetSuggestionsResult.fromJson( |
| 1696 new ResponseDecoder(), "result", response.result); | 1948 new ResponseDecoder(), "result", response._result); |
| 1697 } | 1949 } |
| 1698 | 1950 |
| 1699 Map<String, dynamic> toJson() { | 1951 Map<String, dynamic> toJson() { |
| 1700 Map<String, dynamic> result = {}; | 1952 Map<String, dynamic> result = {}; |
| 1701 result["id"] = id; | 1953 result["id"] = id; |
| 1702 return result; | 1954 return result; |
| 1703 } | 1955 } |
| 1704 | 1956 |
| 1705 Response toResponse(String id) { | 1957 Response toResponse(String id) { |
| 1706 return new Response(id, result: toJson()); | 1958 return new Response(id, result: toJson()); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1729 * completion.results params | 1981 * completion.results params |
| 1730 * | 1982 * |
| 1731 * { | 1983 * { |
| 1732 * "id": CompletionId | 1984 * "id": CompletionId |
| 1733 * "replacementOffset": int | 1985 * "replacementOffset": int |
| 1734 * "replacementLength": int | 1986 * "replacementLength": int |
| 1735 * "results": List<CompletionSuggestion> | 1987 * "results": List<CompletionSuggestion> |
| 1736 * "last": bool | 1988 * "last": bool |
| 1737 * } | 1989 * } |
| 1738 */ | 1990 */ |
| 1739 class CompletionResultsParams implements HasToJson { | 1991 class CompletionResultsParams { |
| 1740 /** | 1992 /** |
| 1741 * The id associated with the completion. | 1993 * The id associated with the completion. |
| 1742 */ | 1994 */ |
| 1743 String id; | 1995 String id; |
| 1744 | 1996 |
| 1745 /** | 1997 /** |
| 1746 * The offset of the start of the text to be replaced. This will be different | 1998 * The offset of the start of the text to be replaced. This will be different |
| 1747 * than the offset used to request the completion suggestions if there was a | 1999 * than the offset used to request the completion suggestions if there was a |
| 1748 * portion of an identifier before the original offset. In particular, the | 2000 * portion of an identifier before the original offset. In particular, the |
| 1749 * replacementOffset will be the offset of the beginning of said identifier. | 2001 * replacementOffset will be the offset of the beginning of said identifier. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1810 throw jsonDecoder.missingKey(jsonPath, "last"); | 2062 throw jsonDecoder.missingKey(jsonPath, "last"); |
| 1811 } | 2063 } |
| 1812 return new CompletionResultsParams(id, replacementOffset, replacementLengt
h, results, last); | 2064 return new CompletionResultsParams(id, replacementOffset, replacementLengt
h, results, last); |
| 1813 } else { | 2065 } else { |
| 1814 throw jsonDecoder.mismatch(jsonPath, "completion.results params"); | 2066 throw jsonDecoder.mismatch(jsonPath, "completion.results params"); |
| 1815 } | 2067 } |
| 1816 } | 2068 } |
| 1817 | 2069 |
| 1818 factory CompletionResultsParams.fromNotification(Notification notification) { | 2070 factory CompletionResultsParams.fromNotification(Notification notification) { |
| 1819 return new CompletionResultsParams.fromJson( | 2071 return new CompletionResultsParams.fromJson( |
| 1820 new ResponseDecoder(), "params", notification.params); | 2072 new ResponseDecoder(), "params", notification._params); |
| 1821 } | 2073 } |
| 1822 | 2074 |
| 1823 Map<String, dynamic> toJson() { | 2075 Map<String, dynamic> toJson() { |
| 1824 Map<String, dynamic> result = {}; | 2076 Map<String, dynamic> result = {}; |
| 1825 result["id"] = id; | 2077 result["id"] = id; |
| 1826 result["replacementOffset"] = replacementOffset; | 2078 result["replacementOffset"] = replacementOffset; |
| 1827 result["replacementLength"] = replacementLength; | 2079 result["replacementLength"] = replacementLength; |
| 1828 result["results"] = results.map((CompletionSuggestion value) => value.toJson
()).toList(); | 2080 result["results"] = results.map((CompletionSuggestion value) => value.toJson
()).toList(); |
| 1829 result["last"] = last; | 2081 result["last"] = last; |
| 1830 return result; | 2082 return result; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1863 | 2115 |
| 1864 /** | 2116 /** |
| 1865 * search.findElementReferences params | 2117 * search.findElementReferences params |
| 1866 * | 2118 * |
| 1867 * { | 2119 * { |
| 1868 * "file": FilePath | 2120 * "file": FilePath |
| 1869 * "offset": int | 2121 * "offset": int |
| 1870 * "includePotential": bool | 2122 * "includePotential": bool |
| 1871 * } | 2123 * } |
| 1872 */ | 2124 */ |
| 1873 class SearchFindElementReferencesParams implements HasToJson { | 2125 class SearchFindElementReferencesParams { |
| 1874 /** | 2126 /** |
| 1875 * The file containing the declaration of or reference to the element used to | 2127 * The file containing the declaration of or reference to the element used to |
| 1876 * define the search. | 2128 * define the search. |
| 1877 */ | 2129 */ |
| 1878 String file; | 2130 String file; |
| 1879 | 2131 |
| 1880 /** | 2132 /** |
| 1881 * The offset within the file of the declaration of or reference to the | 2133 * The offset within the file of the declaration of or reference to the |
| 1882 * element. | 2134 * element. |
| 1883 */ | 2135 */ |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1914 throw jsonDecoder.missingKey(jsonPath, "includePotential"); | 2166 throw jsonDecoder.missingKey(jsonPath, "includePotential"); |
| 1915 } | 2167 } |
| 1916 return new SearchFindElementReferencesParams(file, offset, includePotentia
l); | 2168 return new SearchFindElementReferencesParams(file, offset, includePotentia
l); |
| 1917 } else { | 2169 } else { |
| 1918 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences params"
); | 2170 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences params"
); |
| 1919 } | 2171 } |
| 1920 } | 2172 } |
| 1921 | 2173 |
| 1922 factory SearchFindElementReferencesParams.fromRequest(Request request) { | 2174 factory SearchFindElementReferencesParams.fromRequest(Request request) { |
| 1923 return new SearchFindElementReferencesParams.fromJson( | 2175 return new SearchFindElementReferencesParams.fromJson( |
| 1924 new RequestDecoder(request), "params", request.params); | 2176 new RequestDecoder(request), "params", request._params); |
| 1925 } | 2177 } |
| 1926 | 2178 |
| 1927 Map<String, dynamic> toJson() { | 2179 Map<String, dynamic> toJson() { |
| 1928 Map<String, dynamic> result = {}; | 2180 Map<String, dynamic> result = {}; |
| 1929 result["file"] = file; | 2181 result["file"] = file; |
| 1930 result["offset"] = offset; | 2182 result["offset"] = offset; |
| 1931 result["includePotential"] = includePotential; | 2183 result["includePotential"] = includePotential; |
| 1932 return result; | 2184 return result; |
| 1933 } | 2185 } |
| 1934 | 2186 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1960 } | 2212 } |
| 1961 | 2213 |
| 1962 /** | 2214 /** |
| 1963 * search.findElementReferences result | 2215 * search.findElementReferences result |
| 1964 * | 2216 * |
| 1965 * { | 2217 * { |
| 1966 * "id": SearchId | 2218 * "id": SearchId |
| 1967 * "element": optional Element | 2219 * "element": optional Element |
| 1968 * } | 2220 * } |
| 1969 */ | 2221 */ |
| 1970 class SearchFindElementReferencesResult implements HasToJson { | 2222 class SearchFindElementReferencesResult { |
| 1971 /** | 2223 /** |
| 1972 * The identifier used to associate results with this search request. | 2224 * The identifier used to associate results with this search request. |
| 1973 */ | 2225 */ |
| 1974 String id; | 2226 String id; |
| 1975 | 2227 |
| 1976 /** | 2228 /** |
| 1977 * The element referenced or defined at the given offset and whose references | 2229 * The element referenced or defined at the given offset and whose references |
| 1978 * will be returned in the search results. | 2230 * will be returned in the search results. |
| 1979 * | 2231 * |
| 1980 * If no element was found at the given location, this field will be absent. | 2232 * If no element was found at the given location, this field will be absent. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1999 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 2251 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); |
| 2000 } | 2252 } |
| 2001 return new SearchFindElementReferencesResult(id, element: element); | 2253 return new SearchFindElementReferencesResult(id, element: element); |
| 2002 } else { | 2254 } else { |
| 2003 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences result"
); | 2255 throw jsonDecoder.mismatch(jsonPath, "search.findElementReferences result"
); |
| 2004 } | 2256 } |
| 2005 } | 2257 } |
| 2006 | 2258 |
| 2007 factory SearchFindElementReferencesResult.fromResponse(Response response) { | 2259 factory SearchFindElementReferencesResult.fromResponse(Response response) { |
| 2008 return new SearchFindElementReferencesResult.fromJson( | 2260 return new SearchFindElementReferencesResult.fromJson( |
| 2009 new ResponseDecoder(), "result", response.result); | 2261 new ResponseDecoder(), "result", response._result); |
| 2010 } | 2262 } |
| 2011 | 2263 |
| 2012 Map<String, dynamic> toJson() { | 2264 Map<String, dynamic> toJson() { |
| 2013 Map<String, dynamic> result = {}; | 2265 Map<String, dynamic> result = {}; |
| 2014 result["id"] = id; | 2266 result["id"] = id; |
| 2015 if (element != null) { | 2267 if (element != null) { |
| 2016 result["element"] = element.toJson(); | 2268 result["element"] = element.toJson(); |
| 2017 } | 2269 } |
| 2018 return result; | 2270 return result; |
| 2019 } | 2271 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2043 } | 2295 } |
| 2044 } | 2296 } |
| 2045 | 2297 |
| 2046 /** | 2298 /** |
| 2047 * search.findMemberDeclarations params | 2299 * search.findMemberDeclarations params |
| 2048 * | 2300 * |
| 2049 * { | 2301 * { |
| 2050 * "name": String | 2302 * "name": String |
| 2051 * } | 2303 * } |
| 2052 */ | 2304 */ |
| 2053 class SearchFindMemberDeclarationsParams implements HasToJson { | 2305 class SearchFindMemberDeclarationsParams { |
| 2054 /** | 2306 /** |
| 2055 * The name of the declarations to be found. | 2307 * The name of the declarations to be found. |
| 2056 */ | 2308 */ |
| 2057 String name; | 2309 String name; |
| 2058 | 2310 |
| 2059 SearchFindMemberDeclarationsParams(this.name); | 2311 SearchFindMemberDeclarationsParams(this.name); |
| 2060 | 2312 |
| 2061 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 2313 factory SearchFindMemberDeclarationsParams.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 2062 if (json == null) { | 2314 if (json == null) { |
| 2063 json = {}; | 2315 json = {}; |
| 2064 } | 2316 } |
| 2065 if (json is Map) { | 2317 if (json is Map) { |
| 2066 String name; | 2318 String name; |
| 2067 if (json.containsKey("name")) { | 2319 if (json.containsKey("name")) { |
| 2068 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 2320 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); |
| 2069 } else { | 2321 } else { |
| 2070 throw jsonDecoder.missingKey(jsonPath, "name"); | 2322 throw jsonDecoder.missingKey(jsonPath, "name"); |
| 2071 } | 2323 } |
| 2072 return new SearchFindMemberDeclarationsParams(name); | 2324 return new SearchFindMemberDeclarationsParams(name); |
| 2073 } else { | 2325 } else { |
| 2074 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations params
"); | 2326 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations params
"); |
| 2075 } | 2327 } |
| 2076 } | 2328 } |
| 2077 | 2329 |
| 2078 factory SearchFindMemberDeclarationsParams.fromRequest(Request request) { | 2330 factory SearchFindMemberDeclarationsParams.fromRequest(Request request) { |
| 2079 return new SearchFindMemberDeclarationsParams.fromJson( | 2331 return new SearchFindMemberDeclarationsParams.fromJson( |
| 2080 new RequestDecoder(request), "params", request.params); | 2332 new RequestDecoder(request), "params", request._params); |
| 2081 } | 2333 } |
| 2082 | 2334 |
| 2083 Map<String, dynamic> toJson() { | 2335 Map<String, dynamic> toJson() { |
| 2084 Map<String, dynamic> result = {}; | 2336 Map<String, dynamic> result = {}; |
| 2085 result["name"] = name; | 2337 result["name"] = name; |
| 2086 return result; | 2338 return result; |
| 2087 } | 2339 } |
| 2088 | 2340 |
| 2089 Request toRequest(String id) { | 2341 Request toRequest(String id) { |
| 2090 return new Request(id, "search.findMemberDeclarations", toJson()); | 2342 return new Request(id, "search.findMemberDeclarations", toJson()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2109 } | 2361 } |
| 2110 } | 2362 } |
| 2111 | 2363 |
| 2112 /** | 2364 /** |
| 2113 * search.findMemberDeclarations result | 2365 * search.findMemberDeclarations result |
| 2114 * | 2366 * |
| 2115 * { | 2367 * { |
| 2116 * "id": SearchId | 2368 * "id": SearchId |
| 2117 * } | 2369 * } |
| 2118 */ | 2370 */ |
| 2119 class SearchFindMemberDeclarationsResult implements HasToJson { | 2371 class SearchFindMemberDeclarationsResult { |
| 2120 /** | 2372 /** |
| 2121 * The identifier used to associate results with this search request. | 2373 * The identifier used to associate results with this search request. |
| 2122 */ | 2374 */ |
| 2123 String id; | 2375 String id; |
| 2124 | 2376 |
| 2125 SearchFindMemberDeclarationsResult(this.id); | 2377 SearchFindMemberDeclarationsResult(this.id); |
| 2126 | 2378 |
| 2127 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 2379 factory SearchFindMemberDeclarationsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 2128 if (json == null) { | 2380 if (json == null) { |
| 2129 json = {}; | 2381 json = {}; |
| 2130 } | 2382 } |
| 2131 if (json is Map) { | 2383 if (json is Map) { |
| 2132 String id; | 2384 String id; |
| 2133 if (json.containsKey("id")) { | 2385 if (json.containsKey("id")) { |
| 2134 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 2386 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
| 2135 } else { | 2387 } else { |
| 2136 throw jsonDecoder.missingKey(jsonPath, "id"); | 2388 throw jsonDecoder.missingKey(jsonPath, "id"); |
| 2137 } | 2389 } |
| 2138 return new SearchFindMemberDeclarationsResult(id); | 2390 return new SearchFindMemberDeclarationsResult(id); |
| 2139 } else { | 2391 } else { |
| 2140 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations result
"); | 2392 throw jsonDecoder.mismatch(jsonPath, "search.findMemberDeclarations result
"); |
| 2141 } | 2393 } |
| 2142 } | 2394 } |
| 2143 | 2395 |
| 2144 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) { | 2396 factory SearchFindMemberDeclarationsResult.fromResponse(Response response) { |
| 2145 return new SearchFindMemberDeclarationsResult.fromJson( | 2397 return new SearchFindMemberDeclarationsResult.fromJson( |
| 2146 new ResponseDecoder(), "result", response.result); | 2398 new ResponseDecoder(), "result", response._result); |
| 2147 } | 2399 } |
| 2148 | 2400 |
| 2149 Map<String, dynamic> toJson() { | 2401 Map<String, dynamic> toJson() { |
| 2150 Map<String, dynamic> result = {}; | 2402 Map<String, dynamic> result = {}; |
| 2151 result["id"] = id; | 2403 result["id"] = id; |
| 2152 return result; | 2404 return result; |
| 2153 } | 2405 } |
| 2154 | 2406 |
| 2155 Response toResponse(String id) { | 2407 Response toResponse(String id) { |
| 2156 return new Response(id, result: toJson()); | 2408 return new Response(id, result: toJson()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2175 } | 2427 } |
| 2176 } | 2428 } |
| 2177 | 2429 |
| 2178 /** | 2430 /** |
| 2179 * search.findMemberReferences params | 2431 * search.findMemberReferences params |
| 2180 * | 2432 * |
| 2181 * { | 2433 * { |
| 2182 * "name": String | 2434 * "name": String |
| 2183 * } | 2435 * } |
| 2184 */ | 2436 */ |
| 2185 class SearchFindMemberReferencesParams implements HasToJson { | 2437 class SearchFindMemberReferencesParams { |
| 2186 /** | 2438 /** |
| 2187 * The name of the references to be found. | 2439 * The name of the references to be found. |
| 2188 */ | 2440 */ |
| 2189 String name; | 2441 String name; |
| 2190 | 2442 |
| 2191 SearchFindMemberReferencesParams(this.name); | 2443 SearchFindMemberReferencesParams(this.name); |
| 2192 | 2444 |
| 2193 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 2445 factory SearchFindMemberReferencesParams.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { |
| 2194 if (json == null) { | 2446 if (json == null) { |
| 2195 json = {}; | 2447 json = {}; |
| 2196 } | 2448 } |
| 2197 if (json is Map) { | 2449 if (json is Map) { |
| 2198 String name; | 2450 String name; |
| 2199 if (json.containsKey("name")) { | 2451 if (json.containsKey("name")) { |
| 2200 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); | 2452 name = jsonDecoder._decodeString(jsonPath + ".name", json["name"]); |
| 2201 } else { | 2453 } else { |
| 2202 throw jsonDecoder.missingKey(jsonPath, "name"); | 2454 throw jsonDecoder.missingKey(jsonPath, "name"); |
| 2203 } | 2455 } |
| 2204 return new SearchFindMemberReferencesParams(name); | 2456 return new SearchFindMemberReferencesParams(name); |
| 2205 } else { | 2457 } else { |
| 2206 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences params")
; | 2458 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences params")
; |
| 2207 } | 2459 } |
| 2208 } | 2460 } |
| 2209 | 2461 |
| 2210 factory SearchFindMemberReferencesParams.fromRequest(Request request) { | 2462 factory SearchFindMemberReferencesParams.fromRequest(Request request) { |
| 2211 return new SearchFindMemberReferencesParams.fromJson( | 2463 return new SearchFindMemberReferencesParams.fromJson( |
| 2212 new RequestDecoder(request), "params", request.params); | 2464 new RequestDecoder(request), "params", request._params); |
| 2213 } | 2465 } |
| 2214 | 2466 |
| 2215 Map<String, dynamic> toJson() { | 2467 Map<String, dynamic> toJson() { |
| 2216 Map<String, dynamic> result = {}; | 2468 Map<String, dynamic> result = {}; |
| 2217 result["name"] = name; | 2469 result["name"] = name; |
| 2218 return result; | 2470 return result; |
| 2219 } | 2471 } |
| 2220 | 2472 |
| 2221 Request toRequest(String id) { | 2473 Request toRequest(String id) { |
| 2222 return new Request(id, "search.findMemberReferences", toJson()); | 2474 return new Request(id, "search.findMemberReferences", toJson()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2241 } | 2493 } |
| 2242 } | 2494 } |
| 2243 | 2495 |
| 2244 /** | 2496 /** |
| 2245 * search.findMemberReferences result | 2497 * search.findMemberReferences result |
| 2246 * | 2498 * |
| 2247 * { | 2499 * { |
| 2248 * "id": SearchId | 2500 * "id": SearchId |
| 2249 * } | 2501 * } |
| 2250 */ | 2502 */ |
| 2251 class SearchFindMemberReferencesResult implements HasToJson { | 2503 class SearchFindMemberReferencesResult { |
| 2252 /** | 2504 /** |
| 2253 * The identifier used to associate results with this search request. | 2505 * The identifier used to associate results with this search request. |
| 2254 */ | 2506 */ |
| 2255 String id; | 2507 String id; |
| 2256 | 2508 |
| 2257 SearchFindMemberReferencesResult(this.id); | 2509 SearchFindMemberReferencesResult(this.id); |
| 2258 | 2510 |
| 2259 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { | 2511 factory SearchFindMemberReferencesResult.fromJson(JsonDecoder jsonDecoder, Str
ing jsonPath, Object json) { |
| 2260 if (json == null) { | 2512 if (json == null) { |
| 2261 json = {}; | 2513 json = {}; |
| 2262 } | 2514 } |
| 2263 if (json is Map) { | 2515 if (json is Map) { |
| 2264 String id; | 2516 String id; |
| 2265 if (json.containsKey("id")) { | 2517 if (json.containsKey("id")) { |
| 2266 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 2518 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
| 2267 } else { | 2519 } else { |
| 2268 throw jsonDecoder.missingKey(jsonPath, "id"); | 2520 throw jsonDecoder.missingKey(jsonPath, "id"); |
| 2269 } | 2521 } |
| 2270 return new SearchFindMemberReferencesResult(id); | 2522 return new SearchFindMemberReferencesResult(id); |
| 2271 } else { | 2523 } else { |
| 2272 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences result")
; | 2524 throw jsonDecoder.mismatch(jsonPath, "search.findMemberReferences result")
; |
| 2273 } | 2525 } |
| 2274 } | 2526 } |
| 2275 | 2527 |
| 2276 factory SearchFindMemberReferencesResult.fromResponse(Response response) { | 2528 factory SearchFindMemberReferencesResult.fromResponse(Response response) { |
| 2277 return new SearchFindMemberReferencesResult.fromJson( | 2529 return new SearchFindMemberReferencesResult.fromJson( |
| 2278 new ResponseDecoder(), "result", response.result); | 2530 new ResponseDecoder(), "result", response._result); |
| 2279 } | 2531 } |
| 2280 | 2532 |
| 2281 Map<String, dynamic> toJson() { | 2533 Map<String, dynamic> toJson() { |
| 2282 Map<String, dynamic> result = {}; | 2534 Map<String, dynamic> result = {}; |
| 2283 result["id"] = id; | 2535 result["id"] = id; |
| 2284 return result; | 2536 return result; |
| 2285 } | 2537 } |
| 2286 | 2538 |
| 2287 Response toResponse(String id) { | 2539 Response toResponse(String id) { |
| 2288 return new Response(id, result: toJson()); | 2540 return new Response(id, result: toJson()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2307 } | 2559 } |
| 2308 } | 2560 } |
| 2309 | 2561 |
| 2310 /** | 2562 /** |
| 2311 * search.findTopLevelDeclarations params | 2563 * search.findTopLevelDeclarations params |
| 2312 * | 2564 * |
| 2313 * { | 2565 * { |
| 2314 * "pattern": String | 2566 * "pattern": String |
| 2315 * } | 2567 * } |
| 2316 */ | 2568 */ |
| 2317 class SearchFindTopLevelDeclarationsParams implements HasToJson { | 2569 class SearchFindTopLevelDeclarationsParams { |
| 2318 /** | 2570 /** |
| 2319 * The regular expression used to match the names of the declarations to be | 2571 * The regular expression used to match the names of the declarations to be |
| 2320 * found. | 2572 * found. |
| 2321 */ | 2573 */ |
| 2322 String pattern; | 2574 String pattern; |
| 2323 | 2575 |
| 2324 SearchFindTopLevelDeclarationsParams(this.pattern); | 2576 SearchFindTopLevelDeclarationsParams(this.pattern); |
| 2325 | 2577 |
| 2326 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 2578 factory SearchFindTopLevelDeclarationsParams.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { |
| 2327 if (json == null) { | 2579 if (json == null) { |
| 2328 json = {}; | 2580 json = {}; |
| 2329 } | 2581 } |
| 2330 if (json is Map) { | 2582 if (json is Map) { |
| 2331 String pattern; | 2583 String pattern; |
| 2332 if (json.containsKey("pattern")) { | 2584 if (json.containsKey("pattern")) { |
| 2333 pattern = jsonDecoder._decodeString(jsonPath + ".pattern", json["pattern
"]); | 2585 pattern = jsonDecoder._decodeString(jsonPath + ".pattern", json["pattern
"]); |
| 2334 } else { | 2586 } else { |
| 2335 throw jsonDecoder.missingKey(jsonPath, "pattern"); | 2587 throw jsonDecoder.missingKey(jsonPath, "pattern"); |
| 2336 } | 2588 } |
| 2337 return new SearchFindTopLevelDeclarationsParams(pattern); | 2589 return new SearchFindTopLevelDeclarationsParams(pattern); |
| 2338 } else { | 2590 } else { |
| 2339 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations para
ms"); | 2591 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations para
ms"); |
| 2340 } | 2592 } |
| 2341 } | 2593 } |
| 2342 | 2594 |
| 2343 factory SearchFindTopLevelDeclarationsParams.fromRequest(Request request) { | 2595 factory SearchFindTopLevelDeclarationsParams.fromRequest(Request request) { |
| 2344 return new SearchFindTopLevelDeclarationsParams.fromJson( | 2596 return new SearchFindTopLevelDeclarationsParams.fromJson( |
| 2345 new RequestDecoder(request), "params", request.params); | 2597 new RequestDecoder(request), "params", request._params); |
| 2346 } | 2598 } |
| 2347 | 2599 |
| 2348 Map<String, dynamic> toJson() { | 2600 Map<String, dynamic> toJson() { |
| 2349 Map<String, dynamic> result = {}; | 2601 Map<String, dynamic> result = {}; |
| 2350 result["pattern"] = pattern; | 2602 result["pattern"] = pattern; |
| 2351 return result; | 2603 return result; |
| 2352 } | 2604 } |
| 2353 | 2605 |
| 2354 Request toRequest(String id) { | 2606 Request toRequest(String id) { |
| 2355 return new Request(id, "search.findTopLevelDeclarations", toJson()); | 2607 return new Request(id, "search.findTopLevelDeclarations", toJson()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2374 } | 2626 } |
| 2375 } | 2627 } |
| 2376 | 2628 |
| 2377 /** | 2629 /** |
| 2378 * search.findTopLevelDeclarations result | 2630 * search.findTopLevelDeclarations result |
| 2379 * | 2631 * |
| 2380 * { | 2632 * { |
| 2381 * "id": SearchId | 2633 * "id": SearchId |
| 2382 * } | 2634 * } |
| 2383 */ | 2635 */ |
| 2384 class SearchFindTopLevelDeclarationsResult implements HasToJson { | 2636 class SearchFindTopLevelDeclarationsResult { |
| 2385 /** | 2637 /** |
| 2386 * The identifier used to associate results with this search request. | 2638 * The identifier used to associate results with this search request. |
| 2387 */ | 2639 */ |
| 2388 String id; | 2640 String id; |
| 2389 | 2641 |
| 2390 SearchFindTopLevelDeclarationsResult(this.id); | 2642 SearchFindTopLevelDeclarationsResult(this.id); |
| 2391 | 2643 |
| 2392 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { | 2644 factory SearchFindTopLevelDeclarationsResult.fromJson(JsonDecoder jsonDecoder,
String jsonPath, Object json) { |
| 2393 if (json == null) { | 2645 if (json == null) { |
| 2394 json = {}; | 2646 json = {}; |
| 2395 } | 2647 } |
| 2396 if (json is Map) { | 2648 if (json is Map) { |
| 2397 String id; | 2649 String id; |
| 2398 if (json.containsKey("id")) { | 2650 if (json.containsKey("id")) { |
| 2399 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 2651 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
| 2400 } else { | 2652 } else { |
| 2401 throw jsonDecoder.missingKey(jsonPath, "id"); | 2653 throw jsonDecoder.missingKey(jsonPath, "id"); |
| 2402 } | 2654 } |
| 2403 return new SearchFindTopLevelDeclarationsResult(id); | 2655 return new SearchFindTopLevelDeclarationsResult(id); |
| 2404 } else { | 2656 } else { |
| 2405 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations resu
lt"); | 2657 throw jsonDecoder.mismatch(jsonPath, "search.findTopLevelDeclarations resu
lt"); |
| 2406 } | 2658 } |
| 2407 } | 2659 } |
| 2408 | 2660 |
| 2409 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) { | 2661 factory SearchFindTopLevelDeclarationsResult.fromResponse(Response response) { |
| 2410 return new SearchFindTopLevelDeclarationsResult.fromJson( | 2662 return new SearchFindTopLevelDeclarationsResult.fromJson( |
| 2411 new ResponseDecoder(), "result", response.result); | 2663 new ResponseDecoder(), "result", response._result); |
| 2412 } | 2664 } |
| 2413 | 2665 |
| 2414 Map<String, dynamic> toJson() { | 2666 Map<String, dynamic> toJson() { |
| 2415 Map<String, dynamic> result = {}; | 2667 Map<String, dynamic> result = {}; |
| 2416 result["id"] = id; | 2668 result["id"] = id; |
| 2417 return result; | 2669 return result; |
| 2418 } | 2670 } |
| 2419 | 2671 |
| 2420 Response toResponse(String id) { | 2672 Response toResponse(String id) { |
| 2421 return new Response(id, result: toJson()); | 2673 return new Response(id, result: toJson()); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 2441 } | 2693 } |
| 2442 | 2694 |
| 2443 /** | 2695 /** |
| 2444 * search.getTypeHierarchy params | 2696 * search.getTypeHierarchy params |
| 2445 * | 2697 * |
| 2446 * { | 2698 * { |
| 2447 * "file": FilePath | 2699 * "file": FilePath |
| 2448 * "offset": int | 2700 * "offset": int |
| 2449 * } | 2701 * } |
| 2450 */ | 2702 */ |
| 2451 class SearchGetTypeHierarchyParams implements HasToJson { | 2703 class SearchGetTypeHierarchyParams { |
| 2452 /** | 2704 /** |
| 2453 * The file containing the declaration or reference to the type for which a | 2705 * The file containing the declaration or reference to the type for which a |
| 2454 * hierarchy is being requested. | 2706 * hierarchy is being requested. |
| 2455 */ | 2707 */ |
| 2456 String file; | 2708 String file; |
| 2457 | 2709 |
| 2458 /** | 2710 /** |
| 2459 * The offset of the name of the type within the file. | 2711 * The offset of the name of the type within the file. |
| 2460 */ | 2712 */ |
| 2461 int offset; | 2713 int offset; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2480 throw jsonDecoder.missingKey(jsonPath, "offset"); | 2732 throw jsonDecoder.missingKey(jsonPath, "offset"); |
| 2481 } | 2733 } |
| 2482 return new SearchGetTypeHierarchyParams(file, offset); | 2734 return new SearchGetTypeHierarchyParams(file, offset); |
| 2483 } else { | 2735 } else { |
| 2484 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy params"); | 2736 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy params"); |
| 2485 } | 2737 } |
| 2486 } | 2738 } |
| 2487 | 2739 |
| 2488 factory SearchGetTypeHierarchyParams.fromRequest(Request request) { | 2740 factory SearchGetTypeHierarchyParams.fromRequest(Request request) { |
| 2489 return new SearchGetTypeHierarchyParams.fromJson( | 2741 return new SearchGetTypeHierarchyParams.fromJson( |
| 2490 new RequestDecoder(request), "params", request.params); | 2742 new RequestDecoder(request), "params", request._params); |
| 2491 } | 2743 } |
| 2492 | 2744 |
| 2493 Map<String, dynamic> toJson() { | 2745 Map<String, dynamic> toJson() { |
| 2494 Map<String, dynamic> result = {}; | 2746 Map<String, dynamic> result = {}; |
| 2495 result["file"] = file; | 2747 result["file"] = file; |
| 2496 result["offset"] = offset; | 2748 result["offset"] = offset; |
| 2497 return result; | 2749 return result; |
| 2498 } | 2750 } |
| 2499 | 2751 |
| 2500 Request toRequest(String id) { | 2752 Request toRequest(String id) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2522 } | 2774 } |
| 2523 } | 2775 } |
| 2524 | 2776 |
| 2525 /** | 2777 /** |
| 2526 * search.getTypeHierarchy result | 2778 * search.getTypeHierarchy result |
| 2527 * | 2779 * |
| 2528 * { | 2780 * { |
| 2529 * "hierarchyItems": optional List<TypeHierarchyItem> | 2781 * "hierarchyItems": optional List<TypeHierarchyItem> |
| 2530 * } | 2782 * } |
| 2531 */ | 2783 */ |
| 2532 class SearchGetTypeHierarchyResult implements HasToJson { | 2784 class SearchGetTypeHierarchyResult { |
| 2533 /** | 2785 /** |
| 2534 * A list of the types in the requested hierarchy. The first element of the | 2786 * A list of the types in the requested hierarchy. The first element of the |
| 2535 * list is the item representing the type for which the hierarchy was | 2787 * list is the item representing the type for which the hierarchy was |
| 2536 * requested. The index of other elements of the list is unspecified, but | 2788 * requested. The index of other elements of the list is unspecified, but |
| 2537 * correspond to the integers used to reference supertype and subtype items | 2789 * correspond to the integers used to reference supertype and subtype items |
| 2538 * within the items. | 2790 * within the items. |
| 2539 * | 2791 * |
| 2540 * This field will be absent if the code at the given file and offset does | 2792 * This field will be absent if the code at the given file and offset does |
| 2541 * not represent a type, or if the file has not been sufficiently analyzed to | 2793 * not represent a type, or if the file has not been sufficiently analyzed to |
| 2542 * allow a type hierarchy to be produced. | 2794 * allow a type hierarchy to be produced. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2561 hierarchyItems = <TypeHierarchyItem>[]; | 2813 hierarchyItems = <TypeHierarchyItem>[]; |
| 2562 } | 2814 } |
| 2563 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems); | 2815 return new SearchGetTypeHierarchyResult(hierarchyItems: hierarchyItems); |
| 2564 } else { | 2816 } else { |
| 2565 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy result"); | 2817 throw jsonDecoder.mismatch(jsonPath, "search.getTypeHierarchy result"); |
| 2566 } | 2818 } |
| 2567 } | 2819 } |
| 2568 | 2820 |
| 2569 factory SearchGetTypeHierarchyResult.fromResponse(Response response) { | 2821 factory SearchGetTypeHierarchyResult.fromResponse(Response response) { |
| 2570 return new SearchGetTypeHierarchyResult.fromJson( | 2822 return new SearchGetTypeHierarchyResult.fromJson( |
| 2571 new ResponseDecoder(), "result", response.result); | 2823 new ResponseDecoder(), "result", response._result); |
| 2572 } | 2824 } |
| 2573 | 2825 |
| 2574 Map<String, dynamic> toJson() { | 2826 Map<String, dynamic> toJson() { |
| 2575 Map<String, dynamic> result = {}; | 2827 Map<String, dynamic> result = {}; |
| 2576 if (hierarchyItems.isNotEmpty) { | 2828 if (hierarchyItems.isNotEmpty) { |
| 2577 result["hierarchyItems"] = hierarchyItems.map((TypeHierarchyItem value) =>
value.toJson()).toList(); | 2829 result["hierarchyItems"] = hierarchyItems.map((TypeHierarchyItem value) =>
value.toJson()).toList(); |
| 2578 } | 2830 } |
| 2579 return result; | 2831 return result; |
| 2580 } | 2832 } |
| 2581 | 2833 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 2604 | 2856 |
| 2605 /** | 2857 /** |
| 2606 * search.results params | 2858 * search.results params |
| 2607 * | 2859 * |
| 2608 * { | 2860 * { |
| 2609 * "id": SearchId | 2861 * "id": SearchId |
| 2610 * "results": List<SearchResult> | 2862 * "results": List<SearchResult> |
| 2611 * "last": bool | 2863 * "last": bool |
| 2612 * } | 2864 * } |
| 2613 */ | 2865 */ |
| 2614 class SearchResultsParams implements HasToJson { | 2866 class SearchResultsParams { |
| 2615 /** | 2867 /** |
| 2616 * The id associated with the search. | 2868 * The id associated with the search. |
| 2617 */ | 2869 */ |
| 2618 String id; | 2870 String id; |
| 2619 | 2871 |
| 2620 /** | 2872 /** |
| 2621 * The search results being reported. | 2873 * The search results being reported. |
| 2622 */ | 2874 */ |
| 2623 List<SearchResult> results; | 2875 List<SearchResult> results; |
| 2624 | 2876 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2654 throw jsonDecoder.missingKey(jsonPath, "last"); | 2906 throw jsonDecoder.missingKey(jsonPath, "last"); |
| 2655 } | 2907 } |
| 2656 return new SearchResultsParams(id, results, last); | 2908 return new SearchResultsParams(id, results, last); |
| 2657 } else { | 2909 } else { |
| 2658 throw jsonDecoder.mismatch(jsonPath, "search.results params"); | 2910 throw jsonDecoder.mismatch(jsonPath, "search.results params"); |
| 2659 } | 2911 } |
| 2660 } | 2912 } |
| 2661 | 2913 |
| 2662 factory SearchResultsParams.fromNotification(Notification notification) { | 2914 factory SearchResultsParams.fromNotification(Notification notification) { |
| 2663 return new SearchResultsParams.fromJson( | 2915 return new SearchResultsParams.fromJson( |
| 2664 new ResponseDecoder(), "params", notification.params); | 2916 new ResponseDecoder(), "params", notification._params); |
| 2665 } | 2917 } |
| 2666 | 2918 |
| 2667 Map<String, dynamic> toJson() { | 2919 Map<String, dynamic> toJson() { |
| 2668 Map<String, dynamic> result = {}; | 2920 Map<String, dynamic> result = {}; |
| 2669 result["id"] = id; | 2921 result["id"] = id; |
| 2670 result["results"] = results.map((SearchResult value) => value.toJson()).toLi
st(); | 2922 result["results"] = results.map((SearchResult value) => value.toJson()).toLi
st(); |
| 2671 result["last"] = last; | 2923 result["last"] = last; |
| 2672 return result; | 2924 return result; |
| 2673 } | 2925 } |
| 2674 | 2926 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2701 | 2953 |
| 2702 /** | 2954 /** |
| 2703 * edit.getAssists params | 2955 * edit.getAssists params |
| 2704 * | 2956 * |
| 2705 * { | 2957 * { |
| 2706 * "file": FilePath | 2958 * "file": FilePath |
| 2707 * "offset": int | 2959 * "offset": int |
| 2708 * "length": int | 2960 * "length": int |
| 2709 * } | 2961 * } |
| 2710 */ | 2962 */ |
| 2711 class EditGetAssistsParams implements HasToJson { | 2963 class EditGetAssistsParams { |
| 2712 /** | 2964 /** |
| 2713 * The file containing the code for which assists are being requested. | 2965 * The file containing the code for which assists are being requested. |
| 2714 */ | 2966 */ |
| 2715 String file; | 2967 String file; |
| 2716 | 2968 |
| 2717 /** | 2969 /** |
| 2718 * The offset of the code for which assists are being requested. | 2970 * The offset of the code for which assists are being requested. |
| 2719 */ | 2971 */ |
| 2720 int offset; | 2972 int offset; |
| 2721 | 2973 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 2750 throw jsonDecoder.missingKey(jsonPath, "length"); | 3002 throw jsonDecoder.missingKey(jsonPath, "length"); |
| 2751 } | 3003 } |
| 2752 return new EditGetAssistsParams(file, offset, length); | 3004 return new EditGetAssistsParams(file, offset, length); |
| 2753 } else { | 3005 } else { |
| 2754 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists params"); | 3006 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists params"); |
| 2755 } | 3007 } |
| 2756 } | 3008 } |
| 2757 | 3009 |
| 2758 factory EditGetAssistsParams.fromRequest(Request request) { | 3010 factory EditGetAssistsParams.fromRequest(Request request) { |
| 2759 return new EditGetAssistsParams.fromJson( | 3011 return new EditGetAssistsParams.fromJson( |
| 2760 new RequestDecoder(request), "params", request.params); | 3012 new RequestDecoder(request), "params", request._params); |
| 2761 } | 3013 } |
| 2762 | 3014 |
| 2763 Map<String, dynamic> toJson() { | 3015 Map<String, dynamic> toJson() { |
| 2764 Map<String, dynamic> result = {}; | 3016 Map<String, dynamic> result = {}; |
| 2765 result["file"] = file; | 3017 result["file"] = file; |
| 2766 result["offset"] = offset; | 3018 result["offset"] = offset; |
| 2767 result["length"] = length; | 3019 result["length"] = length; |
| 2768 return result; | 3020 return result; |
| 2769 } | 3021 } |
| 2770 | 3022 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2795 } | 3047 } |
| 2796 } | 3048 } |
| 2797 | 3049 |
| 2798 /** | 3050 /** |
| 2799 * edit.getAssists result | 3051 * edit.getAssists result |
| 2800 * | 3052 * |
| 2801 * { | 3053 * { |
| 2802 * "assists": List<SourceChange> | 3054 * "assists": List<SourceChange> |
| 2803 * } | 3055 * } |
| 2804 */ | 3056 */ |
| 2805 class EditGetAssistsResult implements HasToJson { | 3057 class EditGetAssistsResult { |
| 2806 /** | 3058 /** |
| 2807 * The assists that are available at the given location. | 3059 * The assists that are available at the given location. |
| 2808 */ | 3060 */ |
| 2809 List<SourceChange> assists; | 3061 List<SourceChange> assists; |
| 2810 | 3062 |
| 2811 EditGetAssistsResult(this.assists); | 3063 EditGetAssistsResult(this.assists); |
| 2812 | 3064 |
| 2813 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 3065 factory EditGetAssistsResult.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 2814 if (json == null) { | 3066 if (json == null) { |
| 2815 json = {}; | 3067 json = {}; |
| 2816 } | 3068 } |
| 2817 if (json is Map) { | 3069 if (json is Map) { |
| 2818 List<SourceChange> assists; | 3070 List<SourceChange> assists; |
| 2819 if (json.containsKey("assists")) { | 3071 if (json.containsKey("assists")) { |
| 2820 assists = jsonDecoder._decodeList(jsonPath + ".assists", json["assists"]
, (String jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonP
ath, json)); | 3072 assists = jsonDecoder._decodeList(jsonPath + ".assists", json["assists"]
, (String jsonPath, Object json) => new SourceChange.fromJson(jsonDecoder, jsonP
ath, json)); |
| 2821 } else { | 3073 } else { |
| 2822 throw jsonDecoder.missingKey(jsonPath, "assists"); | 3074 throw jsonDecoder.missingKey(jsonPath, "assists"); |
| 2823 } | 3075 } |
| 2824 return new EditGetAssistsResult(assists); | 3076 return new EditGetAssistsResult(assists); |
| 2825 } else { | 3077 } else { |
| 2826 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result"); | 3078 throw jsonDecoder.mismatch(jsonPath, "edit.getAssists result"); |
| 2827 } | 3079 } |
| 2828 } | 3080 } |
| 2829 | 3081 |
| 2830 factory EditGetAssistsResult.fromResponse(Response response) { | 3082 factory EditGetAssistsResult.fromResponse(Response response) { |
| 2831 return new EditGetAssistsResult.fromJson( | 3083 return new EditGetAssistsResult.fromJson( |
| 2832 new ResponseDecoder(), "result", response.result); | 3084 new ResponseDecoder(), "result", response._result); |
| 2833 } | 3085 } |
| 2834 | 3086 |
| 2835 Map<String, dynamic> toJson() { | 3087 Map<String, dynamic> toJson() { |
| 2836 Map<String, dynamic> result = {}; | 3088 Map<String, dynamic> result = {}; |
| 2837 result["assists"] = assists.map((SourceChange value) => value.toJson()).toLi
st(); | 3089 result["assists"] = assists.map((SourceChange value) => value.toJson()).toLi
st(); |
| 2838 return result; | 3090 return result; |
| 2839 } | 3091 } |
| 2840 | 3092 |
| 2841 Response toResponse(String id) { | 3093 Response toResponse(String id) { |
| 2842 return new Response(id, result: toJson()); | 3094 return new Response(id, result: toJson()); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2863 | 3115 |
| 2864 /** | 3116 /** |
| 2865 * edit.getAvailableRefactorings params | 3117 * edit.getAvailableRefactorings params |
| 2866 * | 3118 * |
| 2867 * { | 3119 * { |
| 2868 * "file": FilePath | 3120 * "file": FilePath |
| 2869 * "offset": int | 3121 * "offset": int |
| 2870 * "length": int | 3122 * "length": int |
| 2871 * } | 3123 * } |
| 2872 */ | 3124 */ |
| 2873 class EditGetAvailableRefactoringsParams implements HasToJson { | 3125 class EditGetAvailableRefactoringsParams { |
| 2874 /** | 3126 /** |
| 2875 * The file containing the code on which the refactoring would be based. | 3127 * The file containing the code on which the refactoring would be based. |
| 2876 */ | 3128 */ |
| 2877 String file; | 3129 String file; |
| 2878 | 3130 |
| 2879 /** | 3131 /** |
| 2880 * The offset of the code on which the refactoring would be based. | 3132 * The offset of the code on which the refactoring would be based. |
| 2881 */ | 3133 */ |
| 2882 int offset; | 3134 int offset; |
| 2883 | 3135 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 2912 throw jsonDecoder.missingKey(jsonPath, "length"); | 3164 throw jsonDecoder.missingKey(jsonPath, "length"); |
| 2913 } | 3165 } |
| 2914 return new EditGetAvailableRefactoringsParams(file, offset, length); | 3166 return new EditGetAvailableRefactoringsParams(file, offset, length); |
| 2915 } else { | 3167 } else { |
| 2916 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings params
"); | 3168 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings params
"); |
| 2917 } | 3169 } |
| 2918 } | 3170 } |
| 2919 | 3171 |
| 2920 factory EditGetAvailableRefactoringsParams.fromRequest(Request request) { | 3172 factory EditGetAvailableRefactoringsParams.fromRequest(Request request) { |
| 2921 return new EditGetAvailableRefactoringsParams.fromJson( | 3173 return new EditGetAvailableRefactoringsParams.fromJson( |
| 2922 new RequestDecoder(request), "params", request.params); | 3174 new RequestDecoder(request), "params", request._params); |
| 2923 } | 3175 } |
| 2924 | 3176 |
| 2925 Map<String, dynamic> toJson() { | 3177 Map<String, dynamic> toJson() { |
| 2926 Map<String, dynamic> result = {}; | 3178 Map<String, dynamic> result = {}; |
| 2927 result["file"] = file; | 3179 result["file"] = file; |
| 2928 result["offset"] = offset; | 3180 result["offset"] = offset; |
| 2929 result["length"] = length; | 3181 result["length"] = length; |
| 2930 return result; | 3182 return result; |
| 2931 } | 3183 } |
| 2932 | 3184 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2957 } | 3209 } |
| 2958 } | 3210 } |
| 2959 | 3211 |
| 2960 /** | 3212 /** |
| 2961 * edit.getAvailableRefactorings result | 3213 * edit.getAvailableRefactorings result |
| 2962 * | 3214 * |
| 2963 * { | 3215 * { |
| 2964 * "kinds": List<RefactoringKind> | 3216 * "kinds": List<RefactoringKind> |
| 2965 * } | 3217 * } |
| 2966 */ | 3218 */ |
| 2967 class EditGetAvailableRefactoringsResult implements HasToJson { | 3219 class EditGetAvailableRefactoringsResult { |
| 2968 /** | 3220 /** |
| 2969 * The kinds of refactorings that are valid for the given selection. | 3221 * The kinds of refactorings that are valid for the given selection. |
| 2970 */ | 3222 */ |
| 2971 List<RefactoringKind> kinds; | 3223 List<RefactoringKind> kinds; |
| 2972 | 3224 |
| 2973 EditGetAvailableRefactoringsResult(this.kinds); | 3225 EditGetAvailableRefactoringsResult(this.kinds); |
| 2974 | 3226 |
| 2975 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { | 3227 factory EditGetAvailableRefactoringsResult.fromJson(JsonDecoder jsonDecoder, S
tring jsonPath, Object json) { |
| 2976 if (json == null) { | 3228 if (json == null) { |
| 2977 json = {}; | 3229 json = {}; |
| 2978 } | 3230 } |
| 2979 if (json is Map) { | 3231 if (json is Map) { |
| 2980 List<RefactoringKind> kinds; | 3232 List<RefactoringKind> kinds; |
| 2981 if (json.containsKey("kinds")) { | 3233 if (json.containsKey("kinds")) { |
| 2982 kinds = jsonDecoder._decodeList(jsonPath + ".kinds", json["kinds"], (Str
ing jsonPath, Object json) => new RefactoringKind.fromJson(jsonDecoder, jsonPath
, json)); | 3234 kinds = jsonDecoder._decodeList(jsonPath + ".kinds", json["kinds"], (Str
ing jsonPath, Object json) => new RefactoringKind.fromJson(jsonDecoder, jsonPath
, json)); |
| 2983 } else { | 3235 } else { |
| 2984 throw jsonDecoder.missingKey(jsonPath, "kinds"); | 3236 throw jsonDecoder.missingKey(jsonPath, "kinds"); |
| 2985 } | 3237 } |
| 2986 return new EditGetAvailableRefactoringsResult(kinds); | 3238 return new EditGetAvailableRefactoringsResult(kinds); |
| 2987 } else { | 3239 } else { |
| 2988 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings result
"); | 3240 throw jsonDecoder.mismatch(jsonPath, "edit.getAvailableRefactorings result
"); |
| 2989 } | 3241 } |
| 2990 } | 3242 } |
| 2991 | 3243 |
| 2992 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) { | 3244 factory EditGetAvailableRefactoringsResult.fromResponse(Response response) { |
| 2993 return new EditGetAvailableRefactoringsResult.fromJson( | 3245 return new EditGetAvailableRefactoringsResult.fromJson( |
| 2994 new ResponseDecoder(), "result", response.result); | 3246 new ResponseDecoder(), "result", response._result); |
| 2995 } | 3247 } |
| 2996 | 3248 |
| 2997 Map<String, dynamic> toJson() { | 3249 Map<String, dynamic> toJson() { |
| 2998 Map<String, dynamic> result = {}; | 3250 Map<String, dynamic> result = {}; |
| 2999 result["kinds"] = kinds.map((RefactoringKind value) => value.toJson()).toLis
t(); | 3251 result["kinds"] = kinds.map((RefactoringKind value) => value.toJson()).toLis
t(); |
| 3000 return result; | 3252 return result; |
| 3001 } | 3253 } |
| 3002 | 3254 |
| 3003 Response toResponse(String id) { | 3255 Response toResponse(String id) { |
| 3004 return new Response(id, result: toJson()); | 3256 return new Response(id, result: toJson()); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3024 } | 3276 } |
| 3025 | 3277 |
| 3026 /** | 3278 /** |
| 3027 * edit.getFixes params | 3279 * edit.getFixes params |
| 3028 * | 3280 * |
| 3029 * { | 3281 * { |
| 3030 * "file": FilePath | 3282 * "file": FilePath |
| 3031 * "offset": int | 3283 * "offset": int |
| 3032 * } | 3284 * } |
| 3033 */ | 3285 */ |
| 3034 class EditGetFixesParams implements HasToJson { | 3286 class EditGetFixesParams { |
| 3035 /** | 3287 /** |
| 3036 * The file containing the errors for which fixes are being requested. | 3288 * The file containing the errors for which fixes are being requested. |
| 3037 */ | 3289 */ |
| 3038 String file; | 3290 String file; |
| 3039 | 3291 |
| 3040 /** | 3292 /** |
| 3041 * The offset used to select the errors for which fixes will be returned. | 3293 * The offset used to select the errors for which fixes will be returned. |
| 3042 */ | 3294 */ |
| 3043 int offset; | 3295 int offset; |
| 3044 | 3296 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3062 throw jsonDecoder.missingKey(jsonPath, "offset"); | 3314 throw jsonDecoder.missingKey(jsonPath, "offset"); |
| 3063 } | 3315 } |
| 3064 return new EditGetFixesParams(file, offset); | 3316 return new EditGetFixesParams(file, offset); |
| 3065 } else { | 3317 } else { |
| 3066 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes params"); | 3318 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes params"); |
| 3067 } | 3319 } |
| 3068 } | 3320 } |
| 3069 | 3321 |
| 3070 factory EditGetFixesParams.fromRequest(Request request) { | 3322 factory EditGetFixesParams.fromRequest(Request request) { |
| 3071 return new EditGetFixesParams.fromJson( | 3323 return new EditGetFixesParams.fromJson( |
| 3072 new RequestDecoder(request), "params", request.params); | 3324 new RequestDecoder(request), "params", request._params); |
| 3073 } | 3325 } |
| 3074 | 3326 |
| 3075 Map<String, dynamic> toJson() { | 3327 Map<String, dynamic> toJson() { |
| 3076 Map<String, dynamic> result = {}; | 3328 Map<String, dynamic> result = {}; |
| 3077 result["file"] = file; | 3329 result["file"] = file; |
| 3078 result["offset"] = offset; | 3330 result["offset"] = offset; |
| 3079 return result; | 3331 return result; |
| 3080 } | 3332 } |
| 3081 | 3333 |
| 3082 Request toRequest(String id) { | 3334 Request toRequest(String id) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3104 } | 3356 } |
| 3105 } | 3357 } |
| 3106 | 3358 |
| 3107 /** | 3359 /** |
| 3108 * edit.getFixes result | 3360 * edit.getFixes result |
| 3109 * | 3361 * |
| 3110 * { | 3362 * { |
| 3111 * "fixes": List<ErrorFixes> | 3363 * "fixes": List<ErrorFixes> |
| 3112 * } | 3364 * } |
| 3113 */ | 3365 */ |
| 3114 class EditGetFixesResult implements HasToJson { | 3366 class EditGetFixesResult { |
| 3115 /** | 3367 /** |
| 3116 * The fixes that are available for each of the analysis errors. There is a | 3368 * The fixes that are available for each of the analysis errors. There is a |
| 3117 * one-to-one correspondence between the analysis errors in the request and | 3369 * one-to-one correspondence between the analysis errors in the request and |
| 3118 * the lists of changes in the response. In particular, it is always the case | 3370 * the lists of changes in the response. In particular, it is always the case |
| 3119 * that errors.length == fixes.length and that fixes[i] is the list of fixes | 3371 * that errors.length == fixes.length and that fixes[i] is the list of fixes |
| 3120 * for the error in errors[i]. The list of changes corresponding to an error | 3372 * for the error in errors[i]. The list of changes corresponding to an error |
| 3121 * can be empty if there are no fixes available for that error. | 3373 * can be empty if there are no fixes available for that error. |
| 3122 */ | 3374 */ |
| 3123 List<ErrorFixes> fixes; | 3375 List<ErrorFixes> fixes; |
| 3124 | 3376 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3136 throw jsonDecoder.missingKey(jsonPath, "fixes"); | 3388 throw jsonDecoder.missingKey(jsonPath, "fixes"); |
| 3137 } | 3389 } |
| 3138 return new EditGetFixesResult(fixes); | 3390 return new EditGetFixesResult(fixes); |
| 3139 } else { | 3391 } else { |
| 3140 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result"); | 3392 throw jsonDecoder.mismatch(jsonPath, "edit.getFixes result"); |
| 3141 } | 3393 } |
| 3142 } | 3394 } |
| 3143 | 3395 |
| 3144 factory EditGetFixesResult.fromResponse(Response response) { | 3396 factory EditGetFixesResult.fromResponse(Response response) { |
| 3145 return new EditGetFixesResult.fromJson( | 3397 return new EditGetFixesResult.fromJson( |
| 3146 new ResponseDecoder(), "result", response.result); | 3398 new ResponseDecoder(), "result", response._result); |
| 3147 } | 3399 } |
| 3148 | 3400 |
| 3149 Map<String, dynamic> toJson() { | 3401 Map<String, dynamic> toJson() { |
| 3150 Map<String, dynamic> result = {}; | 3402 Map<String, dynamic> result = {}; |
| 3151 result["fixes"] = fixes.map((ErrorFixes value) => value.toJson()).toList(); | 3403 result["fixes"] = fixes.map((ErrorFixes value) => value.toJson()).toList(); |
| 3152 return result; | 3404 return result; |
| 3153 } | 3405 } |
| 3154 | 3406 |
| 3155 Response toResponse(String id) { | 3407 Response toResponse(String id) { |
| 3156 return new Response(id, result: toJson()); | 3408 return new Response(id, result: toJson()); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3180 * | 3432 * |
| 3181 * { | 3433 * { |
| 3182 * "kind": RefactoringKind | 3434 * "kind": RefactoringKind |
| 3183 * "file": FilePath | 3435 * "file": FilePath |
| 3184 * "offset": int | 3436 * "offset": int |
| 3185 * "length": int | 3437 * "length": int |
| 3186 * "validateOnly": bool | 3438 * "validateOnly": bool |
| 3187 * "options": optional object | 3439 * "options": optional object |
| 3188 * } | 3440 * } |
| 3189 */ | 3441 */ |
| 3190 class EditGetRefactoringParams implements HasToJson { | 3442 class EditGetRefactoringParams { |
| 3191 /** | 3443 /** |
| 3192 * The kind of refactoring to be performed. | 3444 * The kind of refactoring to be performed. |
| 3193 */ | 3445 */ |
| 3194 RefactoringKind kind; | 3446 RefactoringKind kind; |
| 3195 | 3447 |
| 3196 /** | 3448 /** |
| 3197 * The file containing the code involved in the refactoring. | 3449 * The file containing the code involved in the refactoring. |
| 3198 */ | 3450 */ |
| 3199 String file; | 3451 String file; |
| 3200 | 3452 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3265 options = json["options"]; | 3517 options = json["options"]; |
| 3266 } | 3518 } |
| 3267 return new EditGetRefactoringParams(kind, file, offset, length, validateOn
ly, options: options); | 3519 return new EditGetRefactoringParams(kind, file, offset, length, validateOn
ly, options: options); |
| 3268 } else { | 3520 } else { |
| 3269 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params"); | 3521 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring params"); |
| 3270 } | 3522 } |
| 3271 } | 3523 } |
| 3272 | 3524 |
| 3273 factory EditGetRefactoringParams.fromRequest(Request request) { | 3525 factory EditGetRefactoringParams.fromRequest(Request request) { |
| 3274 return new EditGetRefactoringParams.fromJson( | 3526 return new EditGetRefactoringParams.fromJson( |
| 3275 new RequestDecoder(request), "params", request.params); | 3527 new RequestDecoder(request), "params", request._params); |
| 3276 } | 3528 } |
| 3277 | 3529 |
| 3278 Map<String, dynamic> toJson() { | 3530 Map<String, dynamic> toJson() { |
| 3279 Map<String, dynamic> result = {}; | 3531 Map<String, dynamic> result = {}; |
| 3280 result["kind"] = kind.toJson(); | 3532 result["kind"] = kind.toJson(); |
| 3281 result["file"] = file; | 3533 result["file"] = file; |
| 3282 result["offset"] = offset; | 3534 result["offset"] = offset; |
| 3283 result["length"] = length; | 3535 result["length"] = length; |
| 3284 result["validateOnly"] = validateOnly; | 3536 result["validateOnly"] = validateOnly; |
| 3285 if (options != null) { | 3537 if (options != null) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3324 /** | 3576 /** |
| 3325 * edit.getRefactoring result | 3577 * edit.getRefactoring result |
| 3326 * | 3578 * |
| 3327 * { | 3579 * { |
| 3328 * "problems": List<RefactoringProblem> | 3580 * "problems": List<RefactoringProblem> |
| 3329 * "feedback": optional object | 3581 * "feedback": optional object |
| 3330 * "change": optional SourceChange | 3582 * "change": optional SourceChange |
| 3331 * "potentialEdits": optional List<String> | 3583 * "potentialEdits": optional List<String> |
| 3332 * } | 3584 * } |
| 3333 */ | 3585 */ |
| 3334 class EditGetRefactoringResult implements HasToJson { | 3586 class EditGetRefactoringResult { |
| 3335 /** | 3587 /** |
| 3336 * The status of the refactoring. The array will be empty if there are no | 3588 * The status of the refactoring. The array will be empty if there are no |
| 3337 * known problems. | 3589 * known problems. |
| 3338 */ | 3590 */ |
| 3339 List<RefactoringProblem> problems; | 3591 List<RefactoringProblem> problems; |
| 3340 | 3592 |
| 3341 /** | 3593 /** |
| 3342 * Data used to provide feedback to the user. The structure of the data is | 3594 * Data used to provide feedback to the user. The structure of the data is |
| 3343 * dependent on the kind of refactoring being created. The data that is | 3595 * dependent on the kind of refactoring being created. The data that is |
| 3344 * returned is documented in the section titled Refactorings, labeled as | 3596 * returned is documented in the section titled Refactorings, labeled as |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3396 potentialEdits = <String>[]; | 3648 potentialEdits = <String>[]; |
| 3397 } | 3649 } |
| 3398 return new EditGetRefactoringResult(problems, feedback: feedback, change:
change, potentialEdits: potentialEdits); | 3650 return new EditGetRefactoringResult(problems, feedback: feedback, change:
change, potentialEdits: potentialEdits); |
| 3399 } else { | 3651 } else { |
| 3400 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result"); | 3652 throw jsonDecoder.mismatch(jsonPath, "edit.getRefactoring result"); |
| 3401 } | 3653 } |
| 3402 } | 3654 } |
| 3403 | 3655 |
| 3404 factory EditGetRefactoringResult.fromResponse(Response response) { | 3656 factory EditGetRefactoringResult.fromResponse(Response response) { |
| 3405 return new EditGetRefactoringResult.fromJson( | 3657 return new EditGetRefactoringResult.fromJson( |
| 3406 new ResponseDecoder(), "result", response.result); | 3658 new ResponseDecoder(), "result", response._result); |
| 3407 } | 3659 } |
| 3408 | 3660 |
| 3409 Map<String, dynamic> toJson() { | 3661 Map<String, dynamic> toJson() { |
| 3410 Map<String, dynamic> result = {}; | 3662 Map<String, dynamic> result = {}; |
| 3411 result["problems"] = problems.map((RefactoringProblem value) => value.toJson
()).toList(); | 3663 result["problems"] = problems.map((RefactoringProblem value) => value.toJson
()).toList(); |
| 3412 if (feedback != null) { | 3664 if (feedback != null) { |
| 3413 result["feedback"] = feedback; | 3665 result["feedback"] = feedback; |
| 3414 } | 3666 } |
| 3415 if (change != null) { | 3667 if (change != null) { |
| 3416 result["change"] = change.toJson(); | 3668 result["change"] = change.toJson(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3450 } | 3702 } |
| 3451 } | 3703 } |
| 3452 | 3704 |
| 3453 /** | 3705 /** |
| 3454 * debug.createContext params | 3706 * debug.createContext params |
| 3455 * | 3707 * |
| 3456 * { | 3708 * { |
| 3457 * "contextRoot": FilePath | 3709 * "contextRoot": FilePath |
| 3458 * } | 3710 * } |
| 3459 */ | 3711 */ |
| 3460 class DebugCreateContextParams implements HasToJson { | 3712 class DebugCreateContextParams { |
| 3461 /** | 3713 /** |
| 3462 * The path of the Dart or HTML file that will be launched. | 3714 * The path of the Dart or HTML file that will be launched. |
| 3463 */ | 3715 */ |
| 3464 String contextRoot; | 3716 String contextRoot; |
| 3465 | 3717 |
| 3466 DebugCreateContextParams(this.contextRoot); | 3718 DebugCreateContextParams(this.contextRoot); |
| 3467 | 3719 |
| 3468 factory DebugCreateContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3720 factory DebugCreateContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3469 if (json == null) { | 3721 if (json == null) { |
| 3470 json = {}; | 3722 json = {}; |
| 3471 } | 3723 } |
| 3472 if (json is Map) { | 3724 if (json is Map) { |
| 3473 String contextRoot; | 3725 String contextRoot; |
| 3474 if (json.containsKey("contextRoot")) { | 3726 if (json.containsKey("contextRoot")) { |
| 3475 contextRoot = jsonDecoder._decodeString(jsonPath + ".contextRoot", json[
"contextRoot"]); | 3727 contextRoot = jsonDecoder._decodeString(jsonPath + ".contextRoot", json[
"contextRoot"]); |
| 3476 } else { | 3728 } else { |
| 3477 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); | 3729 throw jsonDecoder.missingKey(jsonPath, "contextRoot"); |
| 3478 } | 3730 } |
| 3479 return new DebugCreateContextParams(contextRoot); | 3731 return new DebugCreateContextParams(contextRoot); |
| 3480 } else { | 3732 } else { |
| 3481 throw jsonDecoder.mismatch(jsonPath, "debug.createContext params"); | 3733 throw jsonDecoder.mismatch(jsonPath, "debug.createContext params"); |
| 3482 } | 3734 } |
| 3483 } | 3735 } |
| 3484 | 3736 |
| 3485 factory DebugCreateContextParams.fromRequest(Request request) { | 3737 factory DebugCreateContextParams.fromRequest(Request request) { |
| 3486 return new DebugCreateContextParams.fromJson( | 3738 return new DebugCreateContextParams.fromJson( |
| 3487 new RequestDecoder(request), "params", request.params); | 3739 new RequestDecoder(request), "params", request._params); |
| 3488 } | 3740 } |
| 3489 | 3741 |
| 3490 Map<String, dynamic> toJson() { | 3742 Map<String, dynamic> toJson() { |
| 3491 Map<String, dynamic> result = {}; | 3743 Map<String, dynamic> result = {}; |
| 3492 result["contextRoot"] = contextRoot; | 3744 result["contextRoot"] = contextRoot; |
| 3493 return result; | 3745 return result; |
| 3494 } | 3746 } |
| 3495 | 3747 |
| 3496 Request toRequest(String id) { | 3748 Request toRequest(String id) { |
| 3497 return new Request(id, "debug.createContext", toJson()); | 3749 return new Request(id, "debug.createContext", toJson()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 3516 } | 3768 } |
| 3517 } | 3769 } |
| 3518 | 3770 |
| 3519 /** | 3771 /** |
| 3520 * debug.createContext result | 3772 * debug.createContext result |
| 3521 * | 3773 * |
| 3522 * { | 3774 * { |
| 3523 * "id": DebugContextId | 3775 * "id": DebugContextId |
| 3524 * } | 3776 * } |
| 3525 */ | 3777 */ |
| 3526 class DebugCreateContextResult implements HasToJson { | 3778 class DebugCreateContextResult { |
| 3527 /** | 3779 /** |
| 3528 * The identifier used to refer to the debugging context that was created. | 3780 * The identifier used to refer to the debugging context that was created. |
| 3529 */ | 3781 */ |
| 3530 String id; | 3782 String id; |
| 3531 | 3783 |
| 3532 DebugCreateContextResult(this.id); | 3784 DebugCreateContextResult(this.id); |
| 3533 | 3785 |
| 3534 factory DebugCreateContextResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3786 factory DebugCreateContextResult.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3535 if (json == null) { | 3787 if (json == null) { |
| 3536 json = {}; | 3788 json = {}; |
| 3537 } | 3789 } |
| 3538 if (json is Map) { | 3790 if (json is Map) { |
| 3539 String id; | 3791 String id; |
| 3540 if (json.containsKey("id")) { | 3792 if (json.containsKey("id")) { |
| 3541 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3793 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
| 3542 } else { | 3794 } else { |
| 3543 throw jsonDecoder.missingKey(jsonPath, "id"); | 3795 throw jsonDecoder.missingKey(jsonPath, "id"); |
| 3544 } | 3796 } |
| 3545 return new DebugCreateContextResult(id); | 3797 return new DebugCreateContextResult(id); |
| 3546 } else { | 3798 } else { |
| 3547 throw jsonDecoder.mismatch(jsonPath, "debug.createContext result"); | 3799 throw jsonDecoder.mismatch(jsonPath, "debug.createContext result"); |
| 3548 } | 3800 } |
| 3549 } | 3801 } |
| 3550 | 3802 |
| 3551 factory DebugCreateContextResult.fromResponse(Response response) { | 3803 factory DebugCreateContextResult.fromResponse(Response response) { |
| 3552 return new DebugCreateContextResult.fromJson( | 3804 return new DebugCreateContextResult.fromJson( |
| 3553 new ResponseDecoder(), "result", response.result); | 3805 new ResponseDecoder(), "result", response._result); |
| 3554 } | 3806 } |
| 3555 | 3807 |
| 3556 Map<String, dynamic> toJson() { | 3808 Map<String, dynamic> toJson() { |
| 3557 Map<String, dynamic> result = {}; | 3809 Map<String, dynamic> result = {}; |
| 3558 result["id"] = id; | 3810 result["id"] = id; |
| 3559 return result; | 3811 return result; |
| 3560 } | 3812 } |
| 3561 | 3813 |
| 3562 Response toResponse(String id) { | 3814 Response toResponse(String id) { |
| 3563 return new Response(id, result: toJson()); | 3815 return new Response(id, result: toJson()); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 3582 } | 3834 } |
| 3583 } | 3835 } |
| 3584 | 3836 |
| 3585 /** | 3837 /** |
| 3586 * debug.deleteContext params | 3838 * debug.deleteContext params |
| 3587 * | 3839 * |
| 3588 * { | 3840 * { |
| 3589 * "id": DebugContextId | 3841 * "id": DebugContextId |
| 3590 * } | 3842 * } |
| 3591 */ | 3843 */ |
| 3592 class DebugDeleteContextParams implements HasToJson { | 3844 class DebugDeleteContextParams { |
| 3593 /** | 3845 /** |
| 3594 * The identifier of the debugging context that is to be deleted. | 3846 * The identifier of the debugging context that is to be deleted. |
| 3595 */ | 3847 */ |
| 3596 String id; | 3848 String id; |
| 3597 | 3849 |
| 3598 DebugDeleteContextParams(this.id); | 3850 DebugDeleteContextParams(this.id); |
| 3599 | 3851 |
| 3600 factory DebugDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 3852 factory DebugDeleteContextParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 3601 if (json == null) { | 3853 if (json == null) { |
| 3602 json = {}; | 3854 json = {}; |
| 3603 } | 3855 } |
| 3604 if (json is Map) { | 3856 if (json is Map) { |
| 3605 String id; | 3857 String id; |
| 3606 if (json.containsKey("id")) { | 3858 if (json.containsKey("id")) { |
| 3607 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); | 3859 id = jsonDecoder._decodeString(jsonPath + ".id", json["id"]); |
| 3608 } else { | 3860 } else { |
| 3609 throw jsonDecoder.missingKey(jsonPath, "id"); | 3861 throw jsonDecoder.missingKey(jsonPath, "id"); |
| 3610 } | 3862 } |
| 3611 return new DebugDeleteContextParams(id); | 3863 return new DebugDeleteContextParams(id); |
| 3612 } else { | 3864 } else { |
| 3613 throw jsonDecoder.mismatch(jsonPath, "debug.deleteContext params"); | 3865 throw jsonDecoder.mismatch(jsonPath, "debug.deleteContext params"); |
| 3614 } | 3866 } |
| 3615 } | 3867 } |
| 3616 | 3868 |
| 3617 factory DebugDeleteContextParams.fromRequest(Request request) { | 3869 factory DebugDeleteContextParams.fromRequest(Request request) { |
| 3618 return new DebugDeleteContextParams.fromJson( | 3870 return new DebugDeleteContextParams.fromJson( |
| 3619 new RequestDecoder(request), "params", request.params); | 3871 new RequestDecoder(request), "params", request._params); |
| 3620 } | 3872 } |
| 3621 | 3873 |
| 3622 Map<String, dynamic> toJson() { | 3874 Map<String, dynamic> toJson() { |
| 3623 Map<String, dynamic> result = {}; | 3875 Map<String, dynamic> result = {}; |
| 3624 result["id"] = id; | 3876 result["id"] = id; |
| 3625 return result; | 3877 return result; |
| 3626 } | 3878 } |
| 3627 | 3879 |
| 3628 Request toRequest(String id) { | 3880 Request toRequest(String id) { |
| 3629 return new Request(id, "debug.deleteContext", toJson()); | 3881 return new Request(id, "debug.deleteContext", toJson()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3640 return false; | 3892 return false; |
| 3641 } | 3893 } |
| 3642 | 3894 |
| 3643 @override | 3895 @override |
| 3644 int get hashCode { | 3896 int get hashCode { |
| 3645 int hash = 0; | 3897 int hash = 0; |
| 3646 hash = _JenkinsSmiHash.combine(hash, id.hashCode); | 3898 hash = _JenkinsSmiHash.combine(hash, id.hashCode); |
| 3647 return _JenkinsSmiHash.finish(hash); | 3899 return _JenkinsSmiHash.finish(hash); |
| 3648 } | 3900 } |
| 3649 } | 3901 } |
| 3902 /** |
| 3903 * debug.deleteContext result |
| 3904 */ |
| 3905 class DebugDeleteContextResult { |
| 3906 Response toResponse(String id) { |
| 3907 return new Response(id, result: null); |
| 3908 } |
| 3909 |
| 3910 @override |
| 3911 bool operator==(other) { |
| 3912 if (other is DebugDeleteContextResult) { |
| 3913 return true; |
| 3914 } |
| 3915 return false; |
| 3916 } |
| 3917 |
| 3918 @override |
| 3919 int get hashCode { |
| 3920 return 923895626; |
| 3921 } |
| 3922 } |
| 3650 | 3923 |
| 3651 /** | 3924 /** |
| 3652 * debug.mapUri params | 3925 * debug.mapUri params |
| 3653 * | 3926 * |
| 3654 * { | 3927 * { |
| 3655 * "id": DebugContextId | 3928 * "id": DebugContextId |
| 3656 * "file": optional FilePath | 3929 * "file": optional FilePath |
| 3657 * "uri": optional String | 3930 * "uri": optional String |
| 3658 * } | 3931 * } |
| 3659 */ | 3932 */ |
| 3660 class DebugMapUriParams implements HasToJson { | 3933 class DebugMapUriParams { |
| 3661 /** | 3934 /** |
| 3662 * The identifier of the debugging context in which the URI is to be mapped. | 3935 * The identifier of the debugging context in which the URI is to be mapped. |
| 3663 */ | 3936 */ |
| 3664 String id; | 3937 String id; |
| 3665 | 3938 |
| 3666 /** | 3939 /** |
| 3667 * The path of the file to be mapped into a URI. | 3940 * The path of the file to be mapped into a URI. |
| 3668 */ | 3941 */ |
| 3669 String file; | 3942 String file; |
| 3670 | 3943 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 3695 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); | 3968 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); |
| 3696 } | 3969 } |
| 3697 return new DebugMapUriParams(id, file: file, uri: uri); | 3970 return new DebugMapUriParams(id, file: file, uri: uri); |
| 3698 } else { | 3971 } else { |
| 3699 throw jsonDecoder.mismatch(jsonPath, "debug.mapUri params"); | 3972 throw jsonDecoder.mismatch(jsonPath, "debug.mapUri params"); |
| 3700 } | 3973 } |
| 3701 } | 3974 } |
| 3702 | 3975 |
| 3703 factory DebugMapUriParams.fromRequest(Request request) { | 3976 factory DebugMapUriParams.fromRequest(Request request) { |
| 3704 return new DebugMapUriParams.fromJson( | 3977 return new DebugMapUriParams.fromJson( |
| 3705 new RequestDecoder(request), "params", request.params); | 3978 new RequestDecoder(request), "params", request._params); |
| 3706 } | 3979 } |
| 3707 | 3980 |
| 3708 Map<String, dynamic> toJson() { | 3981 Map<String, dynamic> toJson() { |
| 3709 Map<String, dynamic> result = {}; | 3982 Map<String, dynamic> result = {}; |
| 3710 result["id"] = id; | 3983 result["id"] = id; |
| 3711 if (file != null) { | 3984 if (file != null) { |
| 3712 result["file"] = file; | 3985 result["file"] = file; |
| 3713 } | 3986 } |
| 3714 if (uri != null) { | 3987 if (uri != null) { |
| 3715 result["uri"] = uri; | 3988 result["uri"] = uri; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3745 } | 4018 } |
| 3746 | 4019 |
| 3747 /** | 4020 /** |
| 3748 * debug.mapUri result | 4021 * debug.mapUri result |
| 3749 * | 4022 * |
| 3750 * { | 4023 * { |
| 3751 * "file": optional FilePath | 4024 * "file": optional FilePath |
| 3752 * "uri": optional String | 4025 * "uri": optional String |
| 3753 * } | 4026 * } |
| 3754 */ | 4027 */ |
| 3755 class DebugMapUriResult implements HasToJson { | 4028 class DebugMapUriResult { |
| 3756 /** | 4029 /** |
| 3757 * The file to which the URI was mapped. This field is omitted if the uri | 4030 * The file to which the URI was mapped. This field is omitted if the uri |
| 3758 * field was not given in the request. | 4031 * field was not given in the request. |
| 3759 */ | 4032 */ |
| 3760 String file; | 4033 String file; |
| 3761 | 4034 |
| 3762 /** | 4035 /** |
| 3763 * The URI to which the file path was mapped. This field is omitted if the | 4036 * The URI to which the file path was mapped. This field is omitted if the |
| 3764 * file field was not given in the request. | 4037 * file field was not given in the request. |
| 3765 */ | 4038 */ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 3781 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); | 4054 uri = jsonDecoder._decodeString(jsonPath + ".uri", json["uri"]); |
| 3782 } | 4055 } |
| 3783 return new DebugMapUriResult(file: file, uri: uri); | 4056 return new DebugMapUriResult(file: file, uri: uri); |
| 3784 } else { | 4057 } else { |
| 3785 throw jsonDecoder.mismatch(jsonPath, "debug.mapUri result"); | 4058 throw jsonDecoder.mismatch(jsonPath, "debug.mapUri result"); |
| 3786 } | 4059 } |
| 3787 } | 4060 } |
| 3788 | 4061 |
| 3789 factory DebugMapUriResult.fromResponse(Response response) { | 4062 factory DebugMapUriResult.fromResponse(Response response) { |
| 3790 return new DebugMapUriResult.fromJson( | 4063 return new DebugMapUriResult.fromJson( |
| 3791 new ResponseDecoder(), "result", response.result); | 4064 new ResponseDecoder(), "result", response._result); |
| 3792 } | 4065 } |
| 3793 | 4066 |
| 3794 Map<String, dynamic> toJson() { | 4067 Map<String, dynamic> toJson() { |
| 3795 Map<String, dynamic> result = {}; | 4068 Map<String, dynamic> result = {}; |
| 3796 if (file != null) { | 4069 if (file != null) { |
| 3797 result["file"] = file; | 4070 result["file"] = file; |
| 3798 } | 4071 } |
| 3799 if (uri != null) { | 4072 if (uri != null) { |
| 3800 result["uri"] = uri; | 4073 result["uri"] = uri; |
| 3801 } | 4074 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 3827 } | 4100 } |
| 3828 } | 4101 } |
| 3829 | 4102 |
| 3830 /** | 4103 /** |
| 3831 * debug.setSubscriptions params | 4104 * debug.setSubscriptions params |
| 3832 * | 4105 * |
| 3833 * { | 4106 * { |
| 3834 * "subscriptions": List<DebugService> | 4107 * "subscriptions": List<DebugService> |
| 3835 * } | 4108 * } |
| 3836 */ | 4109 */ |
| 3837 class DebugSetSubscriptionsParams implements HasToJson { | 4110 class DebugSetSubscriptionsParams { |
| 3838 /** | 4111 /** |
| 3839 * A list of the services being subscribed to. | 4112 * A list of the services being subscribed to. |
| 3840 */ | 4113 */ |
| 3841 List<DebugService> subscriptions; | 4114 List<DebugService> subscriptions; |
| 3842 | 4115 |
| 3843 DebugSetSubscriptionsParams(this.subscriptions); | 4116 DebugSetSubscriptionsParams(this.subscriptions); |
| 3844 | 4117 |
| 3845 factory DebugSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { | 4118 factory DebugSetSubscriptionsParams.fromJson(JsonDecoder jsonDecoder, String j
sonPath, Object json) { |
| 3846 if (json == null) { | 4119 if (json == null) { |
| 3847 json = {}; | 4120 json = {}; |
| 3848 } | 4121 } |
| 3849 if (json is Map) { | 4122 if (json is Map) { |
| 3850 List<DebugService> subscriptions; | 4123 List<DebugService> subscriptions; |
| 3851 if (json.containsKey("subscriptions")) { | 4124 if (json.containsKey("subscriptions")) { |
| 3852 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new DebugService.fromJson(
jsonDecoder, jsonPath, json)); | 4125 subscriptions = jsonDecoder._decodeList(jsonPath + ".subscriptions", jso
n["subscriptions"], (String jsonPath, Object json) => new DebugService.fromJson(
jsonDecoder, jsonPath, json)); |
| 3853 } else { | 4126 } else { |
| 3854 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); | 4127 throw jsonDecoder.missingKey(jsonPath, "subscriptions"); |
| 3855 } | 4128 } |
| 3856 return new DebugSetSubscriptionsParams(subscriptions); | 4129 return new DebugSetSubscriptionsParams(subscriptions); |
| 3857 } else { | 4130 } else { |
| 3858 throw jsonDecoder.mismatch(jsonPath, "debug.setSubscriptions params"); | 4131 throw jsonDecoder.mismatch(jsonPath, "debug.setSubscriptions params"); |
| 3859 } | 4132 } |
| 3860 } | 4133 } |
| 3861 | 4134 |
| 3862 factory DebugSetSubscriptionsParams.fromRequest(Request request) { | 4135 factory DebugSetSubscriptionsParams.fromRequest(Request request) { |
| 3863 return new DebugSetSubscriptionsParams.fromJson( | 4136 return new DebugSetSubscriptionsParams.fromJson( |
| 3864 new RequestDecoder(request), "params", request.params); | 4137 new RequestDecoder(request), "params", request._params); |
| 3865 } | 4138 } |
| 3866 | 4139 |
| 3867 Map<String, dynamic> toJson() { | 4140 Map<String, dynamic> toJson() { |
| 3868 Map<String, dynamic> result = {}; | 4141 Map<String, dynamic> result = {}; |
| 3869 result["subscriptions"] = subscriptions.map((DebugService value) => value.to
Json()).toList(); | 4142 result["subscriptions"] = subscriptions.map((DebugService value) => value.to
Json()).toList(); |
| 3870 return result; | 4143 return result; |
| 3871 } | 4144 } |
| 3872 | 4145 |
| 3873 Request toRequest(String id) { | 4146 Request toRequest(String id) { |
| 3874 return new Request(id, "debug.setSubscriptions", toJson()); | 4147 return new Request(id, "debug.setSubscriptions", toJson()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3885 return false; | 4158 return false; |
| 3886 } | 4159 } |
| 3887 | 4160 |
| 3888 @override | 4161 @override |
| 3889 int get hashCode { | 4162 int get hashCode { |
| 3890 int hash = 0; | 4163 int hash = 0; |
| 3891 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); | 4164 hash = _JenkinsSmiHash.combine(hash, subscriptions.hashCode); |
| 3892 return _JenkinsSmiHash.finish(hash); | 4165 return _JenkinsSmiHash.finish(hash); |
| 3893 } | 4166 } |
| 3894 } | 4167 } |
| 4168 /** |
| 4169 * debug.setSubscriptions result |
| 4170 */ |
| 4171 class DebugSetSubscriptionsResult { |
| 4172 Response toResponse(String id) { |
| 4173 return new Response(id, result: null); |
| 4174 } |
| 4175 |
| 4176 @override |
| 4177 bool operator==(other) { |
| 4178 if (other is DebugSetSubscriptionsResult) { |
| 4179 return true; |
| 4180 } |
| 4181 return false; |
| 4182 } |
| 4183 |
| 4184 @override |
| 4185 int get hashCode { |
| 4186 return 36732888; |
| 4187 } |
| 4188 } |
| 3895 | 4189 |
| 3896 /** | 4190 /** |
| 3897 * debug.launchData params | 4191 * debug.launchData params |
| 3898 * | 4192 * |
| 3899 * { | 4193 * { |
| 3900 * "executables": List<ExecutableFile> | 4194 * "executables": List<ExecutableFile> |
| 3901 * "dartToHtml": Map<FilePath, List<FilePath>> | 4195 * "dartToHtml": Map<FilePath, List<FilePath>> |
| 3902 * "htmlToDart": Map<FilePath, List<FilePath>> | 4196 * "htmlToDart": Map<FilePath, List<FilePath>> |
| 3903 * } | 4197 * } |
| 3904 */ | 4198 */ |
| 3905 class DebugLaunchDataParams implements HasToJson { | 4199 class DebugLaunchDataParams { |
| 3906 /** | 4200 /** |
| 3907 * A list of the files that are executable in the given context. This list | 4201 * A list of the files that are executable in the given context. This list |
| 3908 * replaces any previous list provided for the given context. | 4202 * replaces any previous list provided for the given context. |
| 3909 */ | 4203 */ |
| 3910 List<ExecutableFile> executables; | 4204 List<ExecutableFile> executables; |
| 3911 | 4205 |
| 3912 /** | 4206 /** |
| 3913 * A mapping from the paths of Dart files that are referenced by HTML files | 4207 * A mapping from the paths of Dart files that are referenced by HTML files |
| 3914 * to a list of the HTML files that reference the Dart files. | 4208 * to a list of the HTML files that reference the Dart files. |
| 3915 */ | 4209 */ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3947 throw jsonDecoder.missingKey(jsonPath, "htmlToDart"); | 4241 throw jsonDecoder.missingKey(jsonPath, "htmlToDart"); |
| 3948 } | 4242 } |
| 3949 return new DebugLaunchDataParams(executables, dartToHtml, htmlToDart); | 4243 return new DebugLaunchDataParams(executables, dartToHtml, htmlToDart); |
| 3950 } else { | 4244 } else { |
| 3951 throw jsonDecoder.mismatch(jsonPath, "debug.launchData params"); | 4245 throw jsonDecoder.mismatch(jsonPath, "debug.launchData params"); |
| 3952 } | 4246 } |
| 3953 } | 4247 } |
| 3954 | 4248 |
| 3955 factory DebugLaunchDataParams.fromNotification(Notification notification) { | 4249 factory DebugLaunchDataParams.fromNotification(Notification notification) { |
| 3956 return new DebugLaunchDataParams.fromJson( | 4250 return new DebugLaunchDataParams.fromJson( |
| 3957 new ResponseDecoder(), "params", notification.params); | 4251 new ResponseDecoder(), "params", notification._params); |
| 3958 } | 4252 } |
| 3959 | 4253 |
| 3960 Map<String, dynamic> toJson() { | 4254 Map<String, dynamic> toJson() { |
| 3961 Map<String, dynamic> result = {}; | 4255 Map<String, dynamic> result = {}; |
| 3962 result["executables"] = executables.map((ExecutableFile value) => value.toJs
on()).toList(); | 4256 result["executables"] = executables.map((ExecutableFile value) => value.toJs
on()).toList(); |
| 3963 result["dartToHtml"] = dartToHtml; | 4257 result["dartToHtml"] = dartToHtml; |
| 3964 result["htmlToDart"] = htmlToDart; | 4258 result["htmlToDart"] = htmlToDart; |
| 3965 return result; | 4259 return result; |
| 3966 } | 4260 } |
| 3967 | 4261 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 3993 } | 4287 } |
| 3994 | 4288 |
| 3995 /** | 4289 /** |
| 3996 * AddContentOverlay | 4290 * AddContentOverlay |
| 3997 * | 4291 * |
| 3998 * { | 4292 * { |
| 3999 * "type": "add" | 4293 * "type": "add" |
| 4000 * "content": String | 4294 * "content": String |
| 4001 * } | 4295 * } |
| 4002 */ | 4296 */ |
| 4003 class AddContentOverlay implements HasToJson { | 4297 class AddContentOverlay { |
| 4004 /** | 4298 /** |
| 4005 * The new content of the file. | 4299 * The new content of the file. |
| 4006 */ | 4300 */ |
| 4007 String content; | 4301 String content; |
| 4008 | 4302 |
| 4009 AddContentOverlay(this.content); | 4303 AddContentOverlay(this.content); |
| 4010 | 4304 |
| 4011 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { | 4305 factory AddContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath, O
bject json) { |
| 4012 if (json == null) { | 4306 if (json == null) { |
| 4013 json = {}; | 4307 json = {}; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4059 * AnalysisError | 4353 * AnalysisError |
| 4060 * | 4354 * |
| 4061 * { | 4355 * { |
| 4062 * "severity": ErrorSeverity | 4356 * "severity": ErrorSeverity |
| 4063 * "type": ErrorType | 4357 * "type": ErrorType |
| 4064 * "location": Location | 4358 * "location": Location |
| 4065 * "message": String | 4359 * "message": String |
| 4066 * "correction": optional String | 4360 * "correction": optional String |
| 4067 * } | 4361 * } |
| 4068 */ | 4362 */ |
| 4069 class AnalysisError implements HasToJson { | 4363 class AnalysisError { |
| 4070 /** | 4364 /** |
| 4071 * Returns a list of AnalysisErrors correponding to the given list of Engine | 4365 * Returns a list of AnalysisErrors correponding to the given list of Engine |
| 4072 * errors. | 4366 * errors. |
| 4073 */ | 4367 */ |
| 4074 static List<AnalysisError> listFromEngine(engine.LineInfo lineInfo, List<engin
e.AnalysisError> errors) => | 4368 static List<AnalysisError> listFromEngine(engine.LineInfo lineInfo, List<engin
e.AnalysisError> errors) => |
| 4075 _analysisErrorListFromEngine(lineInfo, errors); | 4369 _analysisErrorListFromEngine(lineInfo, errors); |
| 4076 | 4370 |
| 4077 /** | 4371 /** |
| 4078 * The severity of the error. | 4372 * The severity of the error. |
| 4079 */ | 4373 */ |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4192 * AnalysisOptions | 4486 * AnalysisOptions |
| 4193 * | 4487 * |
| 4194 * { | 4488 * { |
| 4195 * "enableAsync": optional bool | 4489 * "enableAsync": optional bool |
| 4196 * "enableDeferredLoading": optional bool | 4490 * "enableDeferredLoading": optional bool |
| 4197 * "enableEnums": optional bool | 4491 * "enableEnums": optional bool |
| 4198 * "generateDart2jsHints": optional bool | 4492 * "generateDart2jsHints": optional bool |
| 4199 * "generateHints": optional bool | 4493 * "generateHints": optional bool |
| 4200 * } | 4494 * } |
| 4201 */ | 4495 */ |
| 4202 class AnalysisOptions implements HasToJson { | 4496 class AnalysisOptions { |
| 4203 /** | 4497 /** |
| 4204 * True if the client wants to enable support for the proposed async feature. | 4498 * True if the client wants to enable support for the proposed async feature. |
| 4205 */ | 4499 */ |
| 4206 bool enableAsync; | 4500 bool enableAsync; |
| 4207 | 4501 |
| 4208 /** | 4502 /** |
| 4209 * True if the client wants to enable support for the proposed deferred | 4503 * True if the client wants to enable support for the proposed deferred |
| 4210 * loading feature. | 4504 * loading feature. |
| 4211 */ | 4505 */ |
| 4212 bool enableDeferredLoading; | 4506 bool enableDeferredLoading; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4373 } | 4667 } |
| 4374 | 4668 |
| 4375 /** | 4669 /** |
| 4376 * AnalysisStatus | 4670 * AnalysisStatus |
| 4377 * | 4671 * |
| 4378 * { | 4672 * { |
| 4379 * "analyzing": bool | 4673 * "analyzing": bool |
| 4380 * "analysisTarget": optional String | 4674 * "analysisTarget": optional String |
| 4381 * } | 4675 * } |
| 4382 */ | 4676 */ |
| 4383 class AnalysisStatus implements HasToJson { | 4677 class AnalysisStatus { |
| 4384 /** | 4678 /** |
| 4385 * True if analysis is currently being performed. | 4679 * True if analysis is currently being performed. |
| 4386 */ | 4680 */ |
| 4387 bool analyzing; | 4681 bool analyzing; |
| 4388 | 4682 |
| 4389 /** | 4683 /** |
| 4390 * The name of the current target of analysis. This field is omitted if | 4684 * The name of the current target of analysis. This field is omitted if |
| 4391 * analyzing is false. | 4685 * analyzing is false. |
| 4392 */ | 4686 */ |
| 4393 String analysisTarget; | 4687 String analysisTarget; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4446 } | 4740 } |
| 4447 | 4741 |
| 4448 /** | 4742 /** |
| 4449 * ChangeContentOverlay | 4743 * ChangeContentOverlay |
| 4450 * | 4744 * |
| 4451 * { | 4745 * { |
| 4452 * "type": "change" | 4746 * "type": "change" |
| 4453 * "edits": List<SourceEdit> | 4747 * "edits": List<SourceEdit> |
| 4454 * } | 4748 * } |
| 4455 */ | 4749 */ |
| 4456 class ChangeContentOverlay implements HasToJson { | 4750 class ChangeContentOverlay { |
| 4457 /** | 4751 /** |
| 4458 * The edits to be applied to the file. | 4752 * The edits to be applied to the file. |
| 4459 */ | 4753 */ |
| 4460 List<SourceEdit> edits; | 4754 List<SourceEdit> edits; |
| 4461 | 4755 |
| 4462 ChangeContentOverlay(this.edits); | 4756 ChangeContentOverlay(this.edits); |
| 4463 | 4757 |
| 4464 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 4758 factory ChangeContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 4465 if (json == null) { | 4759 if (json == null) { |
| 4466 json = {}; | 4760 json = {}; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4573 * "declaringType": optional String | 4867 * "declaringType": optional String |
| 4574 * "returnType": optional String | 4868 * "returnType": optional String |
| 4575 * "parameterNames": optional List<String> | 4869 * "parameterNames": optional List<String> |
| 4576 * "parameterTypes": optional List<String> | 4870 * "parameterTypes": optional List<String> |
| 4577 * "requiredParameterCount": optional int | 4871 * "requiredParameterCount": optional int |
| 4578 * "positionalParameterCount": optional int | 4872 * "positionalParameterCount": optional int |
| 4579 * "parameterName": optional String | 4873 * "parameterName": optional String |
| 4580 * "parameterType": optional String | 4874 * "parameterType": optional String |
| 4581 * } | 4875 * } |
| 4582 */ | 4876 */ |
| 4583 class CompletionSuggestion implements HasToJson { | 4877 class CompletionSuggestion { |
| 4584 /** | 4878 /** |
| 4585 * The kind of element being suggested. | 4879 * The kind of element being suggested. |
| 4586 */ | 4880 */ |
| 4587 CompletionSuggestionKind kind; | 4881 CompletionSuggestionKind kind; |
| 4588 | 4882 |
| 4589 /** | 4883 /** |
| 4590 * The relevance of this completion suggestion. | 4884 * The relevance of this completion suggestion. |
| 4591 */ | 4885 */ |
| 4592 CompletionRelevance relevance; | 4886 CompletionRelevance relevance; |
| 4593 | 4887 |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5068 * | 5362 * |
| 5069 * { | 5363 * { |
| 5070 * "kind": ElementKind | 5364 * "kind": ElementKind |
| 5071 * "name": String | 5365 * "name": String |
| 5072 * "location": optional Location | 5366 * "location": optional Location |
| 5073 * "flags": int | 5367 * "flags": int |
| 5074 * "parameters": optional String | 5368 * "parameters": optional String |
| 5075 * "returnType": optional String | 5369 * "returnType": optional String |
| 5076 * } | 5370 * } |
| 5077 */ | 5371 */ |
| 5078 class Element implements HasToJson { | 5372 class Element { |
| 5079 static const int FLAG_ABSTRACT = 0x01; | 5373 static const int FLAG_ABSTRACT = 0x01; |
| 5080 static const int FLAG_CONST = 0x02; | 5374 static const int FLAG_CONST = 0x02; |
| 5081 static const int FLAG_FINAL = 0x04; | 5375 static const int FLAG_FINAL = 0x04; |
| 5082 static const int FLAG_STATIC = 0x08; | 5376 static const int FLAG_STATIC = 0x08; |
| 5083 static const int FLAG_PRIVATE = 0x10; | 5377 static const int FLAG_PRIVATE = 0x10; |
| 5084 static const int FLAG_DEPRECATED = 0x20; | 5378 static const int FLAG_DEPRECATED = 0x20; |
| 5085 | 5379 |
| 5086 static int makeFlags({isAbstract: false, isConst: false, isFinal: false, isSta
tic: false, isPrivate: false, isDeprecated: false}) { | 5380 static int makeFlags({isAbstract: false, isConst: false, isFinal: false, isSta
tic: false, isPrivate: false, isDeprecated: false}) { |
| 5087 int flags = 0; | 5381 int flags = 0; |
| 5088 if (isAbstract) flags |= FLAG_ABSTRACT; | 5382 if (isAbstract) flags |= FLAG_ABSTRACT; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5371 | 5665 |
| 5372 /** | 5666 /** |
| 5373 * Error | 5667 * Error |
| 5374 * | 5668 * |
| 5375 * { | 5669 * { |
| 5376 * "code": String | 5670 * "code": String |
| 5377 * "message": String | 5671 * "message": String |
| 5378 * "data": optional object | 5672 * "data": optional object |
| 5379 * } | 5673 * } |
| 5380 */ | 5674 */ |
| 5381 class Error implements HasToJson { | 5675 class Error { |
| 5382 /** | 5676 /** |
| 5383 * A code that uniquely identifies the error that occurred. | 5677 * A code that uniquely identifies the error that occurred. |
| 5384 */ | 5678 */ |
| 5385 String code; | 5679 String code; |
| 5386 | 5680 |
| 5387 /** | 5681 /** |
| 5388 * A short description of the error. | 5682 * A short description of the error. |
| 5389 */ | 5683 */ |
| 5390 String message; | 5684 String message; |
| 5391 | 5685 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5458 } | 5752 } |
| 5459 | 5753 |
| 5460 /** | 5754 /** |
| 5461 * ErrorFixes | 5755 * ErrorFixes |
| 5462 * | 5756 * |
| 5463 * { | 5757 * { |
| 5464 * "error": AnalysisError | 5758 * "error": AnalysisError |
| 5465 * "fixes": List<SourceChange> | 5759 * "fixes": List<SourceChange> |
| 5466 * } | 5760 * } |
| 5467 */ | 5761 */ |
| 5468 class ErrorFixes implements HasToJson { | 5762 class ErrorFixes { |
| 5469 /** | 5763 /** |
| 5470 * The error with which the fixes are associated. | 5764 * The error with which the fixes are associated. |
| 5471 */ | 5765 */ |
| 5472 AnalysisError error; | 5766 AnalysisError error; |
| 5473 | 5767 |
| 5474 /** | 5768 /** |
| 5475 * The fixes associated with the error. | 5769 * The fixes associated with the error. |
| 5476 */ | 5770 */ |
| 5477 List<SourceChange> fixes; | 5771 List<SourceChange> fixes; |
| 5478 | 5772 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5654 } | 5948 } |
| 5655 | 5949 |
| 5656 /** | 5950 /** |
| 5657 * ExecutableFile | 5951 * ExecutableFile |
| 5658 * | 5952 * |
| 5659 * { | 5953 * { |
| 5660 * "file": FilePath | 5954 * "file": FilePath |
| 5661 * "offset": ExecutableKind | 5955 * "offset": ExecutableKind |
| 5662 * } | 5956 * } |
| 5663 */ | 5957 */ |
| 5664 class ExecutableFile implements HasToJson { | 5958 class ExecutableFile { |
| 5665 /** | 5959 /** |
| 5666 * The path of the executable file. | 5960 * The path of the executable file. |
| 5667 */ | 5961 */ |
| 5668 String file; | 5962 String file; |
| 5669 | 5963 |
| 5670 /** | 5964 /** |
| 5671 * The offset of the region to be highlighted. | 5965 * The offset of the region to be highlighted. |
| 5672 */ | 5966 */ |
| 5673 ExecutableKind offset; | 5967 ExecutableKind offset; |
| 5674 | 5968 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5835 | 6129 |
| 5836 /** | 6130 /** |
| 5837 * FoldingRegion | 6131 * FoldingRegion |
| 5838 * | 6132 * |
| 5839 * { | 6133 * { |
| 5840 * "kind": FoldingKind | 6134 * "kind": FoldingKind |
| 5841 * "offset": int | 6135 * "offset": int |
| 5842 * "length": int | 6136 * "length": int |
| 5843 * } | 6137 * } |
| 5844 */ | 6138 */ |
| 5845 class FoldingRegion implements HasToJson { | 6139 class FoldingRegion { |
| 5846 /** | 6140 /** |
| 5847 * The kind of the region. | 6141 * The kind of the region. |
| 5848 */ | 6142 */ |
| 5849 FoldingKind kind; | 6143 FoldingKind kind; |
| 5850 | 6144 |
| 5851 /** | 6145 /** |
| 5852 * The offset of the region to be folded. | 6146 * The offset of the region to be folded. |
| 5853 */ | 6147 */ |
| 5854 int offset; | 6148 int offset; |
| 5855 | 6149 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5922 | 6216 |
| 5923 /** | 6217 /** |
| 5924 * HighlightRegion | 6218 * HighlightRegion |
| 5925 * | 6219 * |
| 5926 * { | 6220 * { |
| 5927 * "type": HighlightRegionType | 6221 * "type": HighlightRegionType |
| 5928 * "offset": int | 6222 * "offset": int |
| 5929 * "length": int | 6223 * "length": int |
| 5930 * } | 6224 * } |
| 5931 */ | 6225 */ |
| 5932 class HighlightRegion implements HasToJson { | 6226 class HighlightRegion { |
| 5933 /** | 6227 /** |
| 5934 * The type of highlight associated with the region. | 6228 * The type of highlight associated with the region. |
| 5935 */ | 6229 */ |
| 5936 HighlightRegionType type; | 6230 HighlightRegionType type; |
| 5937 | 6231 |
| 5938 /** | 6232 /** |
| 5939 * The offset of the region to be highlighted. | 6233 * The offset of the region to be highlighted. |
| 5940 */ | 6234 */ |
| 5941 int offset; | 6235 int offset; |
| 5942 | 6236 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6225 * "containingLibraryPath": optional String | 6519 * "containingLibraryPath": optional String |
| 6226 * "containingLibraryName": optional String | 6520 * "containingLibraryName": optional String |
| 6227 * "dartdoc": optional String | 6521 * "dartdoc": optional String |
| 6228 * "elementDescription": optional String | 6522 * "elementDescription": optional String |
| 6229 * "elementKind": optional String | 6523 * "elementKind": optional String |
| 6230 * "parameter": optional String | 6524 * "parameter": optional String |
| 6231 * "propagatedType": optional String | 6525 * "propagatedType": optional String |
| 6232 * "staticType": optional String | 6526 * "staticType": optional String |
| 6233 * } | 6527 * } |
| 6234 */ | 6528 */ |
| 6235 class HoverInformation implements HasToJson { | 6529 class HoverInformation { |
| 6236 /** | 6530 /** |
| 6237 * The offset of the range of characters that encompases the cursor position | 6531 * The offset of the range of characters that encompases the cursor position |
| 6238 * and has the same hover information as the cursor position. | 6532 * and has the same hover information as the cursor position. |
| 6239 */ | 6533 */ |
| 6240 int offset; | 6534 int offset; |
| 6241 | 6535 |
| 6242 /** | 6536 /** |
| 6243 * The length of the range of characters that encompases the cursor position | 6537 * The length of the range of characters that encompases the cursor position |
| 6244 * and has the same hover information as the cursor position. | 6538 * and has the same hover information as the cursor position. |
| 6245 */ | 6539 */ |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6426 | 6720 |
| 6427 /** | 6721 /** |
| 6428 * LinkedEditGroup | 6722 * LinkedEditGroup |
| 6429 * | 6723 * |
| 6430 * { | 6724 * { |
| 6431 * "positions": List<Position> | 6725 * "positions": List<Position> |
| 6432 * "length": int | 6726 * "length": int |
| 6433 * "suggestions": List<LinkedEditSuggestion> | 6727 * "suggestions": List<LinkedEditSuggestion> |
| 6434 * } | 6728 * } |
| 6435 */ | 6729 */ |
| 6436 class LinkedEditGroup implements HasToJson { | 6730 class LinkedEditGroup { |
| 6437 /** | 6731 /** |
| 6438 * The positions of the regions that should be edited simultaneously. | 6732 * The positions of the regions that should be edited simultaneously. |
| 6439 */ | 6733 */ |
| 6440 List<Position> positions; | 6734 List<Position> positions; |
| 6441 | 6735 |
| 6442 /** | 6736 /** |
| 6443 * The length of the regions that should be edited simultaneously. | 6737 * The length of the regions that should be edited simultaneously. |
| 6444 */ | 6738 */ |
| 6445 int length; | 6739 int length; |
| 6446 | 6740 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6533 } | 6827 } |
| 6534 | 6828 |
| 6535 /** | 6829 /** |
| 6536 * LinkedEditSuggestion | 6830 * LinkedEditSuggestion |
| 6537 * | 6831 * |
| 6538 * { | 6832 * { |
| 6539 * "value": String | 6833 * "value": String |
| 6540 * "kind": LinkedEditSuggestionKind | 6834 * "kind": LinkedEditSuggestionKind |
| 6541 * } | 6835 * } |
| 6542 */ | 6836 */ |
| 6543 class LinkedEditSuggestion implements HasToJson { | 6837 class LinkedEditSuggestion { |
| 6544 /** | 6838 /** |
| 6545 * The value that could be used to replace all of the linked edit regions. | 6839 * The value that could be used to replace all of the linked edit regions. |
| 6546 */ | 6840 */ |
| 6547 String value; | 6841 String value; |
| 6548 | 6842 |
| 6549 /** | 6843 /** |
| 6550 * The kind of value being proposed. | 6844 * The kind of value being proposed. |
| 6551 */ | 6845 */ |
| 6552 LinkedEditSuggestionKind kind; | 6846 LinkedEditSuggestionKind kind; |
| 6553 | 6847 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6662 * Location | 6956 * Location |
| 6663 * | 6957 * |
| 6664 * { | 6958 * { |
| 6665 * "file": FilePath | 6959 * "file": FilePath |
| 6666 * "offset": int | 6960 * "offset": int |
| 6667 * "length": int | 6961 * "length": int |
| 6668 * "startLine": int | 6962 * "startLine": int |
| 6669 * "startColumn": int | 6963 * "startColumn": int |
| 6670 * } | 6964 * } |
| 6671 */ | 6965 */ |
| 6672 class Location implements HasToJson { | 6966 class Location { |
| 6673 /** | 6967 /** |
| 6674 * The file containing the range. | 6968 * The file containing the range. |
| 6675 */ | 6969 */ |
| 6676 String file; | 6970 String file; |
| 6677 | 6971 |
| 6678 /** | 6972 /** |
| 6679 * The offset of the range. | 6973 * The offset of the range. |
| 6680 */ | 6974 */ |
| 6681 int offset; | 6975 int offset; |
| 6682 | 6976 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6803 | 7097 |
| 6804 /** | 7098 /** |
| 6805 * NavigationRegion | 7099 * NavigationRegion |
| 6806 * | 7100 * |
| 6807 * { | 7101 * { |
| 6808 * "offset": int | 7102 * "offset": int |
| 6809 * "length": int | 7103 * "length": int |
| 6810 * "targets": List<Element> | 7104 * "targets": List<Element> |
| 6811 * } | 7105 * } |
| 6812 */ | 7106 */ |
| 6813 class NavigationRegion implements HasToJson { | 7107 class NavigationRegion { |
| 6814 /** | 7108 /** |
| 6815 * The offset of the region from which the user can navigate. | 7109 * The offset of the region from which the user can navigate. |
| 6816 */ | 7110 */ |
| 6817 int offset; | 7111 int offset; |
| 6818 | 7112 |
| 6819 /** | 7113 /** |
| 6820 * The length of the region from which the user can navigate. | 7114 * The length of the region from which the user can navigate. |
| 6821 */ | 7115 */ |
| 6822 int length; | 7116 int length; |
| 6823 | 7117 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6891 | 7185 |
| 6892 /** | 7186 /** |
| 6893 * Occurrences | 7187 * Occurrences |
| 6894 * | 7188 * |
| 6895 * { | 7189 * { |
| 6896 * "element": Element | 7190 * "element": Element |
| 6897 * "offsets": List<int> | 7191 * "offsets": List<int> |
| 6898 * "length": int | 7192 * "length": int |
| 6899 * } | 7193 * } |
| 6900 */ | 7194 */ |
| 6901 class Occurrences implements HasToJson { | 7195 class Occurrences { |
| 6902 /** | 7196 /** |
| 6903 * The element that was referenced. | 7197 * The element that was referenced. |
| 6904 */ | 7198 */ |
| 6905 Element element; | 7199 Element element; |
| 6906 | 7200 |
| 6907 /** | 7201 /** |
| 6908 * The offsets of the name of the referenced element within the file. | 7202 * The offsets of the name of the referenced element within the file. |
| 6909 */ | 7203 */ |
| 6910 List<int> offsets; | 7204 List<int> offsets; |
| 6911 | 7205 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6979 /** | 7273 /** |
| 6980 * Outline | 7274 * Outline |
| 6981 * | 7275 * |
| 6982 * { | 7276 * { |
| 6983 * "element": Element | 7277 * "element": Element |
| 6984 * "offset": int | 7278 * "offset": int |
| 6985 * "length": int | 7279 * "length": int |
| 6986 * "children": optional List<Outline> | 7280 * "children": optional List<Outline> |
| 6987 * } | 7281 * } |
| 6988 */ | 7282 */ |
| 6989 class Outline implements HasToJson { | 7283 class Outline { |
| 6990 /** | 7284 /** |
| 6991 * A description of the element represented by this node. | 7285 * A description of the element represented by this node. |
| 6992 */ | 7286 */ |
| 6993 Element element; | 7287 Element element; |
| 6994 | 7288 |
| 6995 /** | 7289 /** |
| 6996 * The offset of the first character of the element. This is different than | 7290 * The offset of the first character of the element. This is different than |
| 6997 * the offset in the Element, which if the offset of the name of the element. | 7291 * the offset in the Element, which if the offset of the name of the element. |
| 6998 * It can be used, for example, to map locations in the file back to an | 7292 * It can be used, for example, to map locations in the file back to an |
| 6999 * outline. | 7293 * outline. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7091 /** | 7385 /** |
| 7092 * Override | 7386 * Override |
| 7093 * | 7387 * |
| 7094 * { | 7388 * { |
| 7095 * "offset": int | 7389 * "offset": int |
| 7096 * "length": int | 7390 * "length": int |
| 7097 * "superclassMember": optional OverriddenMember | 7391 * "superclassMember": optional OverriddenMember |
| 7098 * "interfaceMembers": optional List<OverriddenMember> | 7392 * "interfaceMembers": optional List<OverriddenMember> |
| 7099 * } | 7393 * } |
| 7100 */ | 7394 */ |
| 7101 class Override implements HasToJson { | 7395 class Override { |
| 7102 /** | 7396 /** |
| 7103 * The offset of the name of the overriding member. | 7397 * The offset of the name of the overriding member. |
| 7104 */ | 7398 */ |
| 7105 int offset; | 7399 int offset; |
| 7106 | 7400 |
| 7107 /** | 7401 /** |
| 7108 * The length of the name of the overriding member. | 7402 * The length of the name of the overriding member. |
| 7109 */ | 7403 */ |
| 7110 int length; | 7404 int length; |
| 7111 | 7405 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7201 } | 7495 } |
| 7202 | 7496 |
| 7203 /** | 7497 /** |
| 7204 * OverriddenMember | 7498 * OverriddenMember |
| 7205 * | 7499 * |
| 7206 * { | 7500 * { |
| 7207 * "element": Element | 7501 * "element": Element |
| 7208 * "className": String | 7502 * "className": String |
| 7209 * } | 7503 * } |
| 7210 */ | 7504 */ |
| 7211 class OverriddenMember implements HasToJson { | 7505 class OverriddenMember { |
| 7212 /** | 7506 /** |
| 7213 * The element that is being overridden. | 7507 * The element that is being overridden. |
| 7214 */ | 7508 */ |
| 7215 Element element; | 7509 Element element; |
| 7216 | 7510 |
| 7217 /** | 7511 /** |
| 7218 * The name of the class in which the member is defined. | 7512 * The name of the class in which the member is defined. |
| 7219 */ | 7513 */ |
| 7220 String className; | 7514 String className; |
| 7221 | 7515 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7279 } | 7573 } |
| 7280 | 7574 |
| 7281 /** | 7575 /** |
| 7282 * Position | 7576 * Position |
| 7283 * | 7577 * |
| 7284 * { | 7578 * { |
| 7285 * "file": FilePath | 7579 * "file": FilePath |
| 7286 * "offset": int | 7580 * "offset": int |
| 7287 * } | 7581 * } |
| 7288 */ | 7582 */ |
| 7289 class Position implements HasToJson { | 7583 class Position { |
| 7290 /** | 7584 /** |
| 7291 * The file containing the position. | 7585 * The file containing the position. |
| 7292 */ | 7586 */ |
| 7293 String file; | 7587 String file; |
| 7294 | 7588 |
| 7295 /** | 7589 /** |
| 7296 * The offset of the position. | 7590 * The offset of the position. |
| 7297 */ | 7591 */ |
| 7298 int offset; | 7592 int offset; |
| 7299 | 7593 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7423 * RefactoringMethodParameter | 7717 * RefactoringMethodParameter |
| 7424 * | 7718 * |
| 7425 * { | 7719 * { |
| 7426 * "id": optional String | 7720 * "id": optional String |
| 7427 * "kind": RefactoringMethodParameterKind | 7721 * "kind": RefactoringMethodParameterKind |
| 7428 * "type": String | 7722 * "type": String |
| 7429 * "name": String | 7723 * "name": String |
| 7430 * "parameters": optional String | 7724 * "parameters": optional String |
| 7431 * } | 7725 * } |
| 7432 */ | 7726 */ |
| 7433 class RefactoringMethodParameter implements HasToJson { | 7727 class RefactoringMethodParameter { |
| 7434 /** | 7728 /** |
| 7435 * The unique identifier of the parameter. Clients may omit this field for | 7729 * The unique identifier of the parameter. Clients may omit this field for |
| 7436 * the parameters they want to add. | 7730 * the parameters they want to add. |
| 7437 */ | 7731 */ |
| 7438 String id; | 7732 String id; |
| 7439 | 7733 |
| 7440 /** | 7734 /** |
| 7441 * The kind of the parameter. | 7735 * The kind of the parameter. |
| 7442 */ | 7736 */ |
| 7443 RefactoringMethodParameterKind kind; | 7737 RefactoringMethodParameterKind kind; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7591 | 7885 |
| 7592 /** | 7886 /** |
| 7593 * RefactoringProblem | 7887 * RefactoringProblem |
| 7594 * | 7888 * |
| 7595 * { | 7889 * { |
| 7596 * "severity": RefactoringProblemSeverity | 7890 * "severity": RefactoringProblemSeverity |
| 7597 * "message": String | 7891 * "message": String |
| 7598 * "location": optional Location | 7892 * "location": optional Location |
| 7599 * } | 7893 * } |
| 7600 */ | 7894 */ |
| 7601 class RefactoringProblem implements HasToJson { | 7895 class RefactoringProblem { |
| 7602 /** | 7896 /** |
| 7603 * The severity of the problem being represented. | 7897 * The severity of the problem being represented. |
| 7604 */ | 7898 */ |
| 7605 RefactoringProblemSeverity severity; | 7899 RefactoringProblemSeverity severity; |
| 7606 | 7900 |
| 7607 /** | 7901 /** |
| 7608 * A human-readable description of the problem being represented. | 7902 * A human-readable description of the problem being represented. |
| 7609 */ | 7903 */ |
| 7610 String message; | 7904 String message; |
| 7611 | 7905 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7738 String toJson() => name; | 8032 String toJson() => name; |
| 7739 } | 8033 } |
| 7740 | 8034 |
| 7741 /** | 8035 /** |
| 7742 * RemoveContentOverlay | 8036 * RemoveContentOverlay |
| 7743 * | 8037 * |
| 7744 * { | 8038 * { |
| 7745 * "type": "remove" | 8039 * "type": "remove" |
| 7746 * } | 8040 * } |
| 7747 */ | 8041 */ |
| 7748 class RemoveContentOverlay implements HasToJson { | 8042 class RemoveContentOverlay { |
| 7749 RemoveContentOverlay(); | 8043 RemoveContentOverlay(); |
| 7750 | 8044 |
| 7751 factory RemoveContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { | 8045 factory RemoveContentOverlay.fromJson(JsonDecoder jsonDecoder, String jsonPath
, Object json) { |
| 7752 if (json == null) { | 8046 if (json == null) { |
| 7753 json = {}; | 8047 json = {}; |
| 7754 } | 8048 } |
| 7755 if (json is Map) { | 8049 if (json is Map) { |
| 7756 if (json["type"] != "remove") { | 8050 if (json["type"] != "remove") { |
| 7757 throw jsonDecoder.mismatch(jsonPath, "equal " + "remove"); | 8051 throw jsonDecoder.mismatch(jsonPath, "equal " + "remove"); |
| 7758 } | 8052 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7790 /** | 8084 /** |
| 7791 * SearchResult | 8085 * SearchResult |
| 7792 * | 8086 * |
| 7793 * { | 8087 * { |
| 7794 * "location": Location | 8088 * "location": Location |
| 7795 * "kind": SearchResultKind | 8089 * "kind": SearchResultKind |
| 7796 * "isPotential": bool | 8090 * "isPotential": bool |
| 7797 * "path": List<Element> | 8091 * "path": List<Element> |
| 7798 * } | 8092 * } |
| 7799 */ | 8093 */ |
| 7800 class SearchResult implements HasToJson { | 8094 class SearchResult { |
| 7801 /** | 8095 /** |
| 7802 * The location of the code that matched the search criteria. | 8096 * The location of the code that matched the search criteria. |
| 7803 */ | 8097 */ |
| 7804 Location location; | 8098 Location location; |
| 7805 | 8099 |
| 7806 /** | 8100 /** |
| 7807 * The kind of element that was found or the kind of reference that was | 8101 * The kind of element that was found or the kind of reference that was |
| 7808 * found. | 8102 * found. |
| 7809 */ | 8103 */ |
| 7810 SearchResultKind kind; | 8104 SearchResultKind kind; |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8039 /** | 8333 /** |
| 8040 * SourceChange | 8334 * SourceChange |
| 8041 * | 8335 * |
| 8042 * { | 8336 * { |
| 8043 * "message": String | 8337 * "message": String |
| 8044 * "edits": List<SourceFileEdit> | 8338 * "edits": List<SourceFileEdit> |
| 8045 * "linkedEditGroups": List<LinkedEditGroup> | 8339 * "linkedEditGroups": List<LinkedEditGroup> |
| 8046 * "selection": optional Position | 8340 * "selection": optional Position |
| 8047 * } | 8341 * } |
| 8048 */ | 8342 */ |
| 8049 class SourceChange implements HasToJson { | 8343 class SourceChange { |
| 8050 /** | 8344 /** |
| 8051 * A human-readable description of the change to be applied. | 8345 * A human-readable description of the change to be applied. |
| 8052 */ | 8346 */ |
| 8053 String message; | 8347 String message; |
| 8054 | 8348 |
| 8055 /** | 8349 /** |
| 8056 * A list of the edits used to effect the change, grouped by file. | 8350 * A list of the edits used to effect the change, grouped by file. |
| 8057 */ | 8351 */ |
| 8058 List<SourceFileEdit> edits; | 8352 List<SourceFileEdit> edits; |
| 8059 | 8353 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8175 /** | 8469 /** |
| 8176 * SourceEdit | 8470 * SourceEdit |
| 8177 * | 8471 * |
| 8178 * { | 8472 * { |
| 8179 * "offset": int | 8473 * "offset": int |
| 8180 * "length": int | 8474 * "length": int |
| 8181 * "replacement": String | 8475 * "replacement": String |
| 8182 * "id": optional String | 8476 * "id": optional String |
| 8183 * } | 8477 * } |
| 8184 */ | 8478 */ |
| 8185 class SourceEdit implements HasToJson { | 8479 class SourceEdit { |
| 8186 /** | 8480 /** |
| 8187 * Get the result of applying a set of [edits] to the given [code]. Edits are | 8481 * Get the result of applying a set of [edits] to the given [code]. Edits are |
| 8188 * applied in the order they appear in [edits]. | 8482 * applied in the order they appear in [edits]. |
| 8189 */ | 8483 */ |
| 8190 static String applySequence(String code, Iterable<SourceEdit> edits) => | 8484 static String applySequence(String code, Iterable<SourceEdit> edits) => |
| 8191 _applySequence(code, edits); | 8485 _applySequence(code, edits); |
| 8192 | 8486 |
| 8193 /** | 8487 /** |
| 8194 * The offset of the region to be modified. | 8488 * The offset of the region to be modified. |
| 8195 */ | 8489 */ |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8305 } | 8599 } |
| 8306 | 8600 |
| 8307 /** | 8601 /** |
| 8308 * SourceFileEdit | 8602 * SourceFileEdit |
| 8309 * | 8603 * |
| 8310 * { | 8604 * { |
| 8311 * "file": FilePath | 8605 * "file": FilePath |
| 8312 * "edits": List<SourceEdit> | 8606 * "edits": List<SourceEdit> |
| 8313 * } | 8607 * } |
| 8314 */ | 8608 */ |
| 8315 class SourceFileEdit implements HasToJson { | 8609 class SourceFileEdit { |
| 8316 /** | 8610 /** |
| 8317 * The file containing the code to be modified. | 8611 * The file containing the code to be modified. |
| 8318 */ | 8612 */ |
| 8319 String file; | 8613 String file; |
| 8320 | 8614 |
| 8321 /** | 8615 /** |
| 8322 * A list of the edits used to effect the change. | 8616 * A list of the edits used to effect the change. |
| 8323 */ | 8617 */ |
| 8324 List<SourceEdit> edits; | 8618 List<SourceEdit> edits; |
| 8325 | 8619 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8397 * { | 8691 * { |
| 8398 * "classElement": Element | 8692 * "classElement": Element |
| 8399 * "displayName": optional String | 8693 * "displayName": optional String |
| 8400 * "memberElement": optional Element | 8694 * "memberElement": optional Element |
| 8401 * "superclass": optional int | 8695 * "superclass": optional int |
| 8402 * "interfaces": List<int> | 8696 * "interfaces": List<int> |
| 8403 * "mixins": List<int> | 8697 * "mixins": List<int> |
| 8404 * "subclasses": List<int> | 8698 * "subclasses": List<int> |
| 8405 * } | 8699 * } |
| 8406 */ | 8700 */ |
| 8407 class TypeHierarchyItem implements HasToJson { | 8701 class TypeHierarchyItem { |
| 8408 /** | 8702 /** |
| 8409 * The class element represented by this item. | 8703 * The class element represented by this item. |
| 8410 */ | 8704 */ |
| 8411 Element classElement; | 8705 Element classElement; |
| 8412 | 8706 |
| 8413 /** | 8707 /** |
| 8414 * The name to be displayed for the class. This field will be omitted if the | 8708 * The name to be displayed for the class. This field will be omitted if the |
| 8415 * display name is the same as the name of the element. The display name is | 8709 * display name is the same as the name of the element. The display name is |
| 8416 * different if there is additional type information to be displayed, such as | 8710 * different if there is additional type information to be displayed, such as |
| 8417 * type arguments. | 8711 * type arguments. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8551 hash = _JenkinsSmiHash.combine(hash, classElement.hashCode); | 8845 hash = _JenkinsSmiHash.combine(hash, classElement.hashCode); |
| 8552 hash = _JenkinsSmiHash.combine(hash, displayName.hashCode); | 8846 hash = _JenkinsSmiHash.combine(hash, displayName.hashCode); |
| 8553 hash = _JenkinsSmiHash.combine(hash, memberElement.hashCode); | 8847 hash = _JenkinsSmiHash.combine(hash, memberElement.hashCode); |
| 8554 hash = _JenkinsSmiHash.combine(hash, superclass.hashCode); | 8848 hash = _JenkinsSmiHash.combine(hash, superclass.hashCode); |
| 8555 hash = _JenkinsSmiHash.combine(hash, interfaces.hashCode); | 8849 hash = _JenkinsSmiHash.combine(hash, interfaces.hashCode); |
| 8556 hash = _JenkinsSmiHash.combine(hash, mixins.hashCode); | 8850 hash = _JenkinsSmiHash.combine(hash, mixins.hashCode); |
| 8557 hash = _JenkinsSmiHash.combine(hash, subclasses.hashCode); | 8851 hash = _JenkinsSmiHash.combine(hash, subclasses.hashCode); |
| 8558 return _JenkinsSmiHash.finish(hash); | 8852 return _JenkinsSmiHash.finish(hash); |
| 8559 } | 8853 } |
| 8560 } | 8854 } |
| 8855 /** |
| 8856 * convertGetterToMethod feedback |
| 8857 */ |
| 8858 class ConvertGetterToMethodFeedback { |
| 8859 @override |
| 8860 bool operator==(other) { |
| 8861 if (other is ConvertGetterToMethodFeedback) { |
| 8862 return true; |
| 8863 } |
| 8864 return false; |
| 8865 } |
| 8866 |
| 8867 @override |
| 8868 int get hashCode { |
| 8869 return 616032599; |
| 8870 } |
| 8871 } |
| 8872 /** |
| 8873 * convertGetterToMethod options |
| 8874 */ |
| 8875 class ConvertGetterToMethodOptions { |
| 8876 @override |
| 8877 bool operator==(other) { |
| 8878 if (other is ConvertGetterToMethodOptions) { |
| 8879 return true; |
| 8880 } |
| 8881 return false; |
| 8882 } |
| 8883 |
| 8884 @override |
| 8885 int get hashCode { |
| 8886 return 488848400; |
| 8887 } |
| 8888 } |
| 8889 /** |
| 8890 * convertMethodToGetter feedback |
| 8891 */ |
| 8892 class ConvertMethodToGetterFeedback { |
| 8893 @override |
| 8894 bool operator==(other) { |
| 8895 if (other is ConvertMethodToGetterFeedback) { |
| 8896 return true; |
| 8897 } |
| 8898 return false; |
| 8899 } |
| 8900 |
| 8901 @override |
| 8902 int get hashCode { |
| 8903 return 165291526; |
| 8904 } |
| 8905 } |
| 8906 /** |
| 8907 * convertMethodToGetter options |
| 8908 */ |
| 8909 class ConvertMethodToGetterOptions { |
| 8910 @override |
| 8911 bool operator==(other) { |
| 8912 if (other is ConvertMethodToGetterOptions) { |
| 8913 return true; |
| 8914 } |
| 8915 return false; |
| 8916 } |
| 8917 |
| 8918 @override |
| 8919 int get hashCode { |
| 8920 return 27952290; |
| 8921 } |
| 8922 } |
| 8561 | 8923 |
| 8562 /** | 8924 /** |
| 8563 * extractLocalVariable feedback | 8925 * extractLocalVariable feedback |
| 8564 * | 8926 * |
| 8565 * { | 8927 * { |
| 8566 * "names": List<String> | 8928 * "names": List<String> |
| 8567 * "offsets": List<int> | 8929 * "offsets": List<int> |
| 8568 * "lengths": List<int> | 8930 * "lengths": List<int> |
| 8569 * } | 8931 * } |
| 8570 */ | 8932 */ |
| 8571 class ExtractLocalVariableFeedback implements HasToJson { | 8933 class ExtractLocalVariableFeedback { |
| 8572 /** | 8934 /** |
| 8573 * The proposed names for the local variable. | 8935 * The proposed names for the local variable. |
| 8574 */ | 8936 */ |
| 8575 List<String> names; | 8937 List<String> names; |
| 8576 | 8938 |
| 8577 /** | 8939 /** |
| 8578 * The offsets of the expressions that would be replaced by a reference to | 8940 * The offsets of the expressions that would be replaced by a reference to |
| 8579 * the variable. | 8941 * the variable. |
| 8580 */ | 8942 */ |
| 8581 List<int> offsets; | 8943 List<int> offsets; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8656 } | 9018 } |
| 8657 | 9019 |
| 8658 /** | 9020 /** |
| 8659 * extractLocalVariable options | 9021 * extractLocalVariable options |
| 8660 * | 9022 * |
| 8661 * { | 9023 * { |
| 8662 * "name": String | 9024 * "name": String |
| 8663 * "extractAll": bool | 9025 * "extractAll": bool |
| 8664 * } | 9026 * } |
| 8665 */ | 9027 */ |
| 8666 class ExtractLocalVariableOptions implements HasToJson { | 9028 class ExtractLocalVariableOptions { |
| 8667 /** | 9029 /** |
| 8668 * The name that the local variable should be given. | 9030 * The name that the local variable should be given. |
| 8669 */ | 9031 */ |
| 8670 String name; | 9032 String name; |
| 8671 | 9033 |
| 8672 /** | 9034 /** |
| 8673 * True if all occurrences of the expression within the scope in which the | 9035 * True if all occurrences of the expression within the scope in which the |
| 8674 * variable will be defined should be replaced by a reference to the local | 9036 * variable will be defined should be replaced by a reference to the local |
| 8675 * variable. The expression used to initiate the refactoring will always be | 9037 * variable. The expression used to initiate the refactoring will always be |
| 8676 * replaced. | 9038 * replaced. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8743 * "length": int | 9105 * "length": int |
| 8744 * "returnType": String | 9106 * "returnType": String |
| 8745 * "names": List<String> | 9107 * "names": List<String> |
| 8746 * "canCreateGetter": bool | 9108 * "canCreateGetter": bool |
| 8747 * "parameters": List<RefactoringMethodParameter> | 9109 * "parameters": List<RefactoringMethodParameter> |
| 8748 * "occurrences": int | 9110 * "occurrences": int |
| 8749 * "offsets": List<int> | 9111 * "offsets": List<int> |
| 8750 * "lengths": List<int> | 9112 * "lengths": List<int> |
| 8751 * } | 9113 * } |
| 8752 */ | 9114 */ |
| 8753 class ExtractMethodFeedback implements HasToJson { | 9115 class ExtractMethodFeedback { |
| 8754 /** | 9116 /** |
| 8755 * The offset to the beginning of the expression or statements that will be | 9117 * The offset to the beginning of the expression or statements that will be |
| 8756 * extracted. | 9118 * extracted. |
| 8757 */ | 9119 */ |
| 8758 int offset; | 9120 int offset; |
| 8759 | 9121 |
| 8760 /** | 9122 /** |
| 8761 * The length of the expression or statements that will be extracted. | 9123 * The length of the expression or statements that will be extracted. |
| 8762 */ | 9124 */ |
| 8763 int length; | 9125 int length; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8927 * extractMethod options | 9289 * extractMethod options |
| 8928 * | 9290 * |
| 8929 * { | 9291 * { |
| 8930 * "returnType": String | 9292 * "returnType": String |
| 8931 * "createGetter": bool | 9293 * "createGetter": bool |
| 8932 * "name": String | 9294 * "name": String |
| 8933 * "parameters": List<RefactoringMethodParameter> | 9295 * "parameters": List<RefactoringMethodParameter> |
| 8934 * "extractAll": bool | 9296 * "extractAll": bool |
| 8935 * } | 9297 * } |
| 8936 */ | 9298 */ |
| 8937 class ExtractMethodOptions implements HasToJson { | 9299 class ExtractMethodOptions { |
| 8938 /** | 9300 /** |
| 8939 * The return type that should be defined for the method. | 9301 * The return type that should be defined for the method. |
| 8940 */ | 9302 */ |
| 8941 String returnType; | 9303 String returnType; |
| 8942 | 9304 |
| 8943 /** | 9305 /** |
| 8944 * True if a getter should be created rather than a method. It is an error if | 9306 * True if a getter should be created rather than a method. It is an error if |
| 8945 * this field is true and the list of parameters is non-empty. | 9307 * this field is true and the list of parameters is non-empty. |
| 8946 */ | 9308 */ |
| 8947 bool createGetter; | 9309 bool createGetter; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9049 int get hashCode { | 9411 int get hashCode { |
| 9050 int hash = 0; | 9412 int hash = 0; |
| 9051 hash = _JenkinsSmiHash.combine(hash, returnType.hashCode); | 9413 hash = _JenkinsSmiHash.combine(hash, returnType.hashCode); |
| 9052 hash = _JenkinsSmiHash.combine(hash, createGetter.hashCode); | 9414 hash = _JenkinsSmiHash.combine(hash, createGetter.hashCode); |
| 9053 hash = _JenkinsSmiHash.combine(hash, name.hashCode); | 9415 hash = _JenkinsSmiHash.combine(hash, name.hashCode); |
| 9054 hash = _JenkinsSmiHash.combine(hash, parameters.hashCode); | 9416 hash = _JenkinsSmiHash.combine(hash, parameters.hashCode); |
| 9055 hash = _JenkinsSmiHash.combine(hash, extractAll.hashCode); | 9417 hash = _JenkinsSmiHash.combine(hash, extractAll.hashCode); |
| 9056 return _JenkinsSmiHash.finish(hash); | 9418 return _JenkinsSmiHash.finish(hash); |
| 9057 } | 9419 } |
| 9058 } | 9420 } |
| 9421 /** |
| 9422 * inlineLocalVariable feedback |
| 9423 */ |
| 9424 class InlineLocalVariableFeedback { |
| 9425 @override |
| 9426 bool operator==(other) { |
| 9427 if (other is InlineLocalVariableFeedback) { |
| 9428 return true; |
| 9429 } |
| 9430 return false; |
| 9431 } |
| 9432 |
| 9433 @override |
| 9434 int get hashCode { |
| 9435 return 247971243; |
| 9436 } |
| 9437 } |
| 9438 /** |
| 9439 * inlineLocalVariable options |
| 9440 */ |
| 9441 class InlineLocalVariableOptions { |
| 9442 @override |
| 9443 bool operator==(other) { |
| 9444 if (other is InlineLocalVariableOptions) { |
| 9445 return true; |
| 9446 } |
| 9447 return false; |
| 9448 } |
| 9449 |
| 9450 @override |
| 9451 int get hashCode { |
| 9452 return 540364977; |
| 9453 } |
| 9454 } |
| 9455 /** |
| 9456 * inlineMethod feedback |
| 9457 */ |
| 9458 class InlineMethodFeedback { |
| 9459 @override |
| 9460 bool operator==(other) { |
| 9461 if (other is InlineMethodFeedback) { |
| 9462 return true; |
| 9463 } |
| 9464 return false; |
| 9465 } |
| 9466 |
| 9467 @override |
| 9468 int get hashCode { |
| 9469 return 882400079; |
| 9470 } |
| 9471 } |
| 9059 | 9472 |
| 9060 /** | 9473 /** |
| 9061 * inlineMethod options | 9474 * inlineMethod options |
| 9062 * | 9475 * |
| 9063 * { | 9476 * { |
| 9064 * "deleteSource": bool | 9477 * "deleteSource": bool |
| 9065 * "inlineAll": bool | 9478 * "inlineAll": bool |
| 9066 * } | 9479 * } |
| 9067 */ | 9480 */ |
| 9068 class InlineMethodOptions implements HasToJson { | 9481 class InlineMethodOptions { |
| 9069 /** | 9482 /** |
| 9070 * True if the method being inlined should be removed. It is an error if this | 9483 * True if the method being inlined should be removed. It is an error if this |
| 9071 * field is true and inlineAll is false. | 9484 * field is true and inlineAll is false. |
| 9072 */ | 9485 */ |
| 9073 bool deleteSource; | 9486 bool deleteSource; |
| 9074 | 9487 |
| 9075 /** | 9488 /** |
| 9076 * True if all invocations of the method should be inlined, or false if only | 9489 * True if all invocations of the method should be inlined, or false if only |
| 9077 * the invocation site used to create this refactoring should be inlined. | 9490 * the invocation site used to create this refactoring should be inlined. |
| 9078 */ | 9491 */ |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9137 } | 9550 } |
| 9138 | 9551 |
| 9139 /** | 9552 /** |
| 9140 * rename feedback | 9553 * rename feedback |
| 9141 * | 9554 * |
| 9142 * { | 9555 * { |
| 9143 * "offset": int | 9556 * "offset": int |
| 9144 * "length": int | 9557 * "length": int |
| 9145 * } | 9558 * } |
| 9146 */ | 9559 */ |
| 9147 class RenameFeedback implements HasToJson { | 9560 class RenameFeedback { |
| 9148 /** | 9561 /** |
| 9149 * The offset to the beginning of the name selected to be renamed. | 9562 * The offset to the beginning of the name selected to be renamed. |
| 9150 */ | 9563 */ |
| 9151 int offset; | 9564 int offset; |
| 9152 | 9565 |
| 9153 /** | 9566 /** |
| 9154 * The length of the name selected to be renamed. | 9567 * The length of the name selected to be renamed. |
| 9155 */ | 9568 */ |
| 9156 int length; | 9569 int length; |
| 9157 | 9570 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9213 } | 9626 } |
| 9214 } | 9627 } |
| 9215 | 9628 |
| 9216 /** | 9629 /** |
| 9217 * rename options | 9630 * rename options |
| 9218 * | 9631 * |
| 9219 * { | 9632 * { |
| 9220 * "newName": String | 9633 * "newName": String |
| 9221 * } | 9634 * } |
| 9222 */ | 9635 */ |
| 9223 class RenameOptions implements HasToJson { | 9636 class RenameOptions { |
| 9224 /** | 9637 /** |
| 9225 * The name that the element should have after the refactoring. | 9638 * The name that the element should have after the refactoring. |
| 9226 */ | 9639 */ |
| 9227 String newName; | 9640 String newName; |
| 9228 | 9641 |
| 9229 RenameOptions(this.newName); | 9642 RenameOptions(this.newName); |
| 9230 | 9643 |
| 9231 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { | 9644 factory RenameOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Objec
t json) { |
| 9232 if (json == null) { | 9645 if (json == null) { |
| 9233 json = {}; | 9646 json = {}; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9267 return false; | 9680 return false; |
| 9268 } | 9681 } |
| 9269 | 9682 |
| 9270 @override | 9683 @override |
| 9271 int get hashCode { | 9684 int get hashCode { |
| 9272 int hash = 0; | 9685 int hash = 0; |
| 9273 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 9686 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 9274 return _JenkinsSmiHash.finish(hash); | 9687 return _JenkinsSmiHash.finish(hash); |
| 9275 } | 9688 } |
| 9276 } | 9689 } |
| OLD | NEW |