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

93 lines
2.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 58,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": true,
"span": {
"start": 16,
"end": 58,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 38,
"end": 56,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 39,
"end": 48,
"ctxt": 0
},
"value": "generator",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 38,
"end": 56,
"ctxt": 0
},
"body": null,
"generator": true,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 50,
"end": 55,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 52,
"end": 55,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}