222 lines
6.3 KiB
JSON
222 lines
6.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":17}},
|
|
"errors": [
|
|
"SyntaxError: Invalid escape sequence in template. (1:2)",
|
|
"SyntaxError: Invalid escape sequence in template. (2:2)",
|
|
"SyntaxError: Invalid escape sequence in template. (2:8)",
|
|
"SyntaxError: Invalid escape sequence in template. (2:14)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":2,"column":17}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}},
|
|
"expression": {
|
|
"type": "TemplateLiteral",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}},
|
|
"expressions": [],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"start":1,"end":3,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":3}},
|
|
"value": {
|
|
"raw": "\\1",
|
|
"cooked": null
|
|
},
|
|
"tail": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":6,"end":23,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":17}},
|
|
"expression": {
|
|
"type": "TemplateLiteral",
|
|
"start":6,"end":22,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":16}},
|
|
"expressions": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":11,"end":12,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start":17,"end":18,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":12},"identifierName":"y"},
|
|
"name": "y"
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"start":7,"end":9,"loc":{"start":{"line":2,"column":1},"end":{"line":2,"column":3}},
|
|
"value": {
|
|
"raw": "\\1",
|
|
"cooked": null
|
|
},
|
|
"tail": false
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"start":13,"end":15,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":9}},
|
|
"value": {
|
|
"raw": "\\2",
|
|
"cooked": null
|
|
},
|
|
"tail": false
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"start":19,"end":21,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":15}},
|
|
"value": {
|
|
"raw": "\\3",
|
|
"cooked": null
|
|
},
|
|
"tail": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"tokens": [
|
|
{
|
|
"type": {
|
|
"label": "...`",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": null,
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start":4,"end":5,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":5}}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "...${",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": null,
|
|
"start":6,"end":11,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":5}}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "x",
|
|
"start":11,"end":12,"loc":{"start":{"line":2,"column":5},"end":{"line":2,"column":6}}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "...${",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": null,
|
|
"start":12,"end":17,"loc":{"start":{"line":2,"column":6},"end":{"line":2,"column":11}}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "y",
|
|
"start":17,"end":18,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":12}}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "...`",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": null,
|
|
"start":18,"end":22,"loc":{"start":{"line":2,"column":12},"end":{"line":2,"column":16}}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start":22,"end":23,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":17}}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "eof",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start":23,"end":23,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":17}}
|
|
}
|
|
]
|
|
} |