Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-array-pattern/with-default-fn/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"a"},
16 "name": "a"
17 },
18 "generator": false,
19 "async": false,
20 "params": [
21 {
22 "type": "ArrayPattern",
23 "start":11,"end":16,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":16,"index":16}},
24 "elements": [
25 {
26 "type": "AssignmentPattern",
27 "start":12,"end":15,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":15,"index":15}},
28 "left": {
29 "type": "Identifier",
30 "start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"a"},
31 "name": "a"
32 },
33 "right": {
34 "type": "NumericLiteral",
35 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15}},
36 "extra": {
37 "rawValue": 0,
38 "raw": "0"
39 },
40 "value": 0
41 }
42 }
43 ]
44 }
45 ],
46 "body": {
47 "type": "BlockStatement",
48 "start":18,"end":20,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":20,"index":20}},
49 "body": [],
50 "directives": []
51 }
52 }
53 ],
54 "directives": []
55 }
56 }