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

58 lines
1.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 22,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 14,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1,
"end": 13,
"ctxt": 0
},
"value": "use strict",
"raw": "\"use strict\""
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 15,
"end": 22,
"ctxt": 0
},
"expression": {
"type": "UpdateExpression",
"span": {
"start": 15,
"end": 21,
"ctxt": 0
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"span": {
"start": 17,
"end": 21,
"ctxt": 0
},
"value": "eval",
"optional": false
}
}
}
],
"interpreter": null
}