{ "type": "File", "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}}, "errors": [ "SyntaxError: The `this` parameter may not have a default value. (1:17)" ], "program": { "type": "Program", "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}}, "sourceType": "module", "interpreter": null, "body": [ { "type": "FunctionDeclaration", "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":38,"index":38}}, "id": { "type": "Identifier", "start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"}, "name": "foo" }, "generator": false, "async": false, "typeParameters": { "type": "TypeParameterDeclaration", "start":12,"end":15,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":15,"index":15}}, "params": [ { "type": "TypeParameter", "start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14}}, "name": "T", "variance": null } ] }, "params": [ { "type": "AssignmentPattern", "start":17,"end":34,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":34,"index":34}}, "left": { "type": "Identifier", "start":17,"end":30,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":30,"index":30},"identifierName":"this"}, "name": "this", "typeAnnotation": { "type": "TypeAnnotation", "start":22,"end":30,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":30,"index":30}}, "typeAnnotation": { "type": "NumberTypeAnnotation", "start":24,"end":30,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":30,"index":30}} } } }, "right": { "type": "NumericLiteral", "start":33,"end":34,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":34,"index":34}}, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } } ], "body": { "type": "BlockStatement", "start":36,"end":38,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":38,"index":38}}, "body": [], "directives": [] } } ], "directives": [] } }