Debian Codegraph @

packages/babel-parser/test/fixtures/core/opts/tokens-true-babel-7/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":14,"index":26}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":14,"index":26}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":10,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":10,"index":10}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":9,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":9,"index":9}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"},
20 "name": "a"
21 },
22 "init": {
23 "type": "NumericLiteral",
24 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}},
25 "extra": {
26 "rawValue": 1,
27 "raw": "1"
28 },
29 "value": 1
30 }
31 }
32 ],
33 "kind": "var"
34 },
35 {
36 "type": "VariableDeclaration",
37 "start":12,"end":26,"loc":{"start":{"line":3,"column":0,"index":12},"end":{"line":3,"column":14,"index":26}},
38 "declarations": [
39 {
40 "type": "VariableDeclarator",
41 "start":16,"end":25,"loc":{"start":{"line":3,"column":4,"index":16},"end":{"line":3,"column":13,"index":25}},
42 "id": {
43 "type": "Identifier",
44 "start":16,"end":17,"loc":{"start":{"line":3,"column":4,"index":16},"end":{"line":3,"column":5,"index":17},"identifierName":"b"},
45 "name": "b"
46 },
47 "init": {
48 "type": "BinaryExpression",
49 "start":20,"end":25,"loc":{"start":{"line":3,"column":8,"index":20},"end":{"line":3,"column":13,"index":25}},
50 "left": {
51 "type": "Identifier",
52 "start":20,"end":21,"loc":{"start":{"line":3,"column":8,"index":20},"end":{"line":3,"column":9,"index":21},"identifierName":"a"},
53 "name": "a"
54 },
55 "operator": "+",
56 "right": {
57 "type": "NumericLiteral",
58 "start":24,"end":25,"loc":{"start":{"line":3,"column":12,"index":24},"end":{"line":3,"column":13,"index":25}},
59 "extra": {
60 "rawValue": 1,
61 "raw": "1"
62 },
63 "value": 1
64 }
65 }
66 }
67 ],
68 "kind": "var"
69 }
70 ],
71 "directives": []
72 },
73 "tokens": [
74 {
75 "type": {
76 "label": "var",
77 "keyword": "var",
78 "beforeExpr": false,
79 "startsExpr": false,
80 "rightAssociative": false,
81 "isLoop": false,
82 "isAssign": false,
83 "prefix": false,
84 "postfix": false,
85 "binop": null,
86 "updateContext": null
87 },
88 "value": "var",
89 "start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3}}
90 },
91 {
92 "type": {
93 "label": "name",
94 "beforeExpr": false,
95 "startsExpr": true,
96 "rightAssociative": false,
97 "isLoop": false,
98 "isAssign": false,
99 "prefix": false,
100 "postfix": false,
101 "binop": null,
102 "updateContext": null
103 },
104 "value": "a",
105 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5}}
106 },
107 {
108 "type": {
109 "label": "=",
110 "beforeExpr": true,
111 "startsExpr": false,
112 "rightAssociative": false,
113 "isLoop": false,
114 "isAssign": true,
115 "prefix": false,
116 "postfix": false,
117 "binop": null,
118 "updateContext": null
119 },
120 "value": "=",
121 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7}}
122 },
123 {
124 "type": {
125 "label": "num",
126 "beforeExpr": false,
127 "startsExpr": true,
128 "rightAssociative": false,
129 "isLoop": false,
130 "isAssign": false,
131 "prefix": false,
132 "postfix": false,
133 "binop": null,
134 "updateContext": null
135 },
136 "value": 1,
137 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}}
138 },
139 {
140 "type": {
141 "label": ";",
142 "beforeExpr": true,
143 "startsExpr": false,
144 "rightAssociative": false,
145 "isLoop": false,
146 "isAssign": false,
147 "prefix": false,
148 "postfix": false,
149 "binop": null,
150 "updateContext": null
151 },
152 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}}
153 },
154 {
155 "type": {
156 "label": "var",
157 "keyword": "var",
158 "beforeExpr": false,
159 "startsExpr": false,
160 "rightAssociative": false,
161 "isLoop": false,
162 "isAssign": false,
163 "prefix": false,
164 "postfix": false,
165 "binop": null,
166 "updateContext": null
167 },
168 "value": "var",
169 "start":12,"end":15,"loc":{"start":{"line":3,"column":0,"index":12},"end":{"line":3,"column":3,"index":15}}
170 },
171 {
172 "type": {
173 "label": "name",
174 "beforeExpr": false,
175 "startsExpr": true,
176 "rightAssociative": false,
177 "isLoop": false,
178 "isAssign": false,
179 "prefix": false,
180 "postfix": false,
181 "binop": null,
182 "updateContext": null
183 },
184 "value": "b",
185 "start":16,"end":17,"loc":{"start":{"line":3,"column":4,"index":16},"end":{"line":3,"column":5,"index":17}}
186 },
187 {
188 "type": {
189 "label": "=",
190 "beforeExpr": true,
191 "startsExpr": false,
192 "rightAssociative": false,
193 "isLoop": false,
194 "isAssign": true,
195 "prefix": false,
196 "postfix": false,
197 "binop": null,
198 "updateContext": null
199 },
200 "value": "=",
201 "start":18,"end":19,"loc":{"start":{"line":3,"column":6,"index":18},"end":{"line":3,"column":7,"index":19}}
202 },
203 {
204 "type": {
205 "label": "name",
206 "beforeExpr": false,
207 "startsExpr": true,
208 "rightAssociative": false,
209 "isLoop": false,
210 "isAssign": false,
211 "prefix": false,
212 "postfix": false,
213 "binop": null,
214 "updateContext": null
215 },
216 "value": "a",
217 "start":20,"end":21,"loc":{"start":{"line":3,"column":8,"index":20},"end":{"line":3,"column":9,"index":21}}
218 },
219 {
220 "type": {
221 "label": "+/-",
222 "beforeExpr": true,
223 "startsExpr": true,
224 "rightAssociative": false,
225 "isLoop": false,
226 "isAssign": false,
227 "prefix": true,
228 "postfix": false,
229 "binop": 9,
230 "updateContext": null
231 },
232 "value": "+",
233 "start":22,"end":23,"loc":{"start":{"line":3,"column":10,"index":22},"end":{"line":3,"column":11,"index":23}}
234 },
235 {
236 "type": {
237 "label": "num",
238 "beforeExpr": false,
239 "startsExpr": true,
240 "rightAssociative": false,
241 "isLoop": false,
242 "isAssign": false,
243 "prefix": false,
244 "postfix": false,
245 "binop": null,
246 "updateContext": null
247 },
248 "value": 1,
249 "start":24,"end":25,"loc":{"start":{"line":3,"column":12,"index":24},"end":{"line":3,"column":13,"index":25}}
250 },
251 {
252 "type": {
253 "label": ";",
254 "beforeExpr": true,
255 "startsExpr": false,
256 "rightAssociative": false,
257 "isLoop": false,
258 "isAssign": false,
259 "prefix": false,
260 "postfix": false,
261 "binop": null,
262 "updateContext": null
263 },
264 "start":25,"end":26,"loc":{"start":{"line":3,"column":13,"index":25},"end":{"line":3,"column":14,"index":26}}
265 },
266 {
267 "type": {
268 "label": "eof",
269 "beforeExpr": false,
270 "startsExpr": false,
271 "rightAssociative": false,
272 "isLoop": false,
273 "isAssign": false,
274 "prefix": false,
275 "postfix": false,
276 "binop": null,
277 "updateContext": null
278 },
279 "start":26,"end":26,"loc":{"start":{"line":3,"column":14,"index":26},"end":{"line":3,"column":14,"index":26}}
280 }
281 ]
282 }