mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
115 lines
5.0 KiB
JSON
115 lines
5.0 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":92,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":92}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":92,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":92}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"B"},
|
|
"name": "B"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":8,"end":29,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":29}},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":12,"end":27,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":17,"index":27}},
|
|
"static": true,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":19,"end":22,"loc":{"start":{"line":2,"column":9,"index":19},"end":{"line":2,"column":12,"index":22},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"computed": false,
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":25,"end":27,"loc":{"start":{"line":2,"column":15,"index":25},"end":{"line":2,"column":17,"index":27}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":30,"end":92,"loc":{"start":{"line":4,"column":0,"index":30},"end":{"line":8,"column":1,"index":92}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":36,"end":37,"loc":{"start":{"line":4,"column":6,"index":36},"end":{"line":4,"column":7,"index":37},"identifierName":"C"},
|
|
"name": "C"
|
|
},
|
|
"superClass": {
|
|
"type": "Identifier",
|
|
"start":46,"end":47,"loc":{"start":{"line":4,"column":16,"index":46},"end":{"line":4,"column":17,"index":47},"identifierName":"B"},
|
|
"name": "B"
|
|
},
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":48,"end":92,"loc":{"start":{"line":4,"column":18,"index":48},"end":{"line":8,"column":1,"index":92}},
|
|
"body": [
|
|
{
|
|
"type": "StaticBlock",
|
|
"start":52,"end":90,"loc":{"start":{"line":5,"column":2,"index":52},"end":{"line":7,"column":3,"index":90}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":65,"end":86,"loc":{"start":{"line":6,"column":4,"index":65},"end":{"line":6,"column":25,"index":86}},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start":65,"end":85,"loc":{"start":{"line":6,"column":4,"index":65},"end":{"line":6,"column":24,"index":85}},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start":65,"end":73,"loc":{"start":{"line":6,"column":4,"index":65},"end":{"line":6,"column":12,"index":73}},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start":65,"end":69,"loc":{"start":{"line":6,"column":4,"index":65},"end":{"line":6,"column":8,"index":69}}
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":70,"end":73,"loc":{"start":{"line":6,"column":9,"index":70},"end":{"line":6,"column":12,"index":73},"identifierName":"bar"},
|
|
"name": "bar"
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start":76,"end":85,"loc":{"start":{"line":6,"column":15,"index":76},"end":{"line":6,"column":24,"index":85}},
|
|
"object": {
|
|
"type": "Super",
|
|
"start":76,"end":81,"loc":{"start":{"line":6,"column":15,"index":76},"end":{"line":6,"column":20,"index":81}}
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":82,"end":85,"loc":{"start":{"line":6,"column":21,"index":82},"end":{"line":6,"column":24,"index":85},"identifierName":"foo"},
|
|
"name": "foo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|