Debian Codegraph @

packages/babel-parser/test/fixtures/core/uncategorised/295/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":37,"index":37}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":36,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":36,"index":36}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":6,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":6,"index":6},"identifierName":"hi"},
20 "name": "hi"
21 },
22 "init": {
23 "type": "FunctionExpression",
24 "start":9,"end":36,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":36,"index":36}},
25 "id": null,
26 "generator": false,
27 "async": false,
28 "params": [
29 {
30 "type": "RestElement",
31 "start":19,"end":23,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":23,"index":23}},
32 "argument": {
33 "type": "Identifier",
34 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23},"identifierName":"r"},
35 "name": "r"
36 }
37 }
38 ],
39 "body": {
40 "type": "BlockStatement",
41 "start":25,"end":36,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":36,"index":36}},
42 "body": [
43 {
44 "type": "ExpressionStatement",
45 "start":27,"end":34,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":34,"index":34}},
46 "expression": {
47 "type": "CallExpression",
48 "start":27,"end":34,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":34,"index":34}},
49 "callee": {
50 "type": "Identifier",
51 "start":27,"end":32,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":32,"index":32},"identifierName":"sayHi"},
52 "name": "sayHi"
53 },
54 "arguments": []
55 }
56 }
57 ],
58 "directives": []
59 }
60 }
61 }
62 ],
63 "kind": "var"
64 }
65 ],
66 "directives": []
67 }
68 }