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

169 lines
4.6 KiB
JSON

{
"type": "Module",
"span": {
"start": 93,
"end": 223,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultExpression",
"span": {
"start": 93,
"end": 116,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 108,
"end": 115,
"ctxt": 0
},
"value": "./foo",
"raw": "\"./foo\""
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 156,
"end": 159,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 141,
"end": 223,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 162,
"end": 223,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 168,
"end": 221,
"ctxt": 0
},
"argument": {
"type": "AwaitExpression",
"span": {
"start": 175,
"end": 220,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 181,
"end": 220,
"ctxt": 0
},
"callee": {
"type": "Import",
"span": {
"start": 181,
"end": 187,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 188,
"end": 219,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 188,
"end": 211,
"ctxt": 0
},
"expression": {
"type": "AwaitExpression",
"span": {
"start": 189,
"end": 210,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 195,
"end": 210,
"ctxt": 0
},
"callee": {
"type": "Import",
"span": {
"start": 195,
"end": 201,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 202,
"end": 209,
"ctxt": 0
},
"value": "./foo",
"raw": "\"./foo\""
}
}
],
"typeArguments": null
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 212,
"end": 219,
"ctxt": 0
},
"value": "default",
"optional": false
}
}
}
],
"typeArguments": null
}
}
}
]
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}