Debian Codegraph @

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

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