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