mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
278 lines
7.2 KiB
JSON
278 lines
7.2 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 115,
|
|
"end": 1097,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 121,
|
|
"end": 122,
|
|
"ctxt": 0
|
|
},
|
|
"value": "X",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 115,
|
|
"end": 536,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"span": {
|
|
"start": 503,
|
|
"end": 534,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 509,
|
|
"end": 515,
|
|
"ctxt": 0
|
|
},
|
|
"value": "cancel",
|
|
"optional": false
|
|
},
|
|
"function": {
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"span": {
|
|
"start": 516,
|
|
"end": 530,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"pat": {
|
|
"type": "ObjectPattern",
|
|
"span": {
|
|
"start": 516,
|
|
"end": 530,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "AssignmentPatternProperty",
|
|
"span": {
|
|
"start": 517,
|
|
"end": 523,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 517,
|
|
"end": 523,
|
|
"ctxt": 0
|
|
},
|
|
"value": "reason",
|
|
"optional": false
|
|
},
|
|
"value": null
|
|
},
|
|
{
|
|
"type": "AssignmentPatternProperty",
|
|
"span": {
|
|
"start": 525,
|
|
"end": 529,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 525,
|
|
"end": 529,
|
|
"ctxt": 0
|
|
},
|
|
"value": "code",
|
|
"optional": false
|
|
},
|
|
"value": null
|
|
}
|
|
],
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
}
|
|
}
|
|
],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 503,
|
|
"end": 534,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 532,
|
|
"end": 534,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"generator": false,
|
|
"async": true,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
"kind": "method",
|
|
"isStatic": false,
|
|
"accessibility": null,
|
|
"isAbstract": false,
|
|
"isOptional": false,
|
|
"isOverride": false
|
|
}
|
|
],
|
|
"superClass": null,
|
|
"isAbstract": false,
|
|
"typeParams": null,
|
|
"superTypeParams": null,
|
|
"implements": []
|
|
},
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 544,
|
|
"end": 545,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Y",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 538,
|
|
"end": 1097,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"span": {
|
|
"start": 1062,
|
|
"end": 1095,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1068,
|
|
"end": 1074,
|
|
"ctxt": 0
|
|
},
|
|
"value": "cancel",
|
|
"optional": false
|
|
},
|
|
"function": {
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"span": {
|
|
"start": 1075,
|
|
"end": 1091,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"pat": {
|
|
"type": "ObjectPattern",
|
|
"span": {
|
|
"start": 1075,
|
|
"end": 1091,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "AssignmentPatternProperty",
|
|
"span": {
|
|
"start": 1076,
|
|
"end": 1082,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1076,
|
|
"end": 1082,
|
|
"ctxt": 0
|
|
},
|
|
"value": "reason",
|
|
"optional": false
|
|
},
|
|
"value": null
|
|
},
|
|
{
|
|
"type": "AssignmentPatternProperty",
|
|
"span": {
|
|
"start": 1084,
|
|
"end": 1090,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1084,
|
|
"end": 1090,
|
|
"ctxt": 0
|
|
},
|
|
"value": "suberr",
|
|
"optional": false
|
|
},
|
|
"value": null
|
|
}
|
|
],
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
}
|
|
}
|
|
],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 1062,
|
|
"end": 1095,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 1093,
|
|
"end": 1095,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"generator": false,
|
|
"async": true,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
"kind": "method",
|
|
"isStatic": false,
|
|
"accessibility": null,
|
|
"isAbstract": false,
|
|
"isOptional": false,
|
|
"isOverride": false
|
|
}
|
|
],
|
|
"superClass": null,
|
|
"isAbstract": false,
|
|
"typeParams": null,
|
|
"superTypeParams": null,
|
|
"implements": []
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|