swc/crates/swc_ecma_parser/tests/tsc/ES5For-of13.json

155 lines
3.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 20,
"end": 69,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 20,
"end": 69,
"ctxt": 0
},
"await": null,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 34,
"end": 49,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 35,
"end": 38,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 40,
"end": 43,
"ctxt": 0
},
"value": "b",
"raw": "'b'"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 45,
"end": 48,
"ctxt": 0
},
"value": "c",
"raw": "'c'"
}
}
]
},
"body": {
"type": "BlockStatement",
"span": {
"start": 51,
"end": 69,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 57,
"end": 67,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 61,
"end": 66,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 65,
"end": 66,
"ctxt": 0
},
"value": "v",
"optional": false
},
"definite": false
}
]
}
]
}
}
],
"interpreter": null
}