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

134 lines
2.5 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 62,
"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": 27,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 15,
"end": 26,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "ThisExpression",
"span": {
"start": 22,
"end": 26,
"ctxt": 0
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 28,
"end": 37,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 28,
"end": 36,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "NumericLiteral",
"span": {
"start": 35,
"end": 36,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 38,
"end": 50,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 38,
"end": 49,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "NullLiteral",
"span": {
"start": 45,
"end": 49,
"ctxt": 0
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 51,
"end": 62,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 51,
"end": 61,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "StringLiteral",
"span": {
"start": 58,
"end": 61,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
],
"interpreter": null
}