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            "typeAnnotation": {
13              "type": "TSNumberKeyword",
14              "loc": {
15                "start": {
16                  "line": 17,
17                  "column": 7
18                },
19                "end": {
20                  "line": 17,
21                  "column": 13
22                }
23              }
24            },
25            "loc": {
26              "start": {
27                "line": 17,
28                "column": 5
29              },
30              "end": {
31                "line": 17,
32                "column": 6
33              }
34            }
35          },
36          "init": {
37            "type": "NumberLiteral",
38            "value": 1,
39            "loc": {
40              "start": {
41                "line": 17,
42                "column": 16
43              },
44              "end": {
45                "line": 17,
46                "column": 17
47              }
48            }
49          },
50          "loc": {
51            "start": {
52              "line": 17,
53              "column": 5
54            },
55            "end": {
56              "line": 17,
57              "column": 17
58            }
59          }
60        }
61      ],
62      "kind": "let",
63      "loc": {
64        "start": {
65          "line": 17,
66          "column": 1
67        },
68        "end": {
69          "line": 17,
70          "column": 17
71        }
72      }
73    },
74    {
75      "type": "IfStatement",
76      "test": {
77        "type": "AssignmentExpression",
78        "operator": "=",
79        "left": {
80          "type": "TSNonNullExpression",
81          "expression": {
82            "type": "Identifier",
83            "name": "a",
84            "loc": {
85              "start": {
86                "line": 18,
87                "column": 5
88              },
89              "end": {
90                "line": 18,
91                "column": 6
92              }
93            }
94          },
95          "loc": {
96            "start": {
97              "line": 18,
98              "column": 5
99            },
100            "end": {
101              "line": 18,
102              "column": 8
103            }
104          }
105        },
106        "right": {
107          "type": "NumberLiteral",
108          "value": 2,
109          "loc": {
110            "start": {
111              "line": 18,
112              "column": 11
113            },
114            "end": {
115              "line": 18,
116              "column": 12
117            }
118          }
119        },
120        "loc": {
121          "start": {
122            "line": 18,
123            "column": 5
124          },
125          "end": {
126            "line": 18,
127            "column": 12
128          }
129        }
130      },
131      "consequent": {
132        "type": "BlockStatement",
133        "statements": [
134          {
135            "type": "ExpressionStatement",
136            "expression": {
137              "type": "CallExpression",
138              "callee": {
139                "type": "Identifier",
140                "name": "print",
141                "loc": {
142                  "start": {
143                    "line": 19,
144                    "column": 5
145                  },
146                  "end": {
147                    "line": 19,
148                    "column": 10
149                  }
150                }
151              },
152              "arguments": [
153                {
154                  "type": "StringLiteral",
155                  "value": "hello",
156                  "loc": {
157                    "start": {
158                      "line": 19,
159                      "column": 11
160                    },
161                    "end": {
162                      "line": 19,
163                      "column": 18
164                    }
165                  }
166                }
167              ],
168              "optional": false,
169              "loc": {
170                "start": {
171                  "line": 19,
172                  "column": 5
173                },
174                "end": {
175                  "line": 19,
176                  "column": 19
177                }
178              }
179            },
180            "loc": {
181              "start": {
182                "line": 19,
183                "column": 5
184              },
185              "end": {
186                "line": 19,
187                "column": 19
188              }
189            }
190          }
191        ],
192        "loc": {
193          "start": {
194            "line": 18,
195            "column": 14
196          },
197          "end": {
198            "line": 20,
199            "column": 2
200          }
201        }
202      },
203      "alternate": null,
204      "loc": {
205        "start": {
206          "line": 18,
207          "column": 1
208        },
209        "end": {
210          "line": 20,
211          "column": 2
212        }
213      }
214    }
215  ],
216  "loc": {
217    "start": {
218      "line": 1,
219      "column": 1
220    },
221    "end": {
222      "line": 20,
223      "column": 2
224    }
225  }
226}
227