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

169 lines
4.6 KiB
JSON

{
"type": "Module",
"span": {
"start": 90,
"end": 220,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultExpression",
"span": {
"start": 90,
"end": 113,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 105,
"end": 112,
"ctxt": 0
},
"value": "./foo",
"raw": "\"./foo\""
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 153,
"end": 156,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 138,
"end": 220,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 159,
"end": 220,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 165,
"end": 218,
"ctxt": 0
},
"argument": {
"type": "AwaitExpression",
"span": {
"start": 172,
"end": 217,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 178,
"end": 217,
"ctxt": 0
},
"callee": {
"type": "Import",
"span": {
"start": 178,
"end": 184,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 185,
"end": 216,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 185,
"end": 208,
"ctxt": 0
},
"expression": {
"type": "AwaitExpression",
"span": {
"start": 186,
"end": 207,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 192,
"end": 207,
"ctxt": 0
},
"callee": {
"type": "Import",
"span": {
"start": 192,
"end": 198,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 199,
"end": 206,
"ctxt": 0
},
"value": "./foo",
"raw": "\"./foo\""
}
}
],
"typeArguments": null
}
}
},
"property": {
"type": "Identifier",
"span": {
"start": 209,
"end": 216,
"ctxt": 0
},
"value": "default",
"optional": false
}
}
}
],
"typeArguments": null
}
}
}
]
},
"generator": false,
"async": true,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}