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

1263 lines
30 KiB
JSON

{
"type": "Script",
"span": {
"start": 33,
"end": 1021,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 47,
"end": 57,
"ctxt": 0
},
"value": "StaticName",
"optional": false
},
"declare": true,
"span": {
"start": 33,
"end": 116,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 64,
"end": 84,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 71,
"end": 75,
"ctxt": 0
},
"value": "name",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 75,
"end": 83,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 77,
"end": 83,
"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": 95,
"end": 108,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 95,
"end": 99,
"ctxt": 0
},
"value": "name",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 99,
"end": 107,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 101,
"end": 107,
"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": 132,
"end": 144,
"ctxt": 0
},
"value": "StaticNameFn",
"optional": false
},
"declare": true,
"span": {
"start": 118,
"end": 207,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 151,
"end": 173,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 158,
"end": 162,
"ctxt": 0
},
"value": "name",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 151,
"end": 173,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 164,
"end": 172,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 166,
"end": 172,
"ctxt": 0
},
"kind": "string"
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 184,
"end": 199,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 184,
"end": 188,
"ctxt": 0
},
"value": "name",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 184,
"end": 199,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 190,
"end": 198,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 192,
"end": 198,
"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": 233,
"end": 245,
"ctxt": 0
},
"value": "StaticLength",
"optional": false
},
"declare": true,
"span": {
"start": 219,
"end": 308,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 252,
"end": 274,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 259,
"end": 265,
"ctxt": 0
},
"value": "length",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 265,
"end": 273,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 267,
"end": 273,
"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": 285,
"end": 300,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 285,
"end": 291,
"ctxt": 0
},
"value": "length",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 291,
"end": 299,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 293,
"end": 299,
"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": 324,
"end": 338,
"ctxt": 0
},
"value": "StaticLengthFn",
"optional": false
},
"declare": true,
"span": {
"start": 310,
"end": 405,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 345,
"end": 369,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 352,
"end": 358,
"ctxt": 0
},
"value": "length",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 345,
"end": 369,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 360,
"end": 368,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 362,
"end": 368,
"ctxt": 0
},
"kind": "number"
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 380,
"end": 397,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 380,
"end": 386,
"ctxt": 0
},
"value": "length",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 380,
"end": 397,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 388,
"end": 396,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 390,
"end": 396,
"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": 434,
"end": 449,
"ctxt": 0
},
"value": "StaticPrototype",
"optional": false
},
"declare": true,
"span": {
"start": 420,
"end": 518,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 456,
"end": 481,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 463,
"end": 472,
"ctxt": 0
},
"value": "prototype",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 472,
"end": 480,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 474,
"end": 480,
"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": 492,
"end": 510,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 492,
"end": 501,
"ctxt": 0
},
"value": "prototype",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 501,
"end": 509,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 503,
"end": 509,
"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": 534,
"end": 551,
"ctxt": 0
},
"value": "StaticPrototypeFn",
"optional": false
},
"declare": true,
"span": {
"start": 520,
"end": 616,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 558,
"end": 580,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 565,
"end": 574,
"ctxt": 0
},
"value": "prototype",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 574,
"end": 579,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 576,
"end": 579,
"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": 591,
"end": 608,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 591,
"end": 600,
"ctxt": 0
},
"value": "prototype",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 591,
"end": 608,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 602,
"end": 607,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 604,
"end": 607,
"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": 642,
"end": 654,
"ctxt": 0
},
"value": "StaticCaller",
"optional": false
},
"declare": true,
"span": {
"start": 628,
"end": 717,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 661,
"end": 683,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 668,
"end": 674,
"ctxt": 0
},
"value": "caller",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 674,
"end": 682,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 676,
"end": 682,
"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": 694,
"end": 709,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 694,
"end": 700,
"ctxt": 0
},
"value": "caller",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 700,
"end": 708,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 702,
"end": 708,
"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": 733,
"end": 747,
"ctxt": 0
},
"value": "StaticCallerFn",
"optional": false
},
"declare": true,
"span": {
"start": 719,
"end": 808,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 754,
"end": 775,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 761,
"end": 767,
"ctxt": 0
},
"value": "caller",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 754,
"end": 775,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 769,
"end": 774,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 771,
"end": 774,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 786,
"end": 800,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 786,
"end": 792,
"ctxt": 0
},
"value": "caller",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 786,
"end": 800,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 794,
"end": 799,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 796,
"end": 799,
"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": 837,
"end": 852,
"ctxt": 0
},
"value": "StaticArguments",
"optional": false
},
"declare": true,
"span": {
"start": 823,
"end": 921,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 859,
"end": 884,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 866,
"end": 875,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 875,
"end": 883,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 877,
"end": 883,
"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": 895,
"end": 913,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 895,
"end": 904,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 904,
"end": 912,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 906,
"end": 912,
"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": 937,
"end": 954,
"ctxt": 0
},
"value": "StaticArgumentsFn",
"optional": false
},
"declare": true,
"span": {
"start": 923,
"end": 1021,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 961,
"end": 985,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 968,
"end": 977,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 961,
"end": 985,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 979,
"end": 984,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 981,
"end": 984,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 996,
"end": 1013,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 996,
"end": 1005,
"ctxt": 0
},
"value": "arguments",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 996,
"end": 1013,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1007,
"end": 1012,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1009,
"end": 1012,
"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
}