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

118 lines
2.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 29,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 29,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 28,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1,
"end": 21,
"ctxt": 0
},
"object": {
"type": "TemplateLiteral",
"span": {
"start": 1,
"end": 13,
"ctxt": 0
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 7,
"end": 8,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 2,
"end": 5,
"ctxt": 0
},
"tail": false,
"cooked": "abc",
"raw": "abc"
},
{
"type": "TemplateElement",
"span": {
"start": 9,
"end": 12,
"ctxt": 0
},
"tail": true,
"cooked": "abc",
"raw": "abc"
}
]
},
"property": {
"type": "Identifier",
"span": {
"start": 14,
"end": 21,
"ctxt": 0
},
"value": "indexOf",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "TemplateLiteral",
"span": {
"start": 22,
"end": 27,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 23,
"end": 26,
"ctxt": 0
},
"tail": true,
"cooked": "abc",
"raw": "abc"
}
]
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}