swc/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassInstance1.json

103 lines
2.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 116,
"end": 157,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 122,
"end": 125,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": false,
"span": {
"start": 116,
"end": 128,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ExpressionStatement",
"span": {
"start": 130,
"end": 157,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 130,
"end": 156,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 130,
"end": 144,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 130,
"end": 136,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 137,
"end": 144,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "NewExpression",
"span": {
"start": 147,
"end": 156,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 151,
"end": 154,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
}
],
"interpreter": null
}