• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "ImportDeclaration",
6      "source": {
7        "type": "StringLiteral",
8        "value": "dynamic_import_tests",
9        "loc": {
10          "start": {
11            "line": 27,
12            "column": 19,
13            "program": "dynamicObjectLiteral.ets"
14          },
15          "end": {
16            "line": 27,
17            "column": 41,
18            "program": "dynamicObjectLiteral.ets"
19          }
20        }
21      },
22      "specifiers": [
23        {
24          "type": "ImportSpecifier",
25          "local": {
26            "type": "Identifier",
27            "name": "A",
28            "decorators": [],
29            "loc": {
30              "start": {
31                "line": 27,
32                "column": 10,
33                "program": "dynamicObjectLiteral.ets"
34              },
35              "end": {
36                "line": 27,
37                "column": 11,
38                "program": "dynamicObjectLiteral.ets"
39              }
40            }
41          },
42          "imported": {
43            "type": "Identifier",
44            "name": "A",
45            "decorators": [],
46            "loc": {
47              "start": {
48                "line": 27,
49                "column": 10,
50                "program": "dynamicObjectLiteral.ets"
51              },
52              "end": {
53                "line": 27,
54                "column": 11,
55                "program": "dynamicObjectLiteral.ets"
56              }
57            }
58          },
59          "loc": {
60            "start": {
61              "line": 27,
62              "column": 10,
63              "program": "dynamicObjectLiteral.ets"
64            },
65            "end": {
66              "line": 27,
67              "column": 11,
68              "program": "dynamicObjectLiteral.ets"
69            }
70          }
71        }
72      ],
73      "loc": {
74        "start": {
75          "line": 27,
76          "column": 1,
77          "program": "dynamicObjectLiteral.ets"
78        },
79        "end": {
80          "line": 27,
81          "column": 41,
82          "program": "dynamicObjectLiteral.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": "dynamicObjectLiteral.ets"
98            },
99            "end": {
100              "line": 1,
101              "column": 1,
102              "program": "dynamicObjectLiteral.ets"
103            }
104          }
105        },
106        "superClass": null,
107        "implements": [],
108        "body": [
109          {
110            "type": "MethodDefinition",
111            "key": {
112              "type": "Identifier",
113              "name": "_$init$_",
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": "_$init$_",
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": "dynamicObjectLiteral.ets"
207              },
208              "end": {
209                "line": 1,
210                "column": 1,
211                "program": "dynamicObjectLiteral.ets"
212              }
213            }
214          },
215          {
216            "type": "MethodDefinition",
217            "key": {
218              "type": "Identifier",
219              "name": "main",
220              "decorators": [],
221              "loc": {
222                "start": {
223                  "line": 29,
224                  "column": 10,
225                  "program": "dynamicObjectLiteral.ets"
226                },
227                "end": {
228                  "line": 29,
229                  "column": 14,
230                  "program": "dynamicObjectLiteral.ets"
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": "main",
246                  "decorators": [],
247                  "loc": {
248                    "start": {
249                      "line": 29,
250                      "column": 10,
251                      "program": "dynamicObjectLiteral.ets"
252                    },
253                    "end": {
254                      "line": 29,
255                      "column": 14,
256                      "program": "dynamicObjectLiteral.ets"
257                    }
258                  }
259                },
260                "generator": false,
261                "async": false,
262                "expression": false,
263                "params": [],
264                "returnType": {
265                  "type": "ETSPrimitiveType",
266                  "loc": {
267                    "start": {
268                      "line": 29,
269                      "column": 18,
270                      "program": "dynamicObjectLiteral.ets"
271                    },
272                    "end": {
273                      "line": 29,
274                      "column": 22,
275                      "program": "dynamicObjectLiteral.ets"
276                    }
277                  }
278                },
279                "body": {
280                  "type": "BlockStatement",
281                  "statements": [
282                    {
283                      "type": "VariableDeclaration",
284                      "declarations": [
285                        {
286                          "type": "VariableDeclarator",
287                          "id": {
288                            "type": "Identifier",
289                            "name": "a",
290                            "typeAnnotation": {
291                              "type": "ETSTypeReference",
292                              "part": {
293                                "type": "ETSTypeReferencePart",
294                                "name": {
295                                  "type": "Identifier",
296                                  "name": "A",
297                                  "decorators": [],
298                                  "loc": {
299                                    "start": {
300                                      "line": 30,
301                                      "column": 12,
302                                      "program": "dynamicObjectLiteral.ets"
303                                    },
304                                    "end": {
305                                      "line": 30,
306                                      "column": 13,
307                                      "program": "dynamicObjectLiteral.ets"
308                                    }
309                                  }
310                                },
311                                "loc": {
312                                  "start": {
313                                    "line": 30,
314                                    "column": 12,
315                                    "program": "dynamicObjectLiteral.ets"
316                                  },
317                                  "end": {
318                                    "line": 30,
319                                    "column": 15,
320                                    "program": "dynamicObjectLiteral.ets"
321                                  }
322                                }
323                              },
324                              "loc": {
325                                "start": {
326                                  "line": 30,
327                                  "column": 12,
328                                  "program": "dynamicObjectLiteral.ets"
329                                },
330                                "end": {
331                                  "line": 30,
332                                  "column": 15,
333                                  "program": "dynamicObjectLiteral.ets"
334                                }
335                              }
336                            },
337                            "decorators": [],
338                            "loc": {
339                              "start": {
340                                "line": 30,
341                                "column": 9,
342                                "program": "dynamicObjectLiteral.ets"
343                              },
344                              "end": {
345                                "line": 30,
346                                "column": 10,
347                                "program": "dynamicObjectLiteral.ets"
348                              }
349                            }
350                          },
351                          "init": {
352                            "type": "ObjectExpression",
353                            "properties": [
354                              {
355                                "type": "Property",
356                                "method": false,
357                                "shorthand": false,
358                                "computed": false,
359                                "key": {
360                                  "type": "Identifier",
361                                  "name": "name",
362                                  "decorators": [],
363                                  "loc": {
364                                    "start": {
365                                      "line": 30,
366                                      "column": 18,
367                                      "program": "dynamicObjectLiteral.ets"
368                                    },
369                                    "end": {
370                                      "line": 30,
371                                      "column": 22,
372                                      "program": "dynamicObjectLiteral.ets"
373                                    }
374                                  }
375                                },
376                                "value": {
377                                  "type": "StringLiteral",
378                                  "value": "Edalyn",
379                                  "loc": {
380                                    "start": {
381                                      "line": 30,
382                                      "column": 24,
383                                      "program": "dynamicObjectLiteral.ets"
384                                    },
385                                    "end": {
386                                      "line": 30,
387                                      "column": 32,
388                                      "program": "dynamicObjectLiteral.ets"
389                                    }
390                                  }
391                                },
392                                "kind": "init",
393                                "loc": {
394                                  "start": {
395                                    "line": 30,
396                                    "column": 18,
397                                    "program": "dynamicObjectLiteral.ets"
398                                  },
399                                  "end": {
400                                    "line": 30,
401                                    "column": 32,
402                                    "program": "dynamicObjectLiteral.ets"
403                                  }
404                                }
405                              },
406                              {
407                                "type": "Property",
408                                "method": false,
409                                "shorthand": false,
410                                "computed": false,
411                                "key": {
412                                  "type": "Identifier",
413                                  "name": "age",
414                                  "decorators": [],
415                                  "loc": {
416                                    "start": {
417                                      "line": 30,
418                                      "column": 34,
419                                      "program": "dynamicObjectLiteral.ets"
420                                    },
421                                    "end": {
422                                      "line": 30,
423                                      "column": 37,
424                                      "program": "dynamicObjectLiteral.ets"
425                                    }
426                                  }
427                                },
428                                "value": {
429                                  "type": "NumberLiteral",
430                                  "value": 30,
431                                  "loc": {
432                                    "start": {
433                                      "line": 30,
434                                      "column": 39,
435                                      "program": "dynamicObjectLiteral.ets"
436                                    },
437                                    "end": {
438                                      "line": 30,
439                                      "column": 41,
440                                      "program": "dynamicObjectLiteral.ets"
441                                    }
442                                  }
443                                },
444                                "kind": "init",
445                                "loc": {
446                                  "start": {
447                                    "line": 30,
448                                    "column": 34,
449                                    "program": "dynamicObjectLiteral.ets"
450                                  },
451                                  "end": {
452                                    "line": 30,
453                                    "column": 41,
454                                    "program": "dynamicObjectLiteral.ets"
455                                  }
456                                }
457                              },
458                              {
459                                "type": "Property",
460                                "method": false,
461                                "shorthand": false,
462                                "computed": false,
463                                "key": {
464                                  "type": "Identifier",
465                                  "name": "location",
466                                  "decorators": [],
467                                  "loc": {
468                                    "start": {
469                                      "line": 30,
470                                      "column": 43,
471                                      "program": "dynamicObjectLiteral.ets"
472                                    },
473                                    "end": {
474                                      "line": 30,
475                                      "column": 51,
476                                      "program": "dynamicObjectLiteral.ets"
477                                    }
478                                  }
479                                },
480                                "value": {
481                                  "type": "StringLiteral",
482                                  "value": "Boiling_isles",
483                                  "loc": {
484                                    "start": {
485                                      "line": 30,
486                                      "column": 53,
487                                      "program": "dynamicObjectLiteral.ets"
488                                    },
489                                    "end": {
490                                      "line": 30,
491                                      "column": 68,
492                                      "program": "dynamicObjectLiteral.ets"
493                                    }
494                                  }
495                                },
496                                "kind": "init",
497                                "loc": {
498                                  "start": {
499                                    "line": 30,
500                                    "column": 43,
501                                    "program": "dynamicObjectLiteral.ets"
502                                  },
503                                  "end": {
504                                    "line": 30,
505                                    "column": 68,
506                                    "program": "dynamicObjectLiteral.ets"
507                                  }
508                                }
509                              }
510                            ],
511                            "loc": {
512                              "start": {
513                                "line": 30,
514                                "column": 16,
515                                "program": "dynamicObjectLiteral.ets"
516                              },
517                              "end": {
518                                "line": 30,
519                                "column": 70,
520                                "program": "dynamicObjectLiteral.ets"
521                              }
522                            }
523                          },
524                          "loc": {
525                            "start": {
526                              "line": 30,
527                              "column": 9,
528                              "program": "dynamicObjectLiteral.ets"
529                            },
530                            "end": {
531                              "line": 30,
532                              "column": 70,
533                              "program": "dynamicObjectLiteral.ets"
534                            }
535                          }
536                        }
537                      ],
538                      "kind": "let",
539                      "loc": {
540                        "start": {
541                          "line": 30,
542                          "column": 5,
543                          "program": "dynamicObjectLiteral.ets"
544                        },
545                        "end": {
546                          "line": 30,
547                          "column": 71,
548                          "program": "dynamicObjectLiteral.ets"
549                        }
550                      }
551                    }
552                  ],
553                  "loc": {
554                    "start": {
555                      "line": 29,
556                      "column": 23,
557                      "program": "dynamicObjectLiteral.ets"
558                    },
559                    "end": {
560                      "line": 31,
561                      "column": 2,
562                      "program": "dynamicObjectLiteral.ets"
563                    }
564                  }
565                },
566                "loc": {
567                  "start": {
568                    "line": 29,
569                    "column": 10,
570                    "program": "dynamicObjectLiteral.ets"
571                  },
572                  "end": {
573                    "line": 31,
574                    "column": 2,
575                    "program": "dynamicObjectLiteral.ets"
576                  }
577                }
578              },
579              "loc": {
580                "start": {
581                  "line": 29,
582                  "column": 10,
583                  "program": "dynamicObjectLiteral.ets"
584                },
585                "end": {
586                  "line": 31,
587                  "column": 2,
588                  "program": "dynamicObjectLiteral.ets"
589                }
590              }
591            },
592            "overloads": [],
593            "decorators": [],
594            "loc": {
595              "start": {
596                "line": 29,
597                "column": 1,
598                "program": "dynamicObjectLiteral.ets"
599              },
600              "end": {
601                "line": 31,
602                "column": 2,
603                "program": "dynamicObjectLiteral.ets"
604              }
605            }
606          }
607        ],
608        "loc": {
609          "start": {
610            "line": 1,
611            "column": 1,
612            "program": "dynamicObjectLiteral.ets"
613          },
614          "end": {
615            "line": 1,
616            "column": 1,
617            "program": "dynamicObjectLiteral.ets"
618          }
619        }
620      },
621      "loc": {
622        "start": {
623          "line": 1,
624          "column": 1,
625          "program": "dynamicObjectLiteral.ets"
626        },
627        "end": {
628          "line": 1,
629          "column": 1,
630          "program": "dynamicObjectLiteral.ets"
631        }
632      }
633    }
634  ],
635  "loc": {
636    "start": {
637      "line": 1,
638      "column": 1,
639      "program": "dynamicObjectLiteral.ets"
640    },
641    "end": {
642      "line": 32,
643      "column": 1,
644      "program": "dynamicObjectLiteral.ets"
645    }
646  }
647}
648