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

174 lines
3.7 KiB
JSON

{
"type": "Module",
"span": {
"start": 42,
"end": 177,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 42,
"end": 65,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 49,
"end": 65,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 55,
"end": 64,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 55,
"end": 60,
"ctxt": 0
},
"value": "rootA",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 92,
"end": 118,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 99,
"end": 118,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 105,
"end": 117,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 105,
"end": 113,
"ctxt": 0
},
"value": "indexInA",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 116,
"end": 117,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 141,
"end": 177,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 150,
"end": 158,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 150,
"end": 158,
"ctxt": 0
},
"value": "indexInA",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 160,
"end": 165,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 160,
"end": 165,
"ctxt": 0
},
"value": "rootA",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 173,
"end": 176,
"ctxt": 0
},
"value": ".",
"raw": "\".\""
},
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}