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

1263 lines
30 KiB
JSON

{
"type": "Script",
"span": {
"start": 32,
"end": 1020,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 46,
"end": 56,
"ctxt": 0
},
"value": "StaticName",
"optional": false
},
"declare": true,
"span": {
"start": 32,
"end": 115,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 63,
"end": 83,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 70,
"end": 74,
"ctxt": 0
},
"value": "name",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 74,
"end": 82,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 76,
"end": 82,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 94,
"end": 107,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 94,
"end": 98,
"ctxt": 0
},
"value": "name",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 98,
"end": 106,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 100,
"end": 106,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 131,
"end": 143,
"ctxt": 0
},
"value": "StaticNameFn",
"optional": false
},
"declare": true,
"span": {
"start": 117,
"end": 206,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 150,
"end": 172,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 157,
"end": 161,
"ctxt": 0
},
"value": "name",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 150,
"end": 172,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 163,
"end": 171,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 165,
"end": 171,
"ctxt": 0
},
"kind": "string"
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 183,
"end": 198,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 183,
"end": 187,
"ctxt": 0
},
"value": "name",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 183,
"end": 198,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 189,
"end": 197,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 191,
"end": 197,
"ctxt": 0
},
"kind": "string"
}
}
},
"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": 232,
"end": 244,
"ctxt": 0
},
"value": "StaticLength",
"optional": false
},
"declare": true,
"span": {
"start": 218,
"end": 307,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 251,
"end": 273,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 258,
"end": 264,
"ctxt": 0
},
"value": "length",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 264,
"end": 272,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 266,
"end": 272,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 284,
"end": 299,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 284,
"end": 290,
"ctxt": 0
},
"value": "length",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 290,
"end": 298,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 292,
"end": 298,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 323,
"end": 337,
"ctxt": 0
},
"value": "StaticLengthFn",
"optional": false
},
"declare": true,
"span": {
"start": 309,
"end": 404,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 344,
"end": 368,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 351,
"end": 357,
"ctxt": 0
},
"value": "length",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 344,
"end": 368,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 359,
"end": 367,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 361,
"end": 367,
"ctxt": 0
},
"kind": "number"
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 379,
"end": 396,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 379,
"end": 385,
"ctxt": 0
},
"value": "length",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 379,
"end": 396,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 387,
"end": 395,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 389,
"end": 395,
"ctxt": 0
},
"kind": "number"
}
}
},
"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": 433,
"end": 448,
"ctxt": 0
},
"value": "StaticPrototype",
"optional": false
},
"declare": true,
"span": {
"start": 419,
"end": 517,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 455,
"end": 480,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 462,
"end": 471,
"ctxt": 0
},
"value": "prototype",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 471,
"end": 479,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 473,
"end": 479,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 491,
"end": 509,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 491,
"end": 500,
"ctxt": 0
},
"value": "prototype",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 500,
"end": 508,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 502,
"end": 508,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 533,
"end": 550,
"ctxt": 0
},
"value": "StaticPrototypeFn",
"optional": false
},
"declare": true,
"span": {
"start": 519,
"end": 615,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 557,
"end": 579,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 564,
"end": 573,
"ctxt": 0
},
"value": "prototype",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 573,
"end": 578,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 575,
"end": 578,
"ctxt": 0
},
"kind": "any"
}
},
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 590,
"end": 607,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 590,
"end": 599,
"ctxt": 0
},
"value": "prototype",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 590,
"end": 607,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 601,
"end": 606,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 603,
"end": 606,
"ctxt": 0
},
"kind": "any"
}
}
},
"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": 641,
"end": 653,
"ctxt": 0
},
"value": "StaticCaller",
"optional": false
},
"declare": true,
"span": {
"start": 627,
"end": 716,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 660,
"end": 682,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 667,
"end": 673,
"ctxt": 0
},
"value": "caller",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 673,
"end": 681,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 675,
"end": 681,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 693,
"end": 708,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 693,
"end": 699,
"ctxt": 0
},
"value": "caller",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 699,
"end": 707,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 701,
"end": 707,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 732,
"end": 746,
"ctxt": 0
},
"value": "StaticCallerFn",
"optional": false
},
"declare": true,
"span": {
"start": 718,
"end": 807,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 753,
"end": 774,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 760,
"end": 766,
"ctxt": 0
},
"value": "caller",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 753,
"end": 774,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 768,
"end": 773,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 770,
"end": 773,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 785,
"end": 799,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 785,
"end": 791,
"ctxt": 0
},
"value": "caller",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 785,
"end": 799,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 793,
"end": 798,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 795,
"end": 798,
"ctxt": 0
},
"kind": "any"
}
}
},
"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": 836,
"end": 851,
"ctxt": 0
},
"value": "StaticArguments",
"optional": false
},
"declare": true,
"span": {
"start": 822,
"end": 920,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 858,
"end": 883,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 865,
"end": 874,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 874,
"end": 882,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 876,
"end": 882,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 894,
"end": 912,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 894,
"end": 903,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 903,
"end": 911,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 905,
"end": 911,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 936,
"end": 953,
"ctxt": 0
},
"value": "StaticArgumentsFn",
"optional": false
},
"declare": true,
"span": {
"start": 922,
"end": 1020,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 960,
"end": 984,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 967,
"end": 976,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 960,
"end": 984,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 978,
"end": 983,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 980,
"end": 983,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 995,
"end": 1012,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 995,
"end": 1004,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 995,
"end": 1012,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1006,
"end": 1011,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1008,
"end": 1011,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}