• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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            },
16            "end": {
17              "line": 1,
18              "column": 1
19            }
20          }
21        },
22        "superClass": null,
23        "implements": [],
24        "body": [
25          {
26            "type": "MethodDefinition",
27            "key": {
28              "type": "Identifier",
29              "name": "_$init$_",
30              "decorators": [],
31              "loc": {
32                "start": {
33                  "line": 1,
34                  "column": 1
35                },
36                "end": {
37                  "line": 1,
38                  "column": 1
39                }
40              }
41            },
42            "kind": "method",
43            "accessibility": "public",
44            "static": true,
45            "optional": false,
46            "computed": false,
47            "value": {
48              "type": "FunctionExpression",
49              "function": {
50                "type": "ScriptFunction",
51                "id": {
52                  "type": "Identifier",
53                  "name": "_$init$_",
54                  "decorators": [],
55                  "loc": {
56                    "start": {
57                      "line": 1,
58                      "column": 1
59                    },
60                    "end": {
61                      "line": 1,
62                      "column": 1
63                    }
64                  }
65                },
66                "generator": false,
67                "async": false,
68                "expression": false,
69                "params": [],
70                "body": {
71                  "type": "BlockStatement",
72                  "statements": [
73                    {
74                      "type": "ExpressionStatement",
75                      "expression": {
76                        "type": "AssignmentExpression",
77                        "operator": "=",
78                        "left": {
79                          "type": "Identifier",
80                          "name": "s",
81                          "decorators": [],
82                          "loc": {
83                            "start": {
84                              "line": 16,
85                              "column": 5
86                            },
87                            "end": {
88                              "line": 16,
89                              "column": 6
90                            }
91                          }
92                        },
93                        "right": {
94                          "type": "ETSNewClassInstanceExpression",
95                          "typeReference": {
96                            "type": "ETSTypeReference",
97                            "part": {
98                              "type": "ETSTypeReferencePart",
99                              "name": {
100                                "type": "Identifier",
101                                "name": "Double",
102                                "decorators": [],
103                                "loc": {
104                                  "start": {
105                                    "line": 16,
106                                    "column": 22
107                                  },
108                                  "end": {
109                                    "line": 16,
110                                    "column": 28
111                                  }
112                                }
113                              },
114                              "loc": {
115                                "start": {
116                                  "line": 16,
117                                  "column": 22
118                                },
119                                "end": {
120                                  "line": 16,
121                                  "column": 29
122                                }
123                              }
124                            },
125                            "loc": {
126                              "start": {
127                                "line": 16,
128                                "column": 22
129                              },
130                              "end": {
131                                "line": 16,
132                                "column": 29
133                              }
134                            }
135                          },
136                          "arguments": [
137                            {
138                              "type": "NumberLiteral",
139                              "value": -1.1e-20,
140                              "loc": {
141                                "start": {
142                                  "line": 16,
143                                  "column": 29
144                                },
145                                "end": {
146                                  "line": 16,
147                                  "column": 37
148                                }
149                              }
150                            }
151                          ],
152                          "loc": {
153                            "start": {
154                              "line": 16,
155                              "column": 18
156                            },
157                            "end": {
158                              "line": 18,
159                              "column": 9
160                            }
161                          }
162                        },
163                        "loc": {
164                          "start": {
165                            "line": 16,
166                            "column": 5
167                          },
168                          "end": {
169                            "line": 18,
170                            "column": 9
171                          }
172                        }
173                      },
174                      "loc": {
175                        "start": {
176                          "line": 16,
177                          "column": 5
178                        },
179                        "end": {
180                          "line": 18,
181                          "column": 9
182                        }
183                      }
184                    }
185                  ],
186                  "loc": {
187                    "start": {
188                      "line": 1,
189                      "column": 1
190                    },
191                    "end": {
192                      "line": 1,
193                      "column": 1
194                    }
195                  }
196                },
197                "loc": {
198                  "start": {
199                    "line": 1,
200                    "column": 1
201                  },
202                  "end": {
203                    "line": 1,
204                    "column": 1
205                  }
206                }
207              },
208              "loc": {
209                "start": {
210                  "line": 1,
211                  "column": 1
212                },
213                "end": {
214                  "line": 1,
215                  "column": 1
216                }
217              }
218            },
219            "overloads": [],
220            "decorators": [],
221            "loc": {
222              "start": {
223                "line": 1,
224                "column": 1
225              },
226              "end": {
227                "line": 1,
228                "column": 1
229              }
230            }
231          },
232          {
233            "type": "ClassProperty",
234            "key": {
235              "type": "Identifier",
236              "name": "s",
237              "decorators": [],
238              "loc": {
239                "start": {
240                  "line": 16,
241                  "column": 5
242                },
243                "end": {
244                  "line": 16,
245                  "column": 6
246                }
247              }
248            },
249            "accessibility": "public",
250            "static": true,
251            "readonly": false,
252            "declare": false,
253            "optional": false,
254            "computed": false,
255            "typeAnnotation": {
256              "type": "ETSTypeReference",
257              "part": {
258                "type": "ETSTypeReferencePart",
259                "name": {
260                  "type": "Identifier",
261                  "name": "Double",
262                  "decorators": [],
263                  "loc": {
264                    "start": {
265                      "line": 16,
266                      "column": 9
267                    },
268                    "end": {
269                      "line": 16,
270                      "column": 15
271                    }
272                  }
273                },
274                "loc": {
275                  "start": {
276                    "line": 16,
277                    "column": 9
278                  },
279                  "end": {
280                    "line": 16,
281                    "column": 17
282                  }
283                }
284              },
285              "loc": {
286                "start": {
287                  "line": 16,
288                  "column": 9
289                },
290                "end": {
291                  "line": 16,
292                  "column": 17
293                }
294              }
295            },
296            "definite": false,
297            "decorators": [],
298            "loc": {
299              "start": {
300                "line": 16,
301                "column": 5
302              },
303              "end": {
304                "line": 18,
305                "column": 9
306              }
307            }
308          },
309          {
310            "type": "MethodDefinition",
311            "key": {
312              "type": "Identifier",
313              "name": "main",
314              "decorators": [],
315              "loc": {
316                "start": {
317                  "line": 18,
318                  "column": 10
319                },
320                "end": {
321                  "line": 18,
322                  "column": 14
323                }
324              }
325            },
326            "kind": "method",
327            "accessibility": "public",
328            "static": true,
329            "optional": false,
330            "computed": false,
331            "value": {
332              "type": "FunctionExpression",
333              "function": {
334                "type": "ScriptFunction",
335                "id": {
336                  "type": "Identifier",
337                  "name": "main",
338                  "decorators": [],
339                  "loc": {
340                    "start": {
341                      "line": 18,
342                      "column": 10
343                    },
344                    "end": {
345                      "line": 18,
346                      "column": 14
347                    }
348                  }
349                },
350                "generator": false,
351                "async": false,
352                "expression": false,
353                "params": [],
354                "body": {
355                  "type": "BlockStatement",
356                  "statements": [
357                    {
358                      "type": "VariableDeclaration",
359                      "declarations": [
360                        {
361                          "type": "VariableDeclarator",
362                          "id": {
363                            "type": "Identifier",
364                            "name": "c",
365                            "typeAnnotation": {
366                              "type": "ETSUnionType",
367                              "types": [
368                                {
369                                  "type": "ETSTypeReference",
370                                  "part": {
371                                    "type": "ETSTypeReferencePart",
372                                    "name": {
373                                      "type": "Identifier",
374                                      "name": "Float",
375                                      "decorators": [],
376                                      "loc": {
377                                        "start": {
378                                          "line": 19,
379                                          "column": 15
380                                        },
381                                        "end": {
382                                          "line": 19,
383                                          "column": 20
384                                        }
385                                      }
386                                    },
387                                    "loc": {
388                                      "start": {
389                                        "line": 19,
390                                        "column": 15
391                                      },
392                                      "end": {
393                                        "line": 19,
394                                        "column": 22
395                                      }
396                                    }
397                                  },
398                                  "loc": {
399                                    "start": {
400                                      "line": 19,
401                                      "column": 15
402                                    },
403                                    "end": {
404                                      "line": 19,
405                                      "column": 22
406                                    }
407                                  }
408                                },
409                                {
410                                  "type": "ETSTypeReference",
411                                  "part": {
412                                    "type": "ETSTypeReferencePart",
413                                    "name": {
414                                      "type": "Identifier",
415                                      "name": "Double",
416                                      "decorators": [],
417                                      "loc": {
418                                        "start": {
419                                          "line": 19,
420                                          "column": 23
421                                        },
422                                        "end": {
423                                          "line": 19,
424                                          "column": 29
425                                        }
426                                      }
427                                    },
428                                    "loc": {
429                                      "start": {
430                                        "line": 19,
431                                        "column": 23
432                                      },
433                                      "end": {
434                                        "line": 19,
435                                        "column": 31
436                                      }
437                                    }
438                                  },
439                                  "loc": {
440                                    "start": {
441                                      "line": 19,
442                                      "column": 23
443                                    },
444                                    "end": {
445                                      "line": 19,
446                                      "column": 31
447                                    }
448                                  }
449                                },
450                                {
451                                  "type": "ETSTypeReference",
452                                  "part": {
453                                    "type": "ETSTypeReferencePart",
454                                    "name": {
455                                      "type": "Identifier",
456                                      "name": "Number",
457                                      "decorators": [],
458                                      "loc": {
459                                        "start": {
460                                          "line": 19,
461                                          "column": 32
462                                        },
463                                        "end": {
464                                          "line": 19,
465                                          "column": 38
466                                        }
467                                      }
468                                    },
469                                    "loc": {
470                                      "start": {
471                                        "line": 19,
472                                        "column": 32
473                                      },
474                                      "end": {
475                                        "line": 19,
476                                        "column": 40
477                                      }
478                                    }
479                                  },
480                                  "loc": {
481                                    "start": {
482                                      "line": 19,
483                                      "column": 32
484                                    },
485                                    "end": {
486                                      "line": 19,
487                                      "column": 40
488                                    }
489                                  }
490                                }
491                              ],
492                              "loc": {
493                                "start": {
494                                  "line": 19,
495                                  "column": 15
496                                },
497                                "end": {
498                                  "line": 19,
499                                  "column": 40
500                                }
501                              }
502                            },
503                            "decorators": [],
504                            "loc": {
505                              "start": {
506                                "line": 19,
507                                "column": 11
508                              },
509                              "end": {
510                                "line": 19,
511                                "column": 12
512                              }
513                            }
514                          },
515                          "init": {
516                            "type": "Identifier",
517                            "name": "s",
518                            "decorators": [],
519                            "loc": {
520                              "start": {
521                                "line": 19,
522                                "column": 41
523                              },
524                              "end": {
525                                "line": 19,
526                                "column": 42
527                              }
528                            }
529                          },
530                          "loc": {
531                            "start": {
532                              "line": 19,
533                              "column": 11
534                            },
535                            "end": {
536                              "line": 19,
537                              "column": 42
538                            }
539                          }
540                        }
541                      ],
542                      "kind": "const",
543                      "loc": {
544                        "start": {
545                          "line": 19,
546                          "column": 5
547                        },
548                        "end": {
549                          "line": 19,
550                          "column": 42
551                        }
552                      }
553                    },
554                    {
555                      "type": "AssertStatement",
556                      "test": {
557                        "type": "BinaryExpression",
558                        "operator": "==",
559                        "left": {
560                          "type": "TSAsExpression",
561                          "expression": {
562                            "type": "Identifier",
563                            "name": "c",
564                            "decorators": [],
565                            "loc": {
566                              "start": {
567                                "line": 20,
568                                "column": 12
569                              },
570                              "end": {
571                                "line": 20,
572                                "column": 13
573                              }
574                            }
575                          },
576                          "typeAnnotation": {
577                            "type": "ETSTypeReference",
578                            "part": {
579                              "type": "ETSTypeReferencePart",
580                              "name": {
581                                "type": "Identifier",
582                                "name": "Double",
583                                "decorators": [],
584                                "loc": {
585                                  "start": {
586                                    "line": 20,
587                                    "column": 17
588                                  },
589                                  "end": {
590                                    "line": 20,
591                                    "column": 23
592                                  }
593                                }
594                              },
595                              "loc": {
596                                "start": {
597                                  "line": 20,
598                                  "column": 17
599                                },
600                                "end": {
601                                  "line": 20,
602                                  "column": 26
603                                }
604                              }
605                            },
606                            "loc": {
607                              "start": {
608                                "line": 20,
609                                "column": 17
610                              },
611                              "end": {
612                                "line": 20,
613                                "column": 26
614                              }
615                            }
616                          },
617                          "loc": {
618                            "start": {
619                              "line": 20,
620                              "column": 12
621                            },
622                            "end": {
623                              "line": 20,
624                              "column": 13
625                            }
626                          }
627                        },
628                        "right": {
629                          "type": "NumberLiteral",
630                          "value": -1.1e-20,
631                          "loc": {
632                            "start": {
633                              "line": 20,
634                              "column": 27
635                            },
636                            "end": {
637                              "line": 20,
638                              "column": 35
639                            }
640                          }
641                        },
642                        "loc": {
643                          "start": {
644                            "line": 20,
645                            "column": 12
646                          },
647                          "end": {
648                            "line": 20,
649                            "column": 35
650                          }
651                        }
652                      },
653                      "second": null,
654                      "loc": {
655                        "start": {
656                          "line": 20,
657                          "column": 5
658                        },
659                        "end": {
660                          "line": 20,
661                          "column": 35
662                        }
663                      }
664                    }
665                  ],
666                  "loc": {
667                    "start": {
668                      "line": 18,
669                      "column": 17
670                    },
671                    "end": {
672                      "line": 21,
673                      "column": 2
674                    }
675                  }
676                },
677                "loc": {
678                  "start": {
679                    "line": 18,
680                    "column": 10
681                  },
682                  "end": {
683                    "line": 21,
684                    "column": 2
685                  }
686                }
687              },
688              "loc": {
689                "start": {
690                  "line": 18,
691                  "column": 10
692                },
693                "end": {
694                  "line": 21,
695                  "column": 2
696                }
697              }
698            },
699            "overloads": [],
700            "decorators": [],
701            "loc": {
702              "start": {
703                "line": 18,
704                "column": 1
705              },
706              "end": {
707                "line": 21,
708                "column": 2
709              }
710            }
711          }
712        ],
713        "loc": {
714          "start": {
715            "line": 1,
716            "column": 1
717          },
718          "end": {
719            "line": 1,
720            "column": 1
721          }
722        }
723      },
724      "loc": {
725        "start": {
726          "line": 1,
727          "column": 1
728        },
729        "end": {
730          "line": 1,
731          "column": 1
732        }
733      }
734    }
735  ],
736  "loc": {
737    "start": {
738      "line": 1,
739      "column": 1
740    },
741    "end": {
742      "line": 21,
743      "column": 2
744    }
745  }
746}
747