73 lines
2.6 KiB
JSON
73 lines
2.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":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},"end":{"line":1,"column":38}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":12,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":12},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": {
|
|
"type": "TypeParameterDeclaration",
|
|
"start":12,"end":15,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":15}},
|
|
"params": [
|
|
{
|
|
"type": "TypeParameter",
|
|
"start":13,"end":14,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":14}},
|
|
"name": "T",
|
|
"variance": null
|
|
}
|
|
]
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start":17,"end":34,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":34}},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start":17,"end":30,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":30},"identifierName":"this"},
|
|
"name": "this",
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start":22,"end":30,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":30}},
|
|
"typeAnnotation": {
|
|
"type": "NumberTypeAnnotation",
|
|
"start":24,"end":30,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":30}}
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start":33,"end":34,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":34}},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":36,"end":38,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":38}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |