{ "type": "Script", "span": { "start": 21, "end": 709, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 27, "end": 29, "ctxt": 0 }, "value": "AA", "optional": false }, "declare": false, "span": { "start": 21, "end": 709, "ctxt": 0 }, "decorators": [], "body": [ { "type": "PrivateMethod", "span": { "start": 36, "end": 62, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 36, "end": 43, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 37, "end": 43, "ctxt": 0 }, "value": "method", "optional": false } }, "function": { "params": [], "decorators": [], "span": { "start": 36, "end": 62, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 46, "end": 62, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 48, "end": 60, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 48, "end": 59, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 48, "end": 54, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 48, "end": 52, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 53, "end": 54, "ctxt": 0 }, "value": "x", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 57, "end": 59, "ctxt": 0 }, "value": 10.0, "raw": "10" } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "EmptyStatement", "span": { "start": 62, "end": 63, "ctxt": 0 } }, { "type": "PrivateMethod", "span": { "start": 68, "end": 88, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 68, "end": 76, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 69, "end": 76, "ctxt": 0 }, "value": "method2", "optional": false } }, "function": { "params": [ { "type": "Parameter", "span": { "start": 77, "end": 78, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 77, "end": 78, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 80, "end": 84, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 80, "end": 84, "ctxt": 0 }, "rest": { "start": 80, "end": 83, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 83, "end": 84, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 68, "end": 88, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 86, "end": 88, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "EmptyStatement", "span": { "start": 88, "end": 89, "ctxt": 0 } }, { "type": "ClassProperty", "span": { "start": 94, "end": 100, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 94, "end": 95, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 98, "end": 99, "ctxt": 0 }, "value": 1.0, "raw": "1" }, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 105, "end": 668, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 105, "end": 109, "ctxt": 0 }, "value": "test", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 105, "end": 668, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 112, "end": 668, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 122, "end": 137, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 122, "end": 136, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 122, "end": 134, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 122, "end": 126, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 127, "end": 134, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 128, "end": 134, "ctxt": 0 }, "value": "method", "optional": false } } }, "arguments": [], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 146, "end": 172, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 152, "end": 171, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 152, "end": 156, "ctxt": 0 }, "value": "func", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 159, "end": 171, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 159, "end": 163, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 164, "end": 171, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 165, "end": 171, "ctxt": 0 }, "value": "method", "optional": false } } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 181, "end": 188, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 181, "end": 187, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 181, "end": 185, "ctxt": 0 }, "value": "func", "optional": false }, "arguments": [], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 197, "end": 216, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 197, "end": 215, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 201, "end": 213, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 201, "end": 205, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 206, "end": 213, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 207, "end": 213, "ctxt": 0 }, "value": "method", "optional": false } } }, "arguments": [], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 226, "end": 247, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 232, "end": 246, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 232, "end": 235, "ctxt": 0 }, "value": "arr", "optional": false, "typeAnnotation": null }, "init": { "type": "ArrayExpression", "span": { "start": 238, "end": 246, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 240, "end": 241, "ctxt": 0 }, "value": 1.0, "raw": "1" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 243, "end": 244, "ctxt": 0 }, "value": 2.0, "raw": "2" } } ] }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 256, "end": 284, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 256, "end": 283, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 256, "end": 269, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 256, "end": 260, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 261, "end": 269, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 262, "end": 269, "ctxt": 0 }, "value": "method2", "optional": false } } }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 270, "end": 271, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": { "start": 273, "end": 276, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 276, "end": 279, "ctxt": 0 }, "value": "arr", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 281, "end": 282, "ctxt": 0 }, "value": 3.0, "raw": "3" } } ], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 294, "end": 336, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 300, "end": 335, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 300, "end": 301, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 304, "end": 335, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 308, "end": 321, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 308, "end": 312, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 313, "end": 321, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 314, "end": 321, "ctxt": 0 }, "value": "method2", "optional": false } } }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 322, "end": 323, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": { "start": 325, "end": 328, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 328, "end": 331, "ctxt": 0 }, "value": "arr", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 333, "end": 334, "ctxt": 0 }, "value": 3.0, "raw": "3" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 354, "end": 404, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 360, "end": 403, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 360, "end": 363, "ctxt": 0 }, "value": "str", "optional": false, "typeAnnotation": null }, "init": { "type": "TaggedTemplateExpression", "span": { "start": 366, "end": 403, "ctxt": 0 }, "tag": { "type": "MemberExpression", "span": { "start": 366, "end": 379, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 366, "end": 370, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 371, "end": 379, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 372, "end": 379, "ctxt": 0 }, "value": "method2", "optional": false } } }, "typeParameters": null, "template": { "type": "TemplateLiteral", "span": { "start": 379, "end": 403, "ctxt": 0 }, "expressions": [ { "type": "NumericLiteral", "span": { "start": 386, "end": 387, "ctxt": 0 }, "value": 1.0, "raw": "1" }, { "type": "NumericLiteral", "span": { "start": 396, "end": 397, "ctxt": 0 }, "value": 2.0, "raw": "2" } ], "quasis": [ { "type": "TemplateElement", "span": { "start": 380, "end": 384, "ctxt": 0 }, "tail": false, "cooked": "head", "raw": "head" }, { "type": "TemplateElement", "span": { "start": 388, "end": 394, "ctxt": 0 }, "tail": false, "cooked": "middle", "raw": "middle" }, { "type": "TemplateElement", "span": { "start": 398, "end": 402, "ctxt": 0 }, "tail": true, "cooked": "tail", "raw": "tail" } ] } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 413, "end": 458, "ctxt": 0 }, "expression": { "type": "TaggedTemplateExpression", "span": { "start": 413, "end": 457, "ctxt": 0 }, "tag": { "type": "MemberExpression", "span": { "start": 413, "end": 440, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 413, "end": 431, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 413, "end": 429, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 413, "end": 417, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 418, "end": 429, "ctxt": 0 }, "value": "getInstance", "optional": false } }, "arguments": [], "typeArguments": null }, "property": { "type": "PrivateName", "span": { "start": 432, "end": 440, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 433, "end": 440, "ctxt": 0 }, "value": "method2", "optional": false } } }, "typeParameters": null, "template": { "type": "TemplateLiteral", "span": { "start": 440, "end": 457, "ctxt": 0 }, "expressions": [ { "type": "NumericLiteral", "span": { "start": 447, "end": 448, "ctxt": 0 }, "value": 1.0, "raw": "1" }, { "type": "NumericLiteral", "span": { "start": 454, "end": 455, "ctxt": 0 }, "value": 2.0, "raw": "2" } ], "quasis": [ { "type": "TemplateElement", "span": { "start": 441, "end": 445, "ctxt": 0 }, "tail": false, "cooked": "test", "raw": "test" }, { "type": "TemplateElement", "span": { "start": 449, "end": 452, "ctxt": 0 }, "tail": false, "cooked": "and", "raw": "and" }, { "type": "TemplateElement", "span": { "start": 456, "end": 456, "ctxt": 0 }, "tail": true, "cooked": "", "raw": "" } ] } } }, { "type": "ExpressionStatement", "span": { "start": 468, "end": 510, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 468, "end": 509, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 468, "end": 495, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 468, "end": 486, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 468, "end": 484, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 468, "end": 472, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 473, "end": 484, "ctxt": 0 }, "value": "getInstance", "optional": false } }, "arguments": [], "typeArguments": null }, "property": { "type": "PrivateName", "span": { "start": 487, "end": 495, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 488, "end": 495, "ctxt": 0 }, "value": "method2", "optional": false } } }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 496, "end": 497, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": { "start": 499, "end": 502, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 502, "end": 505, "ctxt": 0 }, "value": "arr", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 507, "end": 508, "ctxt": 0 }, "value": 3.0, "raw": "3" } } ], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 520, "end": 579, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 526, "end": 578, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 526, "end": 528, "ctxt": 0 }, "value": "b2", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 531, "end": 578, "ctxt": 0 }, "callee": { "type": "ParenthesisExpression", "span": { "start": 535, "end": 564, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 536, "end": 563, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 536, "end": 554, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 536, "end": 552, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 536, "end": 540, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 541, "end": 552, "ctxt": 0 }, "value": "getInstance", "optional": false } }, "arguments": [], "typeArguments": null }, "property": { "type": "PrivateName", "span": { "start": 555, "end": 563, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 556, "end": 563, "ctxt": 0 }, "value": "method2", "optional": false } } } }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 565, "end": 566, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": { "start": 568, "end": 571, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 571, "end": 574, "ctxt": 0 }, "value": "arr", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 576, "end": 577, "ctxt": 0 }, "value": 3.0, "raw": "3" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 597, "end": 662, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 603, "end": 661, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 603, "end": 607, "ctxt": 0 }, "value": "str2", "optional": false, "typeAnnotation": null }, "init": { "type": "TaggedTemplateExpression", "span": { "start": 610, "end": 661, "ctxt": 0 }, "tag": { "type": "MemberExpression", "span": { "start": 610, "end": 637, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 610, "end": 628, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 610, "end": 626, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 610, "end": 614, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 615, "end": 626, "ctxt": 0 }, "value": "getInstance", "optional": false } }, "arguments": [], "typeArguments": null }, "property": { "type": "PrivateName", "span": { "start": 629, "end": 637, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 630, "end": 637, "ctxt": 0 }, "value": "method2", "optional": false } } }, "typeParameters": null, "template": { "type": "TemplateLiteral", "span": { "start": 637, "end": 661, "ctxt": 0 }, "expressions": [ { "type": "NumericLiteral", "span": { "start": 644, "end": 645, "ctxt": 0 }, "value": 1.0, "raw": "1" }, { "type": "NumericLiteral", "span": { "start": 654, "end": 655, "ctxt": 0 }, "value": 2.0, "raw": "2" } ], "quasis": [ { "type": "TemplateElement", "span": { "start": 638, "end": 642, "ctxt": 0 }, "tail": false, "cooked": "head", "raw": "head" }, { "type": "TemplateElement", "span": { "start": 646, "end": 652, "ctxt": 0 }, "tail": false, "cooked": "middle", "raw": "middle" }, { "type": "TemplateElement", "span": { "start": 656, "end": 660, "ctxt": 0 }, "tail": true, "cooked": "tail", "raw": "tail" } ] } }, "definite": false } ] } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 673, "end": 707, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 673, "end": 684, "ctxt": 0 }, "value": "getInstance", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 673, "end": 707, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 687, "end": 707, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 689, "end": 705, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 696, "end": 704, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 700, "end": 702, "ctxt": 0 }, "value": "AA", "optional": false }, "arguments": [], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } ], "interpreter": null }