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_double.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "test_jsvalue_get_double.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_double.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "test_jsvalue_get_double.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": "num_v", 193 "decorators": [], 194 "loc": { 195 "start": { 196 "line": 17, 197 "column": 5, 198 "program": "test_jsvalue_get_double.ets" 199 }, 200 "end": { 201 "line": 17, 202 "column": 10, 203 "program": "test_jsvalue_get_double.ets" 204 } 205 } 206 }, 207 "right": { 208 "type": "Identifier", 209 "name": "v", 210 "decorators": [], 211 "loc": { 212 "start": { 213 "line": 17, 214 "column": 21, 215 "program": "test_jsvalue_get_double.ets" 216 }, 217 "end": { 218 "line": 17, 219 "column": 22, 220 "program": "test_jsvalue_get_double.ets" 221 } 222 } 223 }, 224 "loc": { 225 "start": { 226 "line": 17, 227 "column": 5, 228 "program": "test_jsvalue_get_double.ets" 229 }, 230 "end": { 231 "line": 17, 232 "column": 22, 233 "program": "test_jsvalue_get_double.ets" 234 } 235 } 236 }, 237 "loc": { 238 "start": { 239 "line": 17, 240 "column": 5, 241 "program": "test_jsvalue_get_double.ets" 242 }, 243 "end": { 244 "line": 17, 245 "column": 22, 246 "program": "test_jsvalue_get_double.ets" 247 } 248 } 249 } 250 ], 251 "loc": { 252 "start": { 253 "line": 1, 254 "column": 1, 255 "program": null 256 }, 257 "end": { 258 "line": 1, 259 "column": 1, 260 "program": null 261 } 262 } 263 }, 264 "loc": { 265 "start": { 266 "line": 1, 267 "column": 1, 268 "program": null 269 }, 270 "end": { 271 "line": 1, 272 "column": 1, 273 "program": null 274 } 275 } 276 }, 277 "loc": { 278 "start": { 279 "line": 1, 280 "column": 1, 281 "program": null 282 }, 283 "end": { 284 "line": 1, 285 "column": 1, 286 "program": null 287 } 288 } 289 }, 290 "overloads": [], 291 "decorators": [], 292 "loc": { 293 "start": { 294 "line": 1, 295 "column": 1, 296 "program": "test_jsvalue_get_double.ets" 297 }, 298 "end": { 299 "line": 1, 300 "column": 1, 301 "program": "test_jsvalue_get_double.ets" 302 } 303 } 304 }, 305 { 306 "type": "ClassProperty", 307 "key": { 308 "type": "Identifier", 309 "name": "v", 310 "decorators": [], 311 "loc": { 312 "start": { 313 "line": 16, 314 "column": 5, 315 "program": "test_jsvalue_get_double.ets" 316 }, 317 "end": { 318 "line": 16, 319 "column": 6, 320 "program": "test_jsvalue_get_double.ets" 321 } 322 } 323 }, 324 "accessibility": "public", 325 "static": true, 326 "readonly": false, 327 "declare": false, 328 "optional": false, 329 "computed": false, 330 "typeAnnotation": { 331 "type": "ETSTypeReference", 332 "part": { 333 "type": "ETSTypeReferencePart", 334 "name": { 335 "type": "Identifier", 336 "name": "JSValue", 337 "decorators": [], 338 "loc": { 339 "start": { 340 "line": 16, 341 "column": 8, 342 "program": "test_jsvalue_get_double.ets" 343 }, 344 "end": { 345 "line": 16, 346 "column": 15, 347 "program": "test_jsvalue_get_double.ets" 348 } 349 } 350 }, 351 "loc": { 352 "start": { 353 "line": 16, 354 "column": 8, 355 "program": "test_jsvalue_get_double.ets" 356 }, 357 "end": { 358 "line": 16, 359 "column": 16, 360 "program": "test_jsvalue_get_double.ets" 361 } 362 } 363 }, 364 "loc": { 365 "start": { 366 "line": 16, 367 "column": 8, 368 "program": "test_jsvalue_get_double.ets" 369 }, 370 "end": { 371 "line": 16, 372 "column": 16, 373 "program": "test_jsvalue_get_double.ets" 374 } 375 } 376 }, 377 "definite": false, 378 "decorators": [], 379 "loc": { 380 "start": { 381 "line": 16, 382 "column": 5, 383 "program": "test_jsvalue_get_double.ets" 384 }, 385 "end": { 386 "line": 16, 387 "column": 6, 388 "program": "test_jsvalue_get_double.ets" 389 } 390 } 391 }, 392 { 393 "type": "ClassProperty", 394 "key": { 395 "type": "Identifier", 396 "name": "num_v", 397 "decorators": [], 398 "loc": { 399 "start": { 400 "line": 17, 401 "column": 5, 402 "program": "test_jsvalue_get_double.ets" 403 }, 404 "end": { 405 "line": 17, 406 "column": 10, 407 "program": "test_jsvalue_get_double.ets" 408 } 409 } 410 }, 411 "accessibility": "public", 412 "static": true, 413 "readonly": false, 414 "declare": false, 415 "optional": false, 416 "computed": false, 417 "typeAnnotation": { 418 "type": "ETSPrimitiveType", 419 "loc": { 420 "start": { 421 "line": 17, 422 "column": 12, 423 "program": "test_jsvalue_get_double.ets" 424 }, 425 "end": { 426 "line": 17, 427 "column": 18, 428 "program": "test_jsvalue_get_double.ets" 429 } 430 } 431 }, 432 "definite": false, 433 "decorators": [], 434 "loc": { 435 "start": { 436 "line": 17, 437 "column": 5, 438 "program": "test_jsvalue_get_double.ets" 439 }, 440 "end": { 441 "line": 17, 442 "column": 22, 443 "program": "test_jsvalue_get_double.ets" 444 } 445 } 446 } 447 ], 448 "loc": { 449 "start": { 450 "line": 1, 451 "column": 1, 452 "program": "test_jsvalue_get_double.ets" 453 }, 454 "end": { 455 "line": 1, 456 "column": 1, 457 "program": "test_jsvalue_get_double.ets" 458 } 459 } 460 }, 461 "loc": { 462 "start": { 463 "line": 1, 464 "column": 1, 465 "program": "test_jsvalue_get_double.ets" 466 }, 467 "end": { 468 "line": 1, 469 "column": 1, 470 "program": "test_jsvalue_get_double.ets" 471 } 472 } 473 } 474 ], 475 "loc": { 476 "start": { 477 "line": 1, 478 "column": 1, 479 "program": "test_jsvalue_get_double.ets" 480 }, 481 "end": { 482 "line": 18, 483 "column": 1, 484 "program": "test_jsvalue_get_double.ets" 485 } 486 } 487} 488TypeError: Variable 'v' is used before being assigned. [test_jsvalue_get_double.ets:17:21] 489