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