Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/declaration-function/migrated_0007/output.json

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