{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "class_instance_creation", "decorators": [], "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 30 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 17, "column": 24 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 24 } } }, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 24 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 17, "column": 26 }, "end": { "line": 18, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 18, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 18, "column": 6 } } }, "overloads": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 20, "column": 19 }, "end": { "line": 21, "column": 6 } } }, "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 21, "column": 6 } } }, "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 21, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 21, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "s", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "String", "decorators": [], "loc": { "start": { "line": 23, "column": 21 }, "end": { "line": 23, "column": 27 } } }, "loc": { "start": { "line": 23, "column": 21 }, "end": { "line": 23, "column": 28 } } }, "loc": { "start": { "line": 23, "column": 21 }, "end": { "line": 23, "column": 28 } } }, "decorators": [], "loc": { "start": { "line": 23, "column": 17 }, "end": { "line": 23, "column": 28 } } }, "loc": { "start": { "line": 23, "column": 17 }, "end": { "line": 23, "column": 28 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "d", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 23, "column": 33 }, "end": { "line": 23, "column": 39 } } }, "decorators": [], "loc": { "start": { "line": 23, "column": 29 }, "end": { "line": 23, "column": 39 } } }, "loc": { "start": { "line": 23, "column": 29 }, "end": { "line": 23, "column": 39 } } } ], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 23, "column": 41 }, "end": { "line": 24, "column": 6 } } }, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 24, "column": 6 } } }, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 24, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 24, "column": 6 } } } ], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 18, "column": 6 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "inst1", "decorators": [], "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 17 } } }, "value": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "class_instance_creation", "decorators": [], "loc": { "start": { "line": 26, "column": 50 }, "end": { "line": 26, "column": 73 } } }, "loc": { "start": { "line": 26, "column": 50 }, "end": { "line": 26, "column": 74 } } }, "loc": { "start": { "line": 26, "column": 50 }, "end": { "line": 26, "column": 74 } } }, "arguments": [], "loc": { "start": { "line": 26, "column": 46 }, "end": { "line": 26, "column": 76 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "class_instance_creation", "decorators": [], "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 43 } } }, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 45 } } }, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 45 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 76 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "inst2", "decorators": [], "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 17 } } }, "value": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "class_instance_creation", "decorators": [], "loc": { "start": { "line": 27, "column": 50 }, "end": { "line": 27, "column": 73 } } }, "loc": { "start": { "line": 27, "column": 50 }, "end": { "line": 27, "column": 74 } } }, "loc": { "start": { "line": 27, "column": 50 }, "end": { "line": 27, "column": 74 } } }, "arguments": [ { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 27, "column": 74 }, "end": { "line": 27, "column": 75 } } } ], "loc": { "start": { "line": 27, "column": 46 }, "end": { "line": 27, "column": 77 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "class_instance_creation", "decorators": [], "loc": { "start": { "line": 27, "column": 20 }, "end": { "line": 27, "column": 43 } } }, "loc": { "start": { "line": 27, "column": 20 }, "end": { "line": 27, "column": 45 } } }, "loc": { "start": { "line": 27, "column": 20 }, "end": { "line": 27, "column": 45 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 77 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "inst3", "decorators": [], "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 17 } } }, "value": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "class_instance_creation", "decorators": [], "loc": { "start": { "line": 28, "column": 50 }, "end": { "line": 28, "column": 73 } } }, "loc": { "start": { "line": 28, "column": 50 }, "end": { "line": 28, "column": 74 } } }, "loc": { "start": { "line": 28, "column": 50 }, "end": { "line": 28, "column": 74 } } }, "arguments": [ { "type": "StringLiteral", "value": "ss", "loc": { "start": { "line": 28, "column": 74 }, "end": { "line": 28, "column": 78 } } }, { "type": "NumberLiteral", "value": 7.8, "loc": { "start": { "line": 28, "column": 80 }, "end": { "line": 28, "column": 83 } } } ], "loc": { "start": { "line": 28, "column": 46 }, "end": { "line": 28, "column": 85 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "class_instance_creation", "decorators": [], "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 43 } } }, "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 45 } } }, "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 45 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 85 } } } ], "loc": { "start": { "line": 16, "column": 32 }, "end": { "line": 29, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 29, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ETSGLOBAL", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 30, "column": 1 } } }