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

121 lines
2.7 KiB
JSON
Raw Normal View History

{
"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
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"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": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}