mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
136 lines
6.2 KiB
JSON
136 lines
6.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":68}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":68}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":68,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":68}},
|
|
"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":68,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":7,"column":1,"index":68}},
|
|
"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":66,"loc":{"start":{"line":3,"column":2,"index":22},"end":{"line":6,"column":3,"index":66}},
|
|
"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":66,"loc":{"start":{"line":3,"column":6,"index":26},"end":{"line":6,"column":3,"index":66}},
|
|
"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": "ExpressionStatement",
|
|
"start":43,"end":62,"loc":{"start":{"line":5,"column":4,"index":43},"end":{"line":5,"column":23,"index":62}},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start":44,"end":60,"loc":{"start":{"line":5,"column":5,"index":44},"end":{"line":5,"column":21,"index":60}},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "ObjectPattern",
|
|
"start":44,"end":53,"loc":{"start":{"line":5,"column":5,"index":44},"end":{"line":5,"column":14,"index":53}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":46,"end":51,"loc":{"start":{"line":5,"column":7,"index":46},"end":{"line":5,"column":12,"index":51}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"start":46,"end":48,"loc":{"start":{"line":5,"column":7,"index":46},"end":{"line":5,"column":9,"index":48}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":47,"end":48,"loc":{"start":{"line":5,"column":8,"index":47},"end":{"line":5,"column":9,"index":48},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
},
|
|
"shorthand": false,
|
|
"value": {
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ThisExpression",
|
|
"start":56,"end":60,"loc":{"start":{"line":5,"column":17,"index":56},"end":{"line":5,"column":21,"index":60}}
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 43
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|