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