Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-01/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
13 "expression": {
14 "type": "ArrowFunctionExpression",
15 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
16 "id": null,
17 "generator": false,
18 "async": false,
19 "params": [
20 {
21 "type": "ObjectPattern",
22 "start":1,"end":20,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":20,"index":20}},
23 "properties": [
24 {
25 "type": "ObjectProperty",
26 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3}},
27 "method": false,
28 "key": {
29 "type": "Identifier",
30 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
31 "name": "a"
32 },
33 "computed": false,
34 "shorthand": true,
35 "value": {
36 "type": "Identifier",
37 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
38 "name": "a"
39 },
40 "extra": {
41 "shorthand": true
42 }
43 },
44 {
45 "type": "ObjectProperty",
46 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7}},
47 "method": false,
48 "key": {
49 "type": "Identifier",
50 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"b"},
51 "name": "b"
52 },
53 "computed": false,
54 "shorthand": true,
55 "value": {
56 "type": "AssignmentPattern",
57 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7}},
58 "left": {
59 "type": "Identifier",
60 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"b"},
61 "name": "b"
62 },
63 "right": {
64 "type": "Identifier",
65 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"b"},
66 "name": "b"
67 }
68 },
69 "extra": {
70 "shorthand": true
71 }
72 },
73 {
74 "type": "ObjectProperty",
75 "start":8,"end":11,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":11,"index":11}},
76 "method": false,
77 "key": {
78 "type": "Identifier",
79 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9},"identifierName":"a"},
80 "name": "a"
81 },
82 "computed": false,
83 "shorthand": false,
84 "value": {
85 "type": "Identifier",
86 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"c"},
87 "name": "c"
88 }
89 },
90 {
91 "type": "ObjectProperty",
92 "start":12,"end":19,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":19,"index":19}},
93 "method": false,
94 "computed": true,
95 "key": {
96 "type": "Identifier",
97 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"a"},
98 "name": "a"
99 },
100 "shorthand": false,
101 "value": {
102 "type": "ArrayPattern",
103 "start":16,"end":19,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":19,"index":19}},
104 "elements": [
105 {
106 "type": "Identifier",
107 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"d"},
108 "name": "d"
109 }
110 ]
111 }
112 }
113 ]
114 }
115 ],
116 "body": {
117 "type": "NumericLiteral",
118 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24}},
119 "extra": {
120 "rawValue": 0,
121 "raw": "0"
122 },
123 "value": 0
124 }
125 }
126 }
127 ],
128 "directives": []
129 }
130 }