{ "type": "Program", "statements": [ { "type": "ImportDeclaration", "source": { "type": "StringLiteral", "value": "std/math", "loc": { "start": { "line": 16, "column": 20 }, "end": { "line": 16, "column": 30 } } }, "specifiers": [ { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "PI", "decorators": [], "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 12 } } }, "imported": { "type": "Identifier", "name": "PI", "decorators": [], "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 12 } } }, "loc": { "start": { "line": 16, "column": 10 }, "end": { "line": 16, "column": 12 } } } ], "loc": { "start": { "line": 16, "column": 1 }, "end": { "line": 16, "column": 31 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 19, "column": 7 }, "end": { "line": 19, "column": 11 } } }, "superClass": null, "implements": [], "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 24 } } }, "value": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 4, "loc": { "start": { "line": 20, "column": 36 }, "end": { "line": 20, "column": 37 } } }, "right": { "type": "Identifier", "name": "PI", "decorators": [], "loc": { "start": { "line": 20, "column": 40 }, "end": { "line": 20, "column": 42 } } }, "loc": { "start": { "line": 20, "column": 36 }, "end": { "line": 20, "column": 42 } } }, "right": { "type": "Identifier", "name": "PI", "decorators": [], "loc": { "start": { "line": 20, "column": 45 }, "end": { "line": 20, "column": 47 } } }, "loc": { "start": { "line": 20, "column": 36 }, "end": { "line": 20, "column": 47 } } }, "accessibility": "public", "static": false, "readonly": true, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 27 }, "end": { "line": 20, "column": 33 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 47 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 7 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 21, "column": 10 }, "end": { "line": 21, "column": 16 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 16 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 7 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 16 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 16 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 23, "column": 6 }, "end": { "line": 23, "column": 7 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 23, "column": 10 }, "end": { "line": 23, "column": 16 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 23, "column": 6 }, "end": { "line": 23, "column": 16 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 8 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 24, "column": 11 }, "end": { "line": 24, "column": 17 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 17 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 25, "column": 6 }, "end": { "line": 25, "column": 8 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 25, "column": 11 }, "end": { "line": 25, "column": 17 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 25, "column": 6 }, "end": { "line": 25, "column": 17 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 26, "column": 6 }, "end": { "line": 26, "column": 8 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 26, "column": 11 }, "end": { "line": 26, "column": 17 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 26, "column": 6 }, "end": { "line": 26, "column": 17 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 27, "column": 10 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 19 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 27, "column": 19 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "accessibility": "public", "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": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "x", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 28, "column": 29 }, "end": { "line": 28, "column": 35 } } }, "decorators": [], "loc": { "start": { "line": 28, "column": 25 }, "end": { "line": 28, "column": 35 } } }, "loc": { "start": { "line": 28, "column": 25 }, "end": { "line": 28, "column": 35 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "y", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 28, "column": 41 }, "end": { "line": 28, "column": 47 } } }, "decorators": [], "loc": { "start": { "line": 28, "column": 37 }, "end": { "line": 28, "column": 47 } } }, "loc": { "start": { "line": 28, "column": 37 }, "end": { "line": 28, "column": 47 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "z", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 28, "column": 53 }, "end": { "line": 28, "column": 59 } } }, "decorators": [], "loc": { "start": { "line": 28, "column": 49 }, "end": { "line": 28, "column": 59 } } }, "loc": { "start": { "line": 28, "column": 49 }, "end": { "line": 28, "column": 59 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "vx", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 28, "column": 66 }, "end": { "line": 28, "column": 72 } } }, "decorators": [], "loc": { "start": { "line": 28, "column": 61 }, "end": { "line": 28, "column": 72 } } }, "loc": { "start": { "line": 28, "column": 61 }, "end": { "line": 28, "column": 72 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "vy", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 28, "column": 79 }, "end": { "line": 28, "column": 85 } } }, "decorators": [], "loc": { "start": { "line": 28, "column": 74 }, "end": { "line": 28, "column": 85 } } }, "loc": { "start": { "line": 28, "column": 74 }, "end": { "line": 28, "column": 85 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "vz", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 28, "column": 92 }, "end": { "line": 28, "column": 98 } } }, "decorators": [], "loc": { "start": { "line": 28, "column": 87 }, "end": { "line": 28, "column": 98 } } }, "loc": { "start": { "line": 28, "column": 87 }, "end": { "line": 28, "column": 98 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "mass", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 28, "column": 107 }, "end": { "line": 28, "column": 113 } } }, "decorators": [], "loc": { "start": { "line": 28, "column": 100 }, "end": { "line": 28, "column": 113 } } }, "loc": { "start": { "line": 28, "column": 100 }, "end": { "line": 28, "column": 113 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 29, "column": 14 } } }, "property": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 29, "column": 15 }, "end": { "line": 29, "column": 16 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 29, "column": 16 } } }, "right": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 29, "column": 19 }, "end": { "line": 29, "column": 20 } } }, "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 29, "column": 20 } } }, "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 29, "column": 21 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 30, "column": 10 }, "end": { "line": 30, "column": 14 } } }, "property": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 30, "column": 15 }, "end": { "line": 30, "column": 16 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 30, "column": 10 }, "end": { "line": 30, "column": 16 } } }, "right": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 30, "column": 19 }, "end": { "line": 30, "column": 20 } } }, "loc": { "start": { "line": 30, "column": 10 }, "end": { "line": 30, "column": 20 } } }, "loc": { "start": { "line": 30, "column": 10 }, "end": { "line": 30, "column": 21 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 14 } } }, "property": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 31, "column": 15 }, "end": { "line": 31, "column": 16 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 16 } } }, "right": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 31, "column": 19 }, "end": { "line": 31, "column": 20 } } }, "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 20 } } }, "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 21 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 32, "column": 10 }, "end": { "line": 32, "column": 14 } } }, "property": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 32, "column": 15 }, "end": { "line": 32, "column": 17 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 32, "column": 10 }, "end": { "line": 32, "column": 17 } } }, "right": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 32, "column": 20 }, "end": { "line": 32, "column": 22 } } }, "loc": { "start": { "line": 32, "column": 10 }, "end": { "line": 32, "column": 22 } } }, "loc": { "start": { "line": 32, "column": 10 }, "end": { "line": 32, "column": 23 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 14 } } }, "property": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 33, "column": 15 }, "end": { "line": 33, "column": 17 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 17 } } }, "right": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 33, "column": 20 }, "end": { "line": 33, "column": 22 } } }, "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 22 } } }, "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 23 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 34, "column": 10 }, "end": { "line": 34, "column": 14 } } }, "property": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 34, "column": 15 }, "end": { "line": 34, "column": 17 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 34, "column": 10 }, "end": { "line": 34, "column": 17 } } }, "right": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 34, "column": 20 }, "end": { "line": 34, "column": 22 } } }, "loc": { "start": { "line": 34, "column": 10 }, "end": { "line": 34, "column": 22 } } }, "loc": { "start": { "line": 34, "column": 10 }, "end": { "line": 34, "column": 23 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 35, "column": 10 }, "end": { "line": 35, "column": 14 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 35, "column": 15 }, "end": { "line": 35, "column": 19 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 35, "column": 10 }, "end": { "line": 35, "column": 19 } } }, "right": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 35, "column": 22 }, "end": { "line": 35, "column": 26 } } }, "loc": { "start": { "line": 35, "column": 10 }, "end": { "line": 35, "column": 26 } } }, "loc": { "start": { "line": 35, "column": 10 }, "end": { "line": 35, "column": 27 } } } ], "loc": { "start": { "line": 28, "column": 115 }, "end": { "line": 36, "column": 7 } } }, "loc": { "start": { "line": 28, "column": 24 }, "end": { "line": 36, "column": 7 } } }, "loc": { "start": { "line": 28, "column": 24 }, "end": { "line": 36, "column": 7 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 28, "column": 6 }, "end": { "line": 36, "column": 7 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "offsetMomentum", "decorators": [], "loc": { "start": { "line": 38, "column": 14 }, "end": { "line": 38, "column": 28 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "offsetMomentum", "decorators": [], "loc": { "start": { "line": 38, "column": 14 }, "end": { "line": 38, "column": 28 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "px", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 38, "column": 34 }, "end": { "line": 38, "column": 40 } } }, "decorators": [], "loc": { "start": { "line": 38, "column": 29 }, "end": { "line": 38, "column": 40 } } }, "loc": { "start": { "line": 38, "column": 29 }, "end": { "line": 38, "column": 40 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "py", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 38, "column": 47 }, "end": { "line": 38, "column": 53 } } }, "decorators": [], "loc": { "start": { "line": 38, "column": 42 }, "end": { "line": 38, "column": 53 } } }, "loc": { "start": { "line": 38, "column": 42 }, "end": { "line": 38, "column": 53 } } }, { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "pz", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 38, "column": 60 }, "end": { "line": 38, "column": 66 } } }, "decorators": [], "loc": { "start": { "line": 38, "column": 55 }, "end": { "line": 38, "column": 66 } } }, "loc": { "start": { "line": 38, "column": 55 }, "end": { "line": 38, "column": 66 } } } ], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 38, "column": 69 }, "end": { "line": 38, "column": 73 } } }, "loc": { "start": { "line": 38, "column": 69 }, "end": { "line": 38, "column": 75 } } }, "loc": { "start": { "line": 38, "column": 69 }, "end": { "line": 38, "column": 75 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 39, "column": 10 }, "end": { "line": 39, "column": 14 } } }, "property": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 39, "column": 15 }, "end": { "line": 39, "column": 17 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 39, "column": 10 }, "end": { "line": 39, "column": 17 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "Identifier", "name": "px", "decorators": [], "loc": { "start": { "line": 39, "column": 21 }, "end": { "line": 39, "column": 23 } } }, "loc": { "start": { "line": 39, "column": 20 }, "end": { "line": 39, "column": 23 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 39, "column": 26 }, "end": { "line": 39, "column": 30 } } }, "property": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 39, "column": 31 }, "end": { "line": 39, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 39, "column": 26 }, "end": { "line": 39, "column": 41 } } }, "loc": { "start": { "line": 39, "column": 20 }, "end": { "line": 39, "column": 41 } } }, "loc": { "start": { "line": 39, "column": 10 }, "end": { "line": 39, "column": 41 } } }, "loc": { "start": { "line": 39, "column": 10 }, "end": { "line": 39, "column": 42 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 40, "column": 10 }, "end": { "line": 40, "column": 14 } } }, "property": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 40, "column": 15 }, "end": { "line": 40, "column": 17 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 40, "column": 10 }, "end": { "line": 40, "column": 17 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "Identifier", "name": "py", "decorators": [], "loc": { "start": { "line": 40, "column": 21 }, "end": { "line": 40, "column": 23 } } }, "loc": { "start": { "line": 40, "column": 20 }, "end": { "line": 40, "column": 23 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 40, "column": 26 }, "end": { "line": 40, "column": 30 } } }, "property": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 40, "column": 31 }, "end": { "line": 40, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 40, "column": 26 }, "end": { "line": 40, "column": 41 } } }, "loc": { "start": { "line": 40, "column": 20 }, "end": { "line": 40, "column": 41 } } }, "loc": { "start": { "line": 40, "column": 10 }, "end": { "line": 40, "column": 41 } } }, "loc": { "start": { "line": 40, "column": 10 }, "end": { "line": 40, "column": 42 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 41, "column": 10 }, "end": { "line": 41, "column": 14 } } }, "property": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 41, "column": 15 }, "end": { "line": 41, "column": 17 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 41, "column": 10 }, "end": { "line": 41, "column": 17 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "Identifier", "name": "pz", "decorators": [], "loc": { "start": { "line": 41, "column": 21 }, "end": { "line": 41, "column": 23 } } }, "loc": { "start": { "line": 41, "column": 20 }, "end": { "line": 41, "column": 23 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 41, "column": 26 }, "end": { "line": 41, "column": 30 } } }, "property": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 41, "column": 31 }, "end": { "line": 41, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 41, "column": 26 }, "end": { "line": 41, "column": 41 } } }, "loc": { "start": { "line": 41, "column": 20 }, "end": { "line": 41, "column": 41 } } }, "loc": { "start": { "line": 41, "column": 10 }, "end": { "line": 41, "column": 41 } } }, "loc": { "start": { "line": 41, "column": 10 }, "end": { "line": 41, "column": 42 } } }, { "type": "ReturnStatement", "argument": { "type": "ThisExpression", "loc": { "start": { "line": 42, "column": 17 }, "end": { "line": 42, "column": 21 } } }, "loc": { "start": { "line": 42, "column": 10 }, "end": { "line": 42, "column": 22 } } } ], "loc": { "start": { "line": 38, "column": 74 }, "end": { "line": 43, "column": 7 } } }, "loc": { "start": { "line": 38, "column": 28 }, "end": { "line": 43, "column": 7 } } }, "loc": { "start": { "line": 38, "column": 28 }, "end": { "line": 43, "column": 7 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 38, "column": 6 }, "end": { "line": 43, "column": 7 } } } ], "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 44, "column": 2 } } }, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 44, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "NBodySystem", "decorators": [], "loc": { "start": { "line": 46, "column": 7 }, "end": { "line": 46, "column": 18 } } }, "superClass": null, "implements": [], "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 47, "column": 6 }, "end": { "line": 47, "column": 12 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 47, "column": 15 }, "end": { "line": 47, "column": 19 } } }, "loc": { "start": { "line": 47, "column": 15 }, "end": { "line": 47, "column": 20 } } }, "loc": { "start": { "line": 47, "column": 15 }, "end": { "line": 47, "column": 20 } } }, "loc": { "start": { "line": 47, "column": 22 }, "end": { "line": 47, "column": 23 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 47, "column": 6 }, "end": { "line": 47, "column": 23 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "accessibility": "public", "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": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "bodies", "typeAnnotation": { "type": "TSArrayType", "elementType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 48, "column": 34 }, "end": { "line": 48, "column": 38 } } }, "loc": { "start": { "line": 48, "column": 34 }, "end": { "line": 48, "column": 39 } } }, "loc": { "start": { "line": 48, "column": 34 }, "end": { "line": 48, "column": 39 } } }, "loc": { "start": { "line": 48, "column": 40 }, "end": { "line": 48, "column": 41 } } }, "decorators": [], "loc": { "start": { "line": 48, "column": 25 }, "end": { "line": 48, "column": 41 } } }, "loc": { "start": { "line": 48, "column": 25 }, "end": { "line": 48, "column": 41 } } } ], "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 49, "column": 10 }, "end": { "line": 49, "column": 14 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 49, "column": 15 }, "end": { "line": 49, "column": 21 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 49, "column": 10 }, "end": { "line": 49, "column": 21 } } }, "right": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 49, "column": 24 }, "end": { "line": 49, "column": 30 } } }, "loc": { "start": { "line": 49, "column": 10 }, "end": { "line": 49, "column": 30 } } }, "loc": { "start": { "line": 49, "column": 10 }, "end": { "line": 49, "column": 31 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "px", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 50, "column": 19 }, "end": { "line": 50, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 50, "column": 14 }, "end": { "line": 50, "column": 16 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 50, "column": 28 }, "end": { "line": 50, "column": 31 } } }, "loc": { "start": { "line": 50, "column": 14 }, "end": { "line": 50, "column": 31 } } } ], "kind": "let", "loc": { "start": { "line": 50, "column": 10 }, "end": { "line": 50, "column": 32 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "py", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 51, "column": 19 }, "end": { "line": 51, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 51, "column": 14 }, "end": { "line": 51, "column": 16 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 51, "column": 28 }, "end": { "line": 51, "column": 31 } } }, "loc": { "start": { "line": 51, "column": 14 }, "end": { "line": 51, "column": 31 } } } ], "kind": "let", "loc": { "start": { "line": 51, "column": 10 }, "end": { "line": 51, "column": 32 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "pz", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 52, "column": 19 }, "end": { "line": 52, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 52, "column": 14 }, "end": { "line": 52, "column": 16 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 52, "column": 28 }, "end": { "line": 52, "column": 31 } } }, "loc": { "start": { "line": 52, "column": 14 }, "end": { "line": 52, "column": 31 } } } ], "kind": "let", "loc": { "start": { "line": 52, "column": 10 }, "end": { "line": 52, "column": 32 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "size", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 53, "column": 21 }, "end": { "line": 53, "column": 24 } } }, "decorators": [], "loc": { "start": { "line": 53, "column": 14 }, "end": { "line": 53, "column": 18 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 53, "column": 27 }, "end": { "line": 53, "column": 31 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 53, "column": 32 }, "end": { "line": 53, "column": 38 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 53, "column": 27 }, "end": { "line": 53, "column": 38 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 53, "column": 39 }, "end": { "line": 53, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 53, "column": 27 }, "end": { "line": 53, "column": 45 } } }, "loc": { "start": { "line": 53, "column": 14 }, "end": { "line": 53, "column": 45 } } } ], "kind": "let", "loc": { "start": { "line": 53, "column": 10 }, "end": { "line": 53, "column": 46 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 54, "column": 23 }, "end": { "line": 54, "column": 26 } } }, "decorators": [], "loc": { "start": { "line": 54, "column": 19 }, "end": { "line": 54, "column": 20 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 54, "column": 29 }, "end": { "line": 54, "column": 30 } } }, "loc": { "start": { "line": 54, "column": 19 }, "end": { "line": 54, "column": 30 } } } ], "kind": "let", "loc": { "start": { "line": 54, "column": 15 }, "end": { "line": 54, "column": 30 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 54, "column": 32 }, "end": { "line": 54, "column": 33 } } }, "right": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 54, "column": 36 }, "end": { "line": 54, "column": 40 } } }, "loc": { "start": { "line": 54, "column": 32 }, "end": { "line": 54, "column": 40 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 54, "column": 42 }, "end": { "line": 54, "column": 43 } } }, "loc": { "start": { "line": 54, "column": 42 }, "end": { "line": 54, "column": 45 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "b", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 55, "column": 22 }, "end": { "line": 55, "column": 26 } } }, "loc": { "start": { "line": 55, "column": 22 }, "end": { "line": 55, "column": 28 } } }, "loc": { "start": { "line": 55, "column": 22 }, "end": { "line": 55, "column": 28 } } }, "decorators": [], "loc": { "start": { "line": 55, "column": 18 }, "end": { "line": 55, "column": 19 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 55, "column": 29 }, "end": { "line": 55, "column": 33 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 55, "column": 34 }, "end": { "line": 55, "column": 40 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 55, "column": 29 }, "end": { "line": 55, "column": 40 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 55, "column": 41 }, "end": { "line": 55, "column": 42 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 55, "column": 29 }, "end": { "line": 55, "column": 43 } } }, "loc": { "start": { "line": 55, "column": 18 }, "end": { "line": 55, "column": 43 } } } ], "kind": "let", "loc": { "start": { "line": 55, "column": 14 }, "end": { "line": 55, "column": 44 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "m", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 56, "column": 22 }, "end": { "line": 56, "column": 28 } } }, "decorators": [], "loc": { "start": { "line": 56, "column": 18 }, "end": { "line": 56, "column": 19 } } }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 56, "column": 31 }, "end": { "line": 56, "column": 32 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 56, "column": 33 }, "end": { "line": 56, "column": 37 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 56, "column": 31 }, "end": { "line": 56, "column": 37 } } }, "loc": { "start": { "line": 56, "column": 18 }, "end": { "line": 56, "column": 37 } } } ], "kind": "let", "loc": { "start": { "line": 56, "column": 14 }, "end": { "line": 56, "column": 38 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "px", "decorators": [], "loc": { "start": { "line": 57, "column": 14 }, "end": { "line": 57, "column": 16 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 57, "column": 20 }, "end": { "line": 57, "column": 21 } } }, "property": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 57, "column": 22 }, "end": { "line": 57, "column": 24 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 57, "column": 20 }, "end": { "line": 57, "column": 24 } } }, "right": { "type": "Identifier", "name": "m", "decorators": [], "loc": { "start": { "line": 57, "column": 27 }, "end": { "line": 57, "column": 28 } } }, "loc": { "start": { "line": 57, "column": 20 }, "end": { "line": 57, "column": 28 } } }, "loc": { "start": { "line": 57, "column": 14 }, "end": { "line": 57, "column": 28 } } }, "loc": { "start": { "line": 57, "column": 14 }, "end": { "line": 57, "column": 29 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "py", "decorators": [], "loc": { "start": { "line": 58, "column": 14 }, "end": { "line": 58, "column": 16 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 21 } } }, "property": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 58, "column": 22 }, "end": { "line": 58, "column": 24 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 24 } } }, "right": { "type": "Identifier", "name": "m", "decorators": [], "loc": { "start": { "line": 58, "column": 27 }, "end": { "line": 58, "column": 28 } } }, "loc": { "start": { "line": 58, "column": 20 }, "end": { "line": 58, "column": 28 } } }, "loc": { "start": { "line": 58, "column": 14 }, "end": { "line": 58, "column": 28 } } }, "loc": { "start": { "line": 58, "column": 14 }, "end": { "line": 58, "column": 29 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "pz", "decorators": [], "loc": { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 16 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "b", "decorators": [], "loc": { "start": { "line": 59, "column": 20 }, "end": { "line": 59, "column": 21 } } }, "property": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 59, "column": 22 }, "end": { "line": 59, "column": 24 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 59, "column": 20 }, "end": { "line": 59, "column": 24 } } }, "right": { "type": "Identifier", "name": "m", "decorators": [], "loc": { "start": { "line": 59, "column": 27 }, "end": { "line": 59, "column": 28 } } }, "loc": { "start": { "line": 59, "column": 20 }, "end": { "line": 59, "column": 28 } } }, "loc": { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 28 } } }, "loc": { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 29 } } } ], "loc": { "start": { "line": 54, "column": 47 }, "end": { "line": 60, "column": 11 } } }, "loc": { "start": { "line": 54, "column": 10 }, "end": { "line": 60, "column": 11 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 61, "column": 10 }, "end": { "line": 61, "column": 14 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 61, "column": 15 }, "end": { "line": 61, "column": 21 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 61, "column": 10 }, "end": { "line": 61, "column": 21 } } }, "property": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 61, "column": 22 }, "end": { "line": 61, "column": 23 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 61, "column": 10 }, "end": { "line": 61, "column": 24 } } }, "property": { "type": "Identifier", "name": "offsetMomentum", "decorators": [], "loc": { "start": { "line": 61, "column": 25 }, "end": { "line": 61, "column": 39 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 61, "column": 10 }, "end": { "line": 61, "column": 39 } } }, "arguments": [ { "type": "Identifier", "name": "px", "decorators": [], "loc": { "start": { "line": 61, "column": 40 }, "end": { "line": 61, "column": 42 } } }, { "type": "Identifier", "name": "py", "decorators": [], "loc": { "start": { "line": 61, "column": 44 }, "end": { "line": 61, "column": 46 } } }, { "type": "Identifier", "name": "pz", "decorators": [], "loc": { "start": { "line": 61, "column": 48 }, "end": { "line": 61, "column": 50 } } } ], "optional": false, "loc": { "start": { "line": 61, "column": 10 }, "end": { "line": 61, "column": 51 } } }, "loc": { "start": { "line": 61, "column": 10 }, "end": { "line": 61, "column": 52 } } } ], "loc": { "start": { "line": 48, "column": 42 }, "end": { "line": 62, "column": 7 } } }, "loc": { "start": { "line": 48, "column": 24 }, "end": { "line": 62, "column": 7 } } }, "loc": { "start": { "line": 48, "column": 24 }, "end": { "line": 62, "column": 7 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 48, "column": 6 }, "end": { "line": 62, "column": 7 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "advance", "decorators": [], "loc": { "start": { "line": 64, "column": 14 }, "end": { "line": 64, "column": 21 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "advance", "decorators": [], "loc": { "start": { "line": 64, "column": 14 }, "end": { "line": 64, "column": 21 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "dt", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 64, "column": 27 }, "end": { "line": 64, "column": 33 } } }, "decorators": [], "loc": { "start": { "line": 64, "column": 22 }, "end": { "line": 64, "column": 33 } } }, "loc": { "start": { "line": 64, "column": 22 }, "end": { "line": 64, "column": 33 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 64, "column": 36 }, "end": { "line": 64, "column": 40 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "dx", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 65, "column": 19 }, "end": { "line": 65, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 65, "column": 14 }, "end": { "line": 65, "column": 16 } } }, "init": null, "loc": { "start": { "line": 65, "column": 14 }, "end": { "line": 65, "column": 16 } } } ], "kind": "let", "loc": { "start": { "line": 65, "column": 10 }, "end": { "line": 65, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "dy", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 66, "column": 19 }, "end": { "line": 66, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 66, "column": 14 }, "end": { "line": 66, "column": 16 } } }, "init": null, "loc": { "start": { "line": 66, "column": 14 }, "end": { "line": 66, "column": 16 } } } ], "kind": "let", "loc": { "start": { "line": 66, "column": 10 }, "end": { "line": 66, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "dz", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 67, "column": 19 }, "end": { "line": 67, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 67, "column": 14 }, "end": { "line": 67, "column": 16 } } }, "init": null, "loc": { "start": { "line": 67, "column": 14 }, "end": { "line": 67, "column": 16 } } } ], "kind": "let", "loc": { "start": { "line": 67, "column": 10 }, "end": { "line": 67, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "distance", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 68, "column": 25 }, "end": { "line": 68, "column": 31 } } }, "decorators": [], "loc": { "start": { "line": 68, "column": 14 }, "end": { "line": 68, "column": 22 } } }, "init": null, "loc": { "start": { "line": 68, "column": 14 }, "end": { "line": 68, "column": 22 } } } ], "kind": "let", "loc": { "start": { "line": 68, "column": 10 }, "end": { "line": 68, "column": 33 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "mag", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 69, "column": 20 }, "end": { "line": 69, "column": 26 } } }, "decorators": [], "loc": { "start": { "line": 69, "column": 14 }, "end": { "line": 69, "column": 17 } } }, "init": null, "loc": { "start": { "line": 69, "column": 14 }, "end": { "line": 69, "column": 17 } } } ], "kind": "let", "loc": { "start": { "line": 69, "column": 10 }, "end": { "line": 69, "column": 28 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "size", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 70, "column": 21 }, "end": { "line": 70, "column": 24 } } }, "decorators": [], "loc": { "start": { "line": 70, "column": 14 }, "end": { "line": 70, "column": 18 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 70, "column": 27 }, "end": { "line": 70, "column": 31 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 70, "column": 32 }, "end": { "line": 70, "column": 38 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 70, "column": 27 }, "end": { "line": 70, "column": 38 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 70, "column": 39 }, "end": { "line": 70, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 70, "column": 27 }, "end": { "line": 70, "column": 45 } } }, "loc": { "start": { "line": 70, "column": 14 }, "end": { "line": 70, "column": 45 } } } ], "kind": "let", "loc": { "start": { "line": 70, "column": 10 }, "end": { "line": 70, "column": 46 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 71, "column": 23 }, "end": { "line": 71, "column": 26 } } }, "decorators": [], "loc": { "start": { "line": 71, "column": 19 }, "end": { "line": 71, "column": 20 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 71, "column": 29 }, "end": { "line": 71, "column": 30 } } }, "loc": { "start": { "line": 71, "column": 19 }, "end": { "line": 71, "column": 30 } } } ], "kind": "let", "loc": { "start": { "line": 71, "column": 15 }, "end": { "line": 71, "column": 30 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 71, "column": 32 }, "end": { "line": 71, "column": 33 } } }, "right": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 71, "column": 36 }, "end": { "line": 71, "column": 40 } } }, "loc": { "start": { "line": 71, "column": 32 }, "end": { "line": 71, "column": 40 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 71, "column": 42 }, "end": { "line": 71, "column": 43 } } }, "loc": { "start": { "line": 71, "column": 42 }, "end": { "line": 71, "column": 45 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "bodyi", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 72, "column": 26 }, "end": { "line": 72, "column": 30 } } }, "loc": { "start": { "line": 72, "column": 26 }, "end": { "line": 72, "column": 32 } } }, "loc": { "start": { "line": 72, "column": 26 }, "end": { "line": 72, "column": 32 } } }, "decorators": [], "loc": { "start": { "line": 72, "column": 18 }, "end": { "line": 72, "column": 23 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 72, "column": 33 }, "end": { "line": 72, "column": 37 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 72, "column": 38 }, "end": { "line": 72, "column": 44 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 72, "column": 33 }, "end": { "line": 72, "column": 44 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 72, "column": 45 }, "end": { "line": 72, "column": 46 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 72, "column": 33 }, "end": { "line": 72, "column": 47 } } }, "loc": { "start": { "line": 72, "column": 18 }, "end": { "line": 72, "column": 47 } } } ], "kind": "let", "loc": { "start": { "line": 72, "column": 14 }, "end": { "line": 72, "column": 48 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "j", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 73, "column": 27 }, "end": { "line": 73, "column": 30 } } }, "decorators": [], "loc": { "start": { "line": 73, "column": 23 }, "end": { "line": 73, "column": 24 } } }, "init": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 73, "column": 33 }, "end": { "line": 73, "column": 34 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 73, "column": 37 }, "end": { "line": 73, "column": 38 } } }, "loc": { "start": { "line": 73, "column": 33 }, "end": { "line": 73, "column": 38 } } }, "loc": { "start": { "line": 73, "column": 23 }, "end": { "line": 73, "column": 38 } } } ], "kind": "let", "loc": { "start": { "line": 73, "column": 19 }, "end": { "line": 73, "column": 38 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 73, "column": 40 }, "end": { "line": 73, "column": 41 } } }, "right": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 73, "column": 44 }, "end": { "line": 73, "column": 48 } } }, "loc": { "start": { "line": 73, "column": 40 }, "end": { "line": 73, "column": 48 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 73, "column": 50 }, "end": { "line": 73, "column": 51 } } }, "loc": { "start": { "line": 73, "column": 50 }, "end": { "line": 73, "column": 53 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "bodyj", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 74, "column": 30 }, "end": { "line": 74, "column": 34 } } }, "loc": { "start": { "line": 74, "column": 30 }, "end": { "line": 74, "column": 36 } } }, "loc": { "start": { "line": 74, "column": 30 }, "end": { "line": 74, "column": 36 } } }, "decorators": [], "loc": { "start": { "line": 74, "column": 22 }, "end": { "line": 74, "column": 27 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 74, "column": 37 }, "end": { "line": 74, "column": 41 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 74, "column": 42 }, "end": { "line": 74, "column": 48 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 74, "column": 37 }, "end": { "line": 74, "column": 48 } } }, "property": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 74, "column": 49 }, "end": { "line": 74, "column": 50 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 74, "column": 37 }, "end": { "line": 74, "column": 51 } } }, "loc": { "start": { "line": 74, "column": 22 }, "end": { "line": 74, "column": 51 } } } ], "kind": "let", "loc": { "start": { "line": 74, "column": 18 }, "end": { "line": 74, "column": 52 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "dx", "decorators": [], "loc": { "start": { "line": 75, "column": 18 }, "end": { "line": 75, "column": 20 } } }, "right": { "type": "BinaryExpression", "operator": "-", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 75, "column": 23 }, "end": { "line": 75, "column": 28 } } }, "property": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 75, "column": 29 }, "end": { "line": 75, "column": 30 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 75, "column": 23 }, "end": { "line": 75, "column": 30 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 75, "column": 33 }, "end": { "line": 75, "column": 38 } } }, "property": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 75, "column": 39 }, "end": { "line": 75, "column": 40 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 75, "column": 33 }, "end": { "line": 75, "column": 40 } } }, "loc": { "start": { "line": 75, "column": 23 }, "end": { "line": 75, "column": 40 } } }, "loc": { "start": { "line": 75, "column": 18 }, "end": { "line": 75, "column": 40 } } }, "loc": { "start": { "line": 75, "column": 18 }, "end": { "line": 75, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "dy", "decorators": [], "loc": { "start": { "line": 76, "column": 18 }, "end": { "line": 76, "column": 20 } } }, "right": { "type": "BinaryExpression", "operator": "-", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 76, "column": 23 }, "end": { "line": 76, "column": 28 } } }, "property": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 76, "column": 29 }, "end": { "line": 76, "column": 30 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 76, "column": 23 }, "end": { "line": 76, "column": 30 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 76, "column": 33 }, "end": { "line": 76, "column": 38 } } }, "property": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 76, "column": 39 }, "end": { "line": 76, "column": 40 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 76, "column": 33 }, "end": { "line": 76, "column": 40 } } }, "loc": { "start": { "line": 76, "column": 23 }, "end": { "line": 76, "column": 40 } } }, "loc": { "start": { "line": 76, "column": 18 }, "end": { "line": 76, "column": 40 } } }, "loc": { "start": { "line": 76, "column": 18 }, "end": { "line": 76, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "dz", "decorators": [], "loc": { "start": { "line": 77, "column": 18 }, "end": { "line": 77, "column": 20 } } }, "right": { "type": "BinaryExpression", "operator": "-", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 77, "column": 23 }, "end": { "line": 77, "column": 28 } } }, "property": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 77, "column": 29 }, "end": { "line": 77, "column": 30 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 77, "column": 23 }, "end": { "line": 77, "column": 30 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 77, "column": 33 }, "end": { "line": 77, "column": 38 } } }, "property": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 77, "column": 39 }, "end": { "line": 77, "column": 40 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 77, "column": 33 }, "end": { "line": 77, "column": 40 } } }, "loc": { "start": { "line": 77, "column": 23 }, "end": { "line": 77, "column": 40 } } }, "loc": { "start": { "line": 77, "column": 18 }, "end": { "line": 77, "column": 40 } } }, "loc": { "start": { "line": 77, "column": 18 }, "end": { "line": 77, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "distance", "decorators": [], "loc": { "start": { "line": 78, "column": 18 }, "end": { "line": 78, "column": 26 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "sqrt", "decorators": [], "loc": { "start": { "line": 78, "column": 29 }, "end": { "line": 78, "column": 33 } } }, "arguments": [ { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dx", "decorators": [], "loc": { "start": { "line": 78, "column": 34 }, "end": { "line": 78, "column": 36 } } }, "right": { "type": "Identifier", "name": "dx", "decorators": [], "loc": { "start": { "line": 78, "column": 39 }, "end": { "line": 78, "column": 41 } } }, "loc": { "start": { "line": 78, "column": 34 }, "end": { "line": 78, "column": 41 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dy", "decorators": [], "loc": { "start": { "line": 78, "column": 44 }, "end": { "line": 78, "column": 46 } } }, "right": { "type": "Identifier", "name": "dy", "decorators": [], "loc": { "start": { "line": 78, "column": 49 }, "end": { "line": 78, "column": 51 } } }, "loc": { "start": { "line": 78, "column": 44 }, "end": { "line": 78, "column": 51 } } }, "loc": { "start": { "line": 78, "column": 34 }, "end": { "line": 78, "column": 51 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dz", "decorators": [], "loc": { "start": { "line": 78, "column": 54 }, "end": { "line": 78, "column": 56 } } }, "right": { "type": "Identifier", "name": "dz", "decorators": [], "loc": { "start": { "line": 78, "column": 59 }, "end": { "line": 78, "column": 61 } } }, "loc": { "start": { "line": 78, "column": 54 }, "end": { "line": 78, "column": 61 } } }, "loc": { "start": { "line": 78, "column": 34 }, "end": { "line": 78, "column": 61 } } } ], "optional": false, "loc": { "start": { "line": 78, "column": 29 }, "end": { "line": 78, "column": 62 } } }, "loc": { "start": { "line": 78, "column": 18 }, "end": { "line": 78, "column": 62 } } }, "loc": { "start": { "line": 78, "column": 18 }, "end": { "line": 78, "column": 63 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "mag", "decorators": [], "loc": { "start": { "line": 79, "column": 18 }, "end": { "line": 79, "column": 21 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "Identifier", "name": "dt", "decorators": [], "loc": { "start": { "line": 79, "column": 24 }, "end": { "line": 79, "column": 26 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "distance", "decorators": [], "loc": { "start": { "line": 79, "column": 30 }, "end": { "line": 79, "column": 38 } } }, "right": { "type": "Identifier", "name": "distance", "decorators": [], "loc": { "start": { "line": 79, "column": 41 }, "end": { "line": 79, "column": 49 } } }, "loc": { "start": { "line": 79, "column": 30 }, "end": { "line": 79, "column": 49 } } }, "right": { "type": "Identifier", "name": "distance", "decorators": [], "loc": { "start": { "line": 79, "column": 52 }, "end": { "line": 79, "column": 60 } } }, "loc": { "start": { "line": 79, "column": 29 }, "end": { "line": 79, "column": 61 } } }, "loc": { "start": { "line": 79, "column": 24 }, "end": { "line": 79, "column": 61 } } }, "loc": { "start": { "line": 79, "column": 18 }, "end": { "line": 79, "column": 61 } } }, "loc": { "start": { "line": 79, "column": 18 }, "end": { "line": 79, "column": 62 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "-=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 80, "column": 18 }, "end": { "line": 80, "column": 23 } } }, "property": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 80, "column": 24 }, "end": { "line": 80, "column": 26 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 80, "column": 18 }, "end": { "line": 80, "column": 26 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dx", "decorators": [], "loc": { "start": { "line": 80, "column": 30 }, "end": { "line": 80, "column": 32 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 80, "column": 35 }, "end": { "line": 80, "column": 40 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 80, "column": 41 }, "end": { "line": 80, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 80, "column": 35 }, "end": { "line": 80, "column": 45 } } }, "loc": { "start": { "line": 80, "column": 30 }, "end": { "line": 80, "column": 45 } } }, "right": { "type": "Identifier", "name": "mag", "decorators": [], "loc": { "start": { "line": 80, "column": 48 }, "end": { "line": 80, "column": 51 } } }, "loc": { "start": { "line": 80, "column": 30 }, "end": { "line": 80, "column": 51 } } }, "loc": { "start": { "line": 80, "column": 18 }, "end": { "line": 80, "column": 51 } } }, "loc": { "start": { "line": 80, "column": 18 }, "end": { "line": 80, "column": 52 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "-=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 81, "column": 18 }, "end": { "line": 81, "column": 23 } } }, "property": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 81, "column": 24 }, "end": { "line": 81, "column": 26 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 81, "column": 18 }, "end": { "line": 81, "column": 26 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dy", "decorators": [], "loc": { "start": { "line": 81, "column": 30 }, "end": { "line": 81, "column": 32 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 81, "column": 35 }, "end": { "line": 81, "column": 40 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 81, "column": 41 }, "end": { "line": 81, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 81, "column": 35 }, "end": { "line": 81, "column": 45 } } }, "loc": { "start": { "line": 81, "column": 30 }, "end": { "line": 81, "column": 45 } } }, "right": { "type": "Identifier", "name": "mag", "decorators": [], "loc": { "start": { "line": 81, "column": 48 }, "end": { "line": 81, "column": 51 } } }, "loc": { "start": { "line": 81, "column": 30 }, "end": { "line": 81, "column": 51 } } }, "loc": { "start": { "line": 81, "column": 18 }, "end": { "line": 81, "column": 51 } } }, "loc": { "start": { "line": 81, "column": 18 }, "end": { "line": 81, "column": 52 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "-=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 82, "column": 18 }, "end": { "line": 82, "column": 23 } } }, "property": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 82, "column": 24 }, "end": { "line": 82, "column": 26 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 82, "column": 18 }, "end": { "line": 82, "column": 26 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dz", "decorators": [], "loc": { "start": { "line": 82, "column": 30 }, "end": { "line": 82, "column": 32 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 82, "column": 35 }, "end": { "line": 82, "column": 40 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 82, "column": 41 }, "end": { "line": 82, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 82, "column": 35 }, "end": { "line": 82, "column": 45 } } }, "loc": { "start": { "line": 82, "column": 30 }, "end": { "line": 82, "column": 45 } } }, "right": { "type": "Identifier", "name": "mag", "decorators": [], "loc": { "start": { "line": 82, "column": 48 }, "end": { "line": 82, "column": 51 } } }, "loc": { "start": { "line": 82, "column": 30 }, "end": { "line": 82, "column": 51 } } }, "loc": { "start": { "line": 82, "column": 18 }, "end": { "line": 82, "column": 51 } } }, "loc": { "start": { "line": 82, "column": 18 }, "end": { "line": 82, "column": 52 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 83, "column": 18 }, "end": { "line": 83, "column": 23 } } }, "property": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 83, "column": 24 }, "end": { "line": 83, "column": 26 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 83, "column": 18 }, "end": { "line": 83, "column": 26 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dx", "decorators": [], "loc": { "start": { "line": 83, "column": 30 }, "end": { "line": 83, "column": 32 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 83, "column": 35 }, "end": { "line": 83, "column": 40 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 83, "column": 41 }, "end": { "line": 83, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 83, "column": 35 }, "end": { "line": 83, "column": 45 } } }, "loc": { "start": { "line": 83, "column": 30 }, "end": { "line": 83, "column": 45 } } }, "right": { "type": "Identifier", "name": "mag", "decorators": [], "loc": { "start": { "line": 83, "column": 48 }, "end": { "line": 83, "column": 51 } } }, "loc": { "start": { "line": 83, "column": 30 }, "end": { "line": 83, "column": 51 } } }, "loc": { "start": { "line": 83, "column": 18 }, "end": { "line": 83, "column": 51 } } }, "loc": { "start": { "line": 83, "column": 18 }, "end": { "line": 83, "column": 52 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 84, "column": 18 }, "end": { "line": 84, "column": 23 } } }, "property": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 84, "column": 24 }, "end": { "line": 84, "column": 26 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 84, "column": 18 }, "end": { "line": 84, "column": 26 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dy", "decorators": [], "loc": { "start": { "line": 84, "column": 30 }, "end": { "line": 84, "column": 32 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 84, "column": 35 }, "end": { "line": 84, "column": 40 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 84, "column": 41 }, "end": { "line": 84, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 84, "column": 35 }, "end": { "line": 84, "column": 45 } } }, "loc": { "start": { "line": 84, "column": 30 }, "end": { "line": 84, "column": 45 } } }, "right": { "type": "Identifier", "name": "mag", "decorators": [], "loc": { "start": { "line": 84, "column": 48 }, "end": { "line": 84, "column": 51 } } }, "loc": { "start": { "line": 84, "column": 30 }, "end": { "line": 84, "column": 51 } } }, "loc": { "start": { "line": 84, "column": 18 }, "end": { "line": 84, "column": 51 } } }, "loc": { "start": { "line": 84, "column": 18 }, "end": { "line": 84, "column": 52 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 85, "column": 18 }, "end": { "line": 85, "column": 23 } } }, "property": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 85, "column": 24 }, "end": { "line": 85, "column": 26 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 85, "column": 18 }, "end": { "line": 85, "column": 26 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dz", "decorators": [], "loc": { "start": { "line": 85, "column": 30 }, "end": { "line": 85, "column": 32 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 85, "column": 35 }, "end": { "line": 85, "column": 40 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 85, "column": 41 }, "end": { "line": 85, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 85, "column": 35 }, "end": { "line": 85, "column": 45 } } }, "loc": { "start": { "line": 85, "column": 30 }, "end": { "line": 85, "column": 45 } } }, "right": { "type": "Identifier", "name": "mag", "decorators": [], "loc": { "start": { "line": 85, "column": 48 }, "end": { "line": 85, "column": 51 } } }, "loc": { "start": { "line": 85, "column": 30 }, "end": { "line": 85, "column": 51 } } }, "loc": { "start": { "line": 85, "column": 18 }, "end": { "line": 85, "column": 51 } } }, "loc": { "start": { "line": 85, "column": 18 }, "end": { "line": 85, "column": 52 } } } ], "loc": { "start": { "line": 73, "column": 55 }, "end": { "line": 86, "column": 15 } } }, "loc": { "start": { "line": 73, "column": 14 }, "end": { "line": 86, "column": 15 } } } ], "loc": { "start": { "line": 71, "column": 47 }, "end": { "line": 87, "column": 11 } } }, "loc": { "start": { "line": 71, "column": 10 }, "end": { "line": 87, "column": 11 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 88, "column": 23 }, "end": { "line": 88, "column": 26 } } }, "decorators": [], "loc": { "start": { "line": 88, "column": 19 }, "end": { "line": 88, "column": 20 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 88, "column": 29 }, "end": { "line": 88, "column": 30 } } }, "loc": { "start": { "line": 88, "column": 19 }, "end": { "line": 88, "column": 30 } } } ], "kind": "let", "loc": { "start": { "line": 88, "column": 15 }, "end": { "line": 88, "column": 30 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 88, "column": 32 }, "end": { "line": 88, "column": 33 } } }, "right": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 88, "column": 36 }, "end": { "line": 88, "column": 40 } } }, "loc": { "start": { "line": 88, "column": 32 }, "end": { "line": 88, "column": 40 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 88, "column": 42 }, "end": { "line": 88, "column": 43 } } }, "loc": { "start": { "line": 88, "column": 42 }, "end": { "line": 88, "column": 45 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "body", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 89, "column": 25 }, "end": { "line": 89, "column": 29 } } }, "loc": { "start": { "line": 89, "column": 25 }, "end": { "line": 89, "column": 31 } } }, "loc": { "start": { "line": 89, "column": 25 }, "end": { "line": 89, "column": 31 } } }, "decorators": [], "loc": { "start": { "line": 89, "column": 18 }, "end": { "line": 89, "column": 22 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 89, "column": 32 }, "end": { "line": 89, "column": 36 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 89, "column": 37 }, "end": { "line": 89, "column": 43 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 89, "column": 32 }, "end": { "line": 89, "column": 43 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 89, "column": 44 }, "end": { "line": 89, "column": 45 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 89, "column": 32 }, "end": { "line": 89, "column": 46 } } }, "loc": { "start": { "line": 89, "column": 18 }, "end": { "line": 89, "column": 46 } } } ], "kind": "let", "loc": { "start": { "line": 89, "column": 14 }, "end": { "line": 89, "column": 47 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "body", "decorators": [], "loc": { "start": { "line": 90, "column": 14 }, "end": { "line": 90, "column": 18 } } }, "property": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 90, "column": 19 }, "end": { "line": 90, "column": 20 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 90, "column": 14 }, "end": { "line": 90, "column": 20 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dt", "decorators": [], "loc": { "start": { "line": 90, "column": 24 }, "end": { "line": 90, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "body", "decorators": [], "loc": { "start": { "line": 90, "column": 29 }, "end": { "line": 90, "column": 33 } } }, "property": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 90, "column": 34 }, "end": { "line": 90, "column": 36 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 90, "column": 29 }, "end": { "line": 90, "column": 36 } } }, "loc": { "start": { "line": 90, "column": 24 }, "end": { "line": 90, "column": 36 } } }, "loc": { "start": { "line": 90, "column": 14 }, "end": { "line": 90, "column": 36 } } }, "loc": { "start": { "line": 90, "column": 14 }, "end": { "line": 90, "column": 37 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "body", "decorators": [], "loc": { "start": { "line": 91, "column": 14 }, "end": { "line": 91, "column": 18 } } }, "property": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 91, "column": 19 }, "end": { "line": 91, "column": 20 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 91, "column": 14 }, "end": { "line": 91, "column": 20 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dt", "decorators": [], "loc": { "start": { "line": 91, "column": 24 }, "end": { "line": 91, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "body", "decorators": [], "loc": { "start": { "line": 91, "column": 29 }, "end": { "line": 91, "column": 33 } } }, "property": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 91, "column": 34 }, "end": { "line": 91, "column": 36 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 91, "column": 29 }, "end": { "line": 91, "column": 36 } } }, "loc": { "start": { "line": 91, "column": 24 }, "end": { "line": 91, "column": 36 } } }, "loc": { "start": { "line": 91, "column": 14 }, "end": { "line": 91, "column": 36 } } }, "loc": { "start": { "line": 91, "column": 14 }, "end": { "line": 91, "column": 37 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "body", "decorators": [], "loc": { "start": { "line": 92, "column": 14 }, "end": { "line": 92, "column": 18 } } }, "property": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 92, "column": 19 }, "end": { "line": 92, "column": 20 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 92, "column": 14 }, "end": { "line": 92, "column": 20 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dt", "decorators": [], "loc": { "start": { "line": 92, "column": 24 }, "end": { "line": 92, "column": 26 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "body", "decorators": [], "loc": { "start": { "line": 92, "column": 29 }, "end": { "line": 92, "column": 33 } } }, "property": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 92, "column": 34 }, "end": { "line": 92, "column": 36 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 92, "column": 29 }, "end": { "line": 92, "column": 36 } } }, "loc": { "start": { "line": 92, "column": 24 }, "end": { "line": 92, "column": 36 } } }, "loc": { "start": { "line": 92, "column": 14 }, "end": { "line": 92, "column": 36 } } }, "loc": { "start": { "line": 92, "column": 14 }, "end": { "line": 92, "column": 37 } } } ], "loc": { "start": { "line": 88, "column": 47 }, "end": { "line": 93, "column": 11 } } }, "loc": { "start": { "line": 88, "column": 10 }, "end": { "line": 93, "column": 11 } } } ], "loc": { "start": { "line": 64, "column": 41 }, "end": { "line": 94, "column": 7 } } }, "loc": { "start": { "line": 64, "column": 21 }, "end": { "line": 94, "column": 7 } } }, "loc": { "start": { "line": 64, "column": 21 }, "end": { "line": 94, "column": 7 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 64, "column": 6 }, "end": { "line": 94, "column": 7 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "energy", "decorators": [], "loc": { "start": { "line": 95, "column": 14 }, "end": { "line": 95, "column": 20 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "energy", "decorators": [], "loc": { "start": { "line": 95, "column": 14 }, "end": { "line": 95, "column": 20 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 95, "column": 24 }, "end": { "line": 95, "column": 30 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "dx", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 96, "column": 19 }, "end": { "line": 96, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 96, "column": 14 }, "end": { "line": 96, "column": 16 } } }, "init": null, "loc": { "start": { "line": 96, "column": 14 }, "end": { "line": 96, "column": 16 } } } ], "kind": "let", "loc": { "start": { "line": 96, "column": 10 }, "end": { "line": 96, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "dy", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 97, "column": 19 }, "end": { "line": 97, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 97, "column": 14 }, "end": { "line": 97, "column": 16 } } }, "init": null, "loc": { "start": { "line": 97, "column": 14 }, "end": { "line": 97, "column": 16 } } } ], "kind": "let", "loc": { "start": { "line": 97, "column": 10 }, "end": { "line": 97, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "dz", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 98, "column": 19 }, "end": { "line": 98, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 98, "column": 14 }, "end": { "line": 98, "column": 16 } } }, "init": null, "loc": { "start": { "line": 98, "column": 14 }, "end": { "line": 98, "column": 16 } } } ], "kind": "let", "loc": { "start": { "line": 98, "column": 10 }, "end": { "line": 98, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "distance", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 99, "column": 25 }, "end": { "line": 99, "column": 31 } } }, "decorators": [], "loc": { "start": { "line": 99, "column": 14 }, "end": { "line": 99, "column": 22 } } }, "init": null, "loc": { "start": { "line": 99, "column": 14 }, "end": { "line": 99, "column": 22 } } } ], "kind": "let", "loc": { "start": { "line": 99, "column": 10 }, "end": { "line": 99, "column": 33 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 100, "column": 18 }, "end": { "line": 100, "column": 24 } } }, "decorators": [], "loc": { "start": { "line": 100, "column": 14 }, "end": { "line": 100, "column": 15 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 100, "column": 27 }, "end": { "line": 100, "column": 30 } } }, "loc": { "start": { "line": 100, "column": 14 }, "end": { "line": 100, "column": 30 } } } ], "kind": "let", "loc": { "start": { "line": 100, "column": 10 }, "end": { "line": 100, "column": 31 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "size", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 101, "column": 21 }, "end": { "line": 101, "column": 24 } } }, "decorators": [], "loc": { "start": { "line": 101, "column": 14 }, "end": { "line": 101, "column": 18 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 101, "column": 27 }, "end": { "line": 101, "column": 31 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 101, "column": 32 }, "end": { "line": 101, "column": 38 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 101, "column": 27 }, "end": { "line": 101, "column": 38 } } }, "property": { "type": "Identifier", "name": "length", "decorators": [], "loc": { "start": { "line": 101, "column": 39 }, "end": { "line": 101, "column": 45 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 101, "column": 27 }, "end": { "line": 101, "column": 45 } } }, "loc": { "start": { "line": 101, "column": 14 }, "end": { "line": 101, "column": 45 } } } ], "kind": "let", "loc": { "start": { "line": 101, "column": 10 }, "end": { "line": 101, "column": 46 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 102, "column": 23 }, "end": { "line": 102, "column": 26 } } }, "decorators": [], "loc": { "start": { "line": 102, "column": 19 }, "end": { "line": 102, "column": 20 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 102, "column": 29 }, "end": { "line": 102, "column": 30 } } }, "loc": { "start": { "line": 102, "column": 19 }, "end": { "line": 102, "column": 30 } } } ], "kind": "let", "loc": { "start": { "line": 102, "column": 15 }, "end": { "line": 102, "column": 30 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 102, "column": 32 }, "end": { "line": 102, "column": 33 } } }, "right": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 102, "column": 36 }, "end": { "line": 102, "column": 40 } } }, "loc": { "start": { "line": 102, "column": 32 }, "end": { "line": 102, "column": 40 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 102, "column": 42 }, "end": { "line": 102, "column": 43 } } }, "loc": { "start": { "line": 102, "column": 42 }, "end": { "line": 102, "column": 45 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "bodyi", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 103, "column": 26 }, "end": { "line": 103, "column": 30 } } }, "loc": { "start": { "line": 103, "column": 26 }, "end": { "line": 103, "column": 32 } } }, "loc": { "start": { "line": 103, "column": 26 }, "end": { "line": 103, "column": 32 } } }, "decorators": [], "loc": { "start": { "line": 103, "column": 18 }, "end": { "line": 103, "column": 23 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 103, "column": 33 }, "end": { "line": 103, "column": 37 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 103, "column": 38 }, "end": { "line": 103, "column": 44 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 103, "column": 33 }, "end": { "line": 103, "column": 44 } } }, "property": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 103, "column": 45 }, "end": { "line": 103, "column": 46 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 103, "column": 33 }, "end": { "line": 103, "column": 47 } } }, "loc": { "start": { "line": 103, "column": 18 }, "end": { "line": 103, "column": 47 } } } ], "kind": "let", "loc": { "start": { "line": 103, "column": 14 }, "end": { "line": 103, "column": 48 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "e", "decorators": [], "loc": { "start": { "line": 104, "column": 14 }, "end": { "line": 104, "column": 15 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.5, "loc": { "start": { "line": 104, "column": 19 }, "end": { "line": 104, "column": 22 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 104, "column": 25 }, "end": { "line": 104, "column": 30 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 104, "column": 31 }, "end": { "line": 104, "column": 35 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 25 }, "end": { "line": 104, "column": 35 } } }, "loc": { "start": { "line": 104, "column": 19 }, "end": { "line": 104, "column": 35 } } }, "right": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 104, "column": 39 }, "end": { "line": 104, "column": 44 } } }, "property": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 104, "column": 45 }, "end": { "line": 104, "column": 47 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 39 }, "end": { "line": 104, "column": 47 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 104, "column": 50 }, "end": { "line": 104, "column": 55 } } }, "property": { "type": "Identifier", "name": "vx", "decorators": [], "loc": { "start": { "line": 104, "column": 56 }, "end": { "line": 104, "column": 58 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 50 }, "end": { "line": 104, "column": 58 } } }, "loc": { "start": { "line": 104, "column": 39 }, "end": { "line": 104, "column": 58 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 104, "column": 61 }, "end": { "line": 104, "column": 66 } } }, "property": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 104, "column": 67 }, "end": { "line": 104, "column": 69 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 61 }, "end": { "line": 104, "column": 69 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 104, "column": 72 }, "end": { "line": 104, "column": 77 } } }, "property": { "type": "Identifier", "name": "vy", "decorators": [], "loc": { "start": { "line": 104, "column": 78 }, "end": { "line": 104, "column": 80 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 72 }, "end": { "line": 104, "column": 80 } } }, "loc": { "start": { "line": 104, "column": 61 }, "end": { "line": 104, "column": 80 } } }, "loc": { "start": { "line": 104, "column": 39 }, "end": { "line": 104, "column": 80 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 104, "column": 83 }, "end": { "line": 104, "column": 88 } } }, "property": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 104, "column": 89 }, "end": { "line": 104, "column": 91 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 83 }, "end": { "line": 104, "column": 91 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 104, "column": 94 }, "end": { "line": 104, "column": 99 } } }, "property": { "type": "Identifier", "name": "vz", "decorators": [], "loc": { "start": { "line": 104, "column": 100 }, "end": { "line": 104, "column": 102 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 104, "column": 94 }, "end": { "line": 104, "column": 102 } } }, "loc": { "start": { "line": 104, "column": 83 }, "end": { "line": 104, "column": 102 } } }, "loc": { "start": { "line": 104, "column": 38 }, "end": { "line": 104, "column": 103 } } }, "loc": { "start": { "line": 104, "column": 19 }, "end": { "line": 104, "column": 103 } } }, "loc": { "start": { "line": 104, "column": 14 }, "end": { "line": 104, "column": 103 } } }, "loc": { "start": { "line": 104, "column": 14 }, "end": { "line": 104, "column": 104 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "j", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 105, "column": 27 }, "end": { "line": 105, "column": 30 } } }, "decorators": [], "loc": { "start": { "line": 105, "column": 23 }, "end": { "line": 105, "column": 24 } } }, "init": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 105, "column": 33 }, "end": { "line": 105, "column": 34 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 105, "column": 37 }, "end": { "line": 105, "column": 38 } } }, "loc": { "start": { "line": 105, "column": 33 }, "end": { "line": 105, "column": 38 } } }, "loc": { "start": { "line": 105, "column": 23 }, "end": { "line": 105, "column": 38 } } } ], "kind": "let", "loc": { "start": { "line": 105, "column": 19 }, "end": { "line": 105, "column": 38 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 105, "column": 40 }, "end": { "line": 105, "column": 41 } } }, "right": { "type": "Identifier", "name": "size", "decorators": [], "loc": { "start": { "line": 105, "column": 44 }, "end": { "line": 105, "column": 48 } } }, "loc": { "start": { "line": 105, "column": 40 }, "end": { "line": 105, "column": 48 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 105, "column": 50 }, "end": { "line": 105, "column": 51 } } }, "loc": { "start": { "line": 105, "column": 50 }, "end": { "line": 105, "column": 53 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "bodyj", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 106, "column": 30 }, "end": { "line": 106, "column": 34 } } }, "loc": { "start": { "line": 106, "column": 30 }, "end": { "line": 106, "column": 36 } } }, "loc": { "start": { "line": 106, "column": 30 }, "end": { "line": 106, "column": 36 } } }, "decorators": [], "loc": { "start": { "line": 106, "column": 22 }, "end": { "line": 106, "column": 27 } } }, "init": { "type": "MemberExpression", "object": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 106, "column": 37 }, "end": { "line": 106, "column": 41 } } }, "property": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 106, "column": 42 }, "end": { "line": 106, "column": 48 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 106, "column": 37 }, "end": { "line": 106, "column": 48 } } }, "property": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 106, "column": 49 }, "end": { "line": 106, "column": 50 } } }, "computed": true, "optional": false, "loc": { "start": { "line": 106, "column": 37 }, "end": { "line": 106, "column": 51 } } }, "loc": { "start": { "line": 106, "column": 22 }, "end": { "line": 106, "column": 51 } } } ], "kind": "let", "loc": { "start": { "line": 106, "column": 18 }, "end": { "line": 106, "column": 52 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "dx", "decorators": [], "loc": { "start": { "line": 107, "column": 18 }, "end": { "line": 107, "column": 20 } } }, "right": { "type": "BinaryExpression", "operator": "-", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 107, "column": 23 }, "end": { "line": 107, "column": 28 } } }, "property": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 107, "column": 29 }, "end": { "line": 107, "column": 30 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 107, "column": 23 }, "end": { "line": 107, "column": 30 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 107, "column": 33 }, "end": { "line": 107, "column": 38 } } }, "property": { "type": "Identifier", "name": "x", "decorators": [], "loc": { "start": { "line": 107, "column": 39 }, "end": { "line": 107, "column": 40 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 107, "column": 33 }, "end": { "line": 107, "column": 40 } } }, "loc": { "start": { "line": 107, "column": 23 }, "end": { "line": 107, "column": 40 } } }, "loc": { "start": { "line": 107, "column": 18 }, "end": { "line": 107, "column": 40 } } }, "loc": { "start": { "line": 107, "column": 18 }, "end": { "line": 107, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "dy", "decorators": [], "loc": { "start": { "line": 108, "column": 18 }, "end": { "line": 108, "column": 20 } } }, "right": { "type": "BinaryExpression", "operator": "-", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 108, "column": 23 }, "end": { "line": 108, "column": 28 } } }, "property": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 108, "column": 29 }, "end": { "line": 108, "column": 30 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 108, "column": 23 }, "end": { "line": 108, "column": 30 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 108, "column": 33 }, "end": { "line": 108, "column": 38 } } }, "property": { "type": "Identifier", "name": "y", "decorators": [], "loc": { "start": { "line": 108, "column": 39 }, "end": { "line": 108, "column": 40 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 108, "column": 33 }, "end": { "line": 108, "column": 40 } } }, "loc": { "start": { "line": 108, "column": 23 }, "end": { "line": 108, "column": 40 } } }, "loc": { "start": { "line": 108, "column": 18 }, "end": { "line": 108, "column": 40 } } }, "loc": { "start": { "line": 108, "column": 18 }, "end": { "line": 108, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "dz", "decorators": [], "loc": { "start": { "line": 109, "column": 18 }, "end": { "line": 109, "column": 20 } } }, "right": { "type": "BinaryExpression", "operator": "-", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 109, "column": 23 }, "end": { "line": 109, "column": 28 } } }, "property": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 109, "column": 29 }, "end": { "line": 109, "column": 30 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 109, "column": 23 }, "end": { "line": 109, "column": 30 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 109, "column": 33 }, "end": { "line": 109, "column": 38 } } }, "property": { "type": "Identifier", "name": "z", "decorators": [], "loc": { "start": { "line": 109, "column": 39 }, "end": { "line": 109, "column": 40 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 109, "column": 33 }, "end": { "line": 109, "column": 40 } } }, "loc": { "start": { "line": 109, "column": 23 }, "end": { "line": 109, "column": 40 } } }, "loc": { "start": { "line": 109, "column": 18 }, "end": { "line": 109, "column": 40 } } }, "loc": { "start": { "line": 109, "column": 18 }, "end": { "line": 109, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "distance", "decorators": [], "loc": { "start": { "line": 110, "column": 18 }, "end": { "line": 110, "column": 26 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "sqrt", "decorators": [], "loc": { "start": { "line": 110, "column": 29 }, "end": { "line": 110, "column": 33 } } }, "arguments": [ { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dx", "decorators": [], "loc": { "start": { "line": 110, "column": 34 }, "end": { "line": 110, "column": 36 } } }, "right": { "type": "Identifier", "name": "dx", "decorators": [], "loc": { "start": { "line": 110, "column": 39 }, "end": { "line": 110, "column": 41 } } }, "loc": { "start": { "line": 110, "column": 34 }, "end": { "line": 110, "column": 41 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dy", "decorators": [], "loc": { "start": { "line": 110, "column": 44 }, "end": { "line": 110, "column": 46 } } }, "right": { "type": "Identifier", "name": "dy", "decorators": [], "loc": { "start": { "line": 110, "column": 49 }, "end": { "line": 110, "column": 51 } } }, "loc": { "start": { "line": 110, "column": 44 }, "end": { "line": 110, "column": 51 } } }, "loc": { "start": { "line": 110, "column": 34 }, "end": { "line": 110, "column": 51 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "dz", "decorators": [], "loc": { "start": { "line": 110, "column": 54 }, "end": { "line": 110, "column": 56 } } }, "right": { "type": "Identifier", "name": "dz", "decorators": [], "loc": { "start": { "line": 110, "column": 59 }, "end": { "line": 110, "column": 61 } } }, "loc": { "start": { "line": 110, "column": 54 }, "end": { "line": 110, "column": 61 } } }, "loc": { "start": { "line": 110, "column": 34 }, "end": { "line": 110, "column": 61 } } } ], "optional": false, "loc": { "start": { "line": 110, "column": 29 }, "end": { "line": 110, "column": 62 } } }, "loc": { "start": { "line": 110, "column": 18 }, "end": { "line": 110, "column": 62 } } }, "loc": { "start": { "line": 110, "column": 18 }, "end": { "line": 110, "column": 63 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "-=", "left": { "type": "Identifier", "name": "e", "decorators": [], "loc": { "start": { "line": 111, "column": 18 }, "end": { "line": 111, "column": 19 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyi", "decorators": [], "loc": { "start": { "line": 111, "column": 24 }, "end": { "line": 111, "column": 29 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 111, "column": 30 }, "end": { "line": 111, "column": 34 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 111, "column": 24 }, "end": { "line": 111, "column": 34 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodyj", "decorators": [], "loc": { "start": { "line": 111, "column": 37 }, "end": { "line": 111, "column": 42 } } }, "property": { "type": "Identifier", "name": "mass", "decorators": [], "loc": { "start": { "line": 111, "column": 43 }, "end": { "line": 111, "column": 47 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 111, "column": 37 }, "end": { "line": 111, "column": 47 } } }, "loc": { "start": { "line": 111, "column": 23 }, "end": { "line": 111, "column": 48 } } }, "right": { "type": "Identifier", "name": "distance", "decorators": [], "loc": { "start": { "line": 111, "column": 51 }, "end": { "line": 111, "column": 59 } } }, "loc": { "start": { "line": 111, "column": 23 }, "end": { "line": 111, "column": 59 } } }, "loc": { "start": { "line": 111, "column": 18 }, "end": { "line": 111, "column": 59 } } }, "loc": { "start": { "line": 111, "column": 18 }, "end": { "line": 111, "column": 60 } } } ], "loc": { "start": { "line": 105, "column": 55 }, "end": { "line": 112, "column": 15 } } }, "loc": { "start": { "line": 105, "column": 14 }, "end": { "line": 112, "column": 15 } } } ], "loc": { "start": { "line": 102, "column": 47 }, "end": { "line": 113, "column": 11 } } }, "loc": { "start": { "line": 102, "column": 10 }, "end": { "line": 113, "column": 11 } } }, { "type": "ReturnStatement", "argument": { "type": "Identifier", "name": "e", "decorators": [], "loc": { "start": { "line": 114, "column": 17 }, "end": { "line": 114, "column": 18 } } }, "loc": { "start": { "line": 114, "column": 10 }, "end": { "line": 114, "column": 19 } } } ], "loc": { "start": { "line": 95, "column": 31 }, "end": { "line": 115, "column": 7 } } }, "loc": { "start": { "line": 95, "column": 20 }, "end": { "line": 115, "column": 7 } } }, "loc": { "start": { "line": 95, "column": 20 }, "end": { "line": 115, "column": 7 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 95, "column": 6 }, "end": { "line": 115, "column": 7 } } } ], "loc": { "start": { "line": 46, "column": 20 }, "end": { "line": 116, "column": 3 } } }, "loc": { "start": { "line": 46, "column": 1 }, "end": { "line": 116, "column": 3 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 118, "column": 14 }, "end": { "line": 118, "column": 25 } } }, "superClass": null, "implements": [], "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 119, "column": 21 }, "end": { "line": 119, "column": 31 } } }, "value": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 4, "loc": { "start": { "line": 119, "column": 43 }, "end": { "line": 119, "column": 44 } } }, "right": { "type": "Identifier", "name": "PI", "decorators": [], "loc": { "start": { "line": 119, "column": 47 }, "end": { "line": 119, "column": 49 } } }, "loc": { "start": { "line": 119, "column": 43 }, "end": { "line": 119, "column": 49 } } }, "right": { "type": "Identifier", "name": "PI", "decorators": [], "loc": { "start": { "line": 119, "column": 52 }, "end": { "line": 119, "column": 54 } } }, "loc": { "start": { "line": 119, "column": 43 }, "end": { "line": 119, "column": 54 } } }, "accessibility": "public", "static": true, "readonly": true, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 119, "column": 34 }, "end": { "line": 119, "column": 40 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 119, "column": 21 }, "end": { "line": 119, "column": 54 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 120, "column": 21 }, "end": { "line": 120, "column": 34 } } }, "value": { "type": "NumberLiteral", "value": 365.24, "loc": { "start": { "line": 120, "column": 46 }, "end": { "line": 120, "column": 52 } } }, "accessibility": "public", "static": true, "readonly": true, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 120, "column": 37 }, "end": { "line": 120, "column": 43 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 120, "column": 21 }, "end": { "line": 120, "column": 52 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "n1", "decorators": [], "loc": { "start": { "line": 121, "column": 5 }, "end": { "line": 121, "column": 7 } } }, "value": { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 121, "column": 16 }, "end": { "line": 121, "column": 17 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 121, "column": 10 }, "end": { "line": 121, "column": 13 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 121, "column": 5 }, "end": { "line": 121, "column": 17 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "n2", "decorators": [], "loc": { "start": { "line": 122, "column": 5 }, "end": { "line": 122, "column": 7 } } }, "value": { "type": "NumberLiteral", "value": 24, "loc": { "start": { "line": 122, "column": 16 }, "end": { "line": 122, "column": 18 } } }, "accessibility": "public", "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 122, "column": 10 }, "end": { "line": 122, "column": 13 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 122, "column": 5 }, "end": { "line": 122, "column": 18 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "jupiter", "decorators": [], "loc": { "start": { "line": 124, "column": 12 }, "end": { "line": 124, "column": 19 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "jupiter", "decorators": [], "loc": { "start": { "line": 124, "column": 12 }, "end": { "line": 124, "column": 19 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 124, "column": 23 }, "end": { "line": 124, "column": 27 } } }, "loc": { "start": { "line": 124, "column": 23 }, "end": { "line": 124, "column": 29 } } }, "loc": { "start": { "line": 124, "column": 23 }, "end": { "line": 124, "column": 29 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 125, "column": 20 }, "end": { "line": 125, "column": 24 } } }, "loc": { "start": { "line": 125, "column": 20 }, "end": { "line": 125, "column": 25 } } }, "loc": { "start": { "line": 125, "column": 20 }, "end": { "line": 125, "column": 25 } } }, "arguments": [ { "type": "NumberLiteral", "value": 4.84143, "loc": { "start": { "line": 125, "column": 25 }, "end": { "line": 125, "column": 48 } } }, { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 1.16032, "loc": { "start": { "line": 125, "column": 51 }, "end": { "line": 125, "column": 74 } } }, "loc": { "start": { "line": 125, "column": 50 }, "end": { "line": 125, "column": 74 } } }, { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 0.103622, "loc": { "start": { "line": 125, "column": 77 }, "end": { "line": 125, "column": 100 } } }, "loc": { "start": { "line": 125, "column": 76 }, "end": { "line": 125, "column": 100 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.00166008, "loc": { "start": { "line": 125, "column": 102 }, "end": { "line": 125, "column": 125 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 125, "column": 128 }, "end": { "line": 125, "column": 139 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 125, "column": 140 }, "end": { "line": 125, "column": 153 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 125, "column": 128 }, "end": { "line": 125, "column": 153 } } }, "loc": { "start": { "line": 125, "column": 102 }, "end": { "line": 125, "column": 153 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.00769901, "loc": { "start": { "line": 125, "column": 155 }, "end": { "line": 125, "column": 178 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 125, "column": 181 }, "end": { "line": 125, "column": 192 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 125, "column": 193 }, "end": { "line": 125, "column": 206 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 125, "column": 181 }, "end": { "line": 125, "column": 206 } } }, "loc": { "start": { "line": 125, "column": 155 }, "end": { "line": 125, "column": 206 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 6.9046e-05, "loc": { "start": { "line": 125, "column": 209 }, "end": { "line": 125, "column": 232 } } }, "loc": { "start": { "line": 125, "column": 208 }, "end": { "line": 125, "column": 232 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 125, "column": 235 }, "end": { "line": 125, "column": 246 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 125, "column": 247 }, "end": { "line": 125, "column": 260 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 125, "column": 235 }, "end": { "line": 125, "column": 260 } } }, "loc": { "start": { "line": 125, "column": 208 }, "end": { "line": 125, "column": 260 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.000954792, "loc": { "start": { "line": 125, "column": 262 }, "end": { "line": 125, "column": 285 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 125, "column": 288 }, "end": { "line": 125, "column": 299 } } }, "property": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 125, "column": 300 }, "end": { "line": 125, "column": 310 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 125, "column": 288 }, "end": { "line": 125, "column": 310 } } }, "loc": { "start": { "line": 125, "column": 262 }, "end": { "line": 125, "column": 310 } } } ], "loc": { "start": { "line": 125, "column": 16 }, "end": { "line": 125, "column": 312 } } }, "loc": { "start": { "line": 125, "column": 9 }, "end": { "line": 125, "column": 312 } } } ], "loc": { "start": { "line": 124, "column": 28 }, "end": { "line": 126, "column": 6 } } }, "loc": { "start": { "line": 124, "column": 19 }, "end": { "line": 126, "column": 6 } } }, "loc": { "start": { "line": 124, "column": 19 }, "end": { "line": 126, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 124, "column": 5 }, "end": { "line": 126, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "saturn", "decorators": [], "loc": { "start": { "line": 127, "column": 12 }, "end": { "line": 127, "column": 18 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "saturn", "decorators": [], "loc": { "start": { "line": 127, "column": 12 }, "end": { "line": 127, "column": 18 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 127, "column": 22 }, "end": { "line": 127, "column": 26 } } }, "loc": { "start": { "line": 127, "column": 22 }, "end": { "line": 127, "column": 28 } } }, "loc": { "start": { "line": 127, "column": 22 }, "end": { "line": 127, "column": 28 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 128, "column": 20 }, "end": { "line": 128, "column": 24 } } }, "loc": { "start": { "line": 128, "column": 20 }, "end": { "line": 128, "column": 25 } } }, "loc": { "start": { "line": 128, "column": 20 }, "end": { "line": 128, "column": 25 } } }, "arguments": [ { "type": "NumberLiteral", "value": 8.34337, "loc": { "start": { "line": 128, "column": 25 }, "end": { "line": 128, "column": 48 } } }, { "type": "NumberLiteral", "value": 4.1248, "loc": { "start": { "line": 128, "column": 50 }, "end": { "line": 128, "column": 73 } } }, { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 0.403523, "loc": { "start": { "line": 128, "column": 76 }, "end": { "line": 128, "column": 99 } } }, "loc": { "start": { "line": 128, "column": 75 }, "end": { "line": 128, "column": 99 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 0.00276743, "loc": { "start": { "line": 128, "column": 102 }, "end": { "line": 128, "column": 125 } } }, "loc": { "start": { "line": 128, "column": 101 }, "end": { "line": 128, "column": 125 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 128, "column": 128 }, "end": { "line": 128, "column": 139 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 128, "column": 140 }, "end": { "line": 128, "column": 153 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 128, "column": 128 }, "end": { "line": 128, "column": 153 } } }, "loc": { "start": { "line": 128, "column": 101 }, "end": { "line": 128, "column": 153 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.00499853, "loc": { "start": { "line": 128, "column": 155 }, "end": { "line": 128, "column": 178 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 128, "column": 181 }, "end": { "line": 128, "column": 192 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 128, "column": 193 }, "end": { "line": 128, "column": 206 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 128, "column": 181 }, "end": { "line": 128, "column": 206 } } }, "loc": { "start": { "line": 128, "column": 155 }, "end": { "line": 128, "column": 206 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 2.30417e-05, "loc": { "start": { "line": 128, "column": 208 }, "end": { "line": 128, "column": 231 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 128, "column": 234 }, "end": { "line": 128, "column": 245 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 128, "column": 246 }, "end": { "line": 128, "column": 259 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 128, "column": 234 }, "end": { "line": 128, "column": 259 } } }, "loc": { "start": { "line": 128, "column": 208 }, "end": { "line": 128, "column": 259 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.000285886, "loc": { "start": { "line": 128, "column": 261 }, "end": { "line": 128, "column": 284 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 128, "column": 287 }, "end": { "line": 128, "column": 298 } } }, "property": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 128, "column": 299 }, "end": { "line": 128, "column": 309 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 128, "column": 287 }, "end": { "line": 128, "column": 309 } } }, "loc": { "start": { "line": 128, "column": 261 }, "end": { "line": 128, "column": 309 } } } ], "loc": { "start": { "line": 128, "column": 16 }, "end": { "line": 128, "column": 311 } } }, "loc": { "start": { "line": 128, "column": 9 }, "end": { "line": 128, "column": 311 } } } ], "loc": { "start": { "line": 127, "column": 27 }, "end": { "line": 129, "column": 6 } } }, "loc": { "start": { "line": 127, "column": 18 }, "end": { "line": 129, "column": 6 } } }, "loc": { "start": { "line": 127, "column": 18 }, "end": { "line": 129, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 127, "column": 5 }, "end": { "line": 129, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "uranus", "decorators": [], "loc": { "start": { "line": 130, "column": 12 }, "end": { "line": 130, "column": 18 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "uranus", "decorators": [], "loc": { "start": { "line": 130, "column": 12 }, "end": { "line": 130, "column": 18 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 130, "column": 22 }, "end": { "line": 130, "column": 26 } } }, "loc": { "start": { "line": 130, "column": 22 }, "end": { "line": 130, "column": 28 } } }, "loc": { "start": { "line": 130, "column": 22 }, "end": { "line": 130, "column": 28 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 131, "column": 20 }, "end": { "line": 131, "column": 24 } } }, "loc": { "start": { "line": 131, "column": 20 }, "end": { "line": 131, "column": 25 } } }, "loc": { "start": { "line": 131, "column": 20 }, "end": { "line": 131, "column": 25 } } }, "arguments": [ { "type": "NumberLiteral", "value": 12.8944, "loc": { "start": { "line": 131, "column": 25 }, "end": { "line": 131, "column": 48 } } }, { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 15.1112, "loc": { "start": { "line": 131, "column": 51 }, "end": { "line": 131, "column": 74 } } }, "loc": { "start": { "line": 131, "column": 50 }, "end": { "line": 131, "column": 74 } } }, { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 0.223308, "loc": { "start": { "line": 131, "column": 77 }, "end": { "line": 131, "column": 100 } } }, "loc": { "start": { "line": 131, "column": 76 }, "end": { "line": 131, "column": 100 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.0029646, "loc": { "start": { "line": 131, "column": 102 }, "end": { "line": 131, "column": 125 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 131, "column": 128 }, "end": { "line": 131, "column": 139 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 131, "column": 140 }, "end": { "line": 131, "column": 153 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 131, "column": 128 }, "end": { "line": 131, "column": 153 } } }, "loc": { "start": { "line": 131, "column": 102 }, "end": { "line": 131, "column": 153 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.00237847, "loc": { "start": { "line": 131, "column": 155 }, "end": { "line": 131, "column": 178 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 131, "column": 181 }, "end": { "line": 131, "column": 192 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 131, "column": 193 }, "end": { "line": 131, "column": 206 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 131, "column": 181 }, "end": { "line": 131, "column": 206 } } }, "loc": { "start": { "line": 131, "column": 155 }, "end": { "line": 131, "column": 206 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 2.9659e-05, "loc": { "start": { "line": 131, "column": 209 }, "end": { "line": 131, "column": 232 } } }, "loc": { "start": { "line": 131, "column": 208 }, "end": { "line": 131, "column": 232 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 131, "column": 235 }, "end": { "line": 131, "column": 246 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 131, "column": 247 }, "end": { "line": 131, "column": 260 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 131, "column": 235 }, "end": { "line": 131, "column": 260 } } }, "loc": { "start": { "line": 131, "column": 208 }, "end": { "line": 131, "column": 260 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 4.36624e-05, "loc": { "start": { "line": 131, "column": 262 }, "end": { "line": 131, "column": 285 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 131, "column": 288 }, "end": { "line": 131, "column": 299 } } }, "property": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 131, "column": 300 }, "end": { "line": 131, "column": 310 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 131, "column": 288 }, "end": { "line": 131, "column": 310 } } }, "loc": { "start": { "line": 131, "column": 262 }, "end": { "line": 131, "column": 310 } } } ], "loc": { "start": { "line": 131, "column": 16 }, "end": { "line": 131, "column": 312 } } }, "loc": { "start": { "line": 131, "column": 9 }, "end": { "line": 131, "column": 312 } } } ], "loc": { "start": { "line": 130, "column": 27 }, "end": { "line": 132, "column": 6 } } }, "loc": { "start": { "line": 130, "column": 18 }, "end": { "line": 132, "column": 6 } } }, "loc": { "start": { "line": 130, "column": 18 }, "end": { "line": 132, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 130, "column": 5 }, "end": { "line": 132, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "neptune", "decorators": [], "loc": { "start": { "line": 133, "column": 12 }, "end": { "line": 133, "column": 19 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "neptune", "decorators": [], "loc": { "start": { "line": 133, "column": 12 }, "end": { "line": 133, "column": 19 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 133, "column": 23 }, "end": { "line": 133, "column": 27 } } }, "loc": { "start": { "line": 133, "column": 23 }, "end": { "line": 133, "column": 29 } } }, "loc": { "start": { "line": 133, "column": 23 }, "end": { "line": 133, "column": 29 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 134, "column": 20 }, "end": { "line": 134, "column": 24 } } }, "loc": { "start": { "line": 134, "column": 20 }, "end": { "line": 134, "column": 25 } } }, "loc": { "start": { "line": 134, "column": 20 }, "end": { "line": 134, "column": 25 } } }, "arguments": [ { "type": "NumberLiteral", "value": 15.3797, "loc": { "start": { "line": 134, "column": 25 }, "end": { "line": 134, "column": 48 } } }, { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 25.9193, "loc": { "start": { "line": 134, "column": 51 }, "end": { "line": 134, "column": 74 } } }, "loc": { "start": { "line": 134, "column": 50 }, "end": { "line": 134, "column": 74 } } }, { "type": "NumberLiteral", "value": 0.179259, "loc": { "start": { "line": 134, "column": 76 }, "end": { "line": 134, "column": 99 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.00268068, "loc": { "start": { "line": 134, "column": 101 }, "end": { "line": 134, "column": 124 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 134, "column": 127 }, "end": { "line": 134, "column": 138 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 134, "column": 139 }, "end": { "line": 134, "column": 152 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 134, "column": 127 }, "end": { "line": 134, "column": 152 } } }, "loc": { "start": { "line": 134, "column": 101 }, "end": { "line": 134, "column": 152 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 0.00162824, "loc": { "start": { "line": 134, "column": 154 }, "end": { "line": 134, "column": 177 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 134, "column": 180 }, "end": { "line": 134, "column": 191 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 134, "column": 192 }, "end": { "line": 134, "column": 205 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 134, "column": 180 }, "end": { "line": 134, "column": 205 } } }, "loc": { "start": { "line": 134, "column": 154 }, "end": { "line": 134, "column": 205 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 9.51592e-05, "loc": { "start": { "line": 134, "column": 208 }, "end": { "line": 134, "column": 231 } } }, "loc": { "start": { "line": 134, "column": 207 }, "end": { "line": 134, "column": 231 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 134, "column": 234 }, "end": { "line": 134, "column": 245 } } }, "property": { "type": "Identifier", "name": "DAYS_PER_YEAR", "decorators": [], "loc": { "start": { "line": 134, "column": 246 }, "end": { "line": 134, "column": 259 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 134, "column": 234 }, "end": { "line": 134, "column": 259 } } }, "loc": { "start": { "line": 134, "column": 207 }, "end": { "line": 134, "column": 259 } } }, { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 5.15139e-05, "loc": { "start": { "line": 134, "column": 261 }, "end": { "line": 134, "column": 284 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 134, "column": 287 }, "end": { "line": 134, "column": 298 } } }, "property": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 134, "column": 299 }, "end": { "line": 134, "column": 309 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 134, "column": 287 }, "end": { "line": 134, "column": 309 } } }, "loc": { "start": { "line": 134, "column": 261 }, "end": { "line": 134, "column": 309 } } } ], "loc": { "start": { "line": 134, "column": 16 }, "end": { "line": 134, "column": 311 } } }, "loc": { "start": { "line": 134, "column": 9 }, "end": { "line": 134, "column": 311 } } } ], "loc": { "start": { "line": 133, "column": 28 }, "end": { "line": 135, "column": 6 } } }, "loc": { "start": { "line": 133, "column": 19 }, "end": { "line": 135, "column": 6 } } }, "loc": { "start": { "line": 133, "column": 19 }, "end": { "line": 135, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 133, "column": 5 }, "end": { "line": 135, "column": 6 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "sun", "decorators": [], "loc": { "start": { "line": 136, "column": 12 }, "end": { "line": 136, "column": 15 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "sun", "decorators": [], "loc": { "start": { "line": 136, "column": 12 }, "end": { "line": 136, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 136, "column": 19 }, "end": { "line": 136, "column": 23 } } }, "loc": { "start": { "line": 136, "column": 19 }, "end": { "line": 136, "column": 25 } } }, "loc": { "start": { "line": 136, "column": 19 }, "end": { "line": 136, "column": 25 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ReturnStatement", "argument": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "Body", "decorators": [], "loc": { "start": { "line": 137, "column": 20 }, "end": { "line": 137, "column": 24 } } }, "loc": { "start": { "line": 137, "column": 20 }, "end": { "line": 137, "column": 25 } } }, "loc": { "start": { "line": 137, "column": 20 }, "end": { "line": 137, "column": 25 } } }, "arguments": [ { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 137, "column": 25 }, "end": { "line": 137, "column": 28 } } }, { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 137, "column": 30 }, "end": { "line": 137, "column": 33 } } }, { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 137, "column": 35 }, "end": { "line": 137, "column": 38 } } }, { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 137, "column": 40 }, "end": { "line": 137, "column": 43 } } }, { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 137, "column": 45 }, "end": { "line": 137, "column": 48 } } }, { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 137, "column": 50 }, "end": { "line": 137, "column": 53 } } }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 137, "column": 55 }, "end": { "line": 137, "column": 66 } } }, "property": { "type": "Identifier", "name": "SOLAR_MASS", "decorators": [], "loc": { "start": { "line": 137, "column": 67 }, "end": { "line": 137, "column": 77 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 137, "column": 55 }, "end": { "line": 137, "column": 77 } } } ], "loc": { "start": { "line": 137, "column": 16 }, "end": { "line": 137, "column": 79 } } }, "loc": { "start": { "line": 137, "column": 9 }, "end": { "line": 137, "column": 79 } } } ], "loc": { "start": { "line": 136, "column": 24 }, "end": { "line": 138, "column": 6 } } }, "loc": { "start": { "line": 136, "column": 15 }, "end": { "line": 138, "column": 6 } } }, "loc": { "start": { "line": 136, "column": 15 }, "end": { "line": 138, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 136, "column": 5 }, "end": { "line": 138, "column": 6 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "expected", "decorators": [], "loc": { "start": { "line": 139, "column": 14 }, "end": { "line": 139, "column": 22 } } }, "value": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 1.35249, "loc": { "start": { "line": 139, "column": 35 }, "end": { "line": 139, "column": 53 } } }, "loc": { "start": { "line": 139, "column": 34 }, "end": { "line": 139, "column": 53 } } }, "accessibility": "public", "static": false, "readonly": true, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 139, "column": 25 }, "end": { "line": 139, "column": 31 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 139, "column": 14 }, "end": { "line": 139, "column": 53 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "run", "decorators": [], "loc": { "start": { "line": 140, "column": 13 }, "end": { "line": 140, "column": 16 } } }, "kind": "method", "accessibility": "public", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "run", "decorators": [], "loc": { "start": { "line": 140, "column": 13 }, "end": { "line": 140, "column": 16 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 140, "column": 20 }, "end": { "line": 140, "column": 24 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "ret", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 141, "column": 19 }, "end": { "line": 141, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 141, "column": 13 }, "end": { "line": 141, "column": 16 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 141, "column": 28 }, "end": { "line": 141, "column": 29 } } }, "loc": { "start": { "line": 141, "column": 13 }, "end": { "line": 141, "column": 29 } } } ], "kind": "let", "loc": { "start": { "line": 141, "column": 9 }, "end": { "line": 141, "column": 30 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "n", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 142, "column": 22 }, "end": { "line": 142, "column": 25 } } }, "decorators": [], "loc": { "start": { "line": 142, "column": 18 }, "end": { "line": 142, "column": 19 } } }, "init": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 142, "column": 28 }, "end": { "line": 142, "column": 32 } } }, "property": { "type": "Identifier", "name": "n1", "decorators": [], "loc": { "start": { "line": 142, "column": 33 }, "end": { "line": 142, "column": 35 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 142, "column": 28 }, "end": { "line": 142, "column": 35 } } }, "loc": { "start": { "line": 142, "column": 18 }, "end": { "line": 142, "column": 35 } } } ], "kind": "let", "loc": { "start": { "line": 142, "column": 14 }, "end": { "line": 142, "column": 35 } } }, "test": { "type": "BinaryExpression", "operator": "<=", "left": { "type": "Identifier", "name": "n", "decorators": [], "loc": { "start": { "line": 142, "column": 37 }, "end": { "line": 142, "column": 38 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 142, "column": 42 }, "end": { "line": 142, "column": 46 } } }, "property": { "type": "Identifier", "name": "n2", "decorators": [], "loc": { "start": { "line": 142, "column": 47 }, "end": { "line": 142, "column": 49 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 142, "column": 42 }, "end": { "line": 142, "column": 49 } } }, "loc": { "start": { "line": 142, "column": 37 }, "end": { "line": 142, "column": 49 } } }, "update": { "type": "AssignmentExpression", "operator": "*=", "left": { "type": "Identifier", "name": "n", "decorators": [], "loc": { "start": { "line": 142, "column": 51 }, "end": { "line": 142, "column": 52 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 142, "column": 56 }, "end": { "line": 142, "column": 57 } } }, "loc": { "start": { "line": 142, "column": 51 }, "end": { "line": 142, "column": 57 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "bodies", "typeAnnotation": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "NBodySystem", "decorators": [], "loc": { "start": { "line": 143, "column": 26 }, "end": { "line": 143, "column": 37 } } }, "loc": { "start": { "line": 143, "column": 26 }, "end": { "line": 143, "column": 39 } } }, "loc": { "start": { "line": 143, "column": 26 }, "end": { "line": 143, "column": 39 } } }, "decorators": [], "loc": { "start": { "line": 143, "column": 17 }, "end": { "line": 143, "column": 23 } } }, "init": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "NBodySystem", "decorators": [], "loc": { "start": { "line": 143, "column": 44 }, "end": { "line": 143, "column": 55 } } }, "loc": { "start": { "line": 143, "column": 44 }, "end": { "line": 143, "column": 56 } } }, "loc": { "start": { "line": 143, "column": 44 }, "end": { "line": 143, "column": 56 } } }, "arguments": [ { "type": "ArrayExpression", "elements": [ { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 143, "column": 57 }, "end": { "line": 143, "column": 68 } } }, "property": { "type": "Identifier", "name": "sun", "decorators": [], "loc": { "start": { "line": 143, "column": 69 }, "end": { "line": 143, "column": 72 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 143, "column": 57 }, "end": { "line": 143, "column": 72 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 143, "column": 57 }, "end": { "line": 143, "column": 74 } } }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 143, "column": 76 }, "end": { "line": 143, "column": 87 } } }, "property": { "type": "Identifier", "name": "jupiter", "decorators": [], "loc": { "start": { "line": 143, "column": 88 }, "end": { "line": 143, "column": 95 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 143, "column": 76 }, "end": { "line": 143, "column": 95 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 143, "column": 76 }, "end": { "line": 143, "column": 97 } } }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 143, "column": 99 }, "end": { "line": 143, "column": 110 } } }, "property": { "type": "Identifier", "name": "saturn", "decorators": [], "loc": { "start": { "line": 143, "column": 111 }, "end": { "line": 143, "column": 117 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 143, "column": 99 }, "end": { "line": 143, "column": 117 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 143, "column": 99 }, "end": { "line": 143, "column": 119 } } }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 143, "column": 121 }, "end": { "line": 143, "column": 132 } } }, "property": { "type": "Identifier", "name": "uranus", "decorators": [], "loc": { "start": { "line": 143, "column": 133 }, "end": { "line": 143, "column": 139 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 143, "column": 121 }, "end": { "line": 143, "column": 139 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 143, "column": 121 }, "end": { "line": 143, "column": 141 } } }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 143, "column": 143 }, "end": { "line": 143, "column": 154 } } }, "property": { "type": "Identifier", "name": "neptune", "decorators": [], "loc": { "start": { "line": 143, "column": 155 }, "end": { "line": 143, "column": 162 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 143, "column": 143 }, "end": { "line": 143, "column": 162 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 143, "column": 143 }, "end": { "line": 143, "column": 164 } } } ], "loc": { "start": { "line": 143, "column": 56 }, "end": { "line": 143, "column": 165 } } } ], "loc": { "start": { "line": 143, "column": 40 }, "end": { "line": 143, "column": 167 } } }, "loc": { "start": { "line": 143, "column": 17 }, "end": { "line": 143, "column": 167 } } } ], "kind": "let", "loc": { "start": { "line": 143, "column": 13 }, "end": { "line": 143, "column": 167 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "max", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 144, "column": 23 }, "end": { "line": 144, "column": 26 } } }, "decorators": [], "loc": { "start": { "line": 144, "column": 17 }, "end": { "line": 144, "column": 20 } } }, "init": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "n", "decorators": [], "loc": { "start": { "line": 144, "column": 29 }, "end": { "line": 144, "column": 30 } } }, "right": { "type": "NumberLiteral", "value": 100, "loc": { "start": { "line": 144, "column": 33 }, "end": { "line": 144, "column": 36 } } }, "loc": { "start": { "line": 144, "column": 29 }, "end": { "line": 144, "column": 36 } } }, "loc": { "start": { "line": 144, "column": 17 }, "end": { "line": 144, "column": 36 } } } ], "kind": "let", "loc": { "start": { "line": 144, "column": 13 }, "end": { "line": 144, "column": 37 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "ret", "decorators": [], "loc": { "start": { "line": 145, "column": 13 }, "end": { "line": 145, "column": 16 } } }, "right": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 145, "column": 20 }, "end": { "line": 145, "column": 26 } } }, "property": { "type": "Identifier", "name": "energy", "decorators": [], "loc": { "start": { "line": 145, "column": 27 }, "end": { "line": 145, "column": 33 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 145, "column": 20 }, "end": { "line": 145, "column": 33 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 145, "column": 20 }, "end": { "line": 145, "column": 35 } } }, "loc": { "start": { "line": 145, "column": 13 }, "end": { "line": 145, "column": 35 } } }, "loc": { "start": { "line": 145, "column": 13 }, "end": { "line": 145, "column": 36 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 146, "column": 26 }, "end": { "line": 146, "column": 29 } } }, "decorators": [], "loc": { "start": { "line": 146, "column": 22 }, "end": { "line": 146, "column": 23 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 146, "column": 32 }, "end": { "line": 146, "column": 33 } } }, "loc": { "start": { "line": 146, "column": 22 }, "end": { "line": 146, "column": 33 } } } ], "kind": "let", "loc": { "start": { "line": 146, "column": 18 }, "end": { "line": 146, "column": 33 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 146, "column": 35 }, "end": { "line": 146, "column": 36 } } }, "right": { "type": "Identifier", "name": "max", "decorators": [], "loc": { "start": { "line": 146, "column": 39 }, "end": { "line": 146, "column": 42 } } }, "loc": { "start": { "line": 146, "column": 35 }, "end": { "line": 146, "column": 42 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "i", "decorators": [], "loc": { "start": { "line": 146, "column": 44 }, "end": { "line": 146, "column": 45 } } }, "loc": { "start": { "line": 146, "column": 44 }, "end": { "line": 146, "column": 47 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 147, "column": 17 }, "end": { "line": 147, "column": 23 } } }, "property": { "type": "Identifier", "name": "advance", "decorators": [], "loc": { "start": { "line": 147, "column": 24 }, "end": { "line": 147, "column": 31 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 147, "column": 17 }, "end": { "line": 147, "column": 31 } } }, "arguments": [ { "type": "NumberLiteral", "value": 0.01, "loc": { "start": { "line": 147, "column": 32 }, "end": { "line": 147, "column": 36 } } } ], "optional": false, "loc": { "start": { "line": 147, "column": 17 }, "end": { "line": 147, "column": 37 } } }, "loc": { "start": { "line": 147, "column": 17 }, "end": { "line": 147, "column": 38 } } } ], "loc": { "start": { "line": 146, "column": 49 }, "end": { "line": 148, "column": 14 } } }, "loc": { "start": { "line": 146, "column": 13 }, "end": { "line": 148, "column": 14 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "ret", "decorators": [], "loc": { "start": { "line": 149, "column": 13 }, "end": { "line": 149, "column": 16 } } }, "right": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "bodies", "decorators": [], "loc": { "start": { "line": 149, "column": 20 }, "end": { "line": 149, "column": 26 } } }, "property": { "type": "Identifier", "name": "energy", "decorators": [], "loc": { "start": { "line": 149, "column": 27 }, "end": { "line": 149, "column": 33 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 149, "column": 20 }, "end": { "line": 149, "column": 33 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 149, "column": 20 }, "end": { "line": 149, "column": 35 } } }, "loc": { "start": { "line": 149, "column": 13 }, "end": { "line": 149, "column": 35 } } }, "loc": { "start": { "line": 149, "column": 13 }, "end": { "line": 149, "column": 36 } } } ], "loc": { "start": { "line": 142, "column": 59 }, "end": { "line": 150, "column": 10 } } }, "loc": { "start": { "line": 142, "column": 9 }, "end": { "line": 150, "column": 10 } } }, { "type": "AssertStatement", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "ret", "decorators": [], "loc": { "start": { "line": 152, "column": 16 }, "end": { "line": 152, "column": 19 } } }, "right": { "type": "MemberExpression", "object": { "type": "ThisExpression", "loc": { "start": { "line": 152, "column": 23 }, "end": { "line": 152, "column": 27 } } }, "property": { "type": "Identifier", "name": "expected", "decorators": [], "loc": { "start": { "line": 152, "column": 28 }, "end": { "line": 152, "column": 36 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 152, "column": 23 }, "end": { "line": 152, "column": 36 } } }, "loc": { "start": { "line": 152, "column": 16 }, "end": { "line": 152, "column": 36 } } }, "second": { "type": "StringLiteral", "value": "Incorrect result", "loc": { "start": { "line": 152, "column": 38 }, "end": { "line": 152, "column": 56 } } }, "loc": { "start": { "line": 152, "column": 9 }, "end": { "line": 152, "column": 57 } } } ], "loc": { "start": { "line": 140, "column": 25 }, "end": { "line": 153, "column": 6 } } }, "loc": { "start": { "line": 140, "column": 16 }, "end": { "line": 153, "column": 6 } } }, "loc": { "start": { "line": 140, "column": 16 }, "end": { "line": 153, "column": 6 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 140, "column": 5 }, "end": { "line": 153, "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": 154, "column": 2 }, "end": { "line": 154, "column": 2 } } } ], "loc": { "start": { "line": 118, "column": 27 }, "end": { "line": 154, "column": 2 } } }, "loc": { "start": { "line": 118, "column": 8 }, "end": { "line": 154, "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": 156, "column": 10 }, "end": { "line": 156, "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": 156, "column": 10 }, "end": { "line": 156, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 156, "column": 18 }, "end": { "line": 156, "column": 22 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 157, "column": 7 }, "end": { "line": 157, "column": 8 } } }, "init": { "type": "ETSNewClassInstanceExpression", "typeReference": { "type": "ETSTypeReference", "part": { "type": "ETSTypeReferencePart", "name": { "type": "Identifier", "name": "AccessNBody", "decorators": [], "loc": { "start": { "line": 157, "column": 15 }, "end": { "line": 157, "column": 26 } } }, "loc": { "start": { "line": 157, "column": 15 }, "end": { "line": 157, "column": 27 } } }, "loc": { "start": { "line": 157, "column": 15 }, "end": { "line": 157, "column": 27 } } }, "arguments": [], "loc": { "start": { "line": 157, "column": 11 }, "end": { "line": 157, "column": 27 } } }, "loc": { "start": { "line": 157, "column": 7 }, "end": { "line": 157, "column": 27 } } } ], "kind": "let", "loc": { "start": { "line": 157, "column": 3 }, "end": { "line": 157, "column": 27 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "a", "decorators": [], "loc": { "start": { "line": 158, "column": 3 }, "end": { "line": 158, "column": 4 } } }, "property": { "type": "Identifier", "name": "run", "decorators": [], "loc": { "start": { "line": 158, "column": 5 }, "end": { "line": 158, "column": 8 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 158, "column": 3 }, "end": { "line": 158, "column": 8 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 158, "column": 3 }, "end": { "line": 158, "column": 10 } } }, "loc": { "start": { "line": 158, "column": 3 }, "end": { "line": 158, "column": 11 } } } ], "loc": { "start": { "line": 156, "column": 23 }, "end": { "line": 159, "column": 2 } } }, "loc": { "start": { "line": 156, "column": 14 }, "end": { "line": 159, "column": 2 } } }, "loc": { "start": { "line": 156, "column": 14 }, "end": { "line": 159, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 156, "column": 1 }, "end": { "line": 159, "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": 160, "column": 1 } } }