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

181 lines
3.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 78,
"end": 179,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 78,
"end": 92,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 82,
"end": 92,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 82,
"end": 87,
"ctxt": 0
},
"value": "axios",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 90,
"end": 92,
"ctxt": 0
},
"properties": []
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 93,
"end": 115,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 93,
"end": 115,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 93,
"end": 107,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 93,
"end": 99,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 100,
"end": 107,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 110,
"end": 115,
"ctxt": 0
},
"value": "axios",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 149,
"end": 179,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 149,
"end": 179,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 149,
"end": 171,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 149,
"end": 163,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 149,
"end": 155,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 156,
"end": 163,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 164,
"end": 171,
"ctxt": 0
},
"value": "default",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 174,
"end": 179,
"ctxt": 0
},
"value": "axios",
"optional": false
}
}
}
],
"interpreter": null
}