• 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": "isConnect",
12            "loc": {
13              "start": {
14                "line": 16,
15                "column": 5
16              },
17              "end": {
18                "line": 16,
19                "column": 14
20              }
21            }
22          },
23          "init": {
24            "type": "BooleanLiteral",
25            "value": false,
26            "loc": {
27              "start": {
28                "line": 16,
29                "column": 17
30              },
31              "end": {
32                "line": 16,
33                "column": 22
34              }
35            }
36          },
37          "loc": {
38            "start": {
39              "line": 16,
40              "column": 5
41            },
42            "end": {
43              "line": 16,
44              "column": 22
45            }
46          }
47        }
48      ],
49      "kind": "let",
50      "loc": {
51        "start": {
52          "line": 16,
53          "column": 1
54        },
55        "end": {
56          "line": 16,
57          "column": 23
58        }
59      }
60    },
61    {
62      "type": "VariableDeclaration",
63      "declarations": [
64        {
65          "type": "VariableDeclarator",
66          "id": {
67            "type": "Identifier",
68            "name": "time",
69            "loc": {
70              "start": {
71                "line": 17,
72                "column": 5
73              },
74              "end": {
75                "line": 17,
76                "column": 9
77              }
78            }
79          },
80          "init": {
81            "type": "NumberLiteral",
82            "value": 1,
83            "loc": {
84              "start": {
85                "line": 17,
86                "column": 12
87              },
88              "end": {
89                "line": 17,
90                "column": 13
91              }
92            }
93          },
94          "loc": {
95            "start": {
96              "line": 17,
97              "column": 5
98            },
99            "end": {
100              "line": 17,
101              "column": 13
102            }
103          }
104        }
105      ],
106      "kind": "let",
107      "loc": {
108        "start": {
109          "line": 17,
110          "column": 1
111        },
112        "end": {
113          "line": 17,
114          "column": 14
115        }
116      }
117    },
118    {
119      "type": "VariableDeclaration",
120      "declarations": [
121        {
122          "type": "VariableDeclarator",
123          "id": {
124            "type": "Identifier",
125            "name": "v",
126            "loc": {
127              "start": {
128                "line": 18,
129                "column": 5
130              },
131              "end": {
132                "line": 18,
133                "column": 6
134              }
135            }
136          },
137          "init": {
138            "type": "ConditionalExpression",
139            "test": {
140              "type": "Identifier",
141              "name": "isConnect",
142              "loc": {
143                "start": {
144                  "line": 18,
145                  "column": 9
146                },
147                "end": {
148                  "line": 18,
149                  "column": 18
150                }
151              }
152            },
153            "consequent": {
154              "type": "BinaryExpression",
155              "operator": "+",
156              "left": {
157                "type": "NumberLiteral",
158                "value": 2,
159                "loc": {
160                  "start": {
161                    "line": 18,
162                    "column": 22
163                  },
164                  "end": {
165                    "line": 18,
166                    "column": 23
167                  }
168                }
169              },
170              "right": {
171                "type": "NumberLiteral",
172                "value": 3,
173                "loc": {
174                  "start": {
175                    "line": 18,
176                    "column": 26
177                  },
178                  "end": {
179                    "line": 18,
180                    "column": 27
181                  }
182                }
183              },
184              "loc": {
185                "start": {
186                  "line": 18,
187                  "column": 21
188                },
189                "end": {
190                  "line": 18,
191                  "column": 28
192                }
193              }
194            },
195            "alternate": {
196              "type": "ConditionalExpression",
197              "test": {
198                "type": "BinaryExpression",
199                "operator": "==",
200                "left": {
201                  "type": "Identifier",
202                  "name": "time",
203                  "loc": {
204                    "start": {
205                      "line": 18,
206                      "column": 33
207                    },
208                    "end": {
209                      "line": 18,
210                      "column": 37
211                    }
212                  }
213                },
214                "right": {
215                  "type": "NumberLiteral",
216                  "value": 0,
217                  "loc": {
218                    "start": {
219                      "line": 18,
220                      "column": 41
221                    },
222                    "end": {
223                      "line": 18,
224                      "column": 42
225                    }
226                  }
227                },
228                "loc": {
229                  "start": {
230                    "line": 18,
231                    "column": 32
232                  },
233                  "end": {
234                    "line": 18,
235                    "column": 43
236                  }
237                }
238              },
239              "consequent": {
240                "type": "NumberLiteral",
241                "value": 10,
242                "loc": {
243                  "start": {
244                    "line": 18,
245                    "column": 46
246                  },
247                  "end": {
248                    "line": 18,
249                    "column": 48
250                  }
251                }
252              },
253              "alternate": {
254                "type": "Identifier",
255                "name": "time",
256                "loc": {
257                  "start": {
258                    "line": 18,
259                    "column": 51
260                  },
261                  "end": {
262                    "line": 18,
263                    "column": 55
264                  }
265                }
266              },
267              "loc": {
268                "start": {
269                  "line": 18,
270                  "column": 31
271                },
272                "end": {
273                  "line": 18,
274                  "column": 56
275                }
276              }
277            },
278            "loc": {
279              "start": {
280                "line": 18,
281                "column": 9
282              },
283              "end": {
284                "line": 18,
285                "column": 56
286              }
287            }
288          },
289          "loc": {
290            "start": {
291              "line": 18,
292              "column": 5
293            },
294            "end": {
295              "line": 18,
296              "column": 56
297            }
298          }
299        }
300      ],
301      "kind": "let",
302      "loc": {
303        "start": {
304          "line": 18,
305          "column": 1
306        },
307        "end": {
308          "line": 18,
309          "column": 57
310        }
311      }
312    }
313  ],
314  "loc": {
315    "start": {
316      "line": 1,
317      "column": 1
318    },
319    "end": {
320      "line": 19,
321      "column": 1
322    }
323  }
324}
325