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

127 lines
3.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 43,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 43,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5,
"end": 42,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 9,
"end": 42,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 9,
"end": 38,
"ctxt": 0
},
"callee": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 9,
"end": 24,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 21,
"end": 24,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"arguments": [
{
"spread": null,
"expression": {
"type": "TsTypeAssertion",
"span": {
"start": 26,
"end": 37,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 31,
"end": 37,
"ctxt": 0
},
"value": "window",
"optional": false
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 27,
"end": 30,
"ctxt": 0
},
"kind": "any"
}
}
}
],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 39,
"end": 42,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"definite": false
}
]
}
],
"interpreter": null
}