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

178 lines
3.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 51,
"end": 156,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 66,
"end": 67,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 51,
"end": 94,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 74,
"end": 92,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"value": "p",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 87,
"end": 92,
"ctxt": 0
},
"value": "yep",
"raw": "'yep'"
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": true,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": true,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 101,
"end": 102,
"ctxt": 0
},
"value": "B",
"optional": false
},
"declare": false,
"span": {
"start": 95,
"end": 156,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 119,
"end": 145,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"value": "p",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 119,
"end": 145,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 127,
"end": 145,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 129,
"end": 143,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 136,
"end": 143,
"ctxt": 0
},
"value": "oh no",
"raw": "'oh no'"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 111,
"end": 112,
"ctxt": 0
},
"value": "A",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}