• 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": "s",
12            "decorators": [],
13            "loc": {
14              "start": {
15                "line": 16,
16                "column": 5,
17                "program": "while_statement.ts"
18              },
19              "end": {
20                "line": 16,
21                "column": 6,
22                "program": "while_statement.ts"
23              }
24            }
25          },
26          "init": {
27            "type": "NumberLiteral",
28            "value": 5,
29            "loc": {
30              "start": {
31                "line": 16,
32                "column": 9,
33                "program": "while_statement.ts"
34              },
35              "end": {
36                "line": 16,
37                "column": 10,
38                "program": "while_statement.ts"
39              }
40            }
41          },
42          "loc": {
43            "start": {
44              "line": 16,
45              "column": 5,
46              "program": "while_statement.ts"
47            },
48            "end": {
49              "line": 16,
50              "column": 10,
51              "program": "while_statement.ts"
52            }
53          }
54        }
55      ],
56      "kind": "var",
57      "loc": {
58        "start": {
59          "line": 16,
60          "column": 1,
61          "program": "while_statement.ts"
62        },
63        "end": {
64          "line": 16,
65          "column": 10,
66          "program": "while_statement.ts"
67        }
68      }
69    },
70    {
71      "type": "WhileStatement",
72      "test": {
73        "type": "BinaryExpression",
74        "operator": ">",
75        "left": {
76          "type": "Identifier",
77          "name": "s",
78          "decorators": [],
79          "loc": {
80            "start": {
81              "line": 18,
82              "column": 8,
83              "program": "while_statement.ts"
84            },
85            "end": {
86              "line": 18,
87              "column": 9,
88              "program": "while_statement.ts"
89            }
90          }
91        },
92        "right": {
93          "type": "NumberLiteral",
94          "value": 0,
95          "loc": {
96            "start": {
97              "line": 18,
98              "column": 12,
99              "program": "while_statement.ts"
100            },
101            "end": {
102              "line": 18,
103              "column": 13,
104              "program": "while_statement.ts"
105            }
106          }
107        },
108        "loc": {
109          "start": {
110            "line": 18,
111            "column": 8,
112            "program": "while_statement.ts"
113          },
114          "end": {
115            "line": 18,
116            "column": 13,
117            "program": "while_statement.ts"
118          }
119        }
120      },
121      "body": {
122        "type": "BlockStatement",
123        "statements": [
124          {
125            "type": "ExpressionStatement",
126            "expression": {
127              "type": "AssignmentExpression",
128              "operator": "=",
129              "left": {
130                "type": "Identifier",
131                "name": "s",
132                "decorators": [],
133                "loc": {
134                  "start": {
135                    "line": 19,
136                    "column": 4,
137                    "program": "while_statement.ts"
138                  },
139                  "end": {
140                    "line": 19,
141                    "column": 5,
142                    "program": "while_statement.ts"
143                  }
144                }
145              },
146              "right": {
147                "type": "BinaryExpression",
148                "operator": "-",
149                "left": {
150                  "type": "Identifier",
151                  "name": "s",
152                  "decorators": [],
153                  "loc": {
154                    "start": {
155                      "line": 19,
156                      "column": 8,
157                      "program": "while_statement.ts"
158                    },
159                    "end": {
160                      "line": 19,
161                      "column": 9,
162                      "program": "while_statement.ts"
163                    }
164                  }
165                },
166                "right": {
167                  "type": "NumberLiteral",
168                  "value": 1,
169                  "loc": {
170                    "start": {
171                      "line": 19,
172                      "column": 12,
173                      "program": "while_statement.ts"
174                    },
175                    "end": {
176                      "line": 19,
177                      "column": 13,
178                      "program": "while_statement.ts"
179                    }
180                  }
181                },
182                "loc": {
183                  "start": {
184                    "line": 19,
185                    "column": 8,
186                    "program": "while_statement.ts"
187                  },
188                  "end": {
189                    "line": 19,
190                    "column": 13,
191                    "program": "while_statement.ts"
192                  }
193                }
194              },
195              "loc": {
196                "start": {
197                  "line": 19,
198                  "column": 4,
199                  "program": "while_statement.ts"
200                },
201                "end": {
202                  "line": 19,
203                  "column": 13,
204                  "program": "while_statement.ts"
205                }
206              }
207            },
208            "loc": {
209              "start": {
210                "line": 19,
211                "column": 4,
212                "program": "while_statement.ts"
213              },
214              "end": {
215                "line": 19,
216                "column": 13,
217                "program": "while_statement.ts"
218              }
219            }
220          }
221        ],
222        "loc": {
223          "start": {
224            "line": 18,
225            "column": 15,
226            "program": "while_statement.ts"
227          },
228          "end": {
229            "line": 20,
230            "column": 2,
231            "program": "while_statement.ts"
232          }
233        }
234      },
235      "loc": {
236        "start": {
237          "line": 18,
238          "column": 1,
239          "program": "while_statement.ts"
240        },
241        "end": {
242          "line": 20,
243          "column": 2,
244          "program": "while_statement.ts"
245        }
246      }
247    }
248  ],
249  "loc": {
250    "start": {
251      "line": 1,
252      "column": 1,
253      "program": "while_statement.ts"
254    },
255    "end": {
256      "line": 21,
257      "column": 1,
258      "program": "while_statement.ts"
259    }
260  }
261}
262