Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/rest/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":14,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":14,"index":14}},
17 "id": {
18 "type": "ArrayPattern",
19 "start":4,"end":10,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":10,"index":10}},
20 "elements": [
21 {
22 "type": "RestElement",
23 "start":5,"end":9,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":9,"index":9}},
24 "argument": {
25 "type": "Identifier",
26 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9},"identifierName":"a"},
27 "name": "a"
28 }
29 }
30 ]
31 },
32 "init": {
33 "type": "NumericLiteral",
34 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}},
35 "extra": {
36 "rawValue": 0,
37 "raw": "0"
38 },
39 "value": 0
40 }
41 }
42 ],
43 "kind": "let"
44 }
45 ],
46 "directives": []
47 }
48 }