Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/yield/function-name-function-expression-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":12,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":12,"index":12},"identifierName":"fn"},
16 "name": "fn"
17 },
18 "generator": true,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":15,"end":43,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":3,"column":1,"index":43}},
24 "body": [
25 {
26 "type": "ExpressionStatement",
27 "start":19,"end":41,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":24,"index":41}},
28 "expression": {
29 "type": "FunctionExpression",
30 "start":20,"end":39,"loc":{"start":{"line":2,"column":3,"index":20},"end":{"line":2,"column":22,"index":39}},
31 "id": {
32 "type": "Identifier",
33 "start":29,"end":34,"loc":{"start":{"line":2,"column":12,"index":29},"end":{"line":2,"column":17,"index":34},"identifierName":"yield"},
34 "name": "yield"
35 },
36 "generator": false,
37 "async": false,
38 "params": [],
39 "body": {
40 "type": "BlockStatement",
41 "start":37,"end":39,"loc":{"start":{"line":2,"column":20,"index":37},"end":{"line":2,"column":22,"index":39}},
42 "body": [],
43 "directives": []
44 },
45 "extra": {
46 "parenthesized": true,
47 "parenStart": 19
48 }
49 }
50 }
51 ],
52 "directives": []
53 }
54 }
55 ],
56 "directives": []
57 }
58 }