swc/crates/swc_ecma_parser/tests/tsc/privateNameFieldInitializer.json
2022-04-05 12:46:35 +00:00

118 lines
2.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 20,
"end": 68,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 20,
"end": 68,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 34,
"end": 46,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 34,
"end": 40,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 35,
"end": 40,
"ctxt": 0
},
"value": "field",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 43,
"end": 45,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 51,
"end": 66,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 51,
"end": 65,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 52,
"end": 65,
"ctxt": 0
},
"value": "uninitialized",
"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
}