swc/crates/swc_ecma_parser/tests/tsc/wideningTuples5.json
2022-02-04 20:17:42 +09:00

101 lines
2.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 23,
"end": 54,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 23,
"end": 54,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 27,
"end": 53,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 27,
"end": 33,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 36,
"end": 53,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 37,
"end": 46,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 48,
"end": 52,
"ctxt": 0
}
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}