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

195 lines
5.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 44,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 16,
"end": 44,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 16,
"end": 43,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 16,
"end": 36,
"ctxt": 0
},
"object": {
"type": "TemplateLiteral",
"span": {
"start": 16,
"end": 28,
"ctxt": 0
},
"expressions": [
{
"type": "NumericLiteral",
"span": {
"start": 22,
"end": 23,
"ctxt": 0
},
"value": 0.0
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 17,
"end": 20,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 17,
"end": 20,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 17,
"end": 20,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
},
{
"type": "TemplateElement",
"span": {
"start": 24,
"end": 27,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 24,
"end": 27,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 24,
"end": 27,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
]
},
"property": {
"type": "Identifier",
"span": {
"start": 29,
"end": 36,
"ctxt": 0
},
"value": "indexOf",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "TemplateLiteral",
"span": {
"start": 37,
"end": 42,
"ctxt": 0
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 38,
"end": 41,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 38,
"end": 41,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 38,
"end": 41,
"ctxt": 0
},
"value": "abc",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": false
}
}
}
]
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}