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

115 lines
2.3 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 99,
"end": 253,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 99,
"end": 139,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 115,
"end": 118,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 106,
"end": 139,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 121,
"end": 139,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 127,
"end": 137,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 134,
"end": 136,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 225,
"end": 253,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 234,
"end": 237,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 234,
"end": 237,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 245,
"end": 252,
"ctxt": 0
},
"value": "./foo",
"raw": "\"./foo\""
},
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}