mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
138 lines
6.2 KiB
JSON
138 lines
6.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":73}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":73}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":73,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":73}},
|
|
"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":73,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":7,"column":1,"index":73}},
|
|
"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":71,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":6,"column":3,"index":71}},
|
|
"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":71,"loc":{"start":{"line":3,"column":6,"index":26},"end":{"line":6,"column":3,"index":71}},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":32,"end":38,"loc":{"start":{"line":4,"column":4,"index":32},"end":{"line":4,"column":10,"index":38}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":36,"end":37,"loc":{"start":{"line":4,"column":8,"index":36},"end":{"line":4,"column":9,"index":37}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":36,"end":37,"loc":{"start":{"line":4,"column":8,"index":36},"end":{"line":4,"column":9,"index":37},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"init": null
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "ForOfStatement",
|
|
"start":43,"end":67,"loc":{"start":{"line":5,"column":4,"index":43},"end":{"line":5,"column":28,"index":67}},
|
|
"await": false,
|
|
"left": {
|
|
"type": "ObjectPattern",
|
|
"start":48,"end":55,"loc":{"start":{"line":5,"column":9,"index":48},"end":{"line":5,"column":16,"index":55}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":49,"end":54,"loc":{"start":{"line":5,"column":10,"index":49},"end":{"line":5,"column":15,"index":54}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"start":49,"end":51,"loc":{"start":{"line":5,"column":10,"index":49},"end":{"line":5,"column":12,"index":51}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":50,"end":51,"loc":{"start":{"line":5,"column":11,"index":50},"end":{"line":5,"column":12,"index":51},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
},
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start":53,"end":54,"loc":{"start":{"line":5,"column":14,"index":53},"end":{"line":5,"column":15,"index":54},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"start":59,"end":65,"loc":{"start":{"line":5,"column":20,"index":59},"end":{"line":5,"column":26,"index":65}},
|
|
"elements": [
|
|
{
|
|
"type": "ThisExpression",
|
|
"start":60,"end":64,"loc":{"start":{"line":5,"column":21,"index":60},"end":{"line":5,"column":25,"index":64}}
|
|
}
|
|
]
|
|
},
|
|
"body": {
|
|
"type": "EmptyStatement",
|
|
"start":66,"end":67,"loc":{"start":{"line":5,"column":27,"index":66},"end":{"line":5,"column":28,"index":67}}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|