2021-01-15 13:30:44 +03:00
|
|
|
{
|
|
|
|
"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",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
2021-01-15 13:30:44 +03:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2021-02-19 09:34:22 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"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",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"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
|
|
|
|
}
|