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

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

146 lines
2.9 KiB
JSON

{
"type": "Module",
"span": {
"start": 23,
"end": 132,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 23,
"end": 59,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 39,
"end": 40,
"ctxt": 0
},
"value": "x",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 30,
"end": 59,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 42,
"end": 59,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 45,
"end": 57,
"ctxt": 0
},
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 52,
"end": 56,
"ctxt": 0
},
"value": true
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 83,
"end": 115,
"ctxt": 0
},
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 90,
"end": 94,
"ctxt": 0
},
"value": "foo1",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 97,
"end": 114,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 105,
"end": 113,
"ctxt": 0
},
"value": "./foo1",
"raw": "'./foo1'"
}
}
},
{
"type": "TsExportAssignment",
"span": {
"start": 116,
"end": 132,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 125,
"end": 131,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 125,
"end": 129,
"ctxt": 0
},
"value": "foo1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 130,
"end": 131,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
}
],
"interpreter": null
}