swc/crates/swc_ecma_parser/tests/tsc/parserStrictMode16.json
2022-03-22 07:54:08 +00:00

133 lines
2.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 61,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 0,
"end": 12,
"ctxt": 0
},
"value": "use strict",
"raw": "\"use strict\""
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 14,
"end": 26,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 14,
"end": 25,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "ThisExpression",
"span": {
"start": 21,
"end": 25,
"ctxt": 0
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 27,
"end": 36,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 27,
"end": 35,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "NumericLiteral",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"value": 1.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 37,
"end": 49,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 37,
"end": 48,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "NullLiteral",
"span": {
"start": 44,
"end": 48,
"ctxt": 0
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 50,
"end": 61,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 50,
"end": 60,
"ctxt": 0
},
"operator": "delete",
"argument": {
"type": "StringLiteral",
"span": {
"start": 57,
"end": 60,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
}
],
"interpreter": null
}