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

125 lines
3.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 48,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 16,
"end": 48,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 20,
"end": 47,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 20,
"end": 26,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 21,
"end": 25,
"ctxt": 0
},
"rest": {
"start": 21,
"end": 24,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 24,
"end": 25,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 29,
"end": 47,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "NumericLiteral",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"value": {
"type": "StringLiteral",
"span": {
"start": 34,
"end": 36,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "NumericLiteral",
"span": {
"start": 38,
"end": 39,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 41,
"end": 45,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}