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

194 lines
4.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 77,
"end": 146,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 77,
"end": 109,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 77,
"end": 109,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 77,
"end": 92,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 77,
"end": 84,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 85,
"end": 92,
"ctxt": 0
},
"value": "default",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 95,
"end": 109,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 97,
"end": 98,
"ctxt": 0
},
"value": "m",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 100,
"end": 101,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 103,
"end": 104,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 106,
"end": 107,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 110,
"end": 146,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 110,
"end": 145,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 110,
"end": 124,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 110,
"end": 116,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 117,
"end": 124,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 127,
"end": 145,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 127,
"end": 134,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 134,
"end": 145,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 135,
"end": 144,
"ctxt": 0
},
"value": "default",
"raw": "'default'"
}
}
}
}
}
],
"interpreter": null
}