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

151 lines
3.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 76,
"end": 138,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 76,
"end": 94,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 80,
"end": 93,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 80,
"end": 85,
"ctxt": 0
},
"value": "loop1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 88,
"end": 93,
"ctxt": 0
},
"value": "loop2",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 95,
"end": 113,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 99,
"end": 112,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 99,
"end": 104,
"ctxt": 0
},
"value": "loop2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 107,
"end": 112,
"ctxt": 0
},
"value": "loop1",
"optional": false
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 115,
"end": 138,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 115,
"end": 137,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 115,
"end": 129,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 115,
"end": 121,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 122,
"end": 129,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 132,
"end": 137,
"ctxt": 0
},
"value": "loop2",
"optional": false
}
}
}
],
"interpreter": null
}