Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":31,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":31,"index":31}},
17 "id": {
18 "type": "ObjectPattern",
19 "start":4,"end":29,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":29,"index":29}},
20 "properties": [
21 {
22 "type": "ObjectProperty",
23 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6}},
24 "key": {
25 "type": "Identifier",
26 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"a"},
27 "name": "a"
28 },
29 "computed": false,
30 "method": false,
31 "shorthand": true,
32 "value": {
33 "type": "Identifier",
34 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"a"},
35 "name": "a"
36 },
37 "extra": {
38 "shorthand": true
39 }
40 },
41 {
42 "type": "ObjectProperty",
43 "start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10}},
44 "key": {
45 "type": "Identifier",
46 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"b"},
47 "name": "b"
48 },
49 "computed": false,
50 "method": false,
51 "shorthand": true,
52 "value": {
53 "type": "AssignmentPattern",
54 "start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10}},
55 "left": {
56 "type": "Identifier",
57 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"b"},
58 "name": "b"
59 },
60 "right": {
61 "type": "NumericLiteral",
62 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}},
63 "extra": {
64 "rawValue": 0,
65 "raw": "0"
66 },
67 "value": 0
68 }
69 },
70 "extra": {
71 "shorthand": true
72 }
73 },
74 {
75 "type": "ObjectProperty",
76 "start":11,"end":14,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":14,"index":14}},
77 "key": {
78 "type": "Identifier",
79 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"c"},
80 "name": "c"
81 },
82 "computed": false,
83 "method": false,
84 "shorthand": false,
85 "value": {
86 "type": "Identifier",
87 "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"d"},
88 "name": "d"
89 }
90 },
91 {
92 "type": "ObjectProperty",
93 "start":15,"end":20,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":20,"index":20}},
94 "key": {
95 "type": "Identifier",
96 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"e"},
97 "name": "e"
98 },
99 "computed": false,
100 "method": false,
101 "shorthand": false,
102 "value": {
103 "type": "AssignmentPattern",
104 "start":17,"end":20,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":20,"index":20}},
105 "left": {
106 "type": "Identifier",
107 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"f"},
108 "name": "f"
109 },
110 "right": {
111 "type": "NumericLiteral",
112 "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20}},
113 "extra": {
114 "rawValue": 0,
115 "raw": "0"
116 },
117 "value": 0
118 }
119 }
120 },
121 {
122 "type": "ObjectProperty",
123 "start":21,"end":28,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":28,"index":28}},
124 "computed": true,
125 "key": {
126 "type": "Identifier",
127 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23},"identifierName":"g"},
128 "name": "g"
129 },
130 "method": false,
131 "shorthand": false,
132 "value": {
133 "type": "ArrayPattern",
134 "start":25,"end":28,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":28,"index":28}},
135 "elements": [
136 {
137 "type": "Identifier",
138 "start":26,"end":27,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":27,"index":27},"identifierName":"h"},
139 "name": "h"
140 }
141 ]
142 }
143 }
144 ]
145 },
146 "init": {
147 "type": "NumericLiteral",
148 "start":30,"end":31,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":31,"index":31}},
149 "extra": {
150 "rawValue": 0,
151 "raw": "0"
152 },
153 "value": 0
154 }
155 }
156 ],
157 "kind": "let"
158 }
159 ],
160 "directives": []
161 }
162 }