Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-array-pattern/nested-cover-grammar/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
13 "expression": {
14 "type": "ArrayExpression",
15 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
16 "elements": [
17 {
18 "type": "AssignmentExpression",
19 "start":1,"end":8,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":8,"index":8}},
20 "operator": "=",
21 "left": {
22 "type": "ObjectPattern",
23 "start":1,"end":6,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":6,"index":6}},
24 "properties": [
25 {
26 "type": "ObjectProperty",
27 "start":2,"end":5,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":5,"index":5}},
28 "method": false,
29 "key": {
30 "type": "Identifier",
31 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
32 "name": "a"
33 },
34 "computed": false,
35 "shorthand": true,
36 "value": {
37 "type": "AssignmentPattern",
38 "start":2,"end":5,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":5,"index":5}},
39 "left": {
40 "type": "Identifier",
41 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
42 "name": "a"
43 },
44 "right": {
45 "type": "Identifier",
46 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"b"},
47 "name": "b"
48 }
49 },
50 "extra": {
51 "shorthand": true
52 }
53 }
54 ]
55 },
56 "right": {
57 "type": "NumericLiteral",
58 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8}},
59 "extra": {
60 "rawValue": 0,
61 "raw": "0"
62 },
63 "value": 0
64 }
65 }
66 ]
67 }
68 }
69 ],
70 "directives": []
71 }
72 }