{ "type": "Script", "span": { "start": 1, "end": 715, "ctxt": 0 }, "body": [ { "type": "TsModuleDeclaration", "span": { "start": 1, "end": 87, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 8, "end": 9, "ctxt": 0 }, "value": "M", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 10, "end": 87, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 16, "end": 63, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 23, "end": 63, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 33, "end": 38, "ctxt": 0 }, "value": "Point", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 39, "end": 63, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 41, "end": 51, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 41, "end": 42, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 42, "end": 50, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 44, "end": 50, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 52, "end": 61, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 52, "end": 53, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 53, "end": 61, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 55, "end": 61, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } }, { "type": "ExportDeclaration", "span": { "start": 68, "end": 85, "ctxt": 0 }, "declaration": { "type": "VariableDeclaration", "span": { "start": 75, "end": 85, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 79, "end": 84, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 79, "end": 80, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 83, "end": 84, "ctxt": 0 }, "value": 1.0, "raw": "1" }, "definite": false } ] } } ] } }, { "type": "VariableDeclaration", "span": { "start": 111, "end": 128, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 115, "end": 127, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 115, "end": 116, "ctxt": 0 }, "value": "m", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 117, "end": 127, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 119, "end": 127, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 126, "end": 127, "ctxt": 0 }, "value": "M", "optional": false }, "typeArguments": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 129, "end": 139, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 133, "end": 138, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 133, "end": 134, "ctxt": 0 }, "value": "m", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 137, "end": 138, "ctxt": 0 }, "value": "M", "optional": false }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 141, "end": 156, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 145, "end": 155, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 145, "end": 147, "ctxt": 0 }, "value": "a1", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 147, "end": 155, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 149, "end": 155, "ctxt": 0 }, "kind": "number" } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 157, "end": 170, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 161, "end": 169, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 161, "end": 163, "ctxt": 0 }, "value": "a1", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 166, "end": 169, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 166, "end": 167, "ctxt": 0 }, "value": "M", "optional": false }, "property": { "type": "Identifier", "span": { "start": 168, "end": 169, "ctxt": 0 }, "value": "a", "optional": false } }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 172, "end": 187, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 176, "end": 186, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 176, "end": 178, "ctxt": 0 }, "value": "a2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 178, "end": 186, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 180, "end": 186, "ctxt": 0 }, "kind": "number" } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 188, "end": 201, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 192, "end": 200, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 192, "end": 194, "ctxt": 0 }, "value": "a2", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 197, "end": 200, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 197, "end": 198, "ctxt": 0 }, "value": "m", "optional": false }, "property": { "type": "Identifier", "span": { "start": 199, "end": 200, "ctxt": 0 }, "value": "a", "optional": false } }, "definite": false } ] }, { "type": "TsModuleDeclaration", "span": { "start": 203, "end": 409, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 210, "end": 212, "ctxt": 0 }, "value": "M2", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 213, "end": 409, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 219, "end": 333, "ctxt": 0 }, "declaration": { "type": "TsModuleDeclaration", "span": { "start": 226, "end": 333, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 233, "end": 238, "ctxt": 0 }, "value": "Point", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 239, "end": 333, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 249, "end": 327, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 265, "end": 271, "ctxt": 0 }, "value": "Origin", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 256, "end": 327, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 281, "end": 327, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 295, "end": 317, "ctxt": 0 }, "argument": { "type": "ObjectExpression", "span": { "start": 302, "end": 316, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 304, "end": 305, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 307, "end": 308, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 310, "end": 311, "ctxt": 0 }, "value": "y", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 313, "end": 314, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ] } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 273, "end": 280, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 275, "end": 280, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 275, "end": 280, "ctxt": 0 }, "value": "Point", "optional": false }, "typeParams": null } } } } ] } } }, { "type": "ExportDeclaration", "span": { "start": 339, "end": 407, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 346, "end": 407, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 356, "end": 361, "ctxt": 0 }, "value": "Point", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 362, "end": 407, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 372, "end": 382, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 372, "end": 373, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 373, "end": 381, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 375, "end": 381, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 391, "end": 401, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 391, "end": 392, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 392, "end": 400, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 394, "end": 400, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } } ] } }, { "type": "VariableDeclaration", "span": { "start": 411, "end": 444, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 415, "end": 443, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 415, "end": 416, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 416, "end": 443, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 418, "end": 443, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 420, "end": 430, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 420, "end": 421, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 421, "end": 429, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 423, "end": 429, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 431, "end": 441, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 431, "end": 432, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 432, "end": 440, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 434, "end": 440, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 445, "end": 461, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 449, "end": 460, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 449, "end": 450, "ctxt": 0 }, "value": "p", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 450, "end": 460, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 452, "end": 460, "ctxt": 0 }, "typeName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 452, "end": 454, "ctxt": 0 }, "value": "M2", "optional": false }, "right": { "type": "Identifier", "span": { "start": 455, "end": 460, "ctxt": 0 }, "value": "Point", "optional": false } }, "typeParams": null } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 463, "end": 512, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 467, "end": 511, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 467, "end": 469, "ctxt": 0 }, "value": "p2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 469, "end": 511, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 471, "end": 511, "ctxt": 0 }, "members": [ { "type": "TsMethodSignature", "span": { "start": 473, "end": 509, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 473, "end": 479, "ctxt": 0 }, "value": "Origin", "optional": false }, "computed": false, "optional": false, "params": [], "typeAnn": { "type": "TsTypeAnnotation", "span": { "start": 482, "end": 509, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 484, "end": 509, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 486, "end": 496, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 486, "end": 487, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 487, "end": 495, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 489, "end": 495, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 497, "end": 507, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 497, "end": 498, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 498, "end": 506, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 500, "end": 506, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, "typeParams": null } ] } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 513, "end": 537, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 517, "end": 536, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 517, "end": 519, "ctxt": 0 }, "value": "p2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 519, "end": 536, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 521, "end": 536, "ctxt": 0 }, "exprName": { "type": "TsQualifiedName", "left": { "type": "Identifier", "span": { "start": 528, "end": 530, "ctxt": 0 }, "value": "M2", "optional": false }, "right": { "type": "Identifier", "span": { "start": 531, "end": 536, "ctxt": 0 }, "value": "Point", "optional": false } }, "typeArguments": null } } }, "init": null, "definite": false } ] }, { "type": "TsModuleDeclaration", "span": { "start": 539, "end": 715, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 546, "end": 548, "ctxt": 0 }, "value": "M3", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 549, "end": 715, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 555, "end": 659, "ctxt": 0 }, "declaration": { "type": "TsModuleDeclaration", "span": { "start": 562, "end": 659, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 569, "end": 574, "ctxt": 0 }, "value": "Utils", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 575, "end": 659, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 585, "end": 653, "ctxt": 0 }, "declaration": { "type": "TsInterfaceDeclaration", "span": { "start": 592, "end": 653, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 602, "end": 607, "ctxt": 0 }, "value": "Point", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 608, "end": 653, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 622, "end": 632, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 622, "end": 623, "ctxt": 0 }, "value": "x", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 623, "end": 631, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 625, "end": 631, "ctxt": 0 }, "kind": "number" } }, "typeParams": null }, { "type": "TsPropertySignature", "span": { "start": 633, "end": 643, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 633, "end": 634, "ctxt": 0 }, "value": "y", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 634, "end": 642, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 636, "end": 642, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } } ] } } }, { "type": "ExportDeclaration", "span": { "start": 665, "end": 713, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 678, "end": 683, "ctxt": 0 }, "value": "Utils", "optional": false }, "declare": false, "span": { "start": 672, "end": 713, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 694, "end": 707, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 694, "end": 698, "ctxt": 0 }, "value": "name", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 698, "end": 706, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 700, "end": 706, "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 }