• 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": "ObjectPattern",
11            "properties": [
12              {
13                "type": "Property",
14                "method": false,
15                "shorthand": false,
16                "computed": false,
17                "key": {
18                  "type": "Identifier",
19                  "name": "a",
20                  "decorators": [],
21                  "loc": {
22                    "start": {
23                      "line": 17,
24                      "column": 7
25                    },
26                    "end": {
27                      "line": 17,
28                      "column": 8
29                    }
30                  }
31                },
32                "value": {
33                  "type": "AssignmentPattern",
34                  "left": {
35                    "type": "ObjectPattern",
36                    "properties": [
37                      {
38                        "type": "Property",
39                        "method": false,
40                        "shorthand": true,
41                        "computed": false,
42                        "key": {
43                          "type": "Identifier",
44                          "name": "a",
45                          "decorators": [],
46                          "loc": {
47                            "start": {
48                              "line": 17,
49                              "column": 12
50                            },
51                            "end": {
52                              "line": 17,
53                              "column": 13
54                            }
55                          }
56                        },
57                        "value": {
58                          "type": "Identifier",
59                          "name": "a",
60                          "decorators": [],
61                          "loc": {
62                            "start": {
63                              "line": 17,
64                              "column": 12
65                            },
66                            "end": {
67                              "line": 17,
68                              "column": 13
69                            }
70                          }
71                        },
72                        "kind": "init",
73                        "loc": {
74                          "start": {
75                            "line": 17,
76                            "column": 12
77                          },
78                          "end": {
79                            "line": 17,
80                            "column": 13
81                          }
82                        }
83                      },
84                      {
85                        "type": "Property",
86                        "method": false,
87                        "shorthand": true,
88                        "computed": false,
89                        "key": {
90                          "type": "Identifier",
91                          "name": "b",
92                          "decorators": [],
93                          "loc": {
94                            "start": {
95                              "line": 17,
96                              "column": 15
97                            },
98                            "end": {
99                              "line": 17,
100                              "column": 16
101                            }
102                          }
103                        },
104                        "value": {
105                          "type": "Identifier",
106                          "name": "b",
107                          "decorators": [],
108                          "loc": {
109                            "start": {
110                              "line": 17,
111                              "column": 15
112                            },
113                            "end": {
114                              "line": 17,
115                              "column": 16
116                            }
117                          }
118                        },
119                        "kind": "init",
120                        "loc": {
121                          "start": {
122                            "line": 17,
123                            "column": 15
124                          },
125                          "end": {
126                            "line": 17,
127                            "column": 16
128                          }
129                        }
130                      }
131                    ],
132                    "loc": {
133                      "start": {
134                        "line": 17,
135                        "column": 10
136                      },
137                      "end": {
138                        "line": 17,
139                        "column": 18
140                      }
141                    }
142                  },
143                  "right": {
144                    "type": "ObjectExpression",
145                    "properties": [
146                      {
147                        "type": "Property",
148                        "method": false,
149                        "shorthand": false,
150                        "computed": false,
151                        "key": {
152                          "type": "Identifier",
153                          "name": "a",
154                          "decorators": [],
155                          "loc": {
156                            "start": {
157                              "line": 17,
158                              "column": 23
159                            },
160                            "end": {
161                              "line": 17,
162                              "column": 24
163                            }
164                          }
165                        },
166                        "value": {
167                          "type": "NumberLiteral",
168                          "value": 1,
169                          "loc": {
170                            "start": {
171                              "line": 17,
172                              "column": 26
173                            },
174                            "end": {
175                              "line": 17,
176                              "column": 27
177                            }
178                          }
179                        },
180                        "kind": "init",
181                        "loc": {
182                          "start": {
183                            "line": 17,
184                            "column": 23
185                          },
186                          "end": {
187                            "line": 17,
188                            "column": 27
189                          }
190                        }
191                      },
192                      {
193                        "type": "Property",
194                        "method": false,
195                        "shorthand": false,
196                        "computed": false,
197                        "key": {
198                          "type": "Identifier",
199                          "name": "b",
200                          "decorators": [],
201                          "loc": {
202                            "start": {
203                              "line": 17,
204                              "column": 29
205                            },
206                            "end": {
207                              "line": 17,
208                              "column": 30
209                            }
210                          }
211                        },
212                        "value": {
213                          "type": "BooleanLiteral",
214                          "value": true,
215                          "loc": {
216                            "start": {
217                              "line": 17,
218                              "column": 32
219                            },
220                            "end": {
221                              "line": 17,
222                              "column": 36
223                            }
224                          }
225                        },
226                        "kind": "init",
227                        "loc": {
228                          "start": {
229                            "line": 17,
230                            "column": 29
231                          },
232                          "end": {
233                            "line": 17,
234                            "column": 36
235                          }
236                        }
237                      }
238                    ],
239                    "loc": {
240                      "start": {
241                        "line": 17,
242                        "column": 21
243                      },
244                      "end": {
245                        "line": 17,
246                        "column": 38
247                      }
248                    }
249                  },
250                  "loc": {
251                    "start": {
252                      "line": 17,
253                      "column": 10
254                    },
255                    "end": {
256                      "line": 17,
257                      "column": 38
258                    }
259                  }
260                },
261                "kind": "init",
262                "loc": {
263                  "start": {
264                    "line": 17,
265                    "column": 7
266                  },
267                  "end": {
268                    "line": 17,
269                    "column": 38
270                  }
271                }
272              }
273            ],
274            "loc": {
275              "start": {
276                "line": 17,
277                "column": 5
278              },
279              "end": {
280                "line": 17,
281                "column": 40
282              }
283            }
284          },
285          "init": {
286            "type": "ObjectExpression",
287            "properties": [
288              {
289                "type": "Property",
290                "method": false,
291                "shorthand": false,
292                "computed": false,
293                "key": {
294                  "type": "Identifier",
295                  "name": "a",
296                  "decorators": [],
297                  "loc": {
298                    "start": {
299                      "line": 17,
300                      "column": 45
301                    },
302                    "end": {
303                      "line": 17,
304                      "column": 46
305                    }
306                  }
307                },
308                "value": {
309                  "type": "NumberLiteral",
310                  "value": 5,
311                  "loc": {
312                    "start": {
313                      "line": 17,
314                      "column": 48
315                    },
316                    "end": {
317                      "line": 17,
318                      "column": 49
319                    }
320                  }
321                },
322                "kind": "init",
323                "loc": {
324                  "start": {
325                    "line": 17,
326                    "column": 45
327                  },
328                  "end": {
329                    "line": 17,
330                    "column": 49
331                  }
332                }
333              }
334            ],
335            "loc": {
336              "start": {
337                "line": 17,
338                "column": 43
339              },
340              "end": {
341                "line": 17,
342                "column": 51
343              }
344            }
345          },
346          "loc": {
347            "start": {
348              "line": 17,
349              "column": 5
350            },
351            "end": {
352              "line": 17,
353              "column": 51
354            }
355          }
356        }
357      ],
358      "kind": "var",
359      "loc": {
360        "start": {
361          "line": 17,
362          "column": 1
363        },
364        "end": {
365          "line": 17,
366          "column": 51
367        }
368      }
369    }
370  ],
371  "loc": {
372    "start": {
373      "line": 1,
374      "column": 1
375    },
376    "end": {
377      "line": 17,
378      "column": 51
379    }
380  }
381}
382TypeError: Property a does not exist on type number | { a: number; b: boolean; }. [objectDestructuring10.ts:17:10]
383