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

407 lines
9.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 185,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 7,
"end": 8,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 1,
"end": 185,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 13,
"end": 24,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 13,
"end": 19,
"ctxt": 0
},
"value": "public",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 13,
"end": 24,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 22,
"end": 24,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 27,
"end": 38,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 27,
"end": 33,
"ctxt": 0
},
"value": "static",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 27,
"end": 38,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 36,
"end": 38,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 42,
"end": 60,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 49,
"end": 55,
"ctxt": 0
},
"value": "public",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 42,
"end": 60,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 63,
"end": 81,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 70,
"end": 76,
"ctxt": 0
},
"value": "static",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 63,
"end": 81,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 79,
"end": 81,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 85,
"end": 110,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 99,
"end": 105,
"ctxt": 0
},
"value": "public",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 85,
"end": 110,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 108,
"end": 110,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 113,
"end": 138,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 127,
"end": 133,
"ctxt": 0
},
"value": "static",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 113,
"end": 138,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 136,
"end": 138,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 144,
"end": 162,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 151,
"end": 157,
"ctxt": 0
},
"value": "public",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 144,
"end": 162,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 160,
"end": 162,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 165,
"end": 183,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 172,
"end": 178,
"ctxt": 0
},
"value": "static",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 165,
"end": 183,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 181,
"end": 183,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}