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

216 lines
5.0 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 108,
"end": 174,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 108,
"end": 144,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 108,
"end": 143,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 108,
"end": 115,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 108,
"end": 110,
"ctxt": 0
},
"value": "ns",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 111,
"end": 115,
"ctxt": 0
},
"value": "next",
"optional": false
}
},
"right": {
"type": "BinaryExpression",
"span": {
"start": 118,
"end": 143,
"ctxt": 0
},
"operator": "||",
"left": {
"type": "MemberExpression",
"span": {
"start": 118,
"end": 125,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 118,
"end": 120,
"ctxt": 0
},
"value": "ns",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 121,
"end": 125,
"ctxt": 0
},
"value": "next",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 129,
"end": 143,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 131,
"end": 137,
"ctxt": 0
},
"value": "shared",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 139,
"end": 141,
"ctxt": 0
},
"properties": []
}
}
]
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 145,
"end": 174,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 145,
"end": 173,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 145,
"end": 168,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 145,
"end": 159,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 145,
"end": 152,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 145,
"end": 147,
"ctxt": 0
},
"value": "ns",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 148,
"end": 152,
"ctxt": 0
},
"value": "next",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 153,
"end": 159,
"ctxt": 0
},
"value": "shared",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 160,
"end": 168,
"ctxt": 0
},
"value": "mymethod",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 171,
"end": 173,
"ctxt": 0
},
"properties": []
}
}
}
],
"interpreter": null
}