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

172 lines
3.6 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 116,
"end": 275,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 125,
"end": 126,
"ctxt": 0
},
"value": "D",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 116,
"end": 133,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 130,
"end": 133,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 134,
"end": 151,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 134,
"end": 150,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 134,
"end": 146,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 134,
"end": 141,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 141,
"end": 146,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 142,
"end": 145,
"ctxt": 0
},
"value": "D",
"raw": "\"D\""
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 149,
"end": 150,
"ctxt": 0
},
"value": "D",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 242,
"end": 275,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 242,
"end": 274,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 242,
"end": 270,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 242,
"end": 249,
"ctxt": 0
},
"value": "exports",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 249,
"end": 270,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 250,
"end": 269,
"ctxt": 0
},
"value": "Does not work yet",
"raw": "\"Does not work yet\""
}
}
},
"right": {
"type": "Identifier",
"span": {
"start": 273,
"end": 274,
"ctxt": 0
},
"value": "D",
"optional": false
}
}
}
],
"interpreter": null
}