{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Car", "decorators": [], "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 10 } } }, "superClass": null, "implements": [], "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "company", "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 12 } } }, "value": { "type": "StringLiteral", "value": "", "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 25 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "String", "decorators": [], "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 20 } } }, "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 22 } } }, "loc": { "start": { "line": 18, "column": 14 }, "end": { "line": 18, "column": 22 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 18, "column": 5 }, "end": { "line": 18, "column": 25 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "fuel", "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 9 } } }, "value": { "type": "StringLiteral", "value": "", "loc": { "start": { "line": 19, "column": 20 }, "end": { "line": 19, "column": 22 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "String", "decorators": [], "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 17 } } }, "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 19 } } }, "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 19 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 19, "column": 5 }, "end": { "line": 19, "column": 22 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "seats", "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 10 } } }, "value": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 19 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Int", "decorators": [], "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 15 } } }, "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 17 } } }, "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 17 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 19 } } }, { "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": 21, "column": 2 }, "end": { "line": 21, "column": 2 } } } ], "loc": { "start": { "line": 17, "column": 11 }, "end": { "line": 21, "column": 2 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 21, "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": "main", "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": "main", "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": "_$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": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "car", "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 8 } } }, "right": { "type": "ObjectExpression", "properties": [ { "type": "Property", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "company", "decorators": [], "loc": { "start": { "line": 24, "column": 5 }, "end": { "line": 24, "column": 12 } } }, "value": { "type": "StringLiteral", "value": "Mercedes", "loc": { "start": { "line": 24, "column": 14 }, "end": { "line": 24, "column": 24 } } }, "kind": "init", "loc": { "start": { "line": 24, "column": 5 }, "end": { "line": 24, "column": 24 } } } ], "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 25, "column": 2 } } }, "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 25, "column": 2 } } }, "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 25, "column": 2 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "companyLength", "decorators": [], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 18 } } }, "right": { "type": "BlockExpression", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "gensym$_5", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "init": { "type": "BlockExpression", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "gensym$_4", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "init": { "type": "Identifier", "name": "car", "decorators": [], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 24 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "kind": "let", "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "gensym$_4", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "right": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "consequent": { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "alternate": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "gensym$_4", "decorators": [], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 33 } } }, "property": { "type": "Identifier", "name": "company", "decorators": [], "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 33 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 33 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 41 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "kind": "let", "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "gensym$_5", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "right": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "consequent": { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "alternate": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "gensym$_5", "decorators": [], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 41 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 27, "column": 35 }, "end": { "line": 27, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 41 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 41 } } }, "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 41 } } }, "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 41 } } } ], "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": "ClassProperty", "key": { "type": "Identifier", "name": "car", "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 8 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Car", "decorators": [], "loc": { "start": { "line": 23, "column": 10 }, "end": { "line": 23, "column": 13 } } }, "loc": { "start": { "line": 23, "column": 10 }, "end": { "line": 23, "column": 15 } } }, "loc": { "start": { "line": 23, "column": 10 }, "end": { "line": 23, "column": 15 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 25, "column": 2 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "companyLength", "decorators": [], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 18 } } }, "value": { "type": "BlockExpression", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "gensym$_7", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "init": { "type": "BlockExpression", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "gensym$_6", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "init": { "type": "Identifier", "name": "car", "decorators": [], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 24 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "kind": "let", "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "gensym$_6", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "right": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "consequent": { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "alternate": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "gensym$_6", "decorators": [], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 33 } } }, "property": { "type": "Identifier", "name": "company", "decorators": [], "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 33 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 33 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 41 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "kind": "let", "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "gensym$_7", "decorators": [], "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "right": { "type": "NullLiteral", "value": null, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "consequent": { "type": "UndefinedLiteral", "value": undefined, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "alternate": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "gensym$_7", "decorators": [], "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 41 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 27, "column": 35 }, "end": { "line": 27, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 27, "column": 21 }, "end": { "line": 27, "column": 41 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } }, "loc": { "start": { "line": 1, "column": 3 }, "end": { "line": 1, "column": 3 } } } ], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 41 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "definite": false, "decorators": [], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 41 } } } ], "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": 28, "column": 1 } } }