Debian Codegraph @

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

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