Debian Codegraph @

packages/babel-parser/test/fixtures/core/scope/dupl-bind-func-gen/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
4 "errors": [
5 "SyntaxError: Identifier 'f' has already been declared. (1:28)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "BlockStatement",
15 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
16 "body": [
17 {
18 "type": "FunctionDeclaration",
19 "start":2,"end":17,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":17,"index":17}},
20 "id": {
21 "type": "Identifier",
22 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"f"},
23 "name": "f"
24 },
25 "generator": false,
26 "async": false,
27 "params": [],
28 "body": {
29 "type": "BlockStatement",
30 "start":15,"end":17,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":17,"index":17}},
31 "body": [],
32 "directives": []
33 }
34 },
35 {
36 "type": "FunctionDeclaration",
37 "start":18,"end":34,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":34,"index":34}},
38 "id": {
39 "type": "Identifier",
40 "start":28,"end":29,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":29,"index":29},"identifierName":"f"},
41 "name": "f"
42 },
43 "generator": true,
44 "async": false,
45 "params": [],
46 "body": {
47 "type": "BlockStatement",
48 "start":32,"end":34,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":34,"index":34}},
49 "body": [],
50 "directives": []
51 }
52 }
53 ],
54 "directives": []
55 }
56 ],
57 "directives": []
58 }
59 }