Debian Codegraph @

packages/babel-parser/test/fixtures/core/scope/dupl-bind-2nd-lvl-var-nested/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":44}},
4 "errors": [
5 "SyntaxError: Identifier 'foo' has already been declared. (4:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":44}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "BlockStatement",
15 "start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":44}},
16 "body": [
17 {
18 "type": "VariableDeclaration",
19 "start":4,"end":12,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":10,"index":12}},
20 "declarations": [
21 {
22 "type": "VariableDeclarator",
23 "start":8,"end":11,"loc":{"start":{"line":2,"column":6,"index":8},"end":{"line":2,"column":9,"index":11}},
24 "id": {
25 "type": "Identifier",
26 "start":8,"end":11,"loc":{"start":{"line":2,"column":6,"index":8},"end":{"line":2,"column":9,"index":11},"identifierName":"bar"},
27 "name": "bar"
28 },
29 "init": null
30 }
31 ],
32 "kind": "let"
33 },
34 {
35 "type": "VariableDeclaration",
36 "start":15,"end":27,"loc":{"start":{"line":3,"column":2,"index":15},"end":{"line":3,"column":14,"index":27}},
37 "declarations": [
38 {
39 "type": "VariableDeclarator",
40 "start":19,"end":26,"loc":{"start":{"line":3,"column":6,"index":19},"end":{"line":3,"column":13,"index":26}},
41 "id": {
42 "type": "Identifier",
43 "start":19,"end":22,"loc":{"start":{"line":3,"column":6,"index":19},"end":{"line":3,"column":9,"index":22},"identifierName":"foo"},
44 "name": "foo"
45 },
46 "init": {
47 "type": "NumericLiteral",
48 "start":25,"end":26,"loc":{"start":{"line":3,"column":12,"index":25},"end":{"line":3,"column":13,"index":26}},
49 "extra": {
50 "rawValue": 1,
51 "raw": "1"
52 },
53 "value": 1
54 }
55 }
56 ],
57 "kind": "let"
58 },
59 {
60 "type": "VariableDeclaration",
61 "start":30,"end":42,"loc":{"start":{"line":4,"column":2,"index":30},"end":{"line":4,"column":14,"index":42}},
62 "declarations": [
63 {
64 "type": "VariableDeclarator",
65 "start":34,"end":41,"loc":{"start":{"line":4,"column":6,"index":34},"end":{"line":4,"column":13,"index":41}},
66 "id": {
67 "type": "Identifier",
68 "start":34,"end":37,"loc":{"start":{"line":4,"column":6,"index":34},"end":{"line":4,"column":9,"index":37},"identifierName":"foo"},
69 "name": "foo"
70 },
71 "init": {
72 "type": "NumericLiteral",
73 "start":40,"end":41,"loc":{"start":{"line":4,"column":12,"index":40},"end":{"line":4,"column":13,"index":41}},
74 "extra": {
75 "rawValue": 1,
76 "raw": "1"
77 },
78 "value": 1
79 }
80 }
81 ],
82 "kind": "var"
83 }
84 ],
85 "directives": []
86 }
87 ],
88 "directives": []
89 }
90 }