Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-arrow-inside-generator/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":45,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":45}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":45,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":45}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":45,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":45}},
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":45,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":3,"column":1,"index":45}},
24 "body": [
25 {
26 "type": "ExpressionStatement",
27 "start":19,"end":43,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":26,"index":43}},
28 "expression": {
29 "type": "ArrowFunctionExpression",
30 "start":19,"end":42,"loc":{"start":{"line":2,"column":2,"index":19},"end":{"line":2,"column":25,"index":42}},
31 "id": null,
32 "generator": false,
33 "async": false,
34 "params": [],
35 "body": {
36 "type": "ArrowFunctionExpression",
37 "start":25,"end":42,"loc":{"start":{"line":2,"column":8,"index":25},"end":{"line":2,"column":25,"index":42}},
38 "id": null,
39 "generator": false,
40 "async": false,
41 "params": [
42 {
43 "type": "AssignmentPattern",
44 "start":26,"end":35,"loc":{"start":{"line":2,"column":9,"index":26},"end":{"line":2,"column":18,"index":35}},
45 "left": {
46 "type": "Identifier",
47 "start":26,"end":27,"loc":{"start":{"line":2,"column":9,"index":26},"end":{"line":2,"column":10,"index":27},"identifierName":"x"},
48 "name": "x"
49 },
50 "right": {
51 "type": "Identifier",
52 "start":30,"end":35,"loc":{"start":{"line":2,"column":13,"index":30},"end":{"line":2,"column":18,"index":35},"identifierName":"yield"},
53 "name": "yield"
54 }
55 }
56 ],
57 "body": {
58 "type": "BlockStatement",
59 "start":40,"end":42,"loc":{"start":{"line":2,"column":23,"index":40},"end":{"line":2,"column":25,"index":42}},
60 "body": [],
61 "directives": []
62 }
63 }
64 }
65 }
66 ],
67 "directives": []
68 }
69 }
70 ],
71 "directives": []
72 }
73 }