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

142 lines
2.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 48,
"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": "CallExpression",
"span": {
"start": 15,
"end": 21,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 15,
"end": 19,
"ctxt": 0
},
"value": "foo1",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 23,
"end": 30,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 23,
"end": 29,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"value": "foo1",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 31,
"end": 38,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 31,
"end": 37,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 31,
"end": 35,
"ctxt": 0
},
"value": "foo1",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 39,
"end": 48,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 39,
"end": 47,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 39,
"end": 45,
"ctxt": 0
},
"value": "static",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}