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

148 lines
3.4 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 15,
"end": 65,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 15,
"end": 42,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 19,
"end": 41,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 19,
"end": 23,
"ctxt": 0
},
"value": "iter",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 23,
"end": 41,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 25,
"end": 41,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 25,
"end": 33,
"ctxt": 0
},
"value": "Iterable",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 33,
"end": 41,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 34,
"end": 40,
"ctxt": 0
},
"kind": "number"
}
]
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 43,
"end": 65,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 47,
"end": 64,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 47,
"end": 52,
"ctxt": 0
},
"value": "array",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 55,
"end": 64,
"ctxt": 0
},
"elements": [
{
"spread": {
"start": 56,
"end": 59,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 59,
"end": 63,
"ctxt": 0
},
"value": "iter",
"optional": false
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}