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

341 lines
7.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 77,
"end": 284,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 83,
"end": 88,
"ctxt": 0
},
"value": "Axios",
"optional": false
},
"declare": false,
"span": {
"start": 77,
"end": 130,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 95,
"end": 116,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 95,
"end": 106,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 109,
"end": 116,
"ctxt": 0
},
"stmts": []
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassMethod",
"span": {
"start": 121,
"end": 128,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 121,
"end": 122,
"ctxt": 0
},
"value": "m",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 121,
"end": 128,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 125,
"end": 128,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "VariableDeclaration",
"span": {
"start": 131,
"end": 155,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 135,
"end": 154,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 135,
"end": 140,
"ctxt": 0
},
"value": "axios",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 143,
"end": 154,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 147,
"end": 152,
"ctxt": 0
},
"value": "Axios",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 219,
"end": 228,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 219,
"end": 228,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 219,
"end": 226,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 219,
"end": 224,
"ctxt": 0
},
"value": "axios",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 225,
"end": 226,
"ctxt": 0
},
"value": "m",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 229,
"end": 252,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 229,
"end": 251,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 229,
"end": 243,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 229,
"end": 235,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 236,
"end": 243,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 246,
"end": 251,
"ctxt": 0
},
"value": "axios",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 253,
"end": 284,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 253,
"end": 283,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 253,
"end": 275,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 253,
"end": 267,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 253,
"end": 259,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 260,
"end": 267,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 268,
"end": 275,
"ctxt": 0
},
"value": "default",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 278,
"end": 283,
"ctxt": 0
},
"value": "axios",
"optional": false
}
}
}
],
"interpreter": null
}