Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/for-in/strict-initializer/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":22,"index":36}},
4 "errors": [
5 "SyntaxError: 'for-in' loop variable declaration may not have an initializer. (2:5)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":22,"index":36}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ForInStatement",
15 "start":14,"end":36,"loc":{"start":{"line":2,"column":0,"index":14},"end":{"line":2,"column":22,"index":36}},
16 "left": {
17 "type": "VariableDeclaration",
18 "start":19,"end":28,"loc":{"start":{"line":2,"column":5,"index":19},"end":{"line":2,"column":14,"index":28}},
19 "declarations": [
20 {
21 "type": "VariableDeclarator",
22 "start":23,"end":28,"loc":{"start":{"line":2,"column":9,"index":23},"end":{"line":2,"column":14,"index":28}},
23 "id": {
24 "type": "Identifier",
25 "start":23,"end":24,"loc":{"start":{"line":2,"column":9,"index":23},"end":{"line":2,"column":10,"index":24},"identifierName":"a"},
26 "name": "a"
27 },
28 "init": {
29 "type": "NumericLiteral",
30 "start":27,"end":28,"loc":{"start":{"line":2,"column":13,"index":27},"end":{"line":2,"column":14,"index":28}},
31 "extra": {
32 "rawValue": 0,
33 "raw": "0"
34 },
35 "value": 0
36 }
37 }
38 ],
39 "kind": "var"
40 },
41 "right": {
42 "type": "ObjectExpression",
43 "start":32,"end":34,"loc":{"start":{"line":2,"column":18,"index":32},"end":{"line":2,"column":20,"index":34}},
44 "properties": []
45 },
46 "body": {
47 "type": "EmptyStatement",
48 "start":35,"end":36,"loc":{"start":{"line":2,"column":21,"index":35},"end":{"line":2,"column":22,"index":36}}
49 }
50 }
51 ],
52 "directives": [
53 {
54 "type": "Directive",
55 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
56 "value": {
57 "type": "DirectiveLiteral",
58 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
59 "extra": {
60 "rawValue": "use strict",
61 "raw": "'use strict'",
62 "expressionValue": "use strict"
63 },
64 "value": "use strict"
65 }
66 }
67 ]
68 }
69 }