{ "type": "Script", "span": { "start": 0, "end": 183, "ctxt": 0 }, "body": [ { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 6, "end": 7, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 0, "end": 38, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 14, "end": 19, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 14, "end": 15, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 18, "end": 19, "ctxt": 0 }, "value": 1.0 }, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 24, "end": 36, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 24, "end": 25, "ctxt": 0 }, "value": "y", "optional": false }, "value": { "type": "StringLiteral", "span": { "start": 28, "end": 35, "ctxt": 0 }, "value": "hello", "hasEscape": false, "kind": { "type": "normal", "containsQuote": true } }, "typeAnnotation": null, "isStatic": false, "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": "VariableDeclaration", "span": { "start": 40, "end": 56, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 44, "end": 55, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 44, "end": 45, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 48, "end": 55, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 52, "end": 53, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 57, "end": 78, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 61, "end": 77, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 61, "end": 63, "ctxt": 0 }, "value": "c2", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 66, "end": 77, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 70, "end": 71, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NullLiteral", "span": { "start": 72, "end": 76, "ctxt": 0 } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 95, "end": 96, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "span": { "start": 89, "end": 143, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 119, "end": 124, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 119, "end": 120, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 123, "end": 124, "ctxt": 0 }, "value": 2.0 }, "typeAnnotation": null, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 129, "end": 141, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 129, "end": 130, "ctxt": 0 }, "value": "y", "optional": false }, "value": { "type": "NullLiteral", "span": { "start": 136, "end": 140, "ctxt": 0 } }, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 130, "end": 133, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 132, "end": 133, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 132, "end": 133, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": null, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 96, "end": 112, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 97, "end": 111, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 97, "end": 98, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": { "type": "TsTypeReference", "span": { "start": 107, "end": 111, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 107, "end": 111, "ctxt": 0 }, "value": "Date", "optional": false }, "typeParams": null }, "default": null } ] }, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 145, "end": 161, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 149, "end": 160, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 149, "end": 150, "ctxt": 0 }, "value": "d", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 153, "end": 160, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 157, "end": 158, "ctxt": 0 }, "value": "D", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 162, "end": 183, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 166, "end": 182, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 166, "end": 168, "ctxt": 0 }, "value": "d2", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 171, "end": 182, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 175, "end": 176, "ctxt": 0 }, "value": "D", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NullLiteral", "span": { "start": 177, "end": 181, "ctxt": 0 } } } ], "typeArguments": null }, "definite": false } ] } ], "interpreter": null }