swc/crates/swc_ecma_parser/tests/tsc/topLevelAwait.3.json

108 lines
2.2 KiB
JSON

{
"type": "Module",
"span": {
"start": 133,
"end": 202,
"ctxt": 0
},
"body": [
{
"type": "ExportNamedDeclaration",
"span": {
"start": 133,
"end": 143,
"ctxt": 0
},
"specifiers": [],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "VariableDeclaration",
"span": {
"start": 144,
"end": 169,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 158,
"end": 168,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 158,
"end": 163,
"ctxt": 0
},
"value": "await",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 163,
"end": 168,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 165,
"end": 168,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 184,
"end": 185,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": true,
"span": {
"start": 170,
"end": 202,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": {
"type": "Identifier",
"span": {
"start": 194,
"end": 199,
"ctxt": 0
},
"value": "await",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}