mirror of
https://github.com/swc-project/swc.git
synced 2024-12-03 00:54:25 +03:00
152 lines
3.0 KiB
JSON
152 lines
3.0 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 16,
|
|
"end": 78,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 16,
|
|
"end": 30,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 20,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 20,
|
|
"end": 21,
|
|
"ctxt": 0
|
|
},
|
|
"value": "v",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 23,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ForOfStatement",
|
|
"span": {
|
|
"start": 31,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"await": null,
|
|
"left": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 36,
|
|
"end": 37,
|
|
"ctxt": 0
|
|
},
|
|
"value": "v",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"span": {
|
|
"start": 41,
|
|
"end": 50,
|
|
"ctxt": 0
|
|
},
|
|
"elements": [
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 49,
|
|
"ctxt": 0
|
|
},
|
|
"value": "hello",
|
|
"raw": "\"hello\""
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 52,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForOfStatement",
|
|
"span": {
|
|
"start": 56,
|
|
"end": 78,
|
|
"ctxt": 0
|
|
},
|
|
"await": null,
|
|
"left": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 61,
|
|
"end": 62,
|
|
"ctxt": 0
|
|
},
|
|
"value": "v",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 66,
|
|
"end": 73,
|
|
"ctxt": 0
|
|
},
|
|
"value": "hello",
|
|
"raw": "\"hello\""
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 75,
|
|
"end": 78,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|