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

113 lines
2.4 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 42,
"ctxt": 0
},
"body": [
{
"type": "IfStatement",
"span": {
"start": 1,
"end": 42,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 5,
"end": 20,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "MemberExpression",
"span": {
"start": 6,
"end": 20,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 6,
"end": 12,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 13,
"end": 20,
"ctxt": 0
},
"value": "exports",
"optional": false
}
}
},
"consequent": {
"type": "ExpressionStatement",
"span": {
"start": 22,
"end": 42,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 22,
"end": 41,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 22,
"end": 36,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 22,
"end": 28,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 29,
"end": 36,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 39,
"end": 41,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
}
},
"alternate": null
}
],
"interpreter": null
}