{ "type": "Script", "span": { "start": 20, "end": 594, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 26, "end": 27, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "span": { "start": 20, "end": 594, "ctxt": 0 }, "decorators": [], "body": [ { "type": "PrivateMethod", "span": { "start": 34, "end": 95, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 45, "end": 55, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 46, "end": 55, "ctxt": 0 }, "value": "fieldFunc", "optional": false } }, "function": { "params": [], "decorators": [], "span": { "start": 34, "end": 95, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 58, "end": 95, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 61, "end": 93, "ctxt": 0 }, "argument": { "type": "FunctionExpression", "identifier": null, "params": [], "decorators": [], "span": { "start": 68, "end": 93, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 79, "end": 93, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 81, "end": 91, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 81, "end": 90, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 81, "end": 85, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 81, "end": 82, "ctxt": 0 }, "value": "A", "optional": false }, "property": { "type": "PrivateName", "span": { "start": 83, "end": 85, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 84, "end": 85, "ctxt": 0 }, "value": "x", "optional": false } } }, "right": { "type": "NumericLiteral", "span": { "start": 88, "end": 90, "ctxt": 0 }, "value": 10.0 } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "getter", "isStatic": true, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "PrivateMethod", "span": { "start": 100, "end": 158, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 111, "end": 122, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 112, "end": 122, "ctxt": 0 }, "value": "fieldFunc2", "optional": false } }, "function": { "params": [], "decorators": [], "span": { "start": 100, "end": 158, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 125, "end": 158, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 127, "end": 156, "ctxt": 0 }, "argument": { "type": "FunctionExpression", "identifier": null, "params": [ { "type": "Parameter", "span": { "start": 144, "end": 145, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 144, "end": 145, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null } }, { "type": "Parameter", "span": { "start": 147, "end": 151, "ctxt": 0 }, "decorators": [], "pat": { "type": "RestElement", "span": { "start": 147, "end": 151, "ctxt": 0 }, "rest": { "start": 147, "end": 150, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 150, "end": 151, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": null }, "typeAnnotation": null } } ], "decorators": [], "span": { "start": 135, "end": 155, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 153, "end": 155, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "getter", "isStatic": true, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "PrivateProperty", "span": { "start": 163, "end": 177, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 170, "end": 172, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 171, "end": 172, "ctxt": 0 }, "value": "x", "optional": false } }, "value": { "type": "NumericLiteral", "span": { "start": 175, "end": 176, "ctxt": 0 }, "value": 1.0 }, "typeAnnotation": null, "isStatic": true, "decorators": [], "computed": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 182, "end": 556, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 189, "end": 193, "ctxt": 0 }, "value": "test", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 182, "end": 556, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 196, "end": 556, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 206, "end": 224, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 206, "end": 223, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 206, "end": 221, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 206, "end": 210, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 211, "end": 221, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 212, "end": 221, "ctxt": 0 }, "value": "fieldFunc", "optional": false } } }, "arguments": [], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 233, "end": 262, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 239, "end": 261, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 239, "end": 243, "ctxt": 0 }, "value": "func", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 246, "end": 261, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 246, "end": 250, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 251, "end": 261, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 252, "end": 261, "ctxt": 0 }, "value": "fieldFunc", "optional": false } } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 271, "end": 278, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 271, "end": 277, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 271, "end": 275, "ctxt": 0 }, "value": "func", "optional": false }, "arguments": [], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 287, "end": 309, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 287, "end": 308, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 291, "end": 306, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 291, "end": 295, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 296, "end": 306, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 297, "end": 306, "ctxt": 0 }, "value": "fieldFunc", "optional": false } } }, "arguments": [], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 319, "end": 340, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 325, "end": 339, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 325, "end": 328, "ctxt": 0 }, "value": "arr", "optional": false, "typeAnnotation": null }, "init": { "type": "ArrayExpression", "span": { "start": 331, "end": 339, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 333, "end": 334, "ctxt": 0 }, "value": 1.0 } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 336, "end": 337, "ctxt": 0 }, "value": 2.0 } } ] }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 349, "end": 380, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 349, "end": 379, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 349, "end": 365, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 349, "end": 353, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 354, "end": 365, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 355, "end": 365, "ctxt": 0 }, "value": "fieldFunc2", "optional": false } } }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 366, "end": 367, "ctxt": 0 }, "value": 0.0 } }, { "spread": { "start": 369, "end": 372, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 372, "end": 375, "ctxt": 0 }, "value": "arr", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 377, "end": 378, "ctxt": 0 }, "value": 3.0 } } ], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 389, "end": 434, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 395, "end": 433, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 395, "end": 396, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 399, "end": 433, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 403, "end": 419, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 403, "end": 407, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 408, "end": 419, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 409, "end": 419, "ctxt": 0 }, "value": "fieldFunc2", "optional": false } } }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 420, "end": 421, "ctxt": 0 }, "value": 0.0 } }, { "spread": { "start": 423, "end": 426, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 426, "end": 429, "ctxt": 0 }, "value": "arr", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 431, "end": 432, "ctxt": 0 }, "value": 3.0 } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 443, "end": 496, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 449, "end": 495, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 449, "end": 452, "ctxt": 0 }, "value": "str", "optional": false, "typeAnnotation": null }, "init": { "type": "TaggedTemplateExpression", "span": { "start": 455, "end": 495, "ctxt": 0 }, "tag": { "type": "MemberExpression", "span": { "start": 455, "end": 471, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 455, "end": 459, "ctxt": 0 } }, "property": { "type": "PrivateName", "span": { "start": 460, "end": 471, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 461, "end": 471, "ctxt": 0 }, "value": "fieldFunc2", "optional": false } } }, "typeParameters": null, "template": { "type": "TemplateLiteral", "span": { "start": 471, "end": 495, "ctxt": 0 }, "expressions": [ { "type": "NumericLiteral", "span": { "start": 478, "end": 479, "ctxt": 0 }, "value": 1.0 }, { "type": "NumericLiteral", "span": { "start": 488, "end": 489, "ctxt": 0 }, "value": 2.0 } ], "quasis": [ { "type": "TemplateElement", "span": { "start": 472, "end": 476, "ctxt": 0 }, "tail": false, "cooked": { "type": "StringLiteral", "span": { "start": 472, "end": 476, "ctxt": 0 }, "value": "head", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } }, "raw": { "type": "StringLiteral", "span": { "start": 472, "end": 476, "ctxt": 0 }, "value": "head", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } } }, { "type": "TemplateElement", "span": { "start": 480, "end": 486, "ctxt": 0 }, "tail": false, "cooked": { "type": "StringLiteral", "span": { "start": 480, "end": 486, "ctxt": 0 }, "value": "middle", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } }, "raw": { "type": "StringLiteral", "span": { "start": 480, "end": 486, "ctxt": 0 }, "value": "middle", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } } }, { "type": "TemplateElement", "span": { "start": 490, "end": 494, "ctxt": 0 }, "tail": true, "cooked": { "type": "StringLiteral", "span": { "start": 490, "end": 494, "ctxt": 0 }, "value": "tail", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } }, "raw": { "type": "StringLiteral", "span": { "start": 490, "end": 494, "ctxt": 0 }, "value": "tail", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } } } ] } }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 505, "end": 550, "ctxt": 0 }, "expression": { "type": "TaggedTemplateExpression", "span": { "start": 505, "end": 549, "ctxt": 0 }, "tag": { "type": "MemberExpression", "span": { "start": 505, "end": 532, "ctxt": 0 }, "object": { "type": "CallExpression", "span": { "start": 505, "end": 520, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 505, "end": 518, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 505, "end": 509, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 510, "end": 518, "ctxt": 0 }, "value": "getClass", "optional": false } }, "arguments": [], "typeArguments": null }, "property": { "type": "PrivateName", "span": { "start": 521, "end": 532, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 522, "end": 532, "ctxt": 0 }, "value": "fieldFunc2", "optional": false } } }, "typeParameters": null, "template": { "type": "TemplateLiteral", "span": { "start": 532, "end": 549, "ctxt": 0 }, "expressions": [ { "type": "NumericLiteral", "span": { "start": 539, "end": 540, "ctxt": 0 }, "value": 1.0 }, { "type": "NumericLiteral", "span": { "start": 546, "end": 547, "ctxt": 0 }, "value": 2.0 } ], "quasis": [ { "type": "TemplateElement", "span": { "start": 533, "end": 537, "ctxt": 0 }, "tail": false, "cooked": { "type": "StringLiteral", "span": { "start": 533, "end": 537, "ctxt": 0 }, "value": "test", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } }, "raw": { "type": "StringLiteral", "span": { "start": 533, "end": 537, "ctxt": 0 }, "value": "test", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } } }, { "type": "TemplateElement", "span": { "start": 541, "end": 544, "ctxt": 0 }, "tail": false, "cooked": { "type": "StringLiteral", "span": { "start": 541, "end": 544, "ctxt": 0 }, "value": "and", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } }, "raw": { "type": "StringLiteral", "span": { "start": 541, "end": 544, "ctxt": 0 }, "value": "and", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } } }, { "type": "TemplateElement", "span": { "start": 548, "end": 548, "ctxt": 0 }, "tail": true, "cooked": { "type": "StringLiteral", "span": { "start": 548, "end": 548, "ctxt": 0 }, "value": "", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } }, "raw": { "type": "StringLiteral", "span": { "start": 548, "end": 548, "ctxt": 0 }, "value": "", "hasEscape": false, "kind": { "type": "normal", "containsQuote": false } } } ] } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": true, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 561, "end": 592, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 568, "end": 576, "ctxt": 0 }, "value": "getClass", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 561, "end": 592, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 579, "end": 592, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 581, "end": 590, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 588, "end": 589, "ctxt": 0 }, "value": "A", "optional": false } } ] }, "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": [] } ], "interpreter": null }