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

226 lines
6.7 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 146,
"end": 231,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 146,
"end": 231,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 146,
"end": 231,
"ctxt": 0
},
"callee": {
"type": "ParenthesisExpression",
"span": {
"start": 146,
"end": 229,
"ctxt": 0
},
"expression": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 147,
"end": 228,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 158,
"end": 228,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 160,
"end": 178,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 160,
"end": 178,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 160,
"end": 174,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 160,
"end": 167,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 168,
"end": 174,
"ctxt": 0
},
"value": "bigOak",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 177,
"end": 178,
"ctxt": 0
},
"value": 1.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 179,
"end": 201,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 179,
"end": 201,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 179,
"end": 197,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 179,
"end": 186,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 187,
"end": 197,
"ctxt": 0
},
"value": "everywhere",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 200,
"end": 201,
"ctxt": 0
},
"value": 2.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 202,
"end": 226,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 202,
"end": 226,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 202,
"end": 216,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 202,
"end": 208,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 209,
"end": 216,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 219,
"end": 226,
"ctxt": 0
},
"value": "exports",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}