Debian Codegraph @

tests/fixtures/ecma-version/6/arrowFunctions/single-param.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": 12
11 }
12 },
13 "range": [
14 0,
15 12
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": 12
28 }
29 },
30 "range": [
31 0,
32 12
33 ],
34 "expression": {
35 "type": "ArrowFunctionExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 11
44 }
45 },
46 "range": [
47 0,
48 11
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": "e"
71 }
72 ],
73 "body": {
74 "type": "Literal",
75 "loc": {
76 "start": {
77 "line": 1,
78 "column": 5
79 },
80 "end": {
81 "line": 1,
82 "column": 11
83 }
84 },
85 "range": [
86 5,
87 11
88 ],
89 "value": "test",
90 "raw": "\"test\""
91 }
92 }
93 }
94 ],
95 "sourceType": "script",
96 "tokens": [
97 {
98 "type": "Identifier",
99 "value": "e",
100 "loc": {
101 "start": {
102 "line": 1,
103 "column": 0
104 },
105 "end": {
106 "line": 1,
107 "column": 1
108 }
109 },
110 "range": [
111 0,
112 1
113 ]
114 },
115 {
116 "type": "Punctuator",
117 "value": "=>",
118 "loc": {
119 "start": {
120 "line": 1,
121 "column": 2
122 },
123 "end": {
124 "line": 1,
125 "column": 4
126 }
127 },
128 "range": [
129 2,
130 4
131 ]
132 },
133 {
134 "type": "String",
135 "value": "\"test\"",
136 "loc": {
137 "start": {
138 "line": 1,
139 "column": 5
140 },
141 "end": {
142 "line": 1,
143 "column": 11
144 }
145 },
146 "range": [
147 5,
148 11
149 ]
150 },
151 {
152 "type": "Punctuator",
153 "value": ";",
154 "loc": {
155 "start": {
156 "line": 1,
157 "column": 11
158 },
159 "end": {
160 "line": 1,
161 "column": 12
162 }
163 },
164 "range": [
165 11,
166 12
167 ]
168 }
169 ]
170 };