swc/crates/swc_ecma_parser/tests/tsc/importEquals2.json
Donny/강동윤 3958f1792c
refactor(es/ast): Remove unused fields (#7518)
**Related issue:**

 - Closes #7347.
 - Closes #7487.
2023-06-12 08:02:34 +00:00

213 lines
4.2 KiB
JSON

{
"type": "Module",
"span": {
"start": 48,
"end": 194,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 54,
"end": 55,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 48,
"end": 58,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 59,
"end": 76,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 73,
"end": 74,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 73,
"end": 74,
"ctxt": 0
},
"value": "A",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": null,
"typeOnly": true,
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 98,
"end": 123,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"span": {
"start": 105,
"end": 111,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 110,
"end": 111,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 117,
"end": 122,
"ctxt": 0
},
"value": "./a",
"raw": "'./a'"
},
"typeOnly": false,
"asserts": null
},
{
"type": "TsExportAssignment",
"span": {
"start": 124,
"end": 135,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 133,
"end": 134,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 157,
"end": 183,
"ctxt": 0
},
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 164,
"end": 165,
"ctxt": 0
},
"value": "a",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 168,
"end": 182,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 176,
"end": 181,
"ctxt": 0
},
"value": "./b",
"raw": "'./b'"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 184,
"end": 194,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 184,
"end": 193,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 188,
"end": 191,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 188,
"end": 189,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 190,
"end": 191,
"ctxt": 0
},
"value": "A",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}