mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
71 lines
2.8 KiB
JSON
71 lines
2.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":46}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":10,"end":14,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":14,"index":14},"identifierName":"wrap"},
|
|
"name": "wrap"
|
|
},
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":17,"end":46,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":3,"column":1,"index":46}},
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":23,"end":44,"loc":{"start":{"line":2,"column":4,"index":23},"end":{"line":2,"column":25,"index":44}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":29,"end":30,"loc":{"start":{"line":2,"column":10,"index":29},"end":{"line":2,"column":11,"index":30},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":31,"end":44,"loc":{"start":{"line":2,"column":12,"index":31},"end":{"line":2,"column":25,"index":44}},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":32,"end":43,"loc":{"start":{"line":2,"column":13,"index":32},"end":{"line":2,"column":24,"index":43}},
|
|
"static": false,
|
|
"kind": "method",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":33,"end":38,"loc":{"start":{"line":2,"column":14,"index":33},"end":{"line":2,"column":19,"index":38},"identifierName":"yield"},
|
|
"name": "yield"
|
|
},
|
|
"computed": false,
|
|
"id": null,
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":41,"end":43,"loc":{"start":{"line":2,"column":22,"index":41},"end":{"line":2,"column":24,"index":43}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|