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

290 lines
6.6 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 0,
"end": 67,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 0,
"end": 14,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1,
"end": 13,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 1,
"end": 8,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 2,
"end": 7,
"ctxt": 0
},
"rest": {
"start": 2,
"end": 5,
"ctxt": 0
},
"argument": {
"type": "ObjectPattern",
"span": {
"start": 5,
"end": 7,
"ctxt": 0
},
"properties": [],
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 11,
"end": 13,
"ctxt": 0
},
"properties": []
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 16,
"end": 33,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 16,
"end": 32,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 17,
"end": 31,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 17,
"end": 26,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 18,
"end": 25,
"ctxt": 0
},
"rest": {
"start": 18,
"end": 21,
"ctxt": 0
},
"argument": {
"type": "Invalid",
"span": {
"start": 21,
"end": 25,
"ctxt": 0
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 29,
"end": 31,
"ctxt": 0
},
"properties": []
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 34,
"end": 49,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 34,
"end": 48,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 35,
"end": 47,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 35,
"end": 42,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 36,
"end": 41,
"ctxt": 0
},
"rest": {
"start": 36,
"end": 39,
"ctxt": 0
},
"argument": {
"type": "ArrayPattern",
"span": {
"start": 39,
"end": 41,
"ctxt": 0
},
"elements": [],
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 45,
"end": 47,
"ctxt": 0
},
"properties": []
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 50,
"end": 67,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 50,
"end": 66,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 51,
"end": 65,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "ObjectPattern",
"span": {
"start": 51,
"end": 60,
"ctxt": 0
},
"properties": [
{
"type": "RestElement",
"span": {
"start": 52,
"end": 59,
"ctxt": 0
},
"rest": {
"start": 52,
"end": 55,
"ctxt": 0
},
"argument": {
"type": "Invalid",
"span": {
"start": 55,
"end": 59,
"ctxt": 0
}
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 63,
"end": 65,
"ctxt": 0
},
"properties": []
}
}
}
}
],
"interpreter": null
}