• 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            "typeAnnotation": {
13              "type": "TSNullKeyword",
14              "loc": {
15                "start": {
16                  "line": 17,
17                  "column": 8
18                },
19                "end": {
20                  "line": 17,
21                  "column": 12
22                }
23              }
24            },
25            "decorators": [],
26            "loc": {
27              "start": {
28                "line": 17,
29                "column": 5
30              },
31              "end": {
32                "line": 17,
33                "column": 6
34              }
35            }
36          },
37          "init": null,
38          "loc": {
39            "start": {
40              "line": 17,
41              "column": 5
42            },
43            "end": {
44              "line": 17,
45              "column": 6
46            }
47          }
48        }
49      ],
50      "kind": "var",
51      "loc": {
52        "start": {
53          "line": 17,
54          "column": 1
55        },
56        "end": {
57          "line": 17,
58          "column": 13
59        }
60      }
61    },
62    {
63      "type": "VariableDeclaration",
64      "declarations": [
65        {
66          "type": "VariableDeclarator",
67          "id": {
68            "type": "Identifier",
69            "name": "b",
70            "typeAnnotation": {
71              "type": "TSAnyKeyword",
72              "loc": {
73                "start": {
74                  "line": 18,
75                  "column": 8
76                },
77                "end": {
78                  "line": 18,
79                  "column": 11
80                }
81              }
82            },
83            "decorators": [],
84            "loc": {
85              "start": {
86                "line": 18,
87                "column": 5
88              },
89              "end": {
90                "line": 18,
91                "column": 6
92              }
93            }
94          },
95          "init": null,
96          "loc": {
97            "start": {
98              "line": 18,
99              "column": 5
100            },
101            "end": {
102              "line": 18,
103              "column": 6
104            }
105          }
106        }
107      ],
108      "kind": "var",
109      "loc": {
110        "start": {
111          "line": 18,
112          "column": 1
113        },
114        "end": {
115          "line": 18,
116          "column": 12
117        }
118      }
119    },
120    {
121      "type": "ExpressionStatement",
122      "expression": {
123        "type": "BinaryExpression",
124        "operator": "in",
125        "left": {
126          "type": "Identifier",
127          "name": "a",
128          "decorators": [],
129          "loc": {
130            "start": {
131              "line": 19,
132              "column": 1
133            },
134            "end": {
135              "line": 19,
136              "column": 2
137            }
138          }
139        },
140        "right": {
141          "type": "Identifier",
142          "name": "b",
143          "decorators": [],
144          "loc": {
145            "start": {
146              "line": 19,
147              "column": 6
148            },
149            "end": {
150              "line": 19,
151              "column": 7
152            }
153          }
154        },
155        "loc": {
156          "start": {
157            "line": 19,
158            "column": 1
159          },
160          "end": {
161            "line": 19,
162            "column": 7
163          }
164        }
165      },
166      "loc": {
167        "start": {
168          "line": 19,
169          "column": 1
170        },
171        "end": {
172          "line": 19,
173          "column": 8
174        }
175      }
176    }
177  ],
178  "loc": {
179    "start": {
180      "line": 1,
181      "column": 1
182    },
183    "end": {
184      "line": 20,
185      "column": 1
186    }
187  }
188}
189TypeError: Object is possibly 'null'. [in_1.ts:19:1]
190