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