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

101 lines
2.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 37,
"end": 74,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 37,
"end": 74,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 51,
"end": 72,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 52,
"end": 61,
"ctxt": 0
},
"value": "generator",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 51,
"end": 72,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 69,
"end": 72,
"ctxt": 0
},
"stmts": []
},
"generator": true,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 63,
"end": 68,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 65,
"end": 68,
"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
}