| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":44}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions. (2:2)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":44}}, |
| 10 |
"sourceType": "module", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "ClassDeclaration", |
| 15 |
"start":0,"end":44,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":44}}, |
| 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":44,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":1,"index":44}}, |
| 25 |
"body": [ |
| 26 |
{ |
| 27 |
"type": "ClassMethod", |
| 28 |
"start":12,"end":42,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":32,"index":42}}, |
| 29 |
"static": false, |
| 30 |
"key": { |
| 31 |
"type": "StringLiteral", |
| 32 |
"start":12,"end":25,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":15,"index":25}}, |
| 33 |
"extra": { |
| 34 |
"rawValue": "constructor", |
| 35 |
"raw": "\"constructor\"" |
| 36 |
}, |
| 37 |
"value": "constructor" |
| 38 |
}, |
| 39 |
"computed": false, |
| 40 |
"kind": "constructor", |
| 41 |
"id": null, |
| 42 |
"generator": false, |
| 43 |
"async": false, |
| 44 |
"params": [ |
| 45 |
{ |
| 46 |
"type": "Identifier", |
| 47 |
"start":26,"end":38,"loc":{"start":{"line":2,"column":16,"index":26},"end":{"line":2,"column":28,"index":38},"identifierName":"this"}, |
| 48 |
"name": "this", |
| 49 |
"typeAnnotation": { |
| 50 |
"type": "TypeAnnotation", |
| 51 |
"start":30,"end":38,"loc":{"start":{"line":2,"column":20,"index":30},"end":{"line":2,"column":28,"index":38}}, |
| 52 |
"typeAnnotation": { |
| 53 |
"type": "StringTypeAnnotation", |
| 54 |
"start":32,"end":38,"loc":{"start":{"line":2,"column":22,"index":32},"end":{"line":2,"column":28,"index":38}} |
| 55 |
} |
| 56 |
} |
| 57 |
} |
| 58 |
], |
| 59 |
"body": { |
| 60 |
"type": "BlockStatement", |
| 61 |
"start":40,"end":42,"loc":{"start":{"line":2,"column":30,"index":40},"end":{"line":2,"column":32,"index":42}}, |
| 62 |
"body": [], |
| 63 |
"directives": [] |
| 64 |
} |
| 65 |
} |
| 66 |
] |
| 67 |
} |
| 68 |
} |
| 69 |
], |
| 70 |
"directives": [] |
| 71 |
} |
| 72 |
} |