| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: The `this` parameter may not have a default value. (1:17)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}}, |
| 10 |
"sourceType": "module", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "FunctionDeclaration", |
| 15 |
"start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}}, |
| 16 |
"id": { |
| 17 |
"type": "Identifier", |
| 18 |
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"}, |
| 19 |
"name": "foo" |
| 20 |
}, |
| 21 |
"generator": false, |
| 22 |
"async": false, |
| 23 |
"typeParameters": { |
| 24 |
"type": "TypeParameterDeclaration", |
| 25 |
"start":12,"end":15,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":15,"index":15}}, |
| 26 |
"params": [ |
| 27 |
{ |
| 28 |
"type": "TypeParameter", |
| 29 |
"start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}}, |
| 30 |
"name": "T", |
| 31 |
"variance": null |
| 32 |
} |
| 33 |
] |
| 34 |
}, |
| 35 |
"params": [ |
| 36 |
{ |
| 37 |
"type": "AssignmentPattern", |
| 38 |
"start":17,"end":34,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":34,"index":34}}, |
| 39 |
"left": { |
| 40 |
"type": "Identifier", |
| 41 |
"start":17,"end":30,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":30,"index":30},"identifierName":"this"}, |
| 42 |
"name": "this", |
| 43 |
"typeAnnotation": { |
| 44 |
"type": "TypeAnnotation", |
| 45 |
"start":22,"end":30,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":30,"index":30}}, |
| 46 |
"typeAnnotation": { |
| 47 |
"type": "NumberTypeAnnotation", |
| 48 |
"start":24,"end":30,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":30,"index":30}} |
| 49 |
} |
| 50 |
} |
| 51 |
}, |
| 52 |
"right": { |
| 53 |
"type": "NumericLiteral", |
| 54 |
"start":33,"end":34,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":34,"index":34}}, |
| 55 |
"extra": { |
| 56 |
"rawValue": 2, |
| 57 |
"raw": "2" |
| 58 |
}, |
| 59 |
"value": 2 |
| 60 |
} |
| 61 |
} |
| 62 |
], |
| 63 |
"body": { |
| 64 |
"type": "BlockStatement", |
| 65 |
"start":36,"end":38,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":38,"index":38}}, |
| 66 |
"body": [], |
| 67 |
"directives": [] |
| 68 |
} |
| 69 |
} |
| 70 |
], |
| 71 |
"directives": [] |
| 72 |
} |
| 73 |
} |