firescript
Version:
Firescript language
60 lines (59 loc) • 1.47 kB
JSON
{
"type": "ClassExpression",
"id": {
"type": "Identifier",
"name": "Banana"
},
"superClass": null,
"body": {
"type": "ClassBody",
"body": [
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "constructor"
},
"computed": false,
"value": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression"
},
"property": {
"type": "Identifier",
"name": "fruit"
}
},
"right": {
"type": "Literal",
"value": "banana",
"raw": "'banana'"
}
}
}
]
},
"generator": false,
"expression": false,
"async": false
},
"kind": "constructor",
"static": false
}
]
}
}