Debian Codegraph @

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

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