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

136 lines
2.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 43,
"end": 96,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": true,
"span": {
"start": 43,
"end": 73,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 65,
"end": 71,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 65,
"end": 70,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 66,
"end": 70,
"ctxt": 0
},
"value": "prop",
"optional": false
}
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "B",
"optional": false
},
"declare": false,
"span": {
"start": 74,
"end": 96,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 88,
"end": 94,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 88,
"end": 93,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 89,
"end": 93,
"ctxt": 0
},
"value": "prop",
"optional": false
}
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}