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