swc/crates/swc_ecma_parser/tests/tsc/symbolProperty26.json
2022-03-22 07:54:08 +00:00

257 lines
6.1 KiB
JSON

{
"type": "Script",
"span": {
"start": 15,
"end": 160,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 21,
"end": 23,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"declare": false,
"span": {
"start": 15,
"end": 81,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 30,
"end": 79,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 30,
"end": 50,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 31,
"end": 49,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 31,
"end": 37,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 38,
"end": 49,
"ctxt": 0
},
"value": "toStringTag",
"optional": false
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 30,
"end": 79,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 53,
"end": 79,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 63,
"end": 73,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 70,
"end": 72,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 89,
"end": 91,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": false,
"span": {
"start": 83,
"end": 160,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 109,
"end": 158,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 109,
"end": 129,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 110,
"end": 128,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 110,
"end": 116,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 117,
"end": 128,
"ctxt": 0
},
"value": "toStringTag",
"optional": false
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 109,
"end": 158,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 132,
"end": 158,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 142,
"end": 152,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 149,
"end": 151,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 100,
"end": 102,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}