Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/function-sent/enabled-if-statement/output.json

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