Debian Codegraph @

tests/fixtures/ecma-version/6/arrowFunctions/expression.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": 9
11 }
12 },
13 "range": [
14 0,
15 9
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": 9
28 }
29 },
30 "range": [
31 0,
32 9
33 ],
34 "expression": {
35 "type": "ArrowFunctionExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 1
40 },
41 "end": {
42 "line": 1,
43 "column": 7
44 }
45 },
46 "range": [
47 1,
48 7
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": 1
60 },
61 "end": {
62 "line": 1,
63 "column": 2
64 }
65 },
66 "range": [
67 1,
68 2
69 ],
70 "name": "x"
71 }
72 ],
73 "body": {
74 "type": "Identifier",
75 "loc": {
76 "start": {
77 "line": 1,
78 "column": 6
79 },
80 "end": {
81 "line": 1,
82 "column": 7
83 }
84 },
85 "range": [
86 6,
87 7
88 ],
89 "name": "x"
90 }
91 }
92 }
93 ],
94 "sourceType": "script",
95 "tokens": [
96 {
97 "type": "Punctuator",
98 "value": "(",
99 "loc": {
100 "start": {
101 "line": 1,
102 "column": 0
103 },
104 "end": {
105 "line": 1,
106 "column": 1
107 }
108 },
109 "range": [
110 0,
111 1
112 ]
113 },
114 {
115 "type": "Identifier",
116 "value": "x",
117 "loc": {
118 "start": {
119 "line": 1,
120 "column": 1
121 },
122 "end": {
123 "line": 1,
124 "column": 2
125 }
126 },
127 "range": [
128 1,
129 2
130 ]
131 },
132 {
133 "type": "Punctuator",
134 "value": "=>",
135 "loc": {
136 "start": {
137 "line": 1,
138 "column": 3
139 },
140 "end": {
141 "line": 1,
142 "column": 5
143 }
144 },
145 "range": [
146 3,
147 5
148 ]
149 },
150 {
151 "type": "Identifier",
152 "value": "x",
153 "loc": {
154 "start": {
155 "line": 1,
156 "column": 6
157 },
158 "end": {
159 "line": 1,
160 "column": 7
161 }
162 },
163 "range": [
164 6,
165 7
166 ]
167 },
168 {
169 "type": "Punctuator",
170 "value": ")",
171 "loc": {
172 "start": {
173 "line": 1,
174 "column": 7
175 },
176 "end": {
177 "line": 1,
178 "column": 8
179 }
180 },
181 "range": [
182 7,
183 8
184 ]
185 },
186 {
187 "type": "Punctuator",
188 "value": ";",
189 "loc": {
190 "start": {
191 "line": 1,
192 "column": 8
193 },
194 "end": {
195 "line": 1,
196 "column": 9
197 }
198 },
199 "range": [
200 8,
201 9
202 ]
203 }
204 ]
205 };