mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
75 lines
3.1 KiB
JSON
75 lines
3.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"superClass": {
|
|
"type": "Identifier",
|
|
"start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17},"identifierName":"B"},
|
|
"name": "B"
|
|
},
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":18,"end":41,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":41,"index":41}},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":20,"end":39,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":39,"index":39}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"X"},
|
|
"name": "X"
|
|
},
|
|
"computed": false,
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":24,"end":39,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":39,"index":39}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":26,"end":37,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":37,"index":37}},
|
|
"expression": {
|
|
"type": "MemberExpression",
|
|
"start":26,"end":37,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":37,"index":37}},
|
|
"object": {
|
|
"type": "Super",
|
|
"start":26,"end":31,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":31,"index":31}}
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":32,"end":37,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":37,"index":37},"identifierName":"yield"},
|
|
"name": "yield"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|