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

65 lines
1.3 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 0,
"end": 12,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 4,
"end": 10,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 4,
"end": 7,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 7,
"end": 10,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"value": 1.0
}
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}