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