1{ 2 "type": "Program", 3 "statements": [ 4 { 5 "type": "ClassDeclaration", 6 "definition": { 7 "id": { 8 "type": "Identifier", 9 "name": "ETSGLOBAL", 10 "decorators": [], 11 "loc": { 12 "start": { 13 "line": 1, 14 "column": 1, 15 "program": "test_jsvalue_get_property_1.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "test_jsvalue_get_property_1.ets" 21 } 22 } 23 }, 24 "superClass": null, 25 "implements": [], 26 "body": [ 27 { 28 "type": "MethodDefinition", 29 "key": { 30 "type": "Identifier", 31 "name": "main", 32 "decorators": [], 33 "loc": { 34 "start": { 35 "line": 1, 36 "column": 1, 37 "program": null 38 }, 39 "end": { 40 "line": 1, 41 "column": 1, 42 "program": null 43 } 44 } 45 }, 46 "kind": "method", 47 "accessibility": "public", 48 "static": true, 49 "optional": false, 50 "computed": false, 51 "value": { 52 "type": "FunctionExpression", 53 "function": { 54 "type": "ScriptFunction", 55 "id": { 56 "type": "Identifier", 57 "name": "main", 58 "decorators": [], 59 "loc": { 60 "start": { 61 "line": 1, 62 "column": 1, 63 "program": null 64 }, 65 "end": { 66 "line": 1, 67 "column": 1, 68 "program": null 69 } 70 } 71 }, 72 "generator": false, 73 "async": false, 74 "expression": false, 75 "params": [], 76 "body": { 77 "type": "BlockStatement", 78 "statements": [], 79 "loc": { 80 "start": { 81 "line": 1, 82 "column": 1, 83 "program": null 84 }, 85 "end": { 86 "line": 1, 87 "column": 1, 88 "program": null 89 } 90 } 91 }, 92 "loc": { 93 "start": { 94 "line": 1, 95 "column": 1, 96 "program": null 97 }, 98 "end": { 99 "line": 1, 100 "column": 1, 101 "program": null 102 } 103 } 104 }, 105 "loc": { 106 "start": { 107 "line": 1, 108 "column": 1, 109 "program": null 110 }, 111 "end": { 112 "line": 1, 113 "column": 1, 114 "program": null 115 } 116 } 117 }, 118 "overloads": [], 119 "decorators": [], 120 "loc": { 121 "start": { 122 "line": 1, 123 "column": 1, 124 "program": "test_jsvalue_get_property_1.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "test_jsvalue_get_property_1.ets" 130 } 131 } 132 }, 133 { 134 "type": "MethodDefinition", 135 "key": { 136 "type": "Identifier", 137 "name": "_$init$_", 138 "decorators": [], 139 "loc": { 140 "start": { 141 "line": 1, 142 "column": 1, 143 "program": null 144 }, 145 "end": { 146 "line": 1, 147 "column": 1, 148 "program": null 149 } 150 } 151 }, 152 "kind": "method", 153 "accessibility": "public", 154 "static": true, 155 "optional": false, 156 "computed": false, 157 "value": { 158 "type": "FunctionExpression", 159 "function": { 160 "type": "ScriptFunction", 161 "id": { 162 "type": "Identifier", 163 "name": "_$init$_", 164 "decorators": [], 165 "loc": { 166 "start": { 167 "line": 1, 168 "column": 1, 169 "program": null 170 }, 171 "end": { 172 "line": 1, 173 "column": 1, 174 "program": null 175 } 176 } 177 }, 178 "generator": false, 179 "async": false, 180 "expression": false, 181 "params": [], 182 "body": { 183 "type": "BlockStatement", 184 "statements": [ 185 { 186 "type": "ExpressionStatement", 187 "expression": { 188 "type": "AssignmentExpression", 189 "operator": "=", 190 "left": { 191 "type": "Identifier", 192 "name": "prop", 193 "decorators": [], 194 "loc": { 195 "start": { 196 "line": 17, 197 "column": 5, 198 "program": "test_jsvalue_get_property_1.ets" 199 }, 200 "end": { 201 "line": 17, 202 "column": 9, 203 "program": "test_jsvalue_get_property_1.ets" 204 } 205 } 206 }, 207 "right": { 208 "type": "MemberExpression", 209 "object": { 210 "type": "Identifier", 211 "name": "v", 212 "decorators": [], 213 "loc": { 214 "start": { 215 "line": 17, 216 "column": 21, 217 "program": "test_jsvalue_get_property_1.ets" 218 }, 219 "end": { 220 "line": 17, 221 "column": 22, 222 "program": "test_jsvalue_get_property_1.ets" 223 } 224 } 225 }, 226 "property": { 227 "type": "Identifier", 228 "name": "prop_name", 229 "decorators": [], 230 "loc": { 231 "start": { 232 "line": 17, 233 "column": 23, 234 "program": "test_jsvalue_get_property_1.ets" 235 }, 236 "end": { 237 "line": 17, 238 "column": 32, 239 "program": "test_jsvalue_get_property_1.ets" 240 } 241 } 242 }, 243 "computed": false, 244 "optional": false, 245 "loc": { 246 "start": { 247 "line": 17, 248 "column": 21, 249 "program": "test_jsvalue_get_property_1.ets" 250 }, 251 "end": { 252 "line": 17, 253 "column": 32, 254 "program": "test_jsvalue_get_property_1.ets" 255 } 256 } 257 }, 258 "loc": { 259 "start": { 260 "line": 17, 261 "column": 5, 262 "program": "test_jsvalue_get_property_1.ets" 263 }, 264 "end": { 265 "line": 17, 266 "column": 32, 267 "program": "test_jsvalue_get_property_1.ets" 268 } 269 } 270 }, 271 "loc": { 272 "start": { 273 "line": 17, 274 "column": 5, 275 "program": "test_jsvalue_get_property_1.ets" 276 }, 277 "end": { 278 "line": 17, 279 "column": 32, 280 "program": "test_jsvalue_get_property_1.ets" 281 } 282 } 283 } 284 ], 285 "loc": { 286 "start": { 287 "line": 1, 288 "column": 1, 289 "program": null 290 }, 291 "end": { 292 "line": 1, 293 "column": 1, 294 "program": null 295 } 296 } 297 }, 298 "loc": { 299 "start": { 300 "line": 1, 301 "column": 1, 302 "program": null 303 }, 304 "end": { 305 "line": 1, 306 "column": 1, 307 "program": null 308 } 309 } 310 }, 311 "loc": { 312 "start": { 313 "line": 1, 314 "column": 1, 315 "program": null 316 }, 317 "end": { 318 "line": 1, 319 "column": 1, 320 "program": null 321 } 322 } 323 }, 324 "overloads": [], 325 "decorators": [], 326 "loc": { 327 "start": { 328 "line": 1, 329 "column": 1, 330 "program": "test_jsvalue_get_property_1.ets" 331 }, 332 "end": { 333 "line": 1, 334 "column": 1, 335 "program": "test_jsvalue_get_property_1.ets" 336 } 337 } 338 }, 339 { 340 "type": "ClassProperty", 341 "key": { 342 "type": "Identifier", 343 "name": "v", 344 "decorators": [], 345 "loc": { 346 "start": { 347 "line": 16, 348 "column": 5, 349 "program": "test_jsvalue_get_property_1.ets" 350 }, 351 "end": { 352 "line": 16, 353 "column": 6, 354 "program": "test_jsvalue_get_property_1.ets" 355 } 356 } 357 }, 358 "accessibility": "public", 359 "static": true, 360 "readonly": false, 361 "declare": false, 362 "optional": false, 363 "computed": false, 364 "typeAnnotation": { 365 "type": "ETSTypeReference", 366 "part": { 367 "type": "ETSTypeReferencePart", 368 "name": { 369 "type": "Identifier", 370 "name": "JSValue", 371 "decorators": [], 372 "loc": { 373 "start": { 374 "line": 16, 375 "column": 8, 376 "program": "test_jsvalue_get_property_1.ets" 377 }, 378 "end": { 379 "line": 16, 380 "column": 15, 381 "program": "test_jsvalue_get_property_1.ets" 382 } 383 } 384 }, 385 "loc": { 386 "start": { 387 "line": 16, 388 "column": 8, 389 "program": "test_jsvalue_get_property_1.ets" 390 }, 391 "end": { 392 "line": 16, 393 "column": 16, 394 "program": "test_jsvalue_get_property_1.ets" 395 } 396 } 397 }, 398 "loc": { 399 "start": { 400 "line": 16, 401 "column": 8, 402 "program": "test_jsvalue_get_property_1.ets" 403 }, 404 "end": { 405 "line": 16, 406 "column": 16, 407 "program": "test_jsvalue_get_property_1.ets" 408 } 409 } 410 }, 411 "definite": false, 412 "decorators": [], 413 "loc": { 414 "start": { 415 "line": 16, 416 "column": 5, 417 "program": "test_jsvalue_get_property_1.ets" 418 }, 419 "end": { 420 "line": 16, 421 "column": 6, 422 "program": "test_jsvalue_get_property_1.ets" 423 } 424 } 425 }, 426 { 427 "type": "ClassProperty", 428 "key": { 429 "type": "Identifier", 430 "name": "prop", 431 "decorators": [], 432 "loc": { 433 "start": { 434 "line": 17, 435 "column": 5, 436 "program": "test_jsvalue_get_property_1.ets" 437 }, 438 "end": { 439 "line": 17, 440 "column": 9, 441 "program": "test_jsvalue_get_property_1.ets" 442 } 443 } 444 }, 445 "accessibility": "public", 446 "static": true, 447 "readonly": false, 448 "declare": false, 449 "optional": false, 450 "computed": false, 451 "typeAnnotation": { 452 "type": "ETSTypeReference", 453 "part": { 454 "type": "ETSTypeReferencePart", 455 "name": { 456 "type": "Identifier", 457 "name": "JSValue", 458 "decorators": [], 459 "loc": { 460 "start": { 461 "line": 17, 462 "column": 11, 463 "program": "test_jsvalue_get_property_1.ets" 464 }, 465 "end": { 466 "line": 17, 467 "column": 18, 468 "program": "test_jsvalue_get_property_1.ets" 469 } 470 } 471 }, 472 "loc": { 473 "start": { 474 "line": 17, 475 "column": 11, 476 "program": "test_jsvalue_get_property_1.ets" 477 }, 478 "end": { 479 "line": 17, 480 "column": 20, 481 "program": "test_jsvalue_get_property_1.ets" 482 } 483 } 484 }, 485 "loc": { 486 "start": { 487 "line": 17, 488 "column": 11, 489 "program": "test_jsvalue_get_property_1.ets" 490 }, 491 "end": { 492 "line": 17, 493 "column": 20, 494 "program": "test_jsvalue_get_property_1.ets" 495 } 496 } 497 }, 498 "definite": false, 499 "decorators": [], 500 "loc": { 501 "start": { 502 "line": 17, 503 "column": 5, 504 "program": "test_jsvalue_get_property_1.ets" 505 }, 506 "end": { 507 "line": 17, 508 "column": 32, 509 "program": "test_jsvalue_get_property_1.ets" 510 } 511 } 512 } 513 ], 514 "loc": { 515 "start": { 516 "line": 1, 517 "column": 1, 518 "program": "test_jsvalue_get_property_1.ets" 519 }, 520 "end": { 521 "line": 1, 522 "column": 1, 523 "program": "test_jsvalue_get_property_1.ets" 524 } 525 } 526 }, 527 "loc": { 528 "start": { 529 "line": 1, 530 "column": 1, 531 "program": "test_jsvalue_get_property_1.ets" 532 }, 533 "end": { 534 "line": 1, 535 "column": 1, 536 "program": "test_jsvalue_get_property_1.ets" 537 } 538 } 539 } 540 ], 541 "loc": { 542 "start": { 543 "line": 1, 544 "column": 1, 545 "program": "test_jsvalue_get_property_1.ets" 546 }, 547 "end": { 548 "line": 18, 549 "column": 1, 550 "program": "test_jsvalue_get_property_1.ets" 551 } 552 } 553} 554TypeError: Variable 'v' is used before being assigned. [test_jsvalue_get_property_1.ets:17:21] 555