{ "type": "Program", "statements": [ { "type": "ImportDeclaration", "source": { "type": "StringLiteral", "value": "./classdef", "loc": { "start": { "line": 16, "column": 20 }, "end": { "line": 16, "column": 32 } } }, "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "Demo", "decorators": [], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 13 } } }, "imported": { "type": "Identifier", "name": "Demo", "decorators": [], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 13 } } }, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 13 } } } ], "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 16, "column": 32 } } }, { "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": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "__linker", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "Class", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "property": { "type": "Identifier", "name": "ofCaller", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "property": { "type": "Identifier", "name": "getLinker", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "kind": "const", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 3 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "__linker", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 3 } } }, "property": { "type": "Identifier", "name": "loadClass", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 3 } } }, "arguments": [ { "type": "StringLiteral", "value": "classdef.ETSGLOBAL", "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "optional": false, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 3 } } } ], "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 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "getDate", "decorators": [], "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 24 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "getDate", "decorators": [], "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 24 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Demo", "decorators": [], "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 17 } } }, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 19 } } }, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 10 } } }, "init": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Demo", "decorators": [], "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 28 } } }, "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 29 } } }, "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 29 } } }, "arguments": [], "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 31 } } }, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 31 } } } ], "kind": "let", "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 31 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "console", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 12 } } }, "property": { "type": "Identifier", "name": "println", "decorators": [], "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 20 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 20 } } }, "arguments": [ { "type": "StringLiteral", "value": "2", "loc": { "start": { "line": 20, "column": 21 }, "end": { "line": 20, "column": 24 } } } ], "optional": false, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 25 } } }, "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 25 } } } ], "loc": { "start": { "line": 18, "column": 26 }, "end": { "line": 21, "column": 2 } } }, "loc": { "start": { "line": 18, "column": 24 }, "end": { "line": 21, "column": 2 } } }, "loc": { "start": { "line": 18, "column": 24 }, "end": { "line": 21, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 21, "column": 2 } } } ], "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": 22, "column": 1 } } }