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

199 lines
4.1 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 117,
"end": 228,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 117,
"end": 136,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 117,
"end": 136,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 117,
"end": 132,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 117,
"end": 124,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 125,
"end": 132,
"ctxt": 0
},
"value": "version",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 135,
"end": 136,
"ctxt": 0
},
"value": 1.0
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 146,
"end": 151,
"ctxt": 0
},
"value": "alias",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 137,
"end": 157,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 154,
"end": 157,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 158,
"end": 180,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 158,
"end": 180,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 158,
"end": 172,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 158,
"end": 164,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 165,
"end": 172,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 175,
"end": 180,
"ctxt": 0
},
"value": "alias",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 208,
"end": 228,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 208,
"end": 228,
"ctxt": 0
},
"callee": {
"type": "Import",
"span": {
"start": 208,
"end": 214,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 215,
"end": 227,
"ctxt": 0
},
"value": "./bug28014",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}