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

140 lines
2.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 79,
"end": 130,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 79,
"end": 111,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 79,
"end": 110,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 79,
"end": 93,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 79,
"end": 85,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 86,
"end": 93,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 96,
"end": 110,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 96,
"end": 102,
"ctxt": 0
},
"value": "window",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 103,
"end": 110,
"ctxt": 0
},
"value": "nonprop",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 112,
"end": 130,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 112,
"end": 129,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 112,
"end": 123,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 112,
"end": 119,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 120,
"end": 123,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 126,
"end": 129,
"ctxt": 0
},
"value": "bar",
"optional": false
}
}
}
],
"interpreter": null
}