swc/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias2.json
2022-02-04 17:08:38 +09:00

447 lines
10 KiB
JSON

{
"type": "Script",
"span": {
"start": 122,
"end": 341,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 122,
"end": 155,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 122,
"end": 154,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 122,
"end": 142,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 122,
"end": 136,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 122,
"end": 128,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 129,
"end": 136,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 137,
"end": 142,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 145,
"end": 154,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 165,
"end": 166,
"ctxt": 0
},
"value": "a",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 156,
"end": 172,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 169,
"end": 172,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 173,
"end": 198,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 173,
"end": 197,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 173,
"end": 193,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 173,
"end": 187,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 173,
"end": 179,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 180,
"end": 187,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 188,
"end": 193,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 196,
"end": 197,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 199,
"end": 224,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 199,
"end": 223,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 199,
"end": 219,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 199,
"end": 213,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 199,
"end": 205,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 206,
"end": 213,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 214,
"end": 219,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 222,
"end": 223,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 225,
"end": 247,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 225,
"end": 247,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 225,
"end": 245,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 225,
"end": 239,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 225,
"end": 231,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 232,
"end": 239,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 240,
"end": 245,
"ctxt": 0
},
"value": "apply",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 271,
"end": 333,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 277,
"end": 333,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 277,
"end": 286,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 279,
"end": 284,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 279,
"end": 284,
"ctxt": 0
},
"value": "apply",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 289,
"end": 333,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 289,
"end": 296,
"ctxt": 0
},
"value": "require",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 297,
"end": 332,
"ctxt": 0
},
"value": "./moduleExportAliasDuplicateAlias",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 334,
"end": 341,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 334,
"end": 341,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 334,
"end": 339,
"ctxt": 0
},
"value": "apply",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}