mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
110 lines
4.3 KiB
JSON
110 lines
4.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":25,"index":44}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":25,"index":44}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
|
|
"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": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":8,"end":17,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":17,"index":17}},
|
|
"body": [
|
|
{
|
|
"type": "ClassProperty",
|
|
"start":10,"end":12,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":12,"index":12}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"computed": false,
|
|
"value": null
|
|
},
|
|
{
|
|
"type": "ClassProperty",
|
|
"start":13,"end":15,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":15,"index":15}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"y"},
|
|
"name": "y"
|
|
},
|
|
"computed": false,
|
|
"value": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":19,"end":44,"loc":{"start":{"line":3,"column":0,"index":19},"end":{"line":3,"column":25,"index":44}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":25,"end":26,"loc":{"start":{"line":3,"column":6,"index":25},"end":{"line":3,"column":7,"index":26},"identifierName":"B"},
|
|
"name": "B"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":27,"end":44,"loc":{"start":{"line":3,"column":8,"index":27},"end":{"line":3,"column":25,"index":44}},
|
|
"body": [
|
|
{
|
|
"type": "ClassProperty",
|
|
"start":29,"end":35,"loc":{"start":{"line":3,"column":10,"index":29},"end":{"line":3,"column":16,"index":35}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":29,"end":30,"loc":{"start":{"line":3,"column":10,"index":29},"end":{"line":3,"column":11,"index":30},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"computed": false,
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start":33,"end":34,"loc":{"start":{"line":3,"column":14,"index":33},"end":{"line":3,"column":15,"index":34}},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassProperty",
|
|
"start":36,"end":42,"loc":{"start":{"line":3,"column":17,"index":36},"end":{"line":3,"column":23,"index":42}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":36,"end":37,"loc":{"start":{"line":3,"column":17,"index":36},"end":{"line":3,"column":18,"index":37},"identifierName":"y"},
|
|
"name": "y"
|
|
},
|
|
"computed": false,
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start":40,"end":41,"loc":{"start":{"line":3,"column":21,"index":40},"end":{"line":3,"column":22,"index":41}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|