swc/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension8.json
2022-03-22 07:54:08 +00:00

119 lines
2.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 138,
"end": 167,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 138,
"end": 167,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 138,
"end": 166,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 138,
"end": 158,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 138,
"end": 153,
"ctxt": 0
},
"callee": {
"type": "Import",
"span": {
"start": 138,
"end": 144,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 145,
"end": 152,
"ctxt": 0
},
"value": "./foo",
"raw": "\"./foo\""
}
}
],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 154,
"end": 158,
"ctxt": 0
},
"value": "then",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 159,
"end": 165,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 159,
"end": 160,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "Identifier",
"span": {
"start": 164,
"end": 165,
"ctxt": 0
},
"value": "x",
"optional": false
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}