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

118 lines
2.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 72,
"end": 134,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 72,
"end": 134,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 86,
"end": 105,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 93,
"end": 99,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 94,
"end": 99,
"ctxt": 0
},
"value": "field",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 102,
"end": 104,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 110,
"end": 132,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 117,
"end": 131,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 118,
"end": 131,
"ctxt": 0
},
"value": "uninitialized",
"optional": false
}
},
"value": null,
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}