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