Debian Codegraph @

tests/fixtures/ecma-version/6/arrowFunctions/basic.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 "body": {
55 "type": "Literal",
56 "loc": {
57 "start": {
58 "line": 1,
59 "column": 6
60 },
61 "end": {
62 "line": 1,
63 "column": 12
64 }
65 },
66 "range": [
67 6,
68 12
69 ],
70 "value": "test",
71 "raw": "\"test\""
72 }
73 }
74 }
75 ],
76 "sourceType": "script",
77 "tokens": [
78 {
79 "type": "Punctuator",
80 "value": "(",
81 "loc": {
82 "start": {
83 "line": 1,
84 "column": 0
85 },
86 "end": {
87 "line": 1,
88 "column": 1
89 }
90 },
91 "range": [
92 0,
93 1
94 ]
95 },
96 {
97 "type": "Punctuator",
98 "value": ")",
99 "loc": {
100 "start": {
101 "line": 1,
102 "column": 1
103 },
104 "end": {
105 "line": 1,
106 "column": 2
107 }
108 },
109 "range": [
110 1,
111 2
112 ]
113 },
114 {
115 "type": "Punctuator",
116 "value": "=>",
117 "loc": {
118 "start": {
119 "line": 1,
120 "column": 3
121 },
122 "end": {
123 "line": 1,
124 "column": 5
125 }
126 },
127 "range": [
128 3,
129 5
130 ]
131 },
132 {
133 "type": "String",
134 "value": "\"test\"",
135 "loc": {
136 "start": {
137 "line": 1,
138 "column": 6
139 },
140 "end": {
141 "line": 1,
142 "column": 12
143 }
144 },
145 "range": [
146 6,
147 12
148 ]
149 },
150 {
151 "type": "Punctuator",
152 "value": ";",
153 "loc": {
154 "start": {
155 "line": 1,
156 "column": 12
157 },
158 "end": {
159 "line": 1,
160 "column": 13
161 }
162 },
163 "range": [
164 12,
165 13
166 ]
167 }
168 ]
169 };