swc/crates/swc_ecma_parser/tests/tsc/allowImportingTsExtensions.json
Donny/강동윤 4d3fcb86e4
feat(es/ast): Support import attributes proposal (#7868)
**Related issue:**

 - Closes #7179
2023-08-28 00:29:45 +00:00

300 lines
5.7 KiB
JSON

{
"type": "Module",
"span": {
"start": 184,
"end": 670,
"ctxt": 0
},
"body": [
{
"type": "ExportNamedDeclaration",
"span": {
"start": 184,
"end": 194,
"ctxt": 0
},
"specifiers": [],
"source": null,
"typeOnly": false,
"with": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 219,
"end": 229,
"ctxt": 0
},
"specifiers": [],
"source": null,
"typeOnly": false,
"with": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 255,
"end": 265,
"ctxt": 0
},
"specifiers": [],
"source": null,
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 287,
"end": 312,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 302,
"end": 311,
"ctxt": 0
},
"value": "./ts.js",
"raw": "\"./ts.js\""
},
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 313,
"end": 338,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 328,
"end": 337,
"ctxt": 0
},
"value": "./ts.ts",
"raw": "\"./ts.ts\""
},
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 339,
"end": 371,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 359,
"end": 370,
"ctxt": 0
},
"value": "./ts.d.ts",
"raw": "\"./ts.d.ts\""
},
"typeOnly": true,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 373,
"end": 399,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 388,
"end": 398,
"ctxt": 0
},
"value": "./tsx.js",
"raw": "\"./tsx.js\""
},
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 400,
"end": 427,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 415,
"end": 426,
"ctxt": 0
},
"value": "./tsx.jsx",
"raw": "\"./tsx.jsx\""
},
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 428,
"end": 454,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 443,
"end": 453,
"ctxt": 0
},
"value": "./tsx.ts",
"raw": "\"./tsx.ts\""
},
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 455,
"end": 482,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 470,
"end": 481,
"ctxt": 0
},
"value": "./tsx.tsx",
"raw": "\"./tsx.tsx\""
},
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 483,
"end": 516,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 503,
"end": 515,
"ctxt": 0
},
"value": "./tsx.d.ts",
"raw": "\"./tsx.d.ts\""
},
"typeOnly": true,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 518,
"end": 544,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 533,
"end": 543,
"ctxt": 0
},
"value": "./dts.js",
"raw": "\"./dts.js\""
},
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 545,
"end": 571,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 560,
"end": 570,
"ctxt": 0
},
"value": "./dts.ts",
"raw": "\"./dts.ts\""
},
"typeOnly": false,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 572,
"end": 605,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 592,
"end": 604,
"ctxt": 0
},
"value": "./dts.d.ts",
"raw": "\"./dts.d.ts\""
},
"typeOnly": true,
"with": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 627,
"end": 670,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 642,
"end": 669,
"ctxt": 0
},
"value": "./thisfiledoesnotexist.ts",
"raw": "\"./thisfiledoesnotexist.ts\""
},
"typeOnly": false,
"with": null
}
],
"interpreter": null
}