Debian Codegraph @

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

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