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

119 lines
2.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 16,
"end": 71,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": true,
"span": {
"start": 16,
"end": 71,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 38,
"end": 69,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 38,
"end": 58,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 39,
"end": 57,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 39,
"end": 45,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 46,
"end": 57,
"ctxt": 0
},
"value": "unscopables",
"optional": false
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 38,
"end": 69,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 60,
"end": 68,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 62,
"end": 68,
"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
}