{ "type": "File", "start": 0, "end": 47, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 4, "column": 1 } }, "errors": [ "SyntaxError: Duplicate private name #x (3:13)" ], "program": { "type": "Program", "start": 0, "end": 47, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 4, "column": 1 } }, "sourceType": "script", "interpreter": null, "body": [ { "type": "ClassDeclaration", "start": 0, "end": 47, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 4, "column": 1 } }, "id": { "type": "Identifier", "start": 6, "end": 7, "loc": { "start": { "line": 1, "column": 6 }, "end": { "line": 1, "column": 7 }, "identifierName": "A" }, "name": "A" }, "superClass": null, "body": { "type": "ClassBody", "start": 8, "end": 47, "loc": { "start": { "line": 1, "column": 8 }, "end": { "line": 4, "column": 1 } }, "body": [ { "type": "ClassPrivateMethod", "start": 12, "end": 23, "loc": { "start": { "line": 2, "column": 2 }, "end": { "line": 2, "column": 13 } }, "static": false, "key": { "type": "PrivateName", "start": 16, "end": 18, "loc": { "start": { "line": 2, "column": 6 }, "end": { "line": 2, "column": 8 } }, "id": { "type": "Identifier", "start": 17, "end": 18, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 8 }, "identifierName": "x" }, "name": "x" } }, "computed": false, "kind": "get", "id": null, "generator": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 21, "end": 23, "loc": { "start": { "line": 2, "column": 11 }, "end": { "line": 2, "column": 13 } }, "body": [], "directives": [] } }, { "type": "ClassPrivateMethod", "start": 26, "end": 45, "loc": { "start": { "line": 3, "column": 2 }, "end": { "line": 3, "column": 21 } }, "static": true, "key": { "type": "PrivateName", "start": 37, "end": 39, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 15 } }, "id": { "type": "Identifier", "start": 38, "end": 39, "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 15 }, "identifierName": "x" }, "name": "x" } }, "computed": false, "kind": "set", "id": null, "generator": false, "async": false, "params": [ { "type": "Identifier", "start": 40, "end": 41, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 17 }, "identifierName": "_" }, "name": "_" } ], "body": { "type": "BlockStatement", "start": 43, "end": 45, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 21 } }, "body": [], "directives": [] } } ] } } ], "directives": [] } }