| 1 | { |
| 2 | "type": "File", |
| 3 | "start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":47,"index":47}}, |
| 4 | "errors": [ |
| 5 | "SyntaxError: Duplicate constructor in the same class. (1:27)" |
| 6 | ], |
| 7 | "program": { |
| 8 | "type": "Program", |
| 9 | "start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":47,"index":47}}, |
| 10 | "sourceType": "script", |
| 11 | "interpreter": null, |
| 12 | "body": [ |
| 13 | { |
| 14 | "type": "ClassDeclaration", |
| 15 | "start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":47,"index":47}}, |
| 16 | "id": { |
| 17 | "type": "Identifier", |
| 18 | "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"}, |
| 19 | "name": "A" |
| 20 | }, |
| 21 | "superClass": null, |
| 22 | "body": { |
| 23 | "type": "ClassBody", |
| 24 | "start":8,"end":47,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":47,"index":47}}, |
| 25 | "body": [ |
| 26 | { |
| 27 | "type": "ClassMethod", |
| 28 | "start":10,"end":26,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":26,"index":26}}, |
| 29 | "static": false, |
| 30 | "key": { |
| 31 | "type": "Identifier", |
| 32 | "start":10,"end":21,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":21,"index":21},"identifierName":"constructor"}, |
| 33 | "name": "constructor" |
| 34 | }, |
| 35 | "computed": false, |
| 36 | "kind": "constructor", |
| 37 | "id": null, |
| 38 | "generator": false, |
| 39 | "async": false, |
| 40 | "params": [], |
| 41 | "body": { |
| 42 | "type": "BlockStatement", |
| 43 | "start":24,"end":26,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":26,"index":26}}, |
| 44 | "body": [], |
| 45 | "directives": [] |
| 46 | } |
| 47 | }, |
| 48 | { |
| 49 | "type": "ClassMethod", |
| 50 | "start":27,"end":45,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":45,"index":45}}, |
| 51 | "static": false, |
| 52 | "key": { |
| 53 | "type": "StringLiteral", |
| 54 | "start":27,"end":40,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":40,"index":40}}, |
| 55 | "extra": { |
| 56 | "rawValue": "constructor", |
| 57 | "raw": "'constructor'" |
| 58 | }, |
| 59 | "value": "constructor" |
| 60 | }, |
| 61 | "computed": false, |
| 62 | "kind": "constructor", |
| 63 | "id": null, |
| 64 | "generator": false, |
| 65 | "async": false, |
| 66 | "params": [], |
| 67 | "body": { |
| 68 | "type": "BlockStatement", |
| 69 | "start":43,"end":45,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":45,"index":45}}, |
| 70 | "body": [], |
| 71 | "directives": [] |
| 72 | } |
| 73 | } |
| 74 | ] |
| 75 | } |
| 76 | } |
| 77 | ], |
| 78 | "directives": [] |
| 79 | } |
| 80 | } |