swc/crates/swc_ecma_parser/tests/tsc/libReferenceDeclarationEmit.json
2022-02-04 17:08:38 +09:00

150 lines
3.5 KiB
JSON

{
"type": "Module",
"span": {
"start": 129,
"end": 263,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 129,
"end": 168,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 136,
"end": 168,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 150,
"end": 167,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 150,
"end": 154,
"ctxt": 0
},
"value": "elem",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 154,
"end": 167,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 156,
"end": 167,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 156,
"end": 167,
"ctxt": 0
},
"value": "HTMLElement",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 221,
"end": 230,
"ctxt": 0
},
"specifiers": [],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 231,
"end": 263,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 245,
"end": 262,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 245,
"end": 249,
"ctxt": 0
},
"value": "elem",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 249,
"end": 262,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 251,
"end": 262,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 251,
"end": 262,
"ctxt": 0
},
"value": "HTMLElement",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
}
],
"interpreter": null
}