mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
189 lines
10 KiB
JSON
189 lines
10 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":87}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":87}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":87,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":87}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"},
|
|
"name": "C"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":8,"end":87,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":6,"column":1,"index":87}},
|
|
"body": [
|
|
{
|
|
"type": "ClassPrivateProperty",
|
|
"start":12,"end":19,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":9,"index":19}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"start":12,"end":14,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":4,"index":14}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":13,"end":14,"loc":{"start":{"line":2,"column":3,"index":13},"end":{"line":2,"column":4,"index":14},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start":17,"end":18,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":8,"index":18}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":22,"end":85,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":5,"column":3,"index":85}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":22,"end":23,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":3,"column":3,"index":23},"identifierName":"m"},
|
|
"name": "m"
|
|
},
|
|
"computed": false,
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":26,"end":85,"loc":{"start":{"line":3,"column":6,"index":26},"end":{"line":5,"column":3,"index":85}},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":32,"end":81,"loc":{"start":{"line":4,"column":4,"index":32},"end":{"line":4,"column":53,"index":81}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":38,"end":80,"loc":{"start":{"line":4,"column":10,"index":38},"end":{"line":4,"column":52,"index":80}},
|
|
"id": {
|
|
"type": "ObjectPattern",
|
|
"start":38,"end":73,"loc":{"start":{"line":4,"column":10,"index":38},"end":{"line":4,"column":45,"index":73}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":39,"end":53,"loc":{"start":{"line":4,"column":11,"index":39},"end":{"line":4,"column":25,"index":53}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":39,"end":40,"loc":{"start":{"line":4,"column":11,"index":39},"end":{"line":4,"column":12,"index":40},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"computed": false,
|
|
"method": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "ObjectPattern",
|
|
"start":42,"end":53,"loc":{"start":{"line":4,"column":14,"index":42},"end":{"line":4,"column":25,"index":53}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":44,"end":51,"loc":{"start":{"line":4,"column":16,"index":44},"end":{"line":4,"column":23,"index":51}},
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"start":44,"end":46,"loc":{"start":{"line":4,"column":16,"index":44},"end":{"line":4,"column":18,"index":46}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":45,"end":46,"loc":{"start":{"line":4,"column":17,"index":45},"end":{"line":4,"column":18,"index":46},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "ArrayPattern",
|
|
"start":48,"end":51,"loc":{"start":{"line":4,"column":20,"index":48},"end":{"line":4,"column":23,"index":51}},
|
|
"elements": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":49,"end":50,"loc":{"start":{"line":4,"column":21,"index":49},"end":{"line":4,"column":22,"index":50},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":55,"end":72,"loc":{"start":{"line":4,"column":27,"index":55},"end":{"line":4,"column":44,"index":72}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":55,"end":56,"loc":{"start":{"line":4,"column":27,"index":55},"end":{"line":4,"column":28,"index":56},"identifierName":"y"},
|
|
"name": "y"
|
|
},
|
|
"computed": false,
|
|
"method": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "ArrayPattern",
|
|
"start":58,"end":72,"loc":{"start":{"line":4,"column":30,"index":58},"end":{"line":4,"column":44,"index":72}},
|
|
"elements": [
|
|
{
|
|
"type": "RestElement",
|
|
"start":59,"end":71,"loc":{"start":{"line":4,"column":31,"index":59},"end":{"line":4,"column":43,"index":71}},
|
|
"argument": {
|
|
"type": "ObjectPattern",
|
|
"start":62,"end":71,"loc":{"start":{"line":4,"column":34,"index":62},"end":{"line":4,"column":43,"index":71}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":64,"end":69,"loc":{"start":{"line":4,"column":36,"index":64},"end":{"line":4,"column":41,"index":69}},
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"start":64,"end":66,"loc":{"start":{"line":4,"column":36,"index":64},"end":{"line":4,"column":38,"index":66}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":65,"end":66,"loc":{"start":{"line":4,"column":37,"index":65},"end":{"line":4,"column":38,"index":66},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":68,"end":69,"loc":{"start":{"line":4,"column":40,"index":68},"end":{"line":4,"column":41,"index":69},"identifierName":"y"},
|
|
"name": "y"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"init": {
|
|
"type": "ThisExpression",
|
|
"start":76,"end":80,"loc":{"start":{"line":4,"column":48,"index":76},"end":{"line":4,"column":52,"index":80}}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|