mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
113 lines
4.8 KiB
JSON
113 lines
4.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":65,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":65}},
|
|
"errors": [
|
|
"SyntaxError: A setter cannot have a `this` parameter. (2:18)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":65,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":65}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "DeclareClass",
|
|
"start":0,"end":65,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":65}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"C"},
|
|
"name": "C"
|
|
},
|
|
"typeParameters": null,
|
|
"extends": [],
|
|
"implements": [],
|
|
"mixins": [],
|
|
"body": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start":16,"end":65,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":65}},
|
|
"callProperties": [],
|
|
"properties": [
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":20,"end":62,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":44,"index":62}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":24,"end":35,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":17,"index":35},"identifierName":"constructor"},
|
|
"name": "constructor"
|
|
},
|
|
"static": false,
|
|
"proto": false,
|
|
"kind": "set",
|
|
"method": true,
|
|
"value": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":20,"end":62,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":44,"index":62}},
|
|
"params": [
|
|
{
|
|
"type": "FunctionTypeParam",
|
|
"start":45,"end":55,"loc":{"start":{"line":2,"column":27,"index":45},"end":{"line":2,"column":37,"index":55}},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"start":45,"end":46,"loc":{"start":{"line":2,"column":27,"index":45},"end":{"line":2,"column":28,"index":46},"identifierName":"v"},
|
|
"name": "v"
|
|
},
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":48,"end":55,"loc":{"start":{"line":2,"column":30,"index":48},"end":{"line":2,"column":37,"index":55}},
|
|
"params": [],
|
|
"rest": null,
|
|
"this": null,
|
|
"returnType": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start":54,"end":55,"loc":{"start":{"line":2,"column":36,"index":54},"end":{"line":2,"column":37,"index":55}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":54,"end":55,"loc":{"start":{"line":2,"column":36,"index":54},"end":{"line":2,"column":37,"index":55},"identifierName":"C"},
|
|
"name": "C"
|
|
}
|
|
},
|
|
"typeParameters": null
|
|
}
|
|
}
|
|
],
|
|
"rest": null,
|
|
"typeParameters": null,
|
|
"this": {
|
|
"type": "FunctionTypeParam",
|
|
"start":36,"end":43,"loc":{"start":{"line":2,"column":18,"index":36},"end":{"line":2,"column":25,"index":43}},
|
|
"name": null,
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start":42,"end":43,"loc":{"start":{"line":2,"column":24,"index":42},"end":{"line":2,"column":25,"index":43}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":42,"end":43,"loc":{"start":{"line":2,"column":24,"index":42},"end":{"line":2,"column":25,"index":43},"identifierName":"C"},
|
|
"name": "C"
|
|
}
|
|
}
|
|
},
|
|
"returnType": {
|
|
"type": "VoidTypeAnnotation",
|
|
"start":58,"end":62,"loc":{"start":{"line":2,"column":40,"index":58},"end":{"line":2,"column":44,"index":62}}
|
|
}
|
|
},
|
|
"optional": false
|
|
}
|
|
],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|