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

177 lines
4.9 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 92,
"end": 222,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultExpression",
"span": {
"start": 92,
"end": 115,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 107,
"end": 114,
"ctxt": 0
},
"value": "./foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 155,
"end": 158,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 140,
"end": 222,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 161,
"end": 222,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 167,
"end": 220,
"ctxt": 0
},
"argument": {
"type": "AwaitExpression",
"span": {
"start": 174,
"end": 219,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 180,
"end": 219,
"ctxt": 0
},
"callee": {
"type": "Import",
"span": {
"start": 180,
"end": 186,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 187,
"end": 218,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 187,
"end": 210,
"ctxt": 0
},
"expression": {
"type": "AwaitExpression",
"span": {
"start": 188,
"end": 209,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 194,
"end": 209,
"ctxt": 0
},
"callee": {
"type": "Import",
"span": {
"start": 194,
"end": 200,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 201,
"end": 208,
"ctxt": 0
},
"value": "./foo",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"typeArguments": null
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 211,
"end": 218,
"ctxt": 0
},
"value": "default",
"optional": false
}
}
}
],
"typeArguments": null
}
}
}
]
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}