{ "type": "Script", "span": { "start": 20, "end": 225, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 20, "end": 50, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 30, "end": 31, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 32, "end": 50, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 38, "end": 48, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 38, "end": 39, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 39, "end": 47, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 41, "end": 47, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 57, "end": 58, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 51, "end": 194, "ctxt": 0 }, "decorators": [], "body": [ { "type": "PrivateProperty", "span": { "start": 65, "end": 68, "ctxt": 0 }, "key": { "type": "PrivateName", "span": { "start": 65, "end": 67, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 66, "end": 67, "ctxt": 0 }, "value": "x", "optional": false } }, "value": null, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": null, "isOptional": false, "isOverride": false, "readonly": false, "definite": false }, { "type": "ClassMethod", "span": { "start": 73, "end": 192, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 80, "end": 84, "ctxt": 0 }, "value": "test", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 73, "end": 192, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 87, "end": 192, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 97, "end": 113, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 97, "end": 112, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 97, "end": 107, "ctxt": 0 }, "object": { "type": "NewExpression", "span": { "start": 97, "end": 104, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 101, "end": 102, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": [], "typeArguments": null }, "property": { "type": "PrivateName", "span": { "start": 105, "end": 107, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 106, "end": 107, "ctxt": 0 }, "value": "x", "optional": false } } }, "right": { "type": "NumericLiteral", "span": { "start": 110, "end": 112, "ctxt": 0 }, "value": 10.0 } } }, { "type": "VariableDeclaration", "span": { "start": 122, "end": 140, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 128, "end": 139, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 128, "end": 129, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 132, "end": 139, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 136, "end": 137, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 149, "end": 167, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 155, "end": 166, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 155, "end": 156, "ctxt": 0 }, "value": "z", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 159, "end": 166, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 163, "end": 164, "ctxt": 0 }, "value": "y", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 176, "end": 186, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 176, "end": 185, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 176, "end": 179, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 176, "end": 177, "ctxt": 0 }, "value": "z", "optional": false }, "property": { "type": "Identifier", "span": { "start": 178, "end": 179, "ctxt": 0 }, "value": "x", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 182, "end": 185, "ctxt": 0 }, "value": 123.0 } } } ] }, "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": "TsInterfaceDeclaration", "span": { "start": 195, "end": 225, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 205, "end": 206, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 207, "end": 225, "ctxt": 0 }, "body": [ { "type": "TsConstructSignatureDeclaration", "span": { "start": 213, "end": 223, "ctxt": 0 }, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 219, "end": 222, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 221, "end": 222, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 221, "end": 222, "ctxt": 0 }, "value": "D", "optional": false }, "typeParams": null } }, "typeParams": null } ] } } ], "interpreter": null }