swc/crates/swc_ecma_parser/tests/js/optional-chaining/2/input.js.json

160 lines
4.8 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 1,
"end": 17,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 17,
"ctxt": 0
},
"expression": {
"type": "OptionalChainingExpression",
"span": {
"start": 1,
"end": 16,
"ctxt": 0
},
"optional": false,
"base": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 16,
"ctxt": 0
},
"callee": {
"type": "OptionalChainingExpression",
"span": {
"start": 1,
"end": 14,
"ctxt": 0
},
"optional": false,
"base": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 14,
"ctxt": 0
},
"callee": {
"type": "OptionalChainingExpression",
"span": {
"start": 1,
"end": 12,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 1,
"end": 12,
"ctxt": 0
},
"object": {
"type": "OptionalChainingExpression",
"span": {
"start": 1,
"end": 9,
"ctxt": 0
},
"optional": false,
"base": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 9,
"ctxt": 0
},
"callee": {
"type": "OptionalChainingExpression",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"optional": false,
"base": {
"type": "CallExpression",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"callee": {
"type": "OptionalChainingExpression",
"span": {
"start": 1,
"end": 5,
"ctxt": 0
},
"optional": true,
"base": {
"type": "MemberExpression",
"span": {
"start": 1,
"end": 5,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 4,
"end": 5,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"arguments": [],
"typeArguments": null
}
},
"arguments": [],
"typeArguments": null
}
},
"property": {
"type": "Identifier",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
"arguments": [],
"typeArguments": null
}
},
"arguments": [],
"typeArguments": null
}
}
}
],
"interpreter": null
}