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

2080 lines
61 KiB
JSON

{
"type": "Module",
"span": {
"start": 114,
"end": 1329,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 114,
"end": 145,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 128,
"end": 144,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 128,
"end": 129,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 129,
"end": 144,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 131,
"end": 144,
"ctxt": 0
},
"op": "unique",
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 138,
"end": 144,
"ctxt": 0
},
"kind": "symbol"
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 146,
"end": 199,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 156,
"end": 157,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 158,
"end": 199,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 160,
"end": 197,
"ctxt": 0
},
"readonly": true,
"key": {
"type": "Identifier",
"span": {
"start": 169,
"end": 181,
"ctxt": 0
},
"value": "readonlyType",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 181,
"end": 196,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 183,
"end": 196,
"ctxt": 0
},
"op": "unique",
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 190,
"end": 196,
"ctxt": 0
},
"kind": "symbol"
}
}
},
"typeParams": null
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 244,
"end": 408,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 251,
"end": 408,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 257,
"end": 407,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 257,
"end": 260,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 263,
"end": 407,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 269,
"end": 276,
"ctxt": 0
},
"value": "method1",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 277,
"end": 288,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 277,
"end": 288,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 278,
"end": 288,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 280,
"end": 288,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 287,
"end": 288,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 269,
"end": 325,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 300,
"end": 325,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 310,
"end": 319,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 317,
"end": 318,
"ctxt": 0
},
"value": "p",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 289,
"end": 299,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 291,
"end": 299,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 298,
"end": 299,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 331,
"end": 338,
"ctxt": 0
},
"value": "method2",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 339,
"end": 359,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 339,
"end": 359,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 340,
"end": 359,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 342,
"end": 359,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 342,
"end": 343,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 342,
"end": 343,
"ctxt": 0
},
"value": "I",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 344,
"end": 358,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 344,
"end": 358,
"ctxt": 0
},
"value": "readonlyType",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 331,
"end": 405,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 380,
"end": 405,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 390,
"end": 399,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 397,
"end": 398,
"ctxt": 0
},
"value": "p",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 360,
"end": 379,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 362,
"end": 379,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 362,
"end": 363,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 362,
"end": 363,
"ctxt": 0
},
"value": "I",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 364,
"end": 378,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 364,
"end": 378,
"ctxt": 0
},
"value": "readonlyType",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
}
]
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 410,
"end": 591,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 417,
"end": 591,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 423,
"end": 590,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 423,
"end": 438,
"ctxt": 0
},
"value": "classExpression",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ClassExpression",
"identifier": null,
"span": {
"start": 441,
"end": 590,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 453,
"end": 509,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 453,
"end": 460,
"ctxt": 0
},
"value": "method1",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 461,
"end": 472,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 461,
"end": 472,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 462,
"end": 472,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 464,
"end": 472,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 471,
"end": 472,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 453,
"end": 509,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 484,
"end": 509,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 494,
"end": 503,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 501,
"end": 502,
"ctxt": 0
},
"value": "p",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 473,
"end": 483,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 475,
"end": 483,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 482,
"end": 483,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 514,
"end": 588,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 514,
"end": 521,
"ctxt": 0
},
"value": "method2",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 522,
"end": 542,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 522,
"end": 542,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 523,
"end": 542,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 525,
"end": 542,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 525,
"end": 526,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 525,
"end": 526,
"ctxt": 0
},
"value": "I",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 527,
"end": 541,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 527,
"end": 541,
"ctxt": 0
},
"value": "readonlyType",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 514,
"end": 588,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 563,
"end": 588,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 573,
"end": 582,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 580,
"end": 581,
"ctxt": 0
},
"value": "p",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 543,
"end": 562,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 545,
"end": 562,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 545,
"end": 546,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 545,
"end": 546,
"ctxt": 0
},
"value": "I",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 547,
"end": 561,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 547,
"end": 561,
"ctxt": 0
},
"value": "readonlyType",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 593,
"end": 687,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 609,
"end": 631,
"ctxt": 0
},
"value": "funcInferredReturnType",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 632,
"end": 666,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 632,
"end": 666,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 635,
"end": 666,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 637,
"end": 666,
"ctxt": 0
},
"members": [
{
"type": "TsMethodSignature",
"span": {
"start": 639,
"end": 664,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 639,
"end": 645,
"ctxt": 0
},
"value": "method",
"optional": false
},
"computed": false,
"optional": false,
"params": [
{
"type": "Identifier",
"span": {
"start": 646,
"end": 657,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 647,
"end": 657,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 649,
"end": 657,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 656,
"end": 657,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
}
],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 658,
"end": 664,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 660,
"end": 664,
"ctxt": 0
},
"kind": "void"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 600,
"end": 687,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 668,
"end": 687,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 674,
"end": 685,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 681,
"end": 684,
"ctxt": 0
},
"value": "obj",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 689,
"end": 759,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 696,
"end": 759,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 706,
"end": 741,
"ctxt": 0
},
"value": "InterfaceWithPrivateNamedProperties",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 742,
"end": 759,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 748,
"end": 757,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 749,
"end": 750,
"ctxt": 0
},
"value": "s",
"optional": false
},
"computed": true,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 751,
"end": 756,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 753,
"end": 756,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 761,
"end": 830,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 768,
"end": 830,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 778,
"end": 810,
"ctxt": 0
},
"value": "InterfaceWithPrivateNamedMethods",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 811,
"end": 830,
"ctxt": 0
},
"body": [
{
"type": "TsMethodSignature",
"span": {
"start": 817,
"end": 828,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 818,
"end": 819,
"ctxt": 0
},
"value": "s",
"optional": false
},
"computed": true,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 822,
"end": 827,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 824,
"end": 827,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 832,
"end": 901,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 839,
"end": 901,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 844,
"end": 881,
"ctxt": 0
},
"value": "TypeLiteralWithPrivateNamedProperties",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 884,
"end": 901,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 890,
"end": 899,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 891,
"end": 892,
"ctxt": 0
},
"value": "s",
"optional": false
},
"computed": true,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 893,
"end": 898,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 895,
"end": 898,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 903,
"end": 971,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 910,
"end": 971,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 915,
"end": 949,
"ctxt": 0
},
"value": "TypeLiteralWithPrivateNamedMethods",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 952,
"end": 971,
"ctxt": 0
},
"members": [
{
"type": "TsMethodSignature",
"span": {
"start": 958,
"end": 969,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 959,
"end": 960,
"ctxt": 0
},
"value": "s",
"optional": false
},
"computed": true,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 963,
"end": 968,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 965,
"end": 968,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 973,
"end": 1056,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 986,
"end": 1017,
"ctxt": 0
},
"value": "ClassWithPrivateNamedProperties",
"optional": false
},
"declare": false,
"span": {
"start": 980,
"end": 1056,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 1024,
"end": 1033,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1024,
"end": 1027,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1025,
"end": 1026,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1027,
"end": 1032,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1029,
"end": 1032,
"ctxt": 0
},
"kind": "any"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 1038,
"end": 1054,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1045,
"end": 1048,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1046,
"end": 1047,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1048,
"end": 1053,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1050,
"end": 1053,
"ctxt": 0
},
"kind": "any"
}
},
"isStatic": true,
"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": "ExportDeclaration",
"span": {
"start": 1058,
"end": 1136,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1071,
"end": 1099,
"ctxt": 0
},
"value": "ClassWithPrivateNamedMethods",
"optional": false
},
"declare": false,
"span": {
"start": 1065,
"end": 1136,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 1106,
"end": 1114,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1106,
"end": 1109,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1107,
"end": 1108,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1106,
"end": 1114,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1112,
"end": 1114,
"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": 1119,
"end": 1134,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1126,
"end": 1129,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1127,
"end": 1128,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1119,
"end": 1134,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1132,
"end": 1134,
"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": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 1138,
"end": 1329,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1151,
"end": 1181,
"ctxt": 0
},
"value": "ClassWithPrivateNamedAccessors",
"optional": false
},
"declare": false,
"span": {
"start": 1145,
"end": 1329,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 1188,
"end": 1224,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1192,
"end": 1195,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1193,
"end": 1194,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1188,
"end": 1224,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1203,
"end": 1224,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1205,
"end": 1222,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1212,
"end": 1221,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1197,
"end": 1202,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1199,
"end": 1202,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "getter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1229,
"end": 1248,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1233,
"end": 1236,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1234,
"end": 1235,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1237,
"end": 1243,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1237,
"end": 1243,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1238,
"end": 1243,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1240,
"end": 1243,
"ctxt": 0
},
"kind": "any"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1229,
"end": 1248,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1245,
"end": 1248,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1253,
"end": 1296,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1264,
"end": 1267,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1265,
"end": 1266,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1253,
"end": 1296,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1275,
"end": 1296,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1277,
"end": 1294,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1284,
"end": 1293,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1269,
"end": 1274,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1271,
"end": 1274,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "getter",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1301,
"end": 1327,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1312,
"end": 1315,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1313,
"end": 1314,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1316,
"end": 1322,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1316,
"end": 1322,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1317,
"end": 1322,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1319,
"end": 1322,
"ctxt": 0
},
"kind": "any"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1301,
"end": 1327,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1324,
"end": 1327,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
}
],
"interpreter": null
}