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

121 lines
2.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 34,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 34,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 0,
"end": 33,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 0,
"end": 11,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 0,
"end": 7,
"ctxt": 0
},
"value": "console",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 8,
"end": 11,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "BinaryExpression",
"span": {
"start": 12,
"end": 32,
"ctxt": 0
},
"operator": "in",
"left": {
"type": "StringLiteral",
"span": {
"start": 12,
"end": 15,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 19,
"end": 32,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "StringLiteral",
"span": {
"start": 21,
"end": 24,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 26,
"end": 30,
"ctxt": 0
},
"value": true
}
}
]
}
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}