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

174 lines
4.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 36,
"end": 122,
"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": 122,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 50,
"end": 84,
"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": 84,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 62,
"end": 84,
"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": 86,
"end": 120,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 90,
"end": 101,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 91,
"end": 100,
"ctxt": 0
},
"value": "goodbye",
"raw": "\"goodbye\""
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 86,
"end": 120,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 104,
"end": 120,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 108,
"end": 117,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 115,
"end": 116,
"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
}