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

124 lines
3.0 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": "Identifier",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"value": "b",
"optional": false,
"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": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"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
}