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

174 lines
4.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 36,
"end": 131,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 42,
"end": 43,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 36,
"end": 131,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 50,
"end": 87,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 50,
"end": 59,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 51,
"end": 58,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 50,
"end": 87,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 62,
"end": 87,
"ctxt": 0
},
"stmts": [
{
"type": "DebuggerStatement",
"span": {
"start": 72,
"end": 81,
"ctxt": 0
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 92,
"end": 129,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 96,
"end": 107,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 97,
"end": 106,
"ctxt": 0
},
"value": "goodbye",
"raw": "\"goodbye\""
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 92,
"end": 129,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 110,
"end": 129,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 114,
"end": 123,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 121,
"end": 122,
"ctxt": 0
},
"value": 0.0
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}