swc/crates/swc_ecma_parser/tests/tsc/libReferenceDeclarationEmit.json
Donny/강동윤 4d3fcb86e4
feat(es/ast): Support import attributes proposal (#7868)
**Related issue:**

 - Closes #7179
2023-08-28 00:29:45 +00:00

150 lines
3.5 KiB
JSON

{
"type": "Module",
"span": {
"start": 130,
"end": 264,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 130,
"end": 169,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 137,
"end": 169,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 151,
"end": 168,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 151,
"end": 155,
"ctxt": 0
},
"value": "elem",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 155,
"end": 168,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 157,
"end": 168,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 157,
"end": 168,
"ctxt": 0
},
"value": "HTMLElement",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 222,
"end": 231,
"ctxt": 0
},
"specifiers": [],
"source": null,
"typeOnly": false,
"with": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 232,
"end": 264,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 246,
"end": 263,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 246,
"end": 250,
"ctxt": 0
},
"value": "elem",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 250,
"end": 263,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 252,
"end": 263,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 252,
"end": 263,
"ctxt": 0
},
"value": "HTMLElement",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
}
],
"interpreter": null
}