{ "type": "Script", "span": { "start": 0, "end": 616, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 0, "end": 198, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 7, "end": 8, "ctxt": 0 }, "value": "A", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 9, "end": 198, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 15, "end": 83, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 22, "end": 83, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 32, "end": 37, "ctxt": 0 }, "value": "Point", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 38, "end": 83, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 48, "end": 58, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 48, "end": 49, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 49, "end": 57, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 51, "end": 57, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 67, "end": 77, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 67, "end": 68, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 68, "end": 76, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 70, "end": 76, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } }, { "type": "ExportDeclaration", "span": { "start": 89, "end": 196, "ctxt": 0 }, "declaration": { "type": "TsModuleDeclaration", "span": { "start": 96, "end": 196, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 103, "end": 106, "ctxt": 0 }, "value": "inA", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 107, "end": 196, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 117, "end": 190, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 124, "end": 190, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 134, "end": 141, "ctxt": 0 }, "value": "Point3D", "optional": false }, "declare": false, "typeParams": null, "extends": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 150, "end": 155, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 150, "end": 155, "ctxt": 0 }, "value": "Point", "optional": false }, "typeArguments": null } ], "body": { "type": "TsInterfaceBody", "span": { "start": 156, "end": 190, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 170, "end": 180, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 170, "end": 171, "ctxt": 0 }, "value": "z", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 171, "end": 179, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 173, "end": 179, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } } ] } } } ] } }, { "type": "TsModuleDeclaration", "span": { "start": 224, "end": 254, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 231, "end": 232, "ctxt": 0 }, "value": "B", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 233, "end": 254, "ctxt": 0 }, "body": [ { "type": "TsImportEqualsDeclaration", "span": { "start": 239, "end": 252, "ctxt": 0 }, "declare": false, "isExport": false, "isTypeOnly": false, "id": { "type": "Identifier", "span": { "start": 246, "end": 247, "ctxt": 0 }, "value": "a", "optional": false }, "moduleRef": { "type": "Identifier", "span": { "start": 250, "end": 251, "ctxt": 0 }, "value": "A", "optional": false } } ] } }, { "type": "TsModuleDeclaration", "span": { "start": 280, "end": 406, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 287, "end": 288, "ctxt": 0 }, "value": "C", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 289, "end": 406, "ctxt": 0 }, "body": [ { "type": "TsImportEqualsDeclaration", "span": { "start": 295, "end": 308, "ctxt": 0 }, "declare": false, "isExport": false, "isTypeOnly": false, "id": { "type": "Identifier", "span": { "start": 302, "end": 303, "ctxt": 0 }, "value": "a", "optional": false }, "moduleRef": { "type": "Identifier", "span": { "start": 306, "end": 307, "ctxt": 0 }, "value": "A", "optional": false } }, { "type": "TsImportEqualsDeclaration", "span": { "start": 313, "end": 330, "ctxt": 0 }, "declare": false, "isExport": false, "isTypeOnly": false, "id": { "type": "Identifier", "span": { "start": 320, "end": 321, "ctxt": 0 }, "value": "b", "optional": false }, "moduleRef": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 324, "end": 325, "ctxt": 0 }, "value": "a", "optional": false }, "right": { "type": "Identifier", "span": { "start": 326, "end": 329, "ctxt": 0 }, "value": "inA", "optional": false } } }, { "type": "VariableDeclaration", "span": { "start": 335, "end": 351, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 339, "end": 350, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 339, "end": 340, "ctxt": 0 }, "value": "m", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 340, "end": 350, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 342, "end": 350, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 349, "end": 350, "ctxt": 0 }, "value": "a", "optional": false }, "typeArguments": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 356, "end": 373, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 360, "end": 372, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 360, "end": 361, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 361, "end": 372, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 363, "end": 372, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 363, "end": 364, "ctxt": 0 }, "value": "b", "optional": false }, "right": { "type": "Identifier", "span": { "start": 365, "end": 372, "ctxt": 0 }, "value": "Point3D", "optional": false } }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 378, "end": 404, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 382, "end": 403, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 382, "end": 383, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": null }, "init": { "type": "ObjectExpression", "span": { "start": 386, "end": 403, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 387, "end": 388, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 389, "end": 390, "ctxt": 0 }, "value": 0.0 } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 392, "end": 393, "ctxt": 0 }, "value": "y", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 394, "end": 395, "ctxt": 0 }, "value": 0.0 } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 397, "end": 398, "ctxt": 0 }, "value": "z", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 400, "end": 401, "ctxt": 0 }, "value": 0.0 } } ] }, "definite": false } ] } ] } }, { "type": "TsModuleDeclaration", "span": { "start": 432, "end": 484, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 439, "end": 440, "ctxt": 0 }, "value": "D", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 441, "end": 484, "ctxt": 0 }, "body": [ { "type": "TsImportEqualsDeclaration", "span": { "start": 447, "end": 460, "ctxt": 0 }, "declare": false, "isExport": false, "isTypeOnly": false, "id": { "type": "Identifier", "span": { "start": 454, "end": 455, "ctxt": 0 }, "value": "a", "optional": false }, "moduleRef": { "type": "Identifier", "span": { "start": 458, "end": 459, "ctxt": 0 }, "value": "A", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 466, "end": 482, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 470, "end": 481, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 470, "end": 471, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 472, "end": 481, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 474, "end": 481, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 474, "end": 475, "ctxt": 0 }, "value": "a", "optional": false }, "right": { "type": "Identifier", "span": { "start": 476, "end": 481, "ctxt": 0 }, "value": "Point", "optional": false } }, "typeParams": null } } }, "init": null, "definite": false } ] } ] } }, { "type": "TsModuleDeclaration", "span": { "start": 510, "end": 616, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 517, "end": 518, "ctxt": 0 }, "value": "E", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 519, "end": 616, "ctxt": 0 }, "body": [ { "type": "TsImportEqualsDeclaration", "span": { "start": 525, "end": 542, "ctxt": 0 }, "declare": false, "isExport": false, "isTypeOnly": false, "id": { "type": "Identifier", "span": { "start": 532, "end": 533, "ctxt": 0 }, "value": "a", "optional": false }, "moduleRef": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 536, "end": 537, "ctxt": 0 }, "value": "A", "optional": false }, "right": { "type": "Identifier", "span": { "start": 538, "end": 541, "ctxt": 0 }, "value": "inA", "optional": false } } }, { "type": "ExportDeclaration", "span": { "start": 547, "end": 614, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 563, "end": 568, "ctxt": 0 }, "value": "xDist", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 569, "end": 581, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 569, "end": 581, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 570, "end": 581, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 572, "end": 581, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 572, "end": 573, "ctxt": 0 }, "value": "a", "optional": false }, "right": { "type": "Identifier", "span": { "start": 574, "end": 581, "ctxt": 0 }, "value": "Point3D", "optional": false } }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 554, "end": 614, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 583, "end": 614, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 593, "end": 608, "ctxt": 0 }, "argument": { "type": "BinaryExpression", "span": { "start": 600, "end": 607, "ctxt": 0 }, "operator": "-", "left": { "type": "NumericLiteral", "span": { "start": 600, "end": 601, "ctxt": 0 }, "value": 0.0 }, "right": { "type": "MemberExpression", "span": { "start": 604, "end": 607, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 604, "end": 605, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Identifier", "span": { "start": 606, "end": 607, "ctxt": 0 }, "value": "x", "optional": false } } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } } ] } } ], "interpreter": null }