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

141 lines
2.6 KiB
JSON
Raw Normal View History

{
"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",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"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",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
],
"interpreter": null
}