• 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            "decorators": [],
13            "loc": {
14              "start": {
15                "line": 17,
16                "column": 5,
17                "program": "test-array-expression.js"
18              },
19              "end": {
20                "line": 17,
21                "column": 6,
22                "program": "test-array-expression.js"
23              }
24            }
25          },
26          "init": {
27            "type": "ArrayExpression",
28            "elements": [],
29            "loc": {
30              "start": {
31                "line": 17,
32                "column": 9,
33                "program": "test-array-expression.js"
34              },
35              "end": {
36                "line": 17,
37                "column": 11,
38                "program": "test-array-expression.js"
39              }
40            }
41          },
42          "loc": {
43            "start": {
44              "line": 17,
45              "column": 5,
46              "program": "test-array-expression.js"
47            },
48            "end": {
49              "line": 17,
50              "column": 11,
51              "program": "test-array-expression.js"
52            }
53          }
54        }
55      ],
56      "kind": "let",
57      "loc": {
58        "start": {
59          "line": 17,
60          "column": 1,
61          "program": "test-array-expression.js"
62        },
63        "end": {
64          "line": 17,
65          "column": 12,
66          "program": "test-array-expression.js"
67        }
68      }
69    },
70    {
71      "type": "ExpressionStatement",
72      "expression": {
73        "type": "MemberExpression",
74        "object": {
75          "type": "ArrayExpression",
76          "elements": [
77            {
78              "type": "Identifier",
79              "name": "a",
80              "decorators": [],
81              "loc": {
82                "start": {
83                  "line": 20,
84                  "column": 3,
85                  "program": "test-array-expression.js"
86                },
87                "end": {
88                  "line": 20,
89                  "column": 4,
90                  "program": "test-array-expression.js"
91                }
92              }
93            },
94            {
95              "type": "Identifier",
96              "name": "b",
97              "decorators": [],
98              "loc": {
99                "start": {
100                  "line": 22,
101                  "column": 3,
102                  "program": "test-array-expression.js"
103                },
104                "end": {
105                  "line": 22,
106                  "column": 4,
107                  "program": "test-array-expression.js"
108                }
109              }
110            },
111            {
112              "type": "MemberExpression",
113              "object": {
114                "type": "Identifier",
115                "name": "c",
116                "decorators": [],
117                "loc": {
118                  "start": {
119                    "line": 22,
120                    "column": 5,
121                    "program": "test-array-expression.js"
122                  },
123                  "end": {
124                    "line": 22,
125                    "column": 6,
126                    "program": "test-array-expression.js"
127                  }
128                }
129              },
130              "property": {
131                "type": "StringLiteral",
132                "value": "d",
133                "loc": {
134                  "start": {
135                    "line": 22,
136                    "column": 7,
137                    "program": "test-array-expression.js"
138                  },
139                  "end": {
140                    "line": 22,
141                    "column": 10,
142                    "program": "test-array-expression.js"
143                  }
144                }
145              },
146              "computed": true,
147              "optional": false,
148              "loc": {
149                "start": {
150                  "line": 22,
151                  "column": 5,
152                  "program": "test-array-expression.js"
153                },
154                "end": {
155                  "line": 22,
156                  "column": 11,
157                  "program": "test-array-expression.js"
158                }
159              }
160            },
161            {
162              "type": "ArrayExpression",
163              "elements": [
164                {
165                  "type": "StringLiteral",
166                  "value": "",
167                  "loc": {
168                    "start": {
169                      "line": 23,
170                      "column": 4,
171                      "program": "test-array-expression.js"
172                    },
173                    "end": {
174                      "line": 23,
175                      "column": 6,
176                      "program": "test-array-expression.js"
177                    }
178                  }
179                },
180                {
181                  "type": "CallExpression",
182                  "callee": {
183                    "type": "Identifier",
184                    "name": "b",
185                    "decorators": [],
186                    "loc": {
187                      "start": {
188                        "line": 23,
189                        "column": 7,
190                        "program": "test-array-expression.js"
191                      },
192                      "end": {
193                        "line": 23,
194                        "column": 8,
195                        "program": "test-array-expression.js"
196                      }
197                    }
198                  },
199                  "arguments": [],
200                  "optional": false,
201                  "loc": {
202                    "start": {
203                      "line": 23,
204                      "column": 7,
205                      "program": "test-array-expression.js"
206                    },
207                    "end": {
208                      "line": 23,
209                      "column": 10,
210                      "program": "test-array-expression.js"
211                    }
212                  }
213                }
214              ],
215              "loc": {
216                "start": {
217                  "line": 23,
218                  "column": 3,
219                  "program": "test-array-expression.js"
220                },
221                "end": {
222                  "line": 23,
223                  "column": 11,
224                  "program": "test-array-expression.js"
225                }
226              }
227            },
228            {
229              "type": "OmittedExpression",
230              "loc": {
231                "start": {
232                  "line": 25,
233                  "column": 3,
234                  "program": "test-array-expression.js"
235                },
236                "end": {
237                  "line": 25,
238                  "column": 4,
239                  "program": "test-array-expression.js"
240                }
241              }
242            },
243            {
244              "type": "Identifier",
245              "name": "d",
246              "decorators": [],
247              "loc": {
248                "start": {
249                  "line": 26,
250                  "column": 3,
251                  "program": "test-array-expression.js"
252                },
253                "end": {
254                  "line": 26,
255                  "column": 4,
256                  "program": "test-array-expression.js"
257                }
258              }
259            }
260          ],
261          "loc": {
262            "start": {
263              "line": 19,
264              "column": 1,
265              "program": "test-array-expression.js"
266            },
267            "end": {
268              "line": 27,
269              "column": 2,
270              "program": "test-array-expression.js"
271            }
272          }
273        },
274        "property": {
275          "type": "ArrayExpression",
276          "elements": [
277            {
278              "type": "ArrayExpression",
279              "elements": [
280                {
281                  "type": "ArrayExpression",
282                  "elements": [],
283                  "loc": {
284                    "start": {
285                      "line": 29,
286                      "column": 4,
287                      "program": "test-array-expression.js"
288                    },
289                    "end": {
290                      "line": 29,
291                      "column": 6,
292                      "program": "test-array-expression.js"
293                    }
294                  }
295                }
296              ],
297              "loc": {
298                "start": {
299                  "line": 29,
300                  "column": 3,
301                  "program": "test-array-expression.js"
302                },
303                "end": {
304                  "line": 29,
305                  "column": 7,
306                  "program": "test-array-expression.js"
307                }
308              }
309            }
310          ],
311          "loc": {
312            "start": {
313              "line": 29,
314              "column": 2,
315              "program": "test-array-expression.js"
316            },
317            "end": {
318              "line": 29,
319              "column": 8,
320              "program": "test-array-expression.js"
321            }
322          }
323        },
324        "computed": true,
325        "optional": false,
326        "loc": {
327          "start": {
328            "line": 19,
329            "column": 1,
330            "program": "test-array-expression.js"
331          },
332          "end": {
333            "line": 29,
334            "column": 9,
335            "program": "test-array-expression.js"
336          }
337        }
338      },
339      "loc": {
340        "start": {
341          "line": 19,
342          "column": 1,
343          "program": "test-array-expression.js"
344        },
345        "end": {
346          "line": 29,
347          "column": 9,
348          "program": "test-array-expression.js"
349        }
350      }
351    },
352    {
353      "type": "ExpressionStatement",
354      "expression": {
355        "type": "AssignmentExpression",
356        "operator": "=",
357        "left": {
358          "type": "Identifier",
359          "name": "f",
360          "decorators": [],
361          "loc": {
362            "start": {
363              "line": 31,
364              "column": 1,
365              "program": "test-array-expression.js"
366            },
367            "end": {
368              "line": 31,
369              "column": 2,
370              "program": "test-array-expression.js"
371            }
372          }
373        },
374        "right": {
375          "type": "CallExpression",
376          "callee": {
377            "type": "ArrayExpression",
378            "elements": [
379              {
380                "type": "CallExpression",
381                "callee": {
382                  "type": "ArrayExpression",
383                  "elements": [],
384                  "loc": {
385                    "start": {
386                      "line": 31,
387                      "column": 6,
388                      "program": "test-array-expression.js"
389                    },
390                    "end": {
391                      "line": 31,
392                      "column": 8,
393                      "program": "test-array-expression.js"
394                    }
395                  }
396                },
397                "arguments": [],
398                "optional": false,
399                "loc": {
400                  "start": {
401                    "line": 31,
402                    "column": 6,
403                    "program": "test-array-expression.js"
404                  },
405                  "end": {
406                    "line": 31,
407                    "column": 10,
408                    "program": "test-array-expression.js"
409                  }
410                }
411              }
412            ],
413            "loc": {
414              "start": {
415                "line": 31,
416                "column": 5,
417                "program": "test-array-expression.js"
418              },
419              "end": {
420                "line": 31,
421                "column": 11,
422                "program": "test-array-expression.js"
423              }
424            }
425          },
426          "arguments": [],
427          "optional": false,
428          "loc": {
429            "start": {
430              "line": 31,
431              "column": 5,
432              "program": "test-array-expression.js"
433            },
434            "end": {
435              "line": 31,
436              "column": 13,
437              "program": "test-array-expression.js"
438            }
439          }
440        },
441        "loc": {
442          "start": {
443            "line": 31,
444            "column": 1,
445            "program": "test-array-expression.js"
446          },
447          "end": {
448            "line": 31,
449            "column": 13,
450            "program": "test-array-expression.js"
451          }
452        }
453      },
454      "loc": {
455        "start": {
456          "line": 31,
457          "column": 1,
458          "program": "test-array-expression.js"
459        },
460        "end": {
461          "line": 31,
462          "column": 14,
463          "program": "test-array-expression.js"
464        }
465      }
466    },
467    {
468      "type": "ExpressionStatement",
469      "expression": {
470        "type": "ArrayExpression",
471        "elements": [
472          {
473            "type": "NumberLiteral",
474            "value": 0,
475            "loc": {
476              "start": {
477                "line": 33,
478                "column": 2,
479                "program": "test-array-expression.js"
480              },
481              "end": {
482                "line": 33,
483                "column": 3,
484                "program": "test-array-expression.js"
485              }
486            }
487          },
488          {
489            "type": "SpreadElement",
490            "argument": {
491              "type": "Identifier",
492              "name": "spread",
493              "decorators": [],
494              "loc": {
495                "start": {
496                  "line": 33,
497                  "column": 8,
498                  "program": "test-array-expression.js"
499                },
500                "end": {
501                  "line": 33,
502                  "column": 14,
503                  "program": "test-array-expression.js"
504                }
505              }
506            },
507            "loc": {
508              "start": {
509                "line": 33,
510                "column": 5,
511                "program": "test-array-expression.js"
512              },
513              "end": {
514                "line": 33,
515                "column": 14,
516                "program": "test-array-expression.js"
517              }
518            }
519          }
520        ],
521        "loc": {
522          "start": {
523            "line": 33,
524            "column": 1,
525            "program": "test-array-expression.js"
526          },
527          "end": {
528            "line": 33,
529            "column": 15,
530            "program": "test-array-expression.js"
531          }
532        }
533      },
534      "loc": {
535        "start": {
536          "line": 33,
537          "column": 1,
538          "program": "test-array-expression.js"
539        },
540        "end": {
541          "line": 33,
542          "column": 15,
543          "program": "test-array-expression.js"
544        }
545      }
546    }
547  ],
548  "loc": {
549    "start": {
550      "line": 1,
551      "column": 1,
552      "program": "test-array-expression.js"
553    },
554    "end": {
555      "line": 33,
556      "column": 15,
557      "program": "test-array-expression.js"
558    }
559  }
560}
561