Debian Codegraph @

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

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