{ "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": [], "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "v", "decorators": [], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 9 } } }, "init": { "type": "TemplateLiteral", "expressions": [], "quasis": [ { "type": "TemplateElement", "value": { "raw": "(slash at curly braces) $\{true || false\}", "cooked": "(slash at curly braces) ${true || false}" }, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 55 } } } ], "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 56 } } }, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 56 } } } ], "kind": "const", "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 56 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "console", "decorators": [], "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 18, "column": 9 } } }, "property": { "type": "Identifier", "name": "log", "decorators": [], "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 13 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 18, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "v", "decorators": [], "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 15 } } } ], "optional": false, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 18, "column": 16 } } }, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 18, "column": 16 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "expected", "decorators": [], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 16 } } }, "init": { "type": "TemplateLiteral", "expressions": [ { "type": "LogicalExpression", "operator": "||", "left": { "type": "BooleanLiteral", "value": true, "loc": { "start": { "line": 19, "column": 46 }, "end": { "line": 19, "column": 50 } } }, "right": { "type": "BooleanLiteral", "value": false, "loc": { "start": { "line": 19, "column": 54 }, "end": { "line": 19, "column": 59 } } }, "loc": { "start": { "line": 19, "column": 46 }, "end": { "line": 19, "column": 59 } } } ], "quasis": [ { "type": "TemplateElement", "value": { "raw": "(slash at curly braces) ", "cooked": "(slash at curly braces) " }, "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 44 } } }, { "type": "TemplateElement", "value": { "raw": "", "cooked": "" }, "loc": { "start": { "line": 19, "column": 60 }, "end": { "line": 19, "column": 60 } } } ], "loc": { "start": { "line": 19, "column": 19 }, "end": { "line": 19, "column": 61 } } }, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 61 } } } ], "kind": "const", "loc": { "start": { "line": 19, "column": 2 }, "end": { "line": 19, "column": 61 } } }, { "type": "AssertStatement", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "v", "decorators": [], "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 10 } } }, "right": { "type": "Identifier", "name": "expected", "decorators": [], "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 22 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 22 } } }, "second": null, "loc": { "start": { "line": 20, "column": 2 }, "end": { "line": 20, "column": 22 } } } ], "loc": { "start": { "line": 16, "column": 17 }, "end": { "line": 21, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 21, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 21, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 16, "column": 1 }, "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": 21, "column": 2 } } }