Debian Codegraph @

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

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