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