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