swc/ecmascript/parser/tests/jsx/basic/custom/tpl/input.js.json
강동윤 30af06bb70
Ast (#513)
swc_ecmascript:
 - add `ExprStmt`.
 - change type of regex.expression and regex.flags.
2019-12-16 18:08:21 +09:00

101 lines
2.1 KiB
JSON

{
"type": "Module",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"expression": {
"type": "TemplateLiteral",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"expressions": [
{
"type": "Identifier",
"span": {
"start": 3,
"end": 6,
"ctxt": 0
},
"value": "foo",
"typeAnnotation": null,
"optional": false
}
],
"quasis": [
{
"type": "TemplateElement",
"span": {
"start": 1,
"end": 1,
"ctxt": 0
},
"tail": false,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 1,
"end": 1,
"ctxt": 0
},
"value": "",
"hasEscape": false
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 1,
"end": 1,
"ctxt": 0
},
"value": "",
"hasEscape": false
}
},
{
"type": "TemplateElement",
"span": {
"start": 7,
"end": 12,
"ctxt": 0
},
"tail": true,
"cooked": {
"type": "StringLiteral",
"span": {
"start": 7,
"end": 12,
"ctxt": 0
},
"value": "<bar>",
"hasEscape": false
},
"raw": {
"type": "StringLiteral",
"span": {
"start": 7,
"end": 12,
"ctxt": 0
},
"value": "<bar>",
"hasEscape": false
}
}
]
}
}
],
"interpreter": null
}