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