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

127 lines
2.9 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 64,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 22,
"end": 23,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 16,
"end": 64,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 30,
"end": 62,
"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": 62,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 59,
"end": 62,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 52,
"end": 58,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 54,
"end": 58,
"ctxt": 0
},
"kind": "void"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}