Debian Codegraph @

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