Debian Codegraph @

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

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