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

186 lines
4.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 50,
"end": 155,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 65,
"end": 66,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 50,
"end": 93,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 73,
"end": 91,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 82,
"end": 83,
"ctxt": 0
},
"value": "p",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 86,
"end": 91,
"ctxt": 0
},
"value": "yep",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"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": 100,
"end": 101,
"ctxt": 0
},
"value": "B",
"optional": false
},
"declare": false,
"span": {
"start": 94,
"end": 155,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 118,
"end": 144,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 122,
"end": 123,
"ctxt": 0
},
"value": "p",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 118,
"end": 144,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 126,
"end": 144,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 128,
"end": 142,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 135,
"end": 142,
"ctxt": 0
},
"value": "oh no",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"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": 110,
"end": 111,
"ctxt": 0
},
"value": "A",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}