Debian Codegraph @

tests/fixtures/ecma-version/6/arrowFunctions/return-arrow-function.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": true,
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": "x"
71 }
72 ],
73 "body": {
74 "type": "ArrowFunctionExpression",
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 "id": null,
90 "generator": false,
91 "expression": true,
92 "params": [
93 {
94 "type": "Identifier",
95 "loc": {
96 "start": {
97 "line": 1,
98 "column": 5
99 },
100 "end": {
101 "line": 1,
102 "column": 6
103 }
104 },
105 "range": [
106 5,
107 6
108 ],
109 "name": "y"
110 }
111 ],
112 "body": {
113 "type": "Literal",
114 "loc": {
115 "start": {
116 "line": 1,
117 "column": 10
118 },
119 "end": {
120 "line": 1,
121 "column": 12
122 }
123 },
124 "range": [
125 10,
126 12
127 ],
128 "value": 42,
129 "raw": "42"
130 }
131 }
132 }
133 }
134 ],
135 "sourceType": "script",
136 "tokens": [
137 {
138 "type": "Identifier",
139 "value": "x",
140 "loc": {
141 "start": {
142 "line": 1,
143 "column": 0
144 },
145 "end": {
146 "line": 1,
147 "column": 1
148 }
149 },
150 "range": [
151 0,
152 1
153 ]
154 },
155 {
156 "type": "Punctuator",
157 "value": "=>",
158 "loc": {
159 "start": {
160 "line": 1,
161 "column": 2
162 },
163 "end": {
164 "line": 1,
165 "column": 4
166 }
167 },
168 "range": [
169 2,
170 4
171 ]
172 },
173 {
174 "type": "Identifier",
175 "value": "y",
176 "loc": {
177 "start": {
178 "line": 1,
179 "column": 5
180 },
181 "end": {
182 "line": 1,
183 "column": 6
184 }
185 },
186 "range": [
187 5,
188 6
189 ]
190 },
191 {
192 "type": "Punctuator",
193 "value": "=>",
194 "loc": {
195 "start": {
196 "line": 1,
197 "column": 7
198 },
199 "end": {
200 "line": 1,
201 "column": 9
202 }
203 },
204 "range": [
205 7,
206 9
207 ]
208 },
209 {
210 "type": "Numeric",
211 "value": "42",
212 "loc": {
213 "start": {
214 "line": 1,
215 "column": 10
216 },
217 "end": {
218 "line": 1,
219 "column": 12
220 }
221 },
222 "range": [
223 10,
224 12
225 ]
226 },
227 {
228 "type": "Punctuator",
229 "value": ";",
230 "loc": {
231 "start": {
232 "line": 1,
233 "column": 12
234 },
235 "end": {
236 "line": 1,
237 "column": 13
238 }
239 },
240 "range": [
241 12,
242 13
243 ]
244 }
245 ]
246 };