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

173 lines
3.9 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 47,
"end": 101,
"ctxt": 0
},
"body": [
{
"type": "ForOfStatement",
"span": {
"start": 47,
"end": 101,
"ctxt": 0
},
"await": null,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 52,
"end": 57,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "ArrayExpression",
"span": {
"start": 61,
"end": 76,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 62,
"end": 65,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 67,
"end": 70,
"ctxt": 0
},
"value": "b",
"raw": "'b'"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 72,
"end": 75,
"ctxt": 0
},
"value": "c",
"raw": "'c'"
}
}
]
},
"body": {
"type": "BlockStatement",
"span": {
"start": 78,
"end": 101,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 84,
"end": 99,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 84,
"end": 98,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 84,
"end": 95,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 84,
"end": 91,
"ctxt": 0
},
"value": "console",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 92,
"end": 95,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 96,
"end": 97,
"ctxt": 0
},
"value": "v",
"optional": false
}
}
],
"typeArguments": null
}
}
]
}
}
],
"interpreter": null
}