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

118 lines
2.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 71,
"end": 133,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 77,
"end": 78,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 71,
"end": 133,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 85,
"end": 104,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 92,
"end": 98,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 93,
"end": 98,
"ctxt": 0
},
"value": "field",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 101,
"end": 103,
"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": 109,
"end": 131,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 116,
"end": 130,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 117,
"end": 130,
"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
}