{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 16, "column": 7 }, "end": { "line": 16, "column": 8 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "met", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 8 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "met", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 8 } } }, "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": 17, "column": 12 }, "end": { "line": 17, "column": 18 } } }, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 19 } } }, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 19 } } }, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 19 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "q", "typeAnnotation": { "type": "ETSUnionType", "types": [ { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "string", "decorators": [], "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 30 } } }, "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 31 } } }, "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 31 } } }, { "type": "ETSUndefinedType", "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 17, "column": 22 } } } ], "loc": { "start": { "line": 17, "column": 24 }, "end": { "line": 17, "column": 31 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 31 } } }, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 31 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "console", "decorators": [], "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 16 } } }, "property": { "type": "Identifier", "name": "log", "decorators": [], "loc": { "start": { "line": 18, "column": 17 }, "end": { "line": 18, "column": 20 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 20 } } }, "arguments": [ { "type": "BinaryExpression", "operator": "+", "left": { "type": "StringLiteral", "value": "met ", "loc": { "start": { "line": 18, "column": 21 }, "end": { "line": 18, "column": 27 } } }, "right": { "type": "Identifier", "name": "s", "decorators": [], "loc": { "start": { "line": 18, "column": 30 }, "end": { "line": 18, "column": 31 } } }, "loc": { "start": { "line": 18, "column": 21 }, "end": { "line": 18, "column": 31 } } } ], "optional": false, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 32 } } }, "loc": { "start": { "line": 18, "column": 9 }, "end": { "line": 18, "column": 32 } } } ], "loc": { "start": { "line": 17, "column": 31 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 19, "column": 6 } } }, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 19, "column": 6 } } }, "overloads": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "met", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 8 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "met", "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 17, "column": 8 } } }, "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": 17, "column": 12 }, "end": { "line": 17, "column": 18 } } }, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 19 } } }, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 19 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "property": { "type": "Identifier", "name": "met", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "arguments": [ { "type": "Identifier", "name": "s", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "string", "decorators": [], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 18 } } }, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 19 } } }, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 19 } } }, { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "optional": false, "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 19, "column": 6 } } }, "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": 620, "column": 1 }, "end": { "line": 620, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 1, "column": 1 } } } ], "decorators": [], "loc": { "start": { "line": 17, "column": 5 }, "end": { "line": 19, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "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": 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": 20, "column": 2 }, "end": { "line": 20, "column": 2 } } } ], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 20, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 20, "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 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "main", "decorators": [], "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 14 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "main", "decorators": [], "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "A", "decorators": [], "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 10 } } }, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 11 } } }, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 11 } } }, "arguments": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 13 } } }, "property": { "type": "Identifier", "name": "met", "decorators": [], "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 16 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 16 } } }, "arguments": [ { "type": "StringLiteral", "value": "S", "loc": { "start": { "line": 23, "column": 17 }, "end": { "line": 23, "column": 20 } } } ], "optional": false, "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 21 } } }, "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 21 } } } ], "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 24, "column": 2 } } }, "loc": { "start": { "line": 22, "column": 14 }, "end": { "line": 24, "column": 2 } } }, "loc": { "start": { "line": 22, "column": 14 }, "end": { "line": 24, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 22, "column": 1 }, "end": { "line": 24, "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": 25, "column": 1 } } }