Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-yield/yield-generator-parameter-object-pattern/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
13 "id": {
14 "type": "Identifier",
15 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"g"},
16 "name": "g"
17 },
18 "generator": true,
19 "async": false,
20 "params": [
21 {
22 "type": "ObjectPattern",
23 "start":12,"end":22,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":22,"index":22}},
24 "properties": [
25 {
26 "type": "ObjectProperty",
27 "start":13,"end":21,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":21,"index":21}},
28 "key": {
29 "type": "Identifier",
30 "start":13,"end":18,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":18,"index":18},"identifierName":"yield"},
31 "name": "yield"
32 },
33 "computed": false,
34 "method": false,
35 "shorthand": false,
36 "value": {
37 "type": "Identifier",
38 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"y"},
39 "name": "y"
40 }
41 }
42 ]
43 }
44 ],
45 "body": {
46 "type": "BlockStatement",
47 "start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
48 "body": [],
49 "directives": []
50 }
51 }
52 ],
53 "directives": []
54 }
55 }