firescript
Version:
Firescript transpiler
57 lines (56 loc) • 1.42 kB
JSON
{
"type": "Program",
"sourceType": "module",
"body": [
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "ClassDeclaration",
"id": {
"type": "Identifier",
"name": "Banana"
},
"body": {
"type": "ClassBody",
"body": [
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "constructor"
},
"computed": false,
"value": {
"type": "FunctionExpression",
"id": null,
"params": [],
"fsParamTypings": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "Identifier",
"name": "banana"
}
}
]
},
"async": false,
"expression": false,
"generator": false
},
"kind": "constructor",
"static": false,
"async": false
}
]
},
"superClass": null
},
"specifiers": [],
"source": null
}
]
}