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

2064 lines
60 KiB
JSON

{
"type": "Module",
"span": {
"start": 115,
"end": 1330,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 115,
"end": 146,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 129,
"end": 145,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 129,
"end": 130,
"ctxt": 0
},
"value": "s",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 130,
"end": 145,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 132,
"end": 145,
"ctxt": 0
},
"op": "unique",
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 139,
"end": 145,
"ctxt": 0
},
"kind": "symbol"
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 147,
"end": 200,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 157,
"end": 158,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 159,
"end": 200,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 161,
"end": 198,
"ctxt": 0
},
"readonly": true,
"key": {
"type": "Identifier",
"span": {
"start": 170,
"end": 182,
"ctxt": 0
},
"value": "readonlyType",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 182,
"end": 197,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 184,
"end": 197,
"ctxt": 0
},
"op": "unique",
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 191,
"end": 197,
"ctxt": 0
},
"kind": "symbol"
}
}
},
"typeParams": null
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 245,
"end": 409,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 252,
"end": 409,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 258,
"end": 408,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 258,
"end": 261,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 264,
"end": 408,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 270,
"end": 277,
"ctxt": 0
},
"value": "method1",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 278,
"end": 289,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 278,
"end": 289,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 279,
"end": 289,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 281,
"end": 289,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 288,
"end": 289,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 270,
"end": 326,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 301,
"end": 326,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 311,
"end": 320,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 318,
"end": 319,
"ctxt": 0
},
"value": "p",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 290,
"end": 300,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 292,
"end": 300,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 299,
"end": 300,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 332,
"end": 339,
"ctxt": 0
},
"value": "method2",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 340,
"end": 360,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 340,
"end": 360,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 341,
"end": 360,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 343,
"end": 360,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 343,
"end": 344,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 343,
"end": 344,
"ctxt": 0
},
"value": "I",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 345,
"end": 359,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 345,
"end": 359,
"ctxt": 0
},
"value": "readonlyType",
"raw": "\"readonlyType\""
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 332,
"end": 406,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 381,
"end": 406,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 391,
"end": 400,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 398,
"end": 399,
"ctxt": 0
},
"value": "p",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 361,
"end": 380,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 363,
"end": 380,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 363,
"end": 364,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 363,
"end": 364,
"ctxt": 0
},
"value": "I",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 365,
"end": 379,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 365,
"end": 379,
"ctxt": 0
},
"value": "readonlyType",
"raw": "\"readonlyType\""
}
}
}
}
}
]
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 411,
"end": 592,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 418,
"end": 592,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 424,
"end": 591,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 424,
"end": 439,
"ctxt": 0
},
"value": "classExpression",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ClassExpression",
"identifier": null,
"span": {
"start": 442,
"end": 591,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 454,
"end": 510,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 454,
"end": 461,
"ctxt": 0
},
"value": "method1",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 462,
"end": 473,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 462,
"end": 473,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 463,
"end": 473,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 465,
"end": 473,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 472,
"end": 473,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 454,
"end": 510,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 485,
"end": 510,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 495,
"end": 504,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 502,
"end": 503,
"ctxt": 0
},
"value": "p",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 474,
"end": 484,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 476,
"end": 484,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 483,
"end": 484,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 515,
"end": 589,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 515,
"end": 522,
"ctxt": 0
},
"value": "method2",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 523,
"end": 543,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 523,
"end": 543,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 524,
"end": 543,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 526,
"end": 543,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 526,
"end": 527,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 526,
"end": 527,
"ctxt": 0
},
"value": "I",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 528,
"end": 542,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 528,
"end": 542,
"ctxt": 0
},
"value": "readonlyType",
"raw": "\"readonlyType\""
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 515,
"end": 589,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 564,
"end": 589,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 574,
"end": 583,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 581,
"end": 582,
"ctxt": 0
},
"value": "p",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 544,
"end": 563,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 546,
"end": 563,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 546,
"end": 547,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 546,
"end": 547,
"ctxt": 0
},
"value": "I",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 548,
"end": 562,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 548,
"end": 562,
"ctxt": 0
},
"value": "readonlyType",
"raw": "\"readonlyType\""
}
}
}
}
},
"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": 594,
"end": 688,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 610,
"end": 632,
"ctxt": 0
},
"value": "funcInferredReturnType",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 633,
"end": 667,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 633,
"end": 667,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 636,
"end": 667,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 638,
"end": 667,
"ctxt": 0
},
"members": [
{
"type": "TsMethodSignature",
"span": {
"start": 640,
"end": 665,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 640,
"end": 646,
"ctxt": 0
},
"value": "method",
"optional": false
},
"computed": false,
"optional": false,
"params": [
{
"type": "Identifier",
"span": {
"start": 647,
"end": 658,
"ctxt": 0
},
"value": "p",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 648,
"end": 658,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 650,
"end": 658,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 657,
"end": 658,
"ctxt": 0
},
"value": "s",
"optional": false
},
"typeArguments": null
}
}
}
],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 659,
"end": 665,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 661,
"end": 665,
"ctxt": 0
},
"kind": "void"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 601,
"end": 688,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 669,
"end": 688,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 675,
"end": 686,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 682,
"end": 685,
"ctxt": 0
},
"value": "obj",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 690,
"end": 760,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 697,
"end": 760,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 707,
"end": 742,
"ctxt": 0
},
"value": "InterfaceWithPrivateNamedProperties",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 743,
"end": 760,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 749,
"end": 758,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 750,
"end": 751,
"ctxt": 0
},
"value": "s",
"optional": false
},
"computed": true,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 752,
"end": 757,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 754,
"end": 757,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 762,
"end": 831,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 769,
"end": 831,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 779,
"end": 811,
"ctxt": 0
},
"value": "InterfaceWithPrivateNamedMethods",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 812,
"end": 831,
"ctxt": 0
},
"body": [
{
"type": "TsMethodSignature",
"span": {
"start": 818,
"end": 829,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 819,
"end": 820,
"ctxt": 0
},
"value": "s",
"optional": false
},
"computed": true,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 823,
"end": 828,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 825,
"end": 828,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 833,
"end": 902,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 840,
"end": 902,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 845,
"end": 882,
"ctxt": 0
},
"value": "TypeLiteralWithPrivateNamedProperties",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 885,
"end": 902,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 891,
"end": 900,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 892,
"end": 893,
"ctxt": 0
},
"value": "s",
"optional": false
},
"computed": true,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 894,
"end": 899,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 896,
"end": 899,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 904,
"end": 972,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 911,
"end": 972,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 916,
"end": 950,
"ctxt": 0
},
"value": "TypeLiteralWithPrivateNamedMethods",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 953,
"end": 972,
"ctxt": 0
},
"members": [
{
"type": "TsMethodSignature",
"span": {
"start": 959,
"end": 970,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 960,
"end": 961,
"ctxt": 0
},
"value": "s",
"optional": false
},
"computed": true,
"optional": false,
"params": [],
"typeAnn": {
"type": "TsTypeAnnotation",
"span": {
"start": 964,
"end": 969,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 966,
"end": 969,
"ctxt": 0
},
"kind": "any"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 974,
"end": 1057,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 987,
"end": 1018,
"ctxt": 0
},
"value": "ClassWithPrivateNamedProperties",
"optional": false
},
"declare": false,
"span": {
"start": 981,
"end": 1057,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 1025,
"end": 1034,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1025,
"end": 1028,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1026,
"end": 1027,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1028,
"end": 1033,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1030,
"end": 1033,
"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": 1039,
"end": 1055,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1046,
"end": 1049,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1047,
"end": 1048,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1049,
"end": 1054,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1051,
"end": 1054,
"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": 1059,
"end": 1137,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1072,
"end": 1100,
"ctxt": 0
},
"value": "ClassWithPrivateNamedMethods",
"optional": false
},
"declare": false,
"span": {
"start": 1066,
"end": 1137,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 1107,
"end": 1115,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1107,
"end": 1110,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1108,
"end": 1109,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1107,
"end": 1115,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1113,
"end": 1115,
"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": 1120,
"end": 1135,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1127,
"end": 1130,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1128,
"end": 1129,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1120,
"end": 1135,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1133,
"end": 1135,
"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": 1139,
"end": 1330,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1152,
"end": 1182,
"ctxt": 0
},
"value": "ClassWithPrivateNamedAccessors",
"optional": false
},
"declare": false,
"span": {
"start": 1146,
"end": 1330,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 1189,
"end": 1225,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1193,
"end": 1196,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1194,
"end": 1195,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1189,
"end": 1225,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1204,
"end": 1225,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1206,
"end": 1223,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1213,
"end": 1222,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1198,
"end": 1203,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1200,
"end": 1203,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "getter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1230,
"end": 1249,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1234,
"end": 1237,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1235,
"end": 1236,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1238,
"end": 1244,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1238,
"end": 1244,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1239,
"end": 1244,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1241,
"end": 1244,
"ctxt": 0
},
"kind": "any"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1230,
"end": 1249,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1246,
"end": 1249,
"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": 1254,
"end": 1297,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1265,
"end": 1268,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1266,
"end": 1267,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1254,
"end": 1297,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1276,
"end": 1297,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1278,
"end": 1295,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1285,
"end": 1294,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1270,
"end": 1275,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1272,
"end": 1275,
"ctxt": 0
},
"kind": "any"
}
}
},
"kind": "getter",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1302,
"end": 1328,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 1313,
"end": 1316,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1314,
"end": 1315,
"ctxt": 0
},
"value": "s",
"optional": false
}
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1317,
"end": 1323,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1317,
"end": 1323,
"ctxt": 0
},
"value": "v",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1318,
"end": 1323,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1320,
"end": 1323,
"ctxt": 0
},
"kind": "any"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1302,
"end": 1328,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1325,
"end": 1328,
"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
}