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

290 lines
6.0 KiB
JSON

{
"type": "Module",
"span": {
"start": 23,
"end": 245,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 23,
"end": 60,
"ctxt": 0
},
"declaration": {
"type": "TsEnumDeclaration",
"span": {
"start": 30,
"end": 60,
"ctxt": 0
},
"declare": false,
"isConst": true,
"id": {
"type": "Identifier",
"span": {
"start": 41,
"end": 45,
"ctxt": 0
},
"value": "Enum",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 50,
"end": 57,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 50,
"end": 53,
"ctxt": 0
},
"value": "One",
"optional": false
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 85,
"end": 115,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 94,
"end": 98,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 94,
"end": 98,
"ctxt": 0
},
"value": "Enum",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 106,
"end": 114,
"ctxt": 0
},
"value": "./enum",
"raw": "\"./enum\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 116,
"end": 162,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 126,
"end": 130,
"ctxt": 0
},
"value": "Enum",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 131,
"end": 162,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 135,
"end": 160,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 142,
"end": 160,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 147,
"end": 150,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 153,
"end": 159,
"ctxt": 0
},
"kind": "number"
}
}
}
]
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 163,
"end": 179,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 172,
"end": 176,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 172,
"end": 176,
"ctxt": 0
},
"value": "Enum",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 204,
"end": 235,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 213,
"end": 217,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 213,
"end": 217,
"ctxt": 0
},
"value": "Enum",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 225,
"end": 234,
"ctxt": 0
},
"value": "./merge",
"raw": "\"./merge\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 236,
"end": 245,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 236,
"end": 244,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 236,
"end": 240,
"ctxt": 0
},
"value": "Enum",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 241,
"end": 244,
"ctxt": 0
},
"value": "One",
"optional": false
}
}
}
],
"interpreter": null
}