swc/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern22.json
2022-03-22 07:54:08 +00:00

123 lines
2.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 15,
"end": 47,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 15,
"end": 47,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 19,
"end": 46,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 19,
"end": 25,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 20,
"end": 24,
"ctxt": 0
},
"rest": {
"start": 20,
"end": 23,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 28,
"end": 46,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "NumericLiteral",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": 0.0
},
"value": {
"type": "StringLiteral",
"span": {
"start": 33,
"end": 35,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "NumericLiteral",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"value": 1.0
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 40,
"end": 44,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}