• 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": "labeledWhileStatement.ets"
16            },
17            "end": {
18              "line": 1,
19              "column": 1,
20              "program": "labeledWhileStatement.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": "labeledWhileStatement.ets"
125              },
126              "end": {
127                "line": 1,
128                "column": 1,
129                "program": "labeledWhileStatement.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": "labeledWhileStatement.ets"
231              },
232              "end": {
233                "line": 1,
234                "column": 1,
235                "program": "labeledWhileStatement.ets"
236              }
237            }
238          },
239          {
240            "type": "MethodDefinition",
241            "key": {
242              "type": "Identifier",
243              "name": "labeledWhileTest01",
244              "decorators": [],
245              "loc": {
246                "start": {
247                  "line": 16,
248                  "column": 10,
249                  "program": "labeledWhileStatement.ets"
250                },
251                "end": {
252                  "line": 16,
253                  "column": 28,
254                  "program": "labeledWhileStatement.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": "labeledWhileTest01",
270                  "decorators": [],
271                  "loc": {
272                    "start": {
273                      "line": 16,
274                      "column": 10,
275                      "program": "labeledWhileStatement.ets"
276                    },
277                    "end": {
278                      "line": 16,
279                      "column": 28,
280                      "program": "labeledWhileStatement.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": 32,
294                      "program": "labeledWhileStatement.ets"
295                    },
296                    "end": {
297                      "line": 16,
298                      "column": 36,
299                      "program": "labeledWhileStatement.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": "labeledWhileStatement.ets"
320                              },
321                              "end": {
322                                "line": 17,
323                                "column": 8,
324                                "program": "labeledWhileStatement.ets"
325                              }
326                            }
327                          },
328                          "init": {
329                            "type": "NumberLiteral",
330                            "value": 0,
331                            "loc": {
332                              "start": {
333                                "line": 17,
334                                "column": 11,
335                                "program": "labeledWhileStatement.ets"
336                              },
337                              "end": {
338                                "line": 17,
339                                "column": 12,
340                                "program": "labeledWhileStatement.ets"
341                              }
342                            }
343                          },
344                          "loc": {
345                            "start": {
346                              "line": 17,
347                              "column": 7,
348                              "program": "labeledWhileStatement.ets"
349                            },
350                            "end": {
351                              "line": 17,
352                              "column": 12,
353                              "program": "labeledWhileStatement.ets"
354                            }
355                          }
356                        }
357                      ],
358                      "kind": "let",
359                      "loc": {
360                        "start": {
361                          "line": 17,
362                          "column": 3,
363                          "program": "labeledWhileStatement.ets"
364                        },
365                        "end": {
366                          "line": 17,
367                          "column": 13,
368                          "program": "labeledWhileStatement.ets"
369                        }
370                      }
371                    },
372                    {
373                      "type": "VariableDeclaration",
374                      "declarations": [
375                        {
376                          "type": "VariableDeclarator",
377                          "id": {
378                            "type": "Identifier",
379                            "name": "j",
380                            "decorators": [],
381                            "loc": {
382                              "start": {
383                                "line": 18,
384                                "column": 7,
385                                "program": "labeledWhileStatement.ets"
386                              },
387                              "end": {
388                                "line": 18,
389                                "column": 8,
390                                "program": "labeledWhileStatement.ets"
391                              }
392                            }
393                          },
394                          "init": {
395                            "type": "NumberLiteral",
396                            "value": 0,
397                            "loc": {
398                              "start": {
399                                "line": 18,
400                                "column": 11,
401                                "program": "labeledWhileStatement.ets"
402                              },
403                              "end": {
404                                "line": 18,
405                                "column": 12,
406                                "program": "labeledWhileStatement.ets"
407                              }
408                            }
409                          },
410                          "loc": {
411                            "start": {
412                              "line": 18,
413                              "column": 7,
414                              "program": "labeledWhileStatement.ets"
415                            },
416                            "end": {
417                              "line": 18,
418                              "column": 12,
419                              "program": "labeledWhileStatement.ets"
420                            }
421                          }
422                        }
423                      ],
424                      "kind": "let",
425                      "loc": {
426                        "start": {
427                          "line": 18,
428                          "column": 3,
429                          "program": "labeledWhileStatement.ets"
430                        },
431                        "end": {
432                          "line": 18,
433                          "column": 13,
434                          "program": "labeledWhileStatement.ets"
435                        }
436                      }
437                    },
438                    {
439                      "type": "VariableDeclaration",
440                      "declarations": [
441                        {
442                          "type": "VariableDeclarator",
443                          "id": {
444                            "type": "Identifier",
445                            "name": "k",
446                            "decorators": [],
447                            "loc": {
448                              "start": {
449                                "line": 19,
450                                "column": 7,
451                                "program": "labeledWhileStatement.ets"
452                              },
453                              "end": {
454                                "line": 19,
455                                "column": 8,
456                                "program": "labeledWhileStatement.ets"
457                              }
458                            }
459                          },
460                          "init": {
461                            "type": "NumberLiteral",
462                            "value": 0,
463                            "loc": {
464                              "start": {
465                                "line": 19,
466                                "column": 11,
467                                "program": "labeledWhileStatement.ets"
468                              },
469                              "end": {
470                                "line": 19,
471                                "column": 12,
472                                "program": "labeledWhileStatement.ets"
473                              }
474                            }
475                          },
476                          "loc": {
477                            "start": {
478                              "line": 19,
479                              "column": 7,
480                              "program": "labeledWhileStatement.ets"
481                            },
482                            "end": {
483                              "line": 19,
484                              "column": 12,
485                              "program": "labeledWhileStatement.ets"
486                            }
487                          }
488                        }
489                      ],
490                      "kind": "let",
491                      "loc": {
492                        "start": {
493                          "line": 19,
494                          "column": 3,
495                          "program": "labeledWhileStatement.ets"
496                        },
497                        "end": {
498                          "line": 19,
499                          "column": 13,
500                          "program": "labeledWhileStatement.ets"
501                        }
502                      }
503                    },
504                    {
505                      "type": "LabelledStatement",
506                      "label": {
507                        "type": "Identifier",
508                        "name": "label1",
509                        "decorators": [],
510                        "loc": {
511                          "start": {
512                            "line": 21,
513                            "column": 3,
514                            "program": "labeledWhileStatement.ets"
515                          },
516                          "end": {
517                            "line": 21,
518                            "column": 9,
519                            "program": "labeledWhileStatement.ets"
520                          }
521                        }
522                      },
523                      "body": {
524                        "type": "WhileStatement",
525                        "test": {
526                          "type": "BinaryExpression",
527                          "operator": "<",
528                          "left": {
529                            "type": "Identifier",
530                            "name": "i",
531                            "decorators": [],
532                            "loc": {
533                              "start": {
534                                "line": 22,
535                                "column": 10,
536                                "program": "labeledWhileStatement.ets"
537                              },
538                              "end": {
539                                "line": 22,
540                                "column": 11,
541                                "program": "labeledWhileStatement.ets"
542                              }
543                            }
544                          },
545                          "right": {
546                            "type": "NumberLiteral",
547                            "value": 10,
548                            "loc": {
549                              "start": {
550                                "line": 22,
551                                "column": 14,
552                                "program": "labeledWhileStatement.ets"
553                              },
554                              "end": {
555                                "line": 22,
556                                "column": 16,
557                                "program": "labeledWhileStatement.ets"
558                              }
559                            }
560                          },
561                          "loc": {
562                            "start": {
563                              "line": 22,
564                              "column": 10,
565                              "program": "labeledWhileStatement.ets"
566                            },
567                            "end": {
568                              "line": 22,
569                              "column": 16,
570                              "program": "labeledWhileStatement.ets"
571                            }
572                          }
573                        },
574                        "body": {
575                          "type": "BlockStatement",
576                          "statements": [
577                            {
578                              "type": "IfStatement",
579                              "test": {
580                                "type": "BinaryExpression",
581                                "operator": "!=",
582                                "left": {
583                                  "type": "BinaryExpression",
584                                  "operator": "/",
585                                  "left": {
586                                    "type": "Identifier",
587                                    "name": "i",
588                                    "decorators": [],
589                                    "loc": {
590                                      "start": {
591                                        "line": 23,
592                                        "column": 9,
593                                        "program": "labeledWhileStatement.ets"
594                                      },
595                                      "end": {
596                                        "line": 23,
597                                        "column": 10,
598                                        "program": "labeledWhileStatement.ets"
599                                      }
600                                    }
601                                  },
602                                  "right": {
603                                    "type": "NumberLiteral",
604                                    "value": 2,
605                                    "loc": {
606                                      "start": {
607                                        "line": 23,
608                                        "column": 13,
609                                        "program": "labeledWhileStatement.ets"
610                                      },
611                                      "end": {
612                                        "line": 23,
613                                        "column": 14,
614                                        "program": "labeledWhileStatement.ets"
615                                      }
616                                    }
617                                  },
618                                  "loc": {
619                                    "start": {
620                                      "line": 23,
621                                      "column": 9,
622                                      "program": "labeledWhileStatement.ets"
623                                    },
624                                    "end": {
625                                      "line": 23,
626                                      "column": 14,
627                                      "program": "labeledWhileStatement.ets"
628                                    }
629                                  }
630                                },
631                                "right": {
632                                  "type": "NumberLiteral",
633                                  "value": 0,
634                                  "loc": {
635                                    "start": {
636                                      "line": 23,
637                                      "column": 18,
638                                      "program": "labeledWhileStatement.ets"
639                                    },
640                                    "end": {
641                                      "line": 23,
642                                      "column": 19,
643                                      "program": "labeledWhileStatement.ets"
644                                    }
645                                  }
646                                },
647                                "loc": {
648                                  "start": {
649                                    "line": 23,
650                                    "column": 9,
651                                    "program": "labeledWhileStatement.ets"
652                                  },
653                                  "end": {
654                                    "line": 23,
655                                    "column": 19,
656                                    "program": "labeledWhileStatement.ets"
657                                  }
658                                }
659                              },
660                              "consequent": {
661                                "type": "BlockStatement",
662                                "statements": [
663                                  {
664                                    "type": "ExpressionStatement",
665                                    "expression": {
666                                      "type": "UpdateExpression",
667                                      "operator": "++",
668                                      "prefix": false,
669                                      "argument": {
670                                        "type": "Identifier",
671                                        "name": "i",
672                                        "decorators": [],
673                                        "loc": {
674                                          "start": {
675                                            "line": 24,
676                                            "column": 7,
677                                            "program": "labeledWhileStatement.ets"
678                                          },
679                                          "end": {
680                                            "line": 24,
681                                            "column": 8,
682                                            "program": "labeledWhileStatement.ets"
683                                          }
684                                        }
685                                      },
686                                      "loc": {
687                                        "start": {
688                                          "line": 24,
689                                          "column": 7,
690                                          "program": "labeledWhileStatement.ets"
691                                        },
692                                        "end": {
693                                          "line": 24,
694                                          "column": 10,
695                                          "program": "labeledWhileStatement.ets"
696                                        }
697                                      }
698                                    },
699                                    "loc": {
700                                      "start": {
701                                        "line": 24,
702                                        "column": 7,
703                                        "program": "labeledWhileStatement.ets"
704                                      },
705                                      "end": {
706                                        "line": 24,
707                                        "column": 11,
708                                        "program": "labeledWhileStatement.ets"
709                                      }
710                                    }
711                                  },
712                                  {
713                                    "type": "ContinueStatement",
714                                    "label": {
715                                      "type": "Identifier",
716                                      "name": "label1",
717                                      "decorators": [],
718                                      "loc": {
719                                        "start": {
720                                          "line": 25,
721                                          "column": 16,
722                                          "program": "labeledWhileStatement.ets"
723                                        },
724                                        "end": {
725                                          "line": 25,
726                                          "column": 22,
727                                          "program": "labeledWhileStatement.ets"
728                                        }
729                                      }
730                                    },
731                                    "loc": {
732                                      "start": {
733                                        "line": 25,
734                                        "column": 7,
735                                        "program": "labeledWhileStatement.ets"
736                                      },
737                                      "end": {
738                                        "line": 25,
739                                        "column": 23,
740                                        "program": "labeledWhileStatement.ets"
741                                      }
742                                    }
743                                  }
744                                ],
745                                "loc": {
746                                  "start": {
747                                    "line": 23,
748                                    "column": 21,
749                                    "program": "labeledWhileStatement.ets"
750                                  },
751                                  "end": {
752                                    "line": 26,
753                                    "column": 6,
754                                    "program": "labeledWhileStatement.ets"
755                                  }
756                                }
757                              },
758                              "alternate": {
759                                "type": "BlockStatement",
760                                "statements": [
761                                  {
762                                    "type": "BreakStatement",
763                                    "label": {
764                                      "type": "Identifier",
765                                      "name": "label1",
766                                      "decorators": [],
767                                      "loc": {
768                                        "start": {
769                                          "line": 27,
770                                          "column": 13,
771                                          "program": "labeledWhileStatement.ets"
772                                        },
773                                        "end": {
774                                          "line": 27,
775                                          "column": 19,
776                                          "program": "labeledWhileStatement.ets"
777                                        }
778                                      }
779                                    },
780                                    "loc": {
781                                      "start": {
782                                        "line": 27,
783                                        "column": 7,
784                                        "program": "labeledWhileStatement.ets"
785                                      },
786                                      "end": {
787                                        "line": 27,
788                                        "column": 20,
789                                        "program": "labeledWhileStatement.ets"
790                                      }
791                                    }
792                                  }
793                                ],
794                                "loc": {
795                                  "start": {
796                                    "line": 26,
797                                    "column": 12,
798                                    "program": "labeledWhileStatement.ets"
799                                  },
800                                  "end": {
801                                    "line": 28,
802                                    "column": 6,
803                                    "program": "labeledWhileStatement.ets"
804                                  }
805                                }
806                              },
807                              "loc": {
808                                "start": {
809                                  "line": 23,
810                                  "column": 5,
811                                  "program": "labeledWhileStatement.ets"
812                                },
813                                "end": {
814                                  "line": 28,
815                                  "column": 6,
816                                  "program": "labeledWhileStatement.ets"
817                                }
818                              }
819                            }
820                          ],
821                          "loc": {
822                            "start": {
823                              "line": 22,
824                              "column": 18,
825                              "program": "labeledWhileStatement.ets"
826                            },
827                            "end": {
828                              "line": 29,
829                              "column": 4,
830                              "program": "labeledWhileStatement.ets"
831                            }
832                          }
833                        },
834                        "loc": {
835                          "start": {
836                            "line": 22,
837                            "column": 3,
838                            "program": "labeledWhileStatement.ets"
839                          },
840                          "end": {
841                            "line": 29,
842                            "column": 4,
843                            "program": "labeledWhileStatement.ets"
844                          }
845                        }
846                      },
847                      "loc": {
848                        "start": {
849                          "line": 21,
850                          "column": 3,
851                          "program": "labeledWhileStatement.ets"
852                        },
853                        "end": {
854                          "line": 29,
855                          "column": 4,
856                          "program": "labeledWhileStatement.ets"
857                        }
858                      }
859                    },
860                    {
861                      "type": "LabelledStatement",
862                      "label": {
863                        "type": "Identifier",
864                        "name": "label2",
865                        "decorators": [],
866                        "loc": {
867                          "start": {
868                            "line": 31,
869                            "column": 3,
870                            "program": "labeledWhileStatement.ets"
871                          },
872                          "end": {
873                            "line": 31,
874                            "column": 9,
875                            "program": "labeledWhileStatement.ets"
876                          }
877                        }
878                      },
879                      "body": {
880                        "type": "WhileStatement",
881                        "test": {
882                          "type": "BinaryExpression",
883                          "operator": "<",
884                          "left": {
885                            "type": "Identifier",
886                            "name": "j",
887                            "decorators": [],
888                            "loc": {
889                              "start": {
890                                "line": 32,
891                                "column": 10,
892                                "program": "labeledWhileStatement.ets"
893                              },
894                              "end": {
895                                "line": 32,
896                                "column": 11,
897                                "program": "labeledWhileStatement.ets"
898                              }
899                            }
900                          },
901                          "right": {
902                            "type": "NumberLiteral",
903                            "value": 10,
904                            "loc": {
905                              "start": {
906                                "line": 32,
907                                "column": 14,
908                                "program": "labeledWhileStatement.ets"
909                              },
910                              "end": {
911                                "line": 32,
912                                "column": 16,
913                                "program": "labeledWhileStatement.ets"
914                              }
915                            }
916                          },
917                          "loc": {
918                            "start": {
919                              "line": 32,
920                              "column": 10,
921                              "program": "labeledWhileStatement.ets"
922                            },
923                            "end": {
924                              "line": 32,
925                              "column": 16,
926                              "program": "labeledWhileStatement.ets"
927                            }
928                          }
929                        },
930                        "body": {
931                          "type": "BlockStatement",
932                          "statements": [
933                            {
934                              "type": "IfStatement",
935                              "test": {
936                                "type": "BinaryExpression",
937                                "operator": "==",
938                                "left": {
939                                  "type": "Identifier",
940                                  "name": "j",
941                                  "decorators": [],
942                                  "loc": {
943                                    "start": {
944                                      "line": 33,
945                                      "column": 9,
946                                      "program": "labeledWhileStatement.ets"
947                                    },
948                                    "end": {
949                                      "line": 33,
950                                      "column": 10,
951                                      "program": "labeledWhileStatement.ets"
952                                    }
953                                  }
954                                },
955                                "right": {
956                                  "type": "NumberLiteral",
957                                  "value": 4,
958                                  "loc": {
959                                    "start": {
960                                      "line": 33,
961                                      "column": 14,
962                                      "program": "labeledWhileStatement.ets"
963                                    },
964                                    "end": {
965                                      "line": 33,
966                                      "column": 15,
967                                      "program": "labeledWhileStatement.ets"
968                                    }
969                                  }
970                                },
971                                "loc": {
972                                  "start": {
973                                    "line": 33,
974                                    "column": 9,
975                                    "program": "labeledWhileStatement.ets"
976                                  },
977                                  "end": {
978                                    "line": 33,
979                                    "column": 15,
980                                    "program": "labeledWhileStatement.ets"
981                                  }
982                                }
983                              },
984                              "consequent": {
985                                "type": "BlockStatement",
986                                "statements": [
987                                  {
988                                    "type": "BreakStatement",
989                                    "label": null,
990                                    "loc": {
991                                      "start": {
992                                        "line": 34,
993                                        "column": 7,
994                                        "program": "labeledWhileStatement.ets"
995                                      },
996                                      "end": {
997                                        "line": 34,
998                                        "column": 13,
999                                        "program": "labeledWhileStatement.ets"
1000                                      }
1001                                    }
1002                                  }
1003                                ],
1004                                "loc": {
1005                                  "start": {
1006                                    "line": 33,
1007                                    "column": 17,
1008                                    "program": "labeledWhileStatement.ets"
1009                                  },
1010                                  "end": {
1011                                    "line": 35,
1012                                    "column": 6,
1013                                    "program": "labeledWhileStatement.ets"
1014                                  }
1015                                }
1016                              },
1017                              "alternate": null,
1018                              "loc": {
1019                                "start": {
1020                                  "line": 33,
1021                                  "column": 5,
1022                                  "program": "labeledWhileStatement.ets"
1023                                },
1024                                "end": {
1025                                  "line": 35,
1026                                  "column": 6,
1027                                  "program": "labeledWhileStatement.ets"
1028                                }
1029                              }
1030                            },
1031                            {
1032                              "type": "WhileStatement",
1033                              "test": {
1034                                "type": "BinaryExpression",
1035                                "operator": "<",
1036                                "left": {
1037                                  "type": "Identifier",
1038                                  "name": "k",
1039                                  "decorators": [],
1040                                  "loc": {
1041                                    "start": {
1042                                      "line": 37,
1043                                      "column": 12,
1044                                      "program": "labeledWhileStatement.ets"
1045                                    },
1046                                    "end": {
1047                                      "line": 37,
1048                                      "column": 13,
1049                                      "program": "labeledWhileStatement.ets"
1050                                    }
1051                                  }
1052                                },
1053                                "right": {
1054                                  "type": "Identifier",
1055                                  "name": "j",
1056                                  "decorators": [],
1057                                  "loc": {
1058                                    "start": {
1059                                      "line": 37,
1060                                      "column": 16,
1061                                      "program": "labeledWhileStatement.ets"
1062                                    },
1063                                    "end": {
1064                                      "line": 37,
1065                                      "column": 17,
1066                                      "program": "labeledWhileStatement.ets"
1067                                    }
1068                                  }
1069                                },
1070                                "loc": {
1071                                  "start": {
1072                                    "line": 37,
1073                                    "column": 12,
1074                                    "program": "labeledWhileStatement.ets"
1075                                  },
1076                                  "end": {
1077                                    "line": 37,
1078                                    "column": 17,
1079                                    "program": "labeledWhileStatement.ets"
1080                                  }
1081                                }
1082                              },
1083                              "body": {
1084                                "type": "BlockStatement",
1085                                "statements": [
1086                                  {
1087                                    "type": "IfStatement",
1088                                    "test": {
1089                                      "type": "BinaryExpression",
1090                                      "operator": "==",
1091                                      "left": {
1092                                        "type": "Identifier",
1093                                        "name": "k",
1094                                        "decorators": [],
1095                                        "loc": {
1096                                          "start": {
1097                                            "line": 38,
1098                                            "column": 11,
1099                                            "program": "labeledWhileStatement.ets"
1100                                          },
1101                                          "end": {
1102                                            "line": 38,
1103                                            "column": 12,
1104                                            "program": "labeledWhileStatement.ets"
1105                                          }
1106                                        }
1107                                      },
1108                                      "right": {
1109                                        "type": "NumberLiteral",
1110                                        "value": 7,
1111                                        "loc": {
1112                                          "start": {
1113                                            "line": 38,
1114                                            "column": 16,
1115                                            "program": "labeledWhileStatement.ets"
1116                                          },
1117                                          "end": {
1118                                            "line": 38,
1119                                            "column": 17,
1120                                            "program": "labeledWhileStatement.ets"
1121                                          }
1122                                        }
1123                                      },
1124                                      "loc": {
1125                                        "start": {
1126                                          "line": 38,
1127                                          "column": 11,
1128                                          "program": "labeledWhileStatement.ets"
1129                                        },
1130                                        "end": {
1131                                          "line": 38,
1132                                          "column": 17,
1133                                          "program": "labeledWhileStatement.ets"
1134                                        }
1135                                      }
1136                                    },
1137                                    "consequent": {
1138                                      "type": "BlockStatement",
1139                                      "statements": [
1140                                        {
1141                                          "type": "BreakStatement",
1142                                          "label": {
1143                                            "type": "Identifier",
1144                                            "name": "label2",
1145                                            "decorators": [],
1146                                            "loc": {
1147                                              "start": {
1148                                                "line": 39,
1149                                                "column": 15,
1150                                                "program": "labeledWhileStatement.ets"
1151                                              },
1152                                              "end": {
1153                                                "line": 39,
1154                                                "column": 21,
1155                                                "program": "labeledWhileStatement.ets"
1156                                              }
1157                                            }
1158                                          },
1159                                          "loc": {
1160                                            "start": {
1161                                              "line": 39,
1162                                              "column": 9,
1163                                              "program": "labeledWhileStatement.ets"
1164                                            },
1165                                            "end": {
1166                                              "line": 39,
1167                                              "column": 22,
1168                                              "program": "labeledWhileStatement.ets"
1169                                            }
1170                                          }
1171                                        }
1172                                      ],
1173                                      "loc": {
1174                                        "start": {
1175                                          "line": 38,
1176                                          "column": 19,
1177                                          "program": "labeledWhileStatement.ets"
1178                                        },
1179                                        "end": {
1180                                          "line": 40,
1181                                          "column": 8,
1182                                          "program": "labeledWhileStatement.ets"
1183                                        }
1184                                      }
1185                                    },
1186                                    "alternate": {
1187                                      "type": "BlockStatement",
1188                                      "statements": [
1189                                        {
1190                                          "type": "ExpressionStatement",
1191                                          "expression": {
1192                                            "type": "AssignmentExpression",
1193                                            "operator": "+=",
1194                                            "left": {
1195                                              "type": "Identifier",
1196                                              "name": "k",
1197                                              "decorators": [],
1198                                              "loc": {
1199                                                "start": {
1200                                                  "line": 41,
1201                                                  "column": 9,
1202                                                  "program": "labeledWhileStatement.ets"
1203                                                },
1204                                                "end": {
1205                                                  "line": 41,
1206                                                  "column": 10,
1207                                                  "program": "labeledWhileStatement.ets"
1208                                                }
1209                                              }
1210                                            },
1211                                            "right": {
1212                                              "type": "Identifier",
1213                                              "name": "j",
1214                                              "decorators": [],
1215                                              "loc": {
1216                                                "start": {
1217                                                  "line": 41,
1218                                                  "column": 14,
1219                                                  "program": "labeledWhileStatement.ets"
1220                                                },
1221                                                "end": {
1222                                                  "line": 41,
1223                                                  "column": 15,
1224                                                  "program": "labeledWhileStatement.ets"
1225                                                }
1226                                              }
1227                                            },
1228                                            "loc": {
1229                                              "start": {
1230                                                "line": 41,
1231                                                "column": 9,
1232                                                "program": "labeledWhileStatement.ets"
1233                                              },
1234                                              "end": {
1235                                                "line": 41,
1236                                                "column": 15,
1237                                                "program": "labeledWhileStatement.ets"
1238                                              }
1239                                            }
1240                                          },
1241                                          "loc": {
1242                                            "start": {
1243                                              "line": 41,
1244                                              "column": 9,
1245                                              "program": "labeledWhileStatement.ets"
1246                                            },
1247                                            "end": {
1248                                              "line": 41,
1249                                              "column": 16,
1250                                              "program": "labeledWhileStatement.ets"
1251                                            }
1252                                          }
1253                                        },
1254                                        {
1255                                          "type": "ExpressionStatement",
1256                                          "expression": {
1257                                            "type": "UpdateExpression",
1258                                            "operator": "++",
1259                                            "prefix": false,
1260                                            "argument": {
1261                                              "type": "Identifier",
1262                                              "name": "j",
1263                                              "decorators": [],
1264                                              "loc": {
1265                                                "start": {
1266                                                  "line": 42,
1267                                                  "column": 9,
1268                                                  "program": "labeledWhileStatement.ets"
1269                                                },
1270                                                "end": {
1271                                                  "line": 42,
1272                                                  "column": 10,
1273                                                  "program": "labeledWhileStatement.ets"
1274                                                }
1275                                              }
1276                                            },
1277                                            "loc": {
1278                                              "start": {
1279                                                "line": 42,
1280                                                "column": 9,
1281                                                "program": "labeledWhileStatement.ets"
1282                                              },
1283                                              "end": {
1284                                                "line": 42,
1285                                                "column": 12,
1286                                                "program": "labeledWhileStatement.ets"
1287                                              }
1288                                            }
1289                                          },
1290                                          "loc": {
1291                                            "start": {
1292                                              "line": 42,
1293                                              "column": 9,
1294                                              "program": "labeledWhileStatement.ets"
1295                                            },
1296                                            "end": {
1297                                              "line": 42,
1298                                              "column": 13,
1299                                              "program": "labeledWhileStatement.ets"
1300                                            }
1301                                          }
1302                                        },
1303                                        {
1304                                          "type": "ContinueStatement",
1305                                          "label": {
1306                                            "type": "Identifier",
1307                                            "name": "label2",
1308                                            "decorators": [],
1309                                            "loc": {
1310                                              "start": {
1311                                                "line": 43,
1312                                                "column": 18,
1313                                                "program": "labeledWhileStatement.ets"
1314                                              },
1315                                              "end": {
1316                                                "line": 43,
1317                                                "column": 24,
1318                                                "program": "labeledWhileStatement.ets"
1319                                              }
1320                                            }
1321                                          },
1322                                          "loc": {
1323                                            "start": {
1324                                              "line": 43,
1325                                              "column": 9,
1326                                              "program": "labeledWhileStatement.ets"
1327                                            },
1328                                            "end": {
1329                                              "line": 43,
1330                                              "column": 25,
1331                                              "program": "labeledWhileStatement.ets"
1332                                            }
1333                                          }
1334                                        }
1335                                      ],
1336                                      "loc": {
1337                                        "start": {
1338                                          "line": 40,
1339                                          "column": 14,
1340                                          "program": "labeledWhileStatement.ets"
1341                                        },
1342                                        "end": {
1343                                          "line": 44,
1344                                          "column": 8,
1345                                          "program": "labeledWhileStatement.ets"
1346                                        }
1347                                      }
1348                                    },
1349                                    "loc": {
1350                                      "start": {
1351                                        "line": 38,
1352                                        "column": 7,
1353                                        "program": "labeledWhileStatement.ets"
1354                                      },
1355                                      "end": {
1356                                        "line": 44,
1357                                        "column": 8,
1358                                        "program": "labeledWhileStatement.ets"
1359                                      }
1360                                    }
1361                                  }
1362                                ],
1363                                "loc": {
1364                                  "start": {
1365                                    "line": 37,
1366                                    "column": 19,
1367                                    "program": "labeledWhileStatement.ets"
1368                                  },
1369                                  "end": {
1370                                    "line": 45,
1371                                    "column": 6,
1372                                    "program": "labeledWhileStatement.ets"
1373                                  }
1374                                }
1375                              },
1376                              "loc": {
1377                                "start": {
1378                                  "line": 37,
1379                                  "column": 5,
1380                                  "program": "labeledWhileStatement.ets"
1381                                },
1382                                "end": {
1383                                  "line": 45,
1384                                  "column": 6,
1385                                  "program": "labeledWhileStatement.ets"
1386                                }
1387                              }
1388                            },
1389                            {
1390                              "type": "ExpressionStatement",
1391                              "expression": {
1392                                "type": "UpdateExpression",
1393                                "operator": "++",
1394                                "prefix": true,
1395                                "argument": {
1396                                  "type": "Identifier",
1397                                  "name": "j",
1398                                  "decorators": [],
1399                                  "loc": {
1400                                    "start": {
1401                                      "line": 47,
1402                                      "column": 7,
1403                                      "program": "labeledWhileStatement.ets"
1404                                    },
1405                                    "end": {
1406                                      "line": 47,
1407                                      "column": 8,
1408                                      "program": "labeledWhileStatement.ets"
1409                                    }
1410                                  }
1411                                },
1412                                "loc": {
1413                                  "start": {
1414                                    "line": 47,
1415                                    "column": 5,
1416                                    "program": "labeledWhileStatement.ets"
1417                                  },
1418                                  "end": {
1419                                    "line": 47,
1420                                    "column": 8,
1421                                    "program": "labeledWhileStatement.ets"
1422                                  }
1423                                }
1424                              },
1425                              "loc": {
1426                                "start": {
1427                                  "line": 47,
1428                                  "column": 5,
1429                                  "program": "labeledWhileStatement.ets"
1430                                },
1431                                "end": {
1432                                  "line": 47,
1433                                  "column": 9,
1434                                  "program": "labeledWhileStatement.ets"
1435                                }
1436                              }
1437                            }
1438                          ],
1439                          "loc": {
1440                            "start": {
1441                              "line": 32,
1442                              "column": 18,
1443                              "program": "labeledWhileStatement.ets"
1444                            },
1445                            "end": {
1446                              "line": 48,
1447                              "column": 4,
1448                              "program": "labeledWhileStatement.ets"
1449                            }
1450                          }
1451                        },
1452                        "loc": {
1453                          "start": {
1454                            "line": 32,
1455                            "column": 3,
1456                            "program": "labeledWhileStatement.ets"
1457                          },
1458                          "end": {
1459                            "line": 48,
1460                            "column": 4,
1461                            "program": "labeledWhileStatement.ets"
1462                          }
1463                        }
1464                      },
1465                      "loc": {
1466                        "start": {
1467                          "line": 31,
1468                          "column": 3,
1469                          "program": "labeledWhileStatement.ets"
1470                        },
1471                        "end": {
1472                          "line": 48,
1473                          "column": 4,
1474                          "program": "labeledWhileStatement.ets"
1475                        }
1476                      }
1477                    }
1478                  ],
1479                  "loc": {
1480                    "start": {
1481                      "line": 16,
1482                      "column": 37,
1483                      "program": "labeledWhileStatement.ets"
1484                    },
1485                    "end": {
1486                      "line": 49,
1487                      "column": 2,
1488                      "program": "labeledWhileStatement.ets"
1489                    }
1490                  }
1491                },
1492                "loc": {
1493                  "start": {
1494                    "line": 16,
1495                    "column": 10,
1496                    "program": "labeledWhileStatement.ets"
1497                  },
1498                  "end": {
1499                    "line": 49,
1500                    "column": 2,
1501                    "program": "labeledWhileStatement.ets"
1502                  }
1503                }
1504              },
1505              "loc": {
1506                "start": {
1507                  "line": 16,
1508                  "column": 10,
1509                  "program": "labeledWhileStatement.ets"
1510                },
1511                "end": {
1512                  "line": 49,
1513                  "column": 2,
1514                  "program": "labeledWhileStatement.ets"
1515                }
1516              }
1517            },
1518            "overloads": [],
1519            "decorators": [],
1520            "loc": {
1521              "start": {
1522                "line": 16,
1523                "column": 1,
1524                "program": "labeledWhileStatement.ets"
1525              },
1526              "end": {
1527                "line": 49,
1528                "column": 2,
1529                "program": "labeledWhileStatement.ets"
1530              }
1531            }
1532          }
1533        ],
1534        "loc": {
1535          "start": {
1536            "line": 1,
1537            "column": 1,
1538            "program": "labeledWhileStatement.ets"
1539          },
1540          "end": {
1541            "line": 1,
1542            "column": 1,
1543            "program": "labeledWhileStatement.ets"
1544          }
1545        }
1546      },
1547      "loc": {
1548        "start": {
1549          "line": 1,
1550          "column": 1,
1551          "program": "labeledWhileStatement.ets"
1552        },
1553        "end": {
1554          "line": 1,
1555          "column": 1,
1556          "program": "labeledWhileStatement.ets"
1557        }
1558      }
1559    }
1560  ],
1561  "loc": {
1562    "start": {
1563      "line": 1,
1564      "column": 1,
1565      "program": "labeledWhileStatement.ets"
1566    },
1567    "end": {
1568      "line": 50,
1569      "column": 1,
1570      "program": "labeledWhileStatement.ets"
1571    }
1572  }
1573}
1574