]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/fixtures/parsers/typescript-parsers/keyword-with-arrow-function.js
first commit
[pve-eslint.git] / eslint / tests / fixtures / parsers / typescript-parsers / keyword-with-arrow-function.js
1 "use strict";
2
3 /**
4 * Parser: typescript-eslint-parser v1.0.3 (TS 2.0.6)
5 * Source code:
6 * symbol => 4;
7 */
8
9 exports.parse = () => ({
10 "type": "Program",
11 "range": [
12 0,
13 12
14 ],
15 "loc": {
16 "start": {
17 "line": 1,
18 "column": 0
19 },
20 "end": {
21 "line": 1,
22 "column": 12
23 }
24 },
25 "body": [
26 {
27 "type": "ExpressionStatement",
28 "range": [
29 0,
30 12
31 ],
32 "loc": {
33 "start": {
34 "line": 1,
35 "column": 0
36 },
37 "end": {
38 "line": 1,
39 "column": 12
40 }
41 },
42 "expression": {
43 "type": "ArrowFunctionExpression",
44 "range": [
45 0,
46 11
47 ],
48 "loc": {
49 "start": {
50 "line": 1,
51 "column": 0
52 },
53 "end": {
54 "line": 1,
55 "column": 11
56 }
57 },
58 "generator": false,
59 "id": null,
60 "params": [
61 {
62 "type": "Identifier",
63 "range": [
64 0,
65 6
66 ],
67 "loc": {
68 "start": {
69 "line": 1,
70 "column": 0
71 },
72 "end": {
73 "line": 1,
74 "column": 6
75 }
76 },
77 "name": "symbol"
78 }
79 ],
80 "body": {
81 "type": "Literal",
82 "range": [
83 10,
84 11
85 ],
86 "loc": {
87 "start": {
88 "line": 1,
89 "column": 10
90 },
91 "end": {
92 "line": 1,
93 "column": 11
94 }
95 },
96 "value": 4,
97 "raw": "4"
98 },
99 "async": false,
100 "expression": true
101 }
102 }
103 ],
104 "sourceType": "script",
105 "tokens": [
106 {
107 "type": "Keyword",
108 "value": "symbol",
109 "range": [
110 0,
111 6
112 ],
113 "loc": {
114 "start": {
115 "line": 1,
116 "column": 0
117 },
118 "end": {
119 "line": 1,
120 "column": 6
121 }
122 }
123 },
124 {
125 "type": "Punctuator",
126 "value": "=>",
127 "range": [
128 7,
129 9
130 ],
131 "loc": {
132 "start": {
133 "line": 1,
134 "column": 7
135 },
136 "end": {
137 "line": 1,
138 "column": 9
139 }
140 }
141 },
142 {
143 "type": "Numeric",
144 "value": "4",
145 "range": [
146 10,
147 11
148 ],
149 "loc": {
150 "start": {
151 "line": 1,
152 "column": 10
153 },
154 "end": {
155 "line": 1,
156 "column": 11
157 }
158 }
159 },
160 {
161 "type": "Punctuator",
162 "value": ";",
163 "range": [
164 11,
165 12
166 ],
167 "loc": {
168 "start": {
169 "line": 1,
170 "column": 11
171 },
172 "end": {
173 "line": 1,
174 "column": 12
175 }
176 }
177 }
178 ],
179 "comments": []
180 });