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

362 lines
7.9 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 123,
"end": 311,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 123,
"end": 149,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 123,
"end": 148,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 123,
"end": 136,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 123,
"end": 130,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 131,
"end": 136,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 139,
"end": 148,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 159,
"end": 160,
"ctxt": 0
},
"value": "a",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 150,
"end": 166,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 163,
"end": 166,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 167,
"end": 182,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 167,
"end": 182,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 167,
"end": 180,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 167,
"end": 174,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 175,
"end": 180,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 183,
"end": 201,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 183,
"end": 200,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 183,
"end": 196,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 183,
"end": 190,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 191,
"end": 196,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 199,
"end": 200,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 202,
"end": 217,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 202,
"end": 217,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 202,
"end": 215,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 202,
"end": 209,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 210,
"end": 215,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 241,
"end": 303,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 247,
"end": 303,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 247,
"end": 256,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 249,
"end": 254,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 249,
"end": 254,
"ctxt": 0
},
"value": "apply",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 259,
"end": 303,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 259,
"end": 266,
"ctxt": 0
},
"value": "require",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 267,
"end": 302,
"ctxt": 0
},
"value": "./moduleExportAliasDuplicateAlias",
"raw": "'./moduleExportAliasDuplicateAlias'"
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 304,
"end": 311,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 304,
"end": 311,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 304,
"end": 309,
"ctxt": 0
},
"value": "apply",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}