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

113 lines
2.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 35,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 35,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 34,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1,
"end": 12,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1,
"end": 8,
"ctxt": 0
},
"value": "console",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 9,
"end": 12,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "BinaryExpression",
"span": {
"start": 13,
"end": 33,
"ctxt": 0
},
"operator": "in",
"left": {
"type": "StringLiteral",
"span": {
"start": 13,
"end": 16,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 20,
"end": 33,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "StringLiteral",
"span": {
"start": 22,
"end": 25,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 27,
"end": 31,
"ctxt": 0
},
"value": true
}
}
]
}
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}