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

443 lines
9.9 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 123,
"end": 342,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 123,
"end": 156,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 123,
"end": 155,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 123,
"end": 143,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 123,
"end": 137,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 123,
"end": 129,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 130,
"end": 137,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 138,
"end": 143,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 146,
"end": 155,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 166,
"end": 167,
"ctxt": 0
},
"value": "a",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 157,
"end": 173,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 170,
"end": 173,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 174,
"end": 199,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 174,
"end": 198,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 174,
"end": 194,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 174,
"end": 188,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 174,
"end": 180,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 181,
"end": 188,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 189,
"end": 194,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 197,
"end": 198,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 200,
"end": 225,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 200,
"end": 224,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 200,
"end": 220,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 200,
"end": 214,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 200,
"end": 206,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 207,
"end": 214,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 215,
"end": 220,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 223,
"end": 224,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 226,
"end": 248,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 226,
"end": 248,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 226,
"end": 246,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 226,
"end": 240,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 226,
"end": 232,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 233,
"end": 240,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 241,
"end": 246,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 272,
"end": 334,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 278,
"end": 334,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 278,
"end": 287,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 280,
"end": 285,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 280,
"end": 285,
"ctxt": 0
},
"value": "apply",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 290,
"end": 334,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 290,
"end": 297,
"ctxt": 0
},
"value": "require",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 298,
"end": 333,
"ctxt": 0
},
"value": "./moduleExportAliasDuplicateAlias",
"raw": "'./moduleExportAliasDuplicateAlias'"
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 335,
"end": 342,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 335,
"end": 342,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 335,
"end": 340,
"ctxt": 0
},
"value": "apply",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}