Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/function-sent/enabled-inside-generator/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":43}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":43}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":43}},
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":43,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":43}},
24 "body": [
25 {
26 "type": "ReturnStatement",
27 "start":20,"end":41,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":23,"index":41}},
28 "argument": {
29 "type": "MetaProperty",
30 "start":27,"end":40,"loc":{"start":{"line":2,"column":9,"index":27},"end":{"line":2,"column":22,"index":40}},
31 "meta": {
32 "type": "Identifier",
33 "start":27,"end":35,"loc":{"start":{"line":2,"column":9,"index":27},"end":{"line":2,"column":17,"index":35},"identifierName":"function"},
34 "name": "function"
35 },
36 "property": {
37 "type": "Identifier",
38 "start":36,"end":40,"loc":{"start":{"line":2,"column":18,"index":36},"end":{"line":2,"column":22,"index":40},"identifierName":"sent"},
39 "name": "sent"
40 }
41 }
42 }
43 ],
44 "directives": []
45 }
46 }
47 ],
48 "directives": []
49 }
50 }