• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "VariableDeclaration",
6      "declarations": [
7        {
8          "type": "VariableDeclarator",
9          "id": {
10            "type": "Identifier",
11            "name": "a",
12            "decorators": [],
13            "loc": {
14              "start": {
15                "line": 1,
16                "column": 5
17              },
18              "end": {
19                "line": 1,
20                "column": 6
21              }
22            }
23          },
24          "init": {
25            "type": "NumberLiteral",
26            "value": 1,
27            "loc": {
28              "start": {
29                "line": 1,
30                "column": 9
31              },
32              "end": {
33                "line": 1,
34                "column": 10
35              }
36            }
37          },
38          "loc": {
39            "start": {
40              "line": 1,
41              "column": 5
42            },
43            "end": {
44              "line": 1,
45              "column": 10
46            }
47          }
48        }
49      ],
50      "kind": "let",
51      "loc": {
52        "start": {
53          "line": 1,
54          "column": 1
55        },
56        "end": {
57          "line": 1,
58          "column": 11
59        }
60      }
61    },
62    {
63      "type": "LabelledStatement",
64      "label": {
65        "type": "Identifier",
66        "name": "target1",
67        "decorators": [],
68        "loc": {
69          "start": {
70            "line": 2,
71            "column": 1
72          },
73          "end": {
74            "line": 2,
75            "column": 8
76          }
77        }
78      },
79      "body": {
80        "type": "LabelledStatement",
81        "label": {
82          "type": "Identifier",
83          "name": "target2",
84          "decorators": [],
85          "loc": {
86            "start": {
87              "line": 3,
88              "column": 1
89            },
90            "end": {
91              "line": 3,
92              "column": 8
93            }
94          }
95        },
96        "body": {
97          "type": "WhileStatement",
98          "test": {
99            "type": "UpdateExpression",
100            "operator": "--",
101            "prefix": false,
102            "argument": {
103              "type": "Identifier",
104              "name": "a",
105              "decorators": [],
106              "loc": {
107                "start": {
108                  "line": 4,
109                  "column": 7
110                },
111                "end": {
112                  "line": 4,
113                  "column": 8
114                }
115              }
116            },
117            "loc": {
118              "start": {
119                "line": 4,
120                "column": 7
121              },
122              "end": {
123                "line": 4,
124                "column": 10
125              }
126            }
127          },
128          "body": {
129            "type": "BlockStatement",
130            "statements": [
131              {
132                "type": "ContinueStatement",
133                "label": {
134                  "type": "Identifier",
135                  "name": "target1",
136                  "decorators": [],
137                  "loc": {
138                    "start": {
139                      "line": 5,
140                      "column": 14
141                    },
142                    "end": {
143                      "line": 5,
144                      "column": 21
145                    }
146                  }
147                },
148                "loc": {
149                  "start": {
150                    "line": 5,
151                    "column": 5
152                  },
153                  "end": {
154                    "line": 5,
155                    "column": 22
156                  }
157                }
158              }
159            ],
160            "loc": {
161              "start": {
162                "line": 4,
163                "column": 12
164              },
165              "end": {
166                "line": 6,
167                "column": 2
168              }
169            }
170          },
171          "loc": {
172            "start": {
173              "line": 4,
174              "column": 1
175            },
176            "end": {
177              "line": 6,
178              "column": 2
179            }
180          }
181        },
182        "loc": {
183          "start": {
184            "line": 3,
185            "column": 1
186          },
187          "end": {
188            "line": 6,
189            "column": 2
190          }
191        }
192      },
193      "loc": {
194        "start": {
195          "line": 2,
196          "column": 1
197        },
198        "end": {
199          "line": 6,
200          "column": 2
201        }
202      }
203    }
204  ],
205  "loc": {
206    "start": {
207      "line": 1,
208      "column": 1
209    },
210    "end": {
211      "line": 6,
212      "column": 2
213    }
214  }
215}
216