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

125 lines
2.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 71,
"end": 121,
"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": 121,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 83,
"end": 99,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 90,
"end": 94,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 91,
"end": 94,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 97,
"end": 98,
"ctxt": 0
},
"value": 1.0
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 102,
"end": 119,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 109,
"end": 114,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 110,
"end": 114,
"ctxt": 0
},
"value": "prop",
"optional": false
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 117,
"end": 118,
"ctxt": 0
},
"value": 2.0
},
"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
}