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

325 lines
6.9 KiB
JSON

{
"type": "Module",
"span": {
"start": 53,
"end": 229,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 53,
"end": 72,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 60,
"end": 72,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 64,
"end": 71,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 64,
"end": 65,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 68,
"end": 71,
"ctxt": 0
},
"value": "x",
"raw": "\"x\""
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 73,
"end": 92,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 80,
"end": 92,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 84,
"end": 91,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 84,
"end": 85,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 88,
"end": 91,
"ctxt": 0
},
"value": "y",
"raw": "\"y\""
},
"definite": false
}
]
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 114,
"end": 152,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 123,
"end": 129,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"value": "x",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 128,
"end": 129,
"ctxt": 0
},
"value": "y",
"optional": false
},
"isTypeOnly": false
},
{
"type": "ExportSpecifier",
"span": {
"start": 131,
"end": 137,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 131,
"end": 132,
"ctxt": 0
},
"value": "y",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"value": "x",
"optional": false
},
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 145,
"end": 151,
"ctxt": 0
},
"value": "./t1",
"raw": "\"./t1\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 174,
"end": 202,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 183,
"end": 184,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 183,
"end": 184,
"ctxt": 0
},
"value": "x",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"value": "y",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 195,
"end": 201,
"ctxt": 0
},
"value": "./t1",
"raw": "\"./t1\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 203,
"end": 229,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 212,
"end": 218,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 212,
"end": 213,
"ctxt": 0
},
"value": "x",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 217,
"end": 218,
"ctxt": 0
},
"value": "y",
"optional": false
},
"isTypeOnly": false
},
{
"type": "ExportSpecifier",
"span": {
"start": 220,
"end": 226,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 220,
"end": 221,
"ctxt": 0
},
"value": "y",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 225,
"end": 226,
"ctxt": 0
},
"value": "x",
"optional": false
},
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}