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": "string_template_2.ets" 16 }, 17 "end": { 18 "line": 1, 19 "column": 1, 20 "program": "string_template_2.ets" 21 } 22 } 23 }, 24 "superClass": null, 25 "implements": [], 26 "body": [ 27 { 28 "type": "MethodDefinition", 29 "key": { 30 "type": "Identifier", 31 "name": "_$init$_", 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": "_$init$_", 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": "string_template_2.ets" 125 }, 126 "end": { 127 "line": 1, 128 "column": 1, 129 "program": "string_template_2.ets" 130 } 131 } 132 }, 133 { 134 "type": "MethodDefinition", 135 "key": { 136 "type": "Identifier", 137 "name": "main", 138 "decorators": [], 139 "loc": { 140 "start": { 141 "line": 16, 142 "column": 10, 143 "program": "string_template_2.ets" 144 }, 145 "end": { 146 "line": 16, 147 "column": 14, 148 "program": "string_template_2.ets" 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": "main", 164 "decorators": [], 165 "loc": { 166 "start": { 167 "line": 16, 168 "column": 10, 169 "program": "string_template_2.ets" 170 }, 171 "end": { 172 "line": 16, 173 "column": 14, 174 "program": "string_template_2.ets" 175 } 176 } 177 }, 178 "generator": false, 179 "async": false, 180 "expression": false, 181 "params": [], 182 "body": { 183 "type": "BlockStatement", 184 "statements": [ 185 { 186 "type": "VariableDeclaration", 187 "declarations": [ 188 { 189 "type": "VariableDeclarator", 190 "id": { 191 "type": "Identifier", 192 "name": "v", 193 "decorators": [], 194 "loc": { 195 "start": { 196 "line": 17, 197 "column": 8, 198 "program": "string_template_2.ets" 199 }, 200 "end": { 201 "line": 17, 202 "column": 9, 203 "program": "string_template_2.ets" 204 } 205 } 206 }, 207 "init": { 208 "type": "TemplateLiteral", 209 "expressions": [ 210 { 211 "type": "BinaryExpression", 212 "operator": "/", 213 "left": { 214 "type": "NumberLiteral", 215 "value": 14, 216 "loc": { 217 "start": { 218 "line": 17, 219 "column": 47, 220 "program": "string_template_2.ets" 221 }, 222 "end": { 223 "line": 17, 224 "column": 49, 225 "program": "string_template_2.ets" 226 } 227 } 228 }, 229 "right": { 230 "type": "NumberLiteral", 231 "value": 2, 232 "loc": { 233 "start": { 234 "line": 17, 235 "column": 50, 236 "program": "string_template_2.ets" 237 }, 238 "end": { 239 "line": 17, 240 "column": 51, 241 "program": "string_template_2.ets" 242 } 243 } 244 }, 245 "loc": { 246 "start": { 247 "line": 17, 248 "column": 47, 249 "program": "string_template_2.ets" 250 }, 251 "end": { 252 "line": 17, 253 "column": 51, 254 "program": "string_template_2.ets" 255 } 256 } 257 } 258 ], 259 "quasis": [ 260 { 261 "type": "TemplateElement", 262 "value": { 263 "raw": "(escaped expression) \${14/2} = ", 264 "cooked": "(escaped expression) ${14/2} = " 265 }, 266 "loc": { 267 "start": { 268 "line": 17, 269 "column": 13, 270 "program": "string_template_2.ets" 271 }, 272 "end": { 273 "line": 17, 274 "column": 45, 275 "program": "string_template_2.ets" 276 } 277 } 278 }, 279 { 280 "type": "TemplateElement", 281 "value": { 282 "raw": "", 283 "cooked": "" 284 }, 285 "loc": { 286 "start": { 287 "line": 17, 288 "column": 52, 289 "program": "string_template_2.ets" 290 }, 291 "end": { 292 "line": 17, 293 "column": 52, 294 "program": "string_template_2.ets" 295 } 296 } 297 } 298 ], 299 "loc": { 300 "start": { 301 "line": 17, 302 "column": 12, 303 "program": "string_template_2.ets" 304 }, 305 "end": { 306 "line": 17, 307 "column": 53, 308 "program": "string_template_2.ets" 309 } 310 } 311 }, 312 "loc": { 313 "start": { 314 "line": 17, 315 "column": 8, 316 "program": "string_template_2.ets" 317 }, 318 "end": { 319 "line": 17, 320 "column": 53, 321 "program": "string_template_2.ets" 322 } 323 } 324 } 325 ], 326 "kind": "const", 327 "loc": { 328 "start": { 329 "line": 17, 330 "column": 2, 331 "program": "string_template_2.ets" 332 }, 333 "end": { 334 "line": 17, 335 "column": 53, 336 "program": "string_template_2.ets" 337 } 338 } 339 }, 340 { 341 "type": "ExpressionStatement", 342 "expression": { 343 "type": "CallExpression", 344 "callee": { 345 "type": "MemberExpression", 346 "object": { 347 "type": "Identifier", 348 "name": "console", 349 "decorators": [], 350 "loc": { 351 "start": { 352 "line": 18, 353 "column": 2, 354 "program": "string_template_2.ets" 355 }, 356 "end": { 357 "line": 18, 358 "column": 9, 359 "program": "string_template_2.ets" 360 } 361 } 362 }, 363 "property": { 364 "type": "Identifier", 365 "name": "log", 366 "decorators": [], 367 "loc": { 368 "start": { 369 "line": 18, 370 "column": 10, 371 "program": "string_template_2.ets" 372 }, 373 "end": { 374 "line": 18, 375 "column": 13, 376 "program": "string_template_2.ets" 377 } 378 } 379 }, 380 "computed": false, 381 "optional": false, 382 "loc": { 383 "start": { 384 "line": 18, 385 "column": 2, 386 "program": "string_template_2.ets" 387 }, 388 "end": { 389 "line": 18, 390 "column": 13, 391 "program": "string_template_2.ets" 392 } 393 } 394 }, 395 "arguments": [ 396 { 397 "type": "Identifier", 398 "name": "v", 399 "decorators": [], 400 "loc": { 401 "start": { 402 "line": 18, 403 "column": 14, 404 "program": "string_template_2.ets" 405 }, 406 "end": { 407 "line": 18, 408 "column": 15, 409 "program": "string_template_2.ets" 410 } 411 } 412 } 413 ], 414 "optional": false, 415 "loc": { 416 "start": { 417 "line": 18, 418 "column": 2, 419 "program": "string_template_2.ets" 420 }, 421 "end": { 422 "line": 18, 423 "column": 16, 424 "program": "string_template_2.ets" 425 } 426 } 427 }, 428 "loc": { 429 "start": { 430 "line": 18, 431 "column": 2, 432 "program": "string_template_2.ets" 433 }, 434 "end": { 435 "line": 18, 436 "column": 16, 437 "program": "string_template_2.ets" 438 } 439 } 440 }, 441 { 442 "type": "VariableDeclaration", 443 "declarations": [ 444 { 445 "type": "VariableDeclarator", 446 "id": { 447 "type": "Identifier", 448 "name": "expected", 449 "decorators": [], 450 "loc": { 451 "start": { 452 "line": 19, 453 "column": 8, 454 "program": "string_template_2.ets" 455 }, 456 "end": { 457 "line": 19, 458 "column": 16, 459 "program": "string_template_2.ets" 460 } 461 } 462 }, 463 "init": { 464 "type": "StringLiteral", 465 "value": "(escaped expression) ${14/2} = 7", 466 "loc": { 467 "start": { 468 "line": 19, 469 "column": 19, 470 "program": "string_template_2.ets" 471 }, 472 "end": { 473 "line": 19, 474 "column": 53, 475 "program": "string_template_2.ets" 476 } 477 } 478 }, 479 "loc": { 480 "start": { 481 "line": 19, 482 "column": 8, 483 "program": "string_template_2.ets" 484 }, 485 "end": { 486 "line": 19, 487 "column": 53, 488 "program": "string_template_2.ets" 489 } 490 } 491 } 492 ], 493 "kind": "const", 494 "loc": { 495 "start": { 496 "line": 19, 497 "column": 2, 498 "program": "string_template_2.ets" 499 }, 500 "end": { 501 "line": 19, 502 "column": 53, 503 "program": "string_template_2.ets" 504 } 505 } 506 }, 507 { 508 "type": "ExpressionStatement", 509 "expression": { 510 "type": "CallExpression", 511 "callee": { 512 "type": "Identifier", 513 "name": "assertEQ", 514 "decorators": [], 515 "loc": { 516 "start": { 517 "line": 20, 518 "column": 2, 519 "program": "string_template_2.ets" 520 }, 521 "end": { 522 "line": 20, 523 "column": 10, 524 "program": "string_template_2.ets" 525 } 526 } 527 }, 528 "arguments": [ 529 { 530 "type": "Identifier", 531 "name": "v", 532 "decorators": [], 533 "loc": { 534 "start": { 535 "line": 20, 536 "column": 11, 537 "program": "string_template_2.ets" 538 }, 539 "end": { 540 "line": 20, 541 "column": 12, 542 "program": "string_template_2.ets" 543 } 544 } 545 }, 546 { 547 "type": "Identifier", 548 "name": "expected", 549 "decorators": [], 550 "loc": { 551 "start": { 552 "line": 20, 553 "column": 14, 554 "program": "string_template_2.ets" 555 }, 556 "end": { 557 "line": 20, 558 "column": 22, 559 "program": "string_template_2.ets" 560 } 561 } 562 } 563 ], 564 "optional": false, 565 "loc": { 566 "start": { 567 "line": 20, 568 "column": 2, 569 "program": "string_template_2.ets" 570 }, 571 "end": { 572 "line": 20, 573 "column": 23, 574 "program": "string_template_2.ets" 575 } 576 } 577 }, 578 "loc": { 579 "start": { 580 "line": 20, 581 "column": 2, 582 "program": "string_template_2.ets" 583 }, 584 "end": { 585 "line": 20, 586 "column": 24, 587 "program": "string_template_2.ets" 588 } 589 } 590 } 591 ], 592 "loc": { 593 "start": { 594 "line": 16, 595 "column": 17, 596 "program": "string_template_2.ets" 597 }, 598 "end": { 599 "line": 21, 600 "column": 2, 601 "program": "string_template_2.ets" 602 } 603 } 604 }, 605 "loc": { 606 "start": { 607 "line": 16, 608 "column": 10, 609 "program": "string_template_2.ets" 610 }, 611 "end": { 612 "line": 21, 613 "column": 2, 614 "program": "string_template_2.ets" 615 } 616 } 617 }, 618 "loc": { 619 "start": { 620 "line": 16, 621 "column": 10, 622 "program": "string_template_2.ets" 623 }, 624 "end": { 625 "line": 21, 626 "column": 2, 627 "program": "string_template_2.ets" 628 } 629 } 630 }, 631 "overloads": [], 632 "decorators": [], 633 "loc": { 634 "start": { 635 "line": 16, 636 "column": 1, 637 "program": "string_template_2.ets" 638 }, 639 "end": { 640 "line": 21, 641 "column": 2, 642 "program": "string_template_2.ets" 643 } 644 } 645 } 646 ], 647 "loc": { 648 "start": { 649 "line": 1, 650 "column": 1, 651 "program": "string_template_2.ets" 652 }, 653 "end": { 654 "line": 1, 655 "column": 1, 656 "program": "string_template_2.ets" 657 } 658 } 659 }, 660 "loc": { 661 "start": { 662 "line": 1, 663 "column": 1, 664 "program": "string_template_2.ets" 665 }, 666 "end": { 667 "line": 1, 668 "column": 1, 669 "program": "string_template_2.ets" 670 } 671 } 672 } 673 ], 674 "loc": { 675 "start": { 676 "line": 1, 677 "column": 1, 678 "program": "string_template_2.ets" 679 }, 680 "end": { 681 "line": 21, 682 "column": 2, 683 "program": "string_template_2.ets" 684 } 685 } 686} 687