Debian Codegraph @

tests/fixtures/ecma-version/9/rest-property/valid-declaration-1.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 1,
10 "column": 18
11 }
12 },
13 "range": [
14 0,
15 18
16 ],
17 "body": [
18 {
19 "type": "VariableDeclaration",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 1,
27 "column": 18
28 }
29 },
30 "range": [
31 0,
32 18
33 ],
34 "declarations": [
35 {
36 "type": "VariableDeclarator",
37 "loc": {
38 "start": {
39 "line": 1,
40 "column": 4
41 },
42 "end": {
43 "line": 1,
44 "column": 18
45 }
46 },
47 "range": [
48 4,
49 18
50 ],
51 "id": {
52 "type": "ObjectPattern",
53 "loc": {
54 "start": {
55 "line": 1,
56 "column": 4
57 },
58 "end": {
59 "line": 1,
60 "column": 12
61 }
62 },
63 "range": [
64 4,
65 12
66 ],
67 "properties": [
68 {
69 "type": "RestElement",
70 "loc": {
71 "start": {
72 "line": 1,
73 "column": 5
74 },
75 "end": {
76 "line": 1,
77 "column": 11
78 }
79 },
80 "range": [
81 5,
82 11
83 ],
84 "argument": {
85 "type": "Identifier",
86 "loc": {
87 "start": {
88 "line": 1,
89 "column": 8
90 },
91 "end": {
92 "line": 1,
93 "column": 11
94 }
95 },
96 "range": [
97 8,
98 11
99 ],
100 "name": "obj"
101 }
102 }
103 ]
104 },
105 "init": {
106 "type": "Identifier",
107 "loc": {
108 "start": {
109 "line": 1,
110 "column": 15
111 },
112 "end": {
113 "line": 1,
114 "column": 18
115 }
116 },
117 "range": [
118 15,
119 18
120 ],
121 "name": "foo"
122 }
123 }
124 ],
125 "kind": "let"
126 }
127 ],
128 "sourceType": "script",
129 "tokens": [
130 {
131 "type": "Keyword",
132 "value": "let",
133 "loc": {
134 "start": {
135 "line": 1,
136 "column": 0
137 },
138 "end": {
139 "line": 1,
140 "column": 3
141 }
142 },
143 "range": [
144 0,
145 3
146 ]
147 },
148 {
149 "type": "Punctuator",
150 "value": "{",
151 "loc": {
152 "start": {
153 "line": 1,
154 "column": 4
155 },
156 "end": {
157 "line": 1,
158 "column": 5
159 }
160 },
161 "range": [
162 4,
163 5
164 ]
165 },
166 {
167 "type": "Punctuator",
168 "value": "...",
169 "loc": {
170 "start": {
171 "line": 1,
172 "column": 5
173 },
174 "end": {
175 "line": 1,
176 "column": 8
177 }
178 },
179 "range": [
180 5,
181 8
182 ]
183 },
184 {
185 "type": "Identifier",
186 "value": "obj",
187 "loc": {
188 "start": {
189 "line": 1,
190 "column": 8
191 },
192 "end": {
193 "line": 1,
194 "column": 11
195 }
196 },
197 "range": [
198 8,
199 11
200 ]
201 },
202 {
203 "type": "Punctuator",
204 "value": "}",
205 "loc": {
206 "start": {
207 "line": 1,
208 "column": 11
209 },
210 "end": {
211 "line": 1,
212 "column": 12
213 }
214 },
215 "range": [
216 11,
217 12
218 ]
219 },
220 {
221 "type": "Punctuator",
222 "value": "=",
223 "loc": {
224 "start": {
225 "line": 1,
226 "column": 13
227 },
228 "end": {
229 "line": 1,
230 "column": 14
231 }
232 },
233 "range": [
234 13,
235 14
236 ]
237 },
238 {
239 "type": "Identifier",
240 "value": "foo",
241 "loc": {
242 "start": {
243 "line": 1,
244 "column": 15
245 },
246 "end": {
247 "line": 1,
248 "column": 18
249 }
250 },
251 "range": [
252 15,
253 18
254 ]
255 }
256 ]
257 };