swc/crates/swc_ecma_parser/tests/js/issue-8482/input.js.json
magic-akari 740e6f390a
fix(es/parser): Correctly parse the keyword (#8483)
**Related issue:**

 - Closes #8482.
2024-01-04 12:26:25 +00:00

62 lines
1.2 KiB
JSON

{
"type": "Module",
"span": {
"start": 1,
"end": 19,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 1,
"end": 19,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 8,
"end": 19,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 13,
"end": 19,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 17,
"end": 19,
"ctxt": 0
},
"value": "",
"raw": "''"
},
"definite": false
}
]
}
}
],
"interpreter": null
}