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

407 lines
9.6 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 0,
"end": 184,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 6,
"end": 7,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 0,
"end": 184,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 12,
"end": 23,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 12,
"end": 18,
"ctxt": 0
},
"value": "public",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 12,
"end": 23,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 21,
"end": 23,
"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": 26,
"end": 37,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 26,
"end": 32,
"ctxt": 0
},
"value": "static",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 26,
"end": 37,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 35,
"end": 37,
"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": 41,
"end": 59,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 48,
"end": 54,
"ctxt": 0
},
"value": "public",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 41,
"end": 59,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 57,
"end": 59,
"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": 62,
"end": 80,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 69,
"end": 75,
"ctxt": 0
},
"value": "static",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 62,
"end": 80,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 78,
"end": 80,
"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": 84,
"end": 109,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 98,
"end": 104,
"ctxt": 0
},
"value": "public",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 84,
"end": 109,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 107,
"end": 109,
"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": 112,
"end": 137,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 126,
"end": 132,
"ctxt": 0
},
"value": "static",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 112,
"end": 137,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 135,
"end": 137,
"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": 143,
"end": 161,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 150,
"end": 156,
"ctxt": 0
},
"value": "public",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 143,
"end": 161,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 159,
"end": 161,
"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": 164,
"end": 182,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 171,
"end": 177,
"ctxt": 0
},
"value": "static",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 164,
"end": 182,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 180,
"end": 182,
"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
}