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

127 lines
2.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 72,
"end": 122,
"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": 122,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 84,
"end": 100,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 91,
"end": 95,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 92,
"end": 95,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 98,
"end": 99,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 103,
"end": 120,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 110,
"end": 115,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 111,
"end": 115,
"ctxt": 0
},
"value": "prop",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 118,
"end": 119,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
},
"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
}