{ "type": "Program", "statements": [ { "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": 16, "column": 10 }, "end": { "line": 16, "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": 16, "column": 10 }, "end": { "line": 16, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 16, "column": 18 }, "end": { "line": 16, "column": 22 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "n", "decorators": [], "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 8 } } }, "init": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 17, "column": 12 } } }, "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 12 } } } ], "kind": "let", "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 18, "column": 7 }, "end": { "line": 18, "column": 8 } } }, "init": { "type": "StringLiteral", "value": "d", "loc": { "start": { "line": 18, "column": 11 }, "end": { "line": 18, "column": 14 } } }, "loc": { "start": { "line": 18, "column": 7 }, "end": { "line": 18, "column": 14 } } } ], "kind": "let", "loc": { "start": { "line": 18, "column": 3 }, "end": { "line": 18, "column": 14 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 8 } } }, "init": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "StringLiteral", "value": "abc ", "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 17 } } }, "right": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 20, "column": 20 }, "end": { "line": 20, "column": 21 } } }, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 21 } } }, "right": { "type": "StringLiteral", "value": " = ", "loc": { "start": { "line": 20, "column": 24 }, "end": { "line": 20, "column": 29 } } }, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 29 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "n", "decorators": [], "loc": { "start": { "line": 20, "column": 32 }, "end": { "line": 20, "column": 33 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 20, "column": 34 }, "end": { "line": 20, "column": 35 } } }, "loc": { "start": { "line": 20, "column": 32 }, "end": { "line": 20, "column": 35 } } }, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 35 } } }, "right": { "type": "CharLiteral", "value": "!", "loc": { "start": { "line": 20, "column": 38 }, "end": { "line": 20, "column": 42 } } }, "loc": { "start": { "line": 20, "column": 11 }, "end": { "line": 20, "column": 42 } } }, "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 42 } } } ], "kind": "let", "loc": { "start": { "line": 20, "column": 3 }, "end": { "line": 20, "column": 43 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 21, "column": 8 } } }, "init": { "type": "TemplateLiteral", "expressions": [ { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 21, "column": 18 }, "end": { "line": 21, "column": 19 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "n", "decorators": [], "loc": { "start": { "line": 21, "column": 26 }, "end": { "line": 21, "column": 27 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 21, "column": 28 }, "end": { "line": 21, "column": 29 } } }, "loc": { "start": { "line": 21, "column": 26 }, "end": { "line": 21, "column": 29 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": "abc ", "cooked": "abc " }, "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 16 } } }, { "type": "TemplateElement", "value": { "raw": " = ", "cooked": " = " }, "loc": { "start": { "line": 21, "column": 20 }, "end": { "line": 21, "column": 23 } } }, { "type": "TemplateElement", "value": { "raw": "!", "cooked": "!" }, "loc": { "start": { "line": 21, "column": 31 }, "end": { "line": 21, "column": 32 } } } ], "loc": { "start": { "line": 21, "column": 11 }, "end": { "line": 21, "column": 33 } } }, "loc": { "start": { "line": 21, "column": 7 }, "end": { "line": 21, "column": 33 } } } ], "kind": "let", "loc": { "start": { "line": 21, "column": 3 }, "end": { "line": 21, "column": 34 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "v1", "decorators": [], "loc": { "start": { "line": 23, "column": 7 }, "end": { "line": 23, "column": 9 } } }, "init": { "type": "TemplateLiteral", "expressions": [ { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 23, "column": 19 }, "end": { "line": 23, "column": 20 } } }, "right": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 23, "column": 23 }, "end": { "line": 23, "column": 24 } } }, "loc": { "start": { "line": 23, "column": 19 }, "end": { "line": 23, "column": 24 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": "--- ", "cooked": "--- " }, "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 17 } } }, { "type": "TemplateElement", "value": { "raw": " ---", "cooked": " ---" }, "loc": { "start": { "line": 23, "column": 25 }, "end": { "line": 23, "column": 29 } } } ], "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 30 } } }, "loc": { "start": { "line": 23, "column": 7 }, "end": { "line": 23, "column": 30 } } } ], "kind": "let", "loc": { "start": { "line": 23, "column": 3 }, "end": { "line": 23, "column": 31 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "v2", "decorators": [], "loc": { "start": { "line": 24, "column": 7 }, "end": { "line": 24, "column": 9 } } }, "init": { "type": "TemplateLiteral", "expressions": [ { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 24, "column": 19 }, "end": { "line": 24, "column": 20 } } }, "right": { "type": "TemplateLiteral", "expressions": [ { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 24, "column": 30 }, "end": { "line": 24, "column": 31 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "n", "decorators": [], "loc": { "start": { "line": 24, "column": 38 }, "end": { "line": 24, "column": 39 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 24, "column": 40 }, "end": { "line": 24, "column": 41 } } }, "loc": { "start": { "line": 24, "column": 38 }, "end": { "line": 24, "column": 41 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": "abc ", "cooked": "abc " }, "loc": { "start": { "line": 24, "column": 24 }, "end": { "line": 24, "column": 28 } } }, { "type": "TemplateElement", "value": { "raw": " = ", "cooked": " = " }, "loc": { "start": { "line": 24, "column": 32 }, "end": { "line": 24, "column": 35 } } }, { "type": "TemplateElement", "value": { "raw": "!", "cooked": "!" }, "loc": { "start": { "line": 24, "column": 43 }, "end": { "line": 24, "column": 44 } } } ], "loc": { "start": { "line": 24, "column": 23 }, "end": { "line": 24, "column": 45 } } }, "loc": { "start": { "line": 24, "column": 19 }, "end": { "line": 24, "column": 45 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": "--- ", "cooked": "--- " }, "loc": { "start": { "line": 24, "column": 13 }, "end": { "line": 24, "column": 17 } } }, { "type": "TemplateElement", "value": { "raw": " ---", "cooked": " ---" }, "loc": { "start": { "line": 24, "column": 46 }, "end": { "line": 24, "column": 50 } } } ], "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 51 } } }, "loc": { "start": { "line": 24, "column": 7 }, "end": { "line": 24, "column": 51 } } } ], "kind": "let", "loc": { "start": { "line": 24, "column": 3 }, "end": { "line": 24, "column": 52 } } }, { "type": "AssertStatement", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 11 } } }, "right": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 31, "column": 15 }, "end": { "line": 31, "column": 16 } } }, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 17 } } }, "second": null, "loc": { "start": { "line": 31, "column": 3 }, "end": { "line": 31, "column": 17 } } }, { "type": "AssertStatement", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "v1", "decorators": [], "loc": { "start": { "line": 32, "column": 10 }, "end": { "line": 32, "column": 12 } } }, "right": { "type": "Identifier", "name": "v2", "decorators": [], "loc": { "start": { "line": 32, "column": 16 }, "end": { "line": 32, "column": 18 } } }, "loc": { "start": { "line": 32, "column": 9 }, "end": { "line": 32, "column": 19 } } }, "second": null, "loc": { "start": { "line": 32, "column": 3 }, "end": { "line": 32, "column": 19 } } } ], "loc": { "start": { "line": 16, "column": 23 }, "end": { "line": 33, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 33, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 33, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 33, "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": 34, "column": 1 } } }