{ "type": "Script", "span": { "start": 0, "end": 714, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 0, "end": 86, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 7, "end": 8, "ctxt": 0 }, "value": "M", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 9, "end": 86, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 15, "end": 62, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 22, "end": 62, "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": 62, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 40, "end": 50, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 40, "end": 41, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 41, "end": 49, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 43, "end": 49, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 51, "end": 60, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 51, "end": 52, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 52, "end": 60, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 54, "end": 60, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } }, { "type": "ExportDeclaration", "span": { "start": 67, "end": 84, "ctxt": 0 }, "declaration": { "type": "VariableDeclaration", "span": { "start": 74, "end": 84, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 78, "end": 83, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 78, "end": 79, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 82, "end": 83, "ctxt": 0 }, "value": 1.0 }, "definite": false } ] } } ] } }, { "type": "VariableDeclaration", "span": { "start": 110, "end": 127, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 114, "end": 126, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 114, "end": 115, "ctxt": 0 }, "value": "m", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 116, "end": 126, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 118, "end": 126, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 125, "end": 126, "ctxt": 0 }, "value": "M", "optional": false } } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 128, "end": 138, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 132, "end": 137, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 132, "end": 133, "ctxt": 0 }, "value": "m", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 136, "end": 137, "ctxt": 0 }, "value": "M", "optional": false }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 140, "end": 155, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 144, "end": 154, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 144, "end": 146, "ctxt": 0 }, "value": "a1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 146, "end": 154, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 148, "end": 154, "ctxt": 0 }, "kind": "number" } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 156, "end": 169, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 160, "end": 168, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 160, "end": 162, "ctxt": 0 }, "value": "a1", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 165, "end": 168, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 165, "end": 166, "ctxt": 0 }, "value": "M", "optional": false }, "property": { "type": "Identifier", "span": { "start": 167, "end": 168, "ctxt": 0 }, "value": "a", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 171, "end": 186, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 175, "end": 185, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 175, "end": 177, "ctxt": 0 }, "value": "a2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 177, "end": 185, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 179, "end": 185, "ctxt": 0 }, "kind": "number" } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 187, "end": 200, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 191, "end": 199, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 191, "end": 193, "ctxt": 0 }, "value": "a2", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 196, "end": 199, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 196, "end": 197, "ctxt": 0 }, "value": "m", "optional": false }, "property": { "type": "Identifier", "span": { "start": 198, "end": 199, "ctxt": 0 }, "value": "a", "optional": false } }, "definite": false } ] }, { "type": "TsModuleDeclaration", "span": { "start": 202, "end": 408, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 209, "end": 211, "ctxt": 0 }, "value": "M2", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 212, "end": 408, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 218, "end": 332, "ctxt": 0 }, "declaration": { "type": "TsModuleDeclaration", "span": { "start": 225, "end": 332, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 232, "end": 237, "ctxt": 0 }, "value": "Point", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 238, "end": 332, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 248, "end": 326, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 264, "end": 270, "ctxt": 0 }, "value": "Origin", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 255, "end": 326, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 280, "end": 326, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 294, "end": 316, "ctxt": 0 }, "argument": { "type": "ObjectExpression", "span": { "start": 301, "end": 315, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 303, "end": 304, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 306, "end": 307, "ctxt": 0 }, "value": 0.0 } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 309, "end": 310, "ctxt": 0 }, "value": "y", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 312, "end": 313, "ctxt": 0 }, "value": 0.0 } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 272, "end": 279, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 274, "end": 279, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 274, "end": 279, "ctxt": 0 }, "value": "Point", "optional": false }, "typeParams": null } } } } ] } } }, { "type": "ExportDeclaration", "span": { "start": 338, "end": 406, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 345, "end": 406, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 355, "end": 360, "ctxt": 0 }, "value": "Point", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 361, "end": 406, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 371, "end": 381, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 371, "end": 372, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 372, "end": 380, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 374, "end": 380, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 390, "end": 400, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 390, "end": 391, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 391, "end": 399, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 393, "end": 399, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } } ] } }, { "type": "VariableDeclaration", "span": { "start": 410, "end": 443, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 414, "end": 442, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 414, "end": 415, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 415, "end": 442, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 417, "end": 442, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 419, "end": 429, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 419, "end": 420, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 420, "end": 428, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 422, "end": 428, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 430, "end": 440, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 430, "end": 431, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 431, "end": 439, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 433, "end": 439, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 444, "end": 460, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 448, "end": 459, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 448, "end": 449, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 449, "end": 459, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 451, "end": 459, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 451, "end": 453, "ctxt": 0 }, "value": "M2", "optional": false }, "right": { "type": "Identifier", "span": { "start": 454, "end": 459, "ctxt": 0 }, "value": "Point", "optional": false } }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 462, "end": 511, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 466, "end": 510, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 466, "end": 468, "ctxt": 0 }, "value": "p2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 468, "end": 510, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 470, "end": 510, "ctxt": 0 }, "members": [ { "type": "TsMethodSignature", "span": { "start": 472, "end": 508, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 472, "end": 478, "ctxt": 0 }, "value": "Origin", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 481, "end": 508, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 483, "end": 508, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 485, "end": 495, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 485, "end": 486, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 486, "end": 494, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 488, "end": 494, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 496, "end": 506, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 496, "end": 497, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 497, "end": 505, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 499, "end": 505, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, "typeParams": null } ] } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 512, "end": 536, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 516, "end": 535, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 516, "end": 518, "ctxt": 0 }, "value": "p2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 518, "end": 535, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 520, "end": 535, "ctxt": 0 }, "exprName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 527, "end": 529, "ctxt": 0 }, "value": "M2", "optional": false }, "right": { "type": "Identifier", "span": { "start": 530, "end": 535, "ctxt": 0 }, "value": "Point", "optional": false } } } } }, "init": null, "definite": false } ] }, { "type": "TsModuleDeclaration", "span": { "start": 538, "end": 714, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 545, "end": 547, "ctxt": 0 }, "value": "M3", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 548, "end": 714, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 554, "end": 658, "ctxt": 0 }, "declaration": { "type": "TsModuleDeclaration", "span": { "start": 561, "end": 658, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 568, "end": 573, "ctxt": 0 }, "value": "Utils", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 574, "end": 658, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 584, "end": 652, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 591, "end": 652, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 601, "end": 606, "ctxt": 0 }, "value": "Point", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 607, "end": 652, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 621, "end": 631, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 621, "end": 622, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 622, "end": 630, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 624, "end": 630, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 632, "end": 642, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 632, "end": 633, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 633, "end": 641, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 635, "end": 641, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } } ] } } }, { "type": "ExportDeclaration", "span": { "start": 664, "end": 712, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 677, "end": 682, "ctxt": 0 }, "value": "Utils", "optional": false }, "declare": false, "span": { "start": 671, "end": 712, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 693, "end": 706, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 693, "end": 697, "ctxt": 0 }, "value": "name", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 697, "end": 705, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 699, "end": 705, "ctxt": 0 }, "kind": "string" } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] } } ] } } ], "interpreter": null }