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

101 lines
2.3 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 24,
"end": 55,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 24,
"end": 55,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 28,
"end": 54,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 28,
"end": 34,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 37,
"end": 54,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 38,
"end": 47,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 49,
"end": 53,
"ctxt": 0
}
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}