mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
90 lines
3.5 KiB
JSON
90 lines
3.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}},
|
|
"errors": [
|
|
"SyntaxError: Duplicate private name #x. (3:2)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":36}},
|
|
"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":36,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":4,"column":1,"index":36}},
|
|
"body": [
|
|
{
|
|
"type": "ClassPrivateMethod",
|
|
"start":12,"end":24,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":14,"index":24}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"start":16,"end":18,"loc":{"start":{"line":2,"column":6,"index":16},"end":{"line":2,"column":8,"index":18}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":17,"end":18,"loc":{"start":{"line":2,"column":7,"index":17},"end":{"line":2,"column":8,"index":18},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
},
|
|
"computed": false,
|
|
"kind": "set",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":19,"end":20,"loc":{"start":{"line":2,"column":9,"index":19},"end":{"line":2,"column":10,"index":20},"identifierName":"_"},
|
|
"name": "_"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":22,"end":24,"loc":{"start":{"line":2,"column":12,"index":22},"end":{"line":2,"column":14,"index":24}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassPrivateMethod",
|
|
"start":27,"end":34,"loc":{"start":{"line":3,"column":2,"index":27},"end":{"line":3,"column":9,"index":34}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "PrivateName",
|
|
"start":27,"end":29,"loc":{"start":{"line":3,"column":2,"index":27},"end":{"line":3,"column":4,"index":29}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":28,"end":29,"loc":{"start":{"line":3,"column":3,"index":28},"end":{"line":3,"column":4,"index":29},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":32,"end":34,"loc":{"start":{"line":3,"column":7,"index":32},"end":{"line":3,"column":9,"index":34}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|