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

71 lines
1.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 22,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 22,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5,
"end": 21,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "TsAsExpression",
"span": {
"start": 9,
"end": 21,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 9,
"end": 11,
"ctxt": 0
},
"value": 23.0,
"raw": "23"
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 15,
"end": 21,
"ctxt": 0
},
"kind": "string"
}
},
"definite": false
}
]
}
],
"interpreter": null
}