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

325 lines
6.9 KiB
JSON

{
"type": "Module",
"span": {
"start": 58,
"end": 234,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 58,
"end": 77,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 65,
"end": 77,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 69,
"end": 76,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 73,
"end": 76,
"ctxt": 0
},
"value": "x",
"raw": "\"x\""
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 78,
"end": 97,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 85,
"end": 97,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 89,
"end": 96,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 89,
"end": 90,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 93,
"end": 96,
"ctxt": 0
},
"value": "y",
"raw": "\"y\""
},
"definite": false
}
]
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 119,
"end": 157,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 128,
"end": 134,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 128,
"end": 129,
"ctxt": 0
},
"value": "x",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 133,
"end": 134,
"ctxt": 0
},
"value": "y",
"optional": false
},
"isTypeOnly": false
},
{
"type": "ExportSpecifier",
"span": {
"start": 136,
"end": 142,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"value": "y",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 141,
"end": 142,
"ctxt": 0
},
"value": "x",
"optional": false
},
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 150,
"end": 156,
"ctxt": 0
},
"value": "./t1",
"raw": "\"./t1\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 179,
"end": 207,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 188,
"end": 189,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 188,
"end": 189,
"ctxt": 0
},
"value": "x",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 191,
"end": 192,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 191,
"end": 192,
"ctxt": 0
},
"value": "y",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 200,
"end": 206,
"ctxt": 0
},
"value": "./t1",
"raw": "\"./t1\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 208,
"end": 234,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 217,
"end": 223,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 217,
"end": 218,
"ctxt": 0
},
"value": "x",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 222,
"end": 223,
"ctxt": 0
},
"value": "y",
"optional": false
},
"isTypeOnly": false
},
{
"type": "ExportSpecifier",
"span": {
"start": 225,
"end": 231,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 225,
"end": 226,
"ctxt": 0
},
"value": "y",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 230,
"end": 231,
"ctxt": 0
},
"value": "x",
"optional": false
},
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}