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

119 lines
2.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 15,
"end": 70,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": true,
"span": {
"start": 15,
"end": 70,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 37,
"end": 68,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 37,
"end": 57,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 38,
"end": 56,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 38,
"end": 44,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 45,
"end": 56,
"ctxt": 0
},
"value": "unscopables",
"optional": false
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 37,
"end": 68,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 59,
"end": 67,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 61,
"end": 67,
"ctxt": 0
},
"kind": "string"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}