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

115 lines
2.3 KiB
JSON

{
"type": "Module",
"span": {
"start": 95,
"end": 249,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 95,
"end": 135,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 111,
"end": 114,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 102,
"end": 135,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 117,
"end": 135,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 123,
"end": 133,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 130,
"end": 132,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 221,
"end": 249,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 230,
"end": 233,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 230,
"end": 233,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 241,
"end": 248,
"ctxt": 0
},
"value": "./foo",
"raw": "\"./foo\""
},
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}