{ "type": "Script", "span": { "start": 47, "end": 1452, "ctxt": 0 }, "body": [ { "type": "TsInterfaceDeclaration", "span": { "start": 47, "end": 78, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 57, "end": 58, "ctxt": 0 }, "value": "I", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 59, "end": 78, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 65, "end": 76, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 65, "end": 67, "ctxt": 0 }, "value": "id", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 67, "end": 75, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 69, "end": 75, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 86, "end": 87, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 80, "end": 120, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 107, "end": 118, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 107, "end": 109, "ctxt": 0 }, "value": "id", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 109, "end": 117, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 111, "end": 117, "ctxt": 0 }, "kind": "number" } }, "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": [ { "type": "TsExpressionWithTypeArguments", "span": { "start": 99, "end": 100, "ctxt": 0 }, "expression": { "type": "Identifier", "span": { "start": 99, "end": 100, "ctxt": 0 }, "value": "I", "optional": false }, "typeArguments": null } ] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 128, "end": 129, "ctxt": 0 }, "value": "D", "optional": false }, "declare": false, "span": { "start": 122, "end": 190, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 138, "end": 148, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 138, "end": 144, "ctxt": 0 }, "value": "source", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 144, "end": 147, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 146, "end": 147, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 146, "end": 147, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 153, "end": 167, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 153, "end": 160, "ctxt": 0 }, "value": "recurse", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 160, "end": 166, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 162, "end": 166, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 162, "end": 163, "ctxt": 0 }, "value": "D", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 163, "end": 166, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 164, "end": 165, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 164, "end": 165, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false }, { "type": "ClassProperty", "span": { "start": 172, "end": 188, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 172, "end": 179, "ctxt": 0 }, "value": "wrapped", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 179, "end": 188, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 181, "end": 188, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 181, "end": 182, "ctxt": 0 }, "value": "D", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 182, "end": 188, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 183, "end": 187, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 183, "end": 184, "ctxt": 0 }, "value": "D", "optional": false }, "typeParams": { "type": "TsTypeParameterInstantiation", "span": { "start": 184, "end": 187, "ctxt": 0 }, "params": [ { "type": "TsTypeReference", "span": { "start": 185, "end": 186, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 185, "end": 186, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } ] } } ] } } }, "isStatic": false, "decorators": [], "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false, "readonly": false, "declare": false, "definite": false } ], "superClass": null, "isAbstract": false, "typeParams": { "type": "TsTypeParameterDeclaration", "span": { "start": 129, "end": 132, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 130, "end": 131, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 130, "end": 131, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "superTypeParams": null, "implements": [] }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 201, "end": 202, "ctxt": 0 }, "value": "F", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 203, "end": 212, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 203, "end": 212, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 204, "end": 212, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 206, "end": 212, "ctxt": 0 }, "kind": "string" } } } } ], "decorators": [], "span": { "start": 192, "end": 236, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 222, "end": 236, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 224, "end": 234, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 231, "end": 233, "ctxt": 0 }, "value": 42.0, "raw": "42" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 213, "end": 221, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 215, "end": 221, "ctxt": 0 }, "kind": "number" } } }, { "type": "TsModuleDeclaration", "span": { "start": 238, "end": 367, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 245, "end": 246, "ctxt": 0 }, "value": "M", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 247, "end": 367, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 253, "end": 297, "ctxt": 0 }, "declaration": { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 266, "end": 267, "ctxt": 0 }, "value": "A", "optional": false }, "declare": false, "span": { "start": 260, "end": 297, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 278, "end": 291, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 278, "end": 282, "ctxt": 0 }, "value": "name", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 282, "end": 290, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 284, "end": 290, "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": [] } }, { "type": "ExportDeclaration", "span": { "start": 303, "end": 365, "ctxt": 0 }, "declaration": { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 319, "end": 321, "ctxt": 0 }, "value": "F2", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 322, "end": 331, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 322, "end": 331, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 323, "end": 331, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 325, "end": 331, "ctxt": 0 }, "kind": "number" } } } } ], "decorators": [], "span": { "start": 310, "end": 365, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 341, "end": 365, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 343, "end": 363, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 350, "end": 362, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 350, "end": 360, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 350, "end": 351, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Identifier", "span": { "start": 352, "end": 360, "ctxt": 0 }, "value": "toString", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": { "type": "TsTypeAnnotation", "span": { "start": 332, "end": 340, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 334, "end": 340, "ctxt": 0 }, "kind": "string" } } } } ] } }, { "type": "VariableDeclaration", "span": { "start": 369, "end": 387, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 373, "end": 386, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 373, "end": 380, "ctxt": 0 }, "value": "aNumber", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 383, "end": 386, "ctxt": 0 }, "value": 9.9, "raw": "9.9" }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 388, "end": 402, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 394, "end": 401, "ctxt": 0 }, "value": "aNumber", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 403, "end": 436, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 407, "end": 435, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 407, "end": 414, "ctxt": 0 }, "value": "aString", "optional": false, "typeAnnotation": null }, "init": { "type": "StringLiteral", "span": { "start": 417, "end": 435, "ctxt": 0 }, "value": "this is a string", "raw": "'this is a string'" }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 437, "end": 451, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 443, "end": 450, "ctxt": 0 }, "value": "aString", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 452, "end": 477, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 456, "end": 476, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 456, "end": 461, "ctxt": 0 }, "value": "aDate", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 464, "end": 476, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 468, "end": 472, "ctxt": 0 }, "value": "Date", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 473, "end": 475, "ctxt": 0 }, "value": 12.0, "raw": "12" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 478, "end": 490, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 484, "end": 489, "ctxt": 0 }, "value": "aDate", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 491, "end": 519, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 495, "end": 518, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 495, "end": 503, "ctxt": 0 }, "value": "anObject", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 506, "end": 518, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 510, "end": 516, "ctxt": 0 }, "value": "Object", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 520, "end": 535, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 526, "end": 534, "ctxt": 0 }, "value": "anObject", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 537, "end": 554, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 541, "end": 553, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 541, "end": 546, "ctxt": 0 }, "value": "anAny", "optional": false, "typeAnnotation": null }, "init": { "type": "NullLiteral", "span": { "start": 549, "end": 553, "ctxt": 0 } }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 555, "end": 567, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 561, "end": 566, "ctxt": 0 }, "value": "anAny", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 568, "end": 599, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 572, "end": 598, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 572, "end": 582, "ctxt": 0 }, "value": "anOtherAny", "optional": false, "typeAnnotation": null }, "init": { "type": "TsTypeAssertion", "span": { "start": 585, "end": 598, "ctxt": 0 }, "expression": { "type": "NewExpression", "span": { "start": 591, "end": 598, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 595, "end": 596, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": [], "typeArguments": null }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 586, "end": 589, "ctxt": 0 }, "kind": "any" } }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 600, "end": 617, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 606, "end": 616, "ctxt": 0 }, "value": "anOtherAny", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 618, "end": 646, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 622, "end": 645, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 622, "end": 633, "ctxt": 0 }, "value": "anUndefined", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 636, "end": 645, "ctxt": 0 }, "value": "undefined", "optional": false }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 647, "end": 665, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 653, "end": 664, "ctxt": 0 }, "value": "anUndefined", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 667, "end": 688, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 671, "end": 687, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 671, "end": 677, "ctxt": 0 }, "value": "aClass", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 680, "end": 687, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 684, "end": 685, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 689, "end": 702, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 695, "end": 701, "ctxt": 0 }, "value": "aClass", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 703, "end": 739, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 707, "end": 738, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 707, "end": 720, "ctxt": 0 }, "value": "aGenericClass", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 723, "end": 738, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 727, "end": 728, "ctxt": 0 }, "value": "D", "optional": false }, "arguments": [], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 728, "end": 736, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 729, "end": 735, "ctxt": 0 }, "kind": "string" } ] } }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 740, "end": 760, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 746, "end": 759, "ctxt": 0 }, "value": "aGenericClass", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 761, "end": 794, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 765, "end": 793, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 765, "end": 780, "ctxt": 0 }, "value": "anObjectLiteral", "optional": false, "typeAnnotation": null }, "init": { "type": "ObjectExpression", "span": { "start": 783, "end": 793, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 785, "end": 787, "ctxt": 0 }, "value": "id", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 789, "end": 791, "ctxt": 0 }, "value": 12.0, "raw": "12" } } ] }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 795, "end": 817, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 801, "end": 816, "ctxt": 0 }, "value": "anObjectLiteral", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 819, "end": 837, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 823, "end": 836, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 823, "end": 832, "ctxt": 0 }, "value": "aFunction", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 835, "end": 836, "ctxt": 0 }, "value": "F", "optional": false }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 838, "end": 854, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 844, "end": 853, "ctxt": 0 }, "value": "aFunction", "optional": false } }, { "type": "ThrowStatement", "span": { "start": 855, "end": 875, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 861, "end": 874, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 861, "end": 870, "ctxt": 0 }, "value": "aFunction", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 871, "end": 873, "ctxt": 0 }, "value": "", "raw": "''" } } ], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 876, "end": 899, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 880, "end": 898, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 880, "end": 887, "ctxt": 0 }, "value": "aLambda", "optional": false, "typeAnnotation": null }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 890, "end": 898, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 891, "end": 892, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null } ], "body": { "type": "NumericLiteral", "span": { "start": 897, "end": 898, "ctxt": 0 }, "value": 2.0, "raw": "2" }, "async": false, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 900, "end": 914, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 906, "end": 913, "ctxt": 0 }, "value": "aLambda", "optional": false } }, { "type": "ThrowStatement", "span": { "start": 915, "end": 932, "ctxt": 0 }, "argument": { "type": "CallExpression", "span": { "start": 921, "end": 931, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 921, "end": 928, "ctxt": 0 }, "value": "aLambda", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 929, "end": 930, "ctxt": 0 }, "value": 1.0, "raw": "1" } } ], "typeArguments": null } }, { "type": "VariableDeclaration", "span": { "start": 934, "end": 950, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 938, "end": 949, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 938, "end": 945, "ctxt": 0 }, "value": "aModule", "optional": false, "typeAnnotation": null }, "init": { "type": "Identifier", "span": { "start": 948, "end": 949, "ctxt": 0 }, "value": "M", "optional": false }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 951, "end": 965, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 957, "end": 964, "ctxt": 0 }, "value": "aModule", "optional": false } }, { "type": "ThrowStatement", "span": { "start": 966, "end": 981, "ctxt": 0 }, "argument": { "type": "UnaryExpression", "span": { "start": 972, "end": 980, "ctxt": 0 }, "operator": "typeof", "argument": { "type": "Identifier", "span": { "start": 979, "end": 980, "ctxt": 0 }, "value": "M", "optional": false } } }, { "type": "VariableDeclaration", "span": { "start": 982, "end": 1013, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 986, "end": 1012, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 986, "end": 1000, "ctxt": 0 }, "value": "aClassInModule", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 1003, "end": 1012, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 1007, "end": 1010, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1007, "end": 1008, "ctxt": 0 }, "value": "M", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1009, "end": 1010, "ctxt": 0 }, "value": "A", "optional": false } }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 1014, "end": 1035, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 1020, "end": 1034, "ctxt": 0 }, "value": "aClassInModule", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 1036, "end": 1065, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 1040, "end": 1064, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 1040, "end": 1057, "ctxt": 0 }, "value": "aFunctionInModule", "optional": false, "typeAnnotation": null }, "init": { "type": "MemberExpression", "span": { "start": 1060, "end": 1064, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 1060, "end": 1061, "ctxt": 0 }, "value": "M", "optional": false }, "property": { "type": "Identifier", "span": { "start": 1062, "end": 1064, "ctxt": 0 }, "value": "F2", "optional": false } }, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 1066, "end": 1090, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 1072, "end": 1089, "ctxt": 0 }, "value": "aFunctionInModule", "optional": false } }, { "type": "VariableDeclaration", "span": { "start": 1145, "end": 1151, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 1149, "end": 1150, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 1149, "end": 1150, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "init": null, "definite": false } ] }, { "type": "ThrowStatement", "span": { "start": 1152, "end": 1160, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 1158, "end": 1159, "ctxt": 0 }, "value": "x", "optional": false } }, { "type": "ThrowStatement", "span": { "start": 1174, "end": 1184, "ctxt": 0 }, "argument": { "type": "NumericLiteral", "span": { "start": 1180, "end": 1183, "ctxt": 0 }, "value": 0.0, "raw": "0.0" } }, { "type": "ThrowStatement", "span": { "start": 1185, "end": 1197, "ctxt": 0 }, "argument": { "type": "BooleanLiteral", "span": { "start": 1191, "end": 1196, "ctxt": 0 }, "value": false } }, { "type": "ThrowStatement", "span": { "start": 1198, "end": 1209, "ctxt": 0 }, "argument": { "type": "NullLiteral", "span": { "start": 1204, "end": 1208, "ctxt": 0 } } }, { "type": "ThrowStatement", "span": { "start": 1210, "end": 1226, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 1216, "end": 1225, "ctxt": 0 }, "value": "undefined", "optional": false } }, { "type": "ThrowStatement", "span": { "start": 1227, "end": 1244, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 1233, "end": 1243, "ctxt": 0 }, "value": "a string", "raw": "'a string'" } }, { "type": "ThrowStatement", "span": { "start": 1245, "end": 1285, "ctxt": 0 }, "argument": { "type": "FunctionExpression", "identifier": null, "params": [], "decorators": [], "span": { "start": 1251, "end": 1284, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 1263, "end": 1284, "ctxt": 0 }, "stmts": [ { "type": "ReturnStatement", "span": { "start": 1265, "end": 1282, "ctxt": 0 }, "argument": { "type": "StringLiteral", "span": { "start": 1272, "end": 1282, "ctxt": 0 }, "value": "a string", "raw": "'a string'" } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } }, { "type": "ThrowStatement", "span": { "start": 1286, "end": 1307, "ctxt": 0 }, "argument": { "type": "ArrowFunctionExpression", "span": { "start": 1292, "end": 1306, "ctxt": 0 }, "params": [ { "type": "Identifier", "span": { "start": 1296, "end": 1299, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 1297, "end": 1299, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 1298, "end": 1299, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 1298, "end": 1299, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } ], "body": { "type": "NumericLiteral", "span": { "start": 1304, "end": 1306, "ctxt": 0 }, "value": 42.0, "raw": "42" }, "async": false, "generator": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 1292, "end": 1295, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 1293, "end": 1294, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 1293, "end": 1294, "ctxt": 0 }, "value": "T", "optional": false }, "in": false, "out": false, "const": false, "constraint": null, "default": null } ] }, "returnType": null } }, { "type": "ThrowStatement", "span": { "start": 1308, "end": 1331, "ctxt": 0 }, "argument": { "type": "ObjectExpression", "span": { "start": 1314, "end": 1330, "ctxt": 0 }, "properties": [ { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 1316, "end": 1317, "ctxt": 0 }, "value": "x", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 1319, "end": 1321, "ctxt": 0 }, "value": 12.0, "raw": "12" } }, { "type": "KeyValueProperty", "key": { "type": "Identifier", "span": { "start": 1323, "end": 1324, "ctxt": 0 }, "value": "y", "optional": false }, "value": { "type": "NumericLiteral", "span": { "start": 1326, "end": 1328, "ctxt": 0 }, "value": 13.0, "raw": "13" } } ] } }, { "type": "ThrowStatement", "span": { "start": 1332, "end": 1341, "ctxt": 0 }, "argument": { "type": "ArrayExpression", "span": { "start": 1338, "end": 1340, "ctxt": 0 }, "elements": [] } }, { "type": "ThrowStatement", "span": { "start": 1342, "end": 1361, "ctxt": 0 }, "argument": { "type": "ArrayExpression", "span": { "start": 1348, "end": 1360, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 1349, "end": 1352, "ctxt": 0 }, "value": "a", "raw": "'a'" } }, { "spread": null, "expression": { "type": "ArrayExpression", "span": { "start": 1354, "end": 1359, "ctxt": 0 }, "elements": [ { "spread": null, "expression": { "type": "StringLiteral", "span": { "start": 1355, "end": 1358, "ctxt": 0 }, "value": "b", "raw": "'b'" } } ] } } ] } }, { "type": "ThrowStatement", "span": { "start": 1362, "end": 1376, "ctxt": 0 }, "argument": { "type": "RegExpLiteral", "span": { "start": 1368, "end": 1375, "ctxt": 0 }, "pattern": "[a-z]", "flags": "" } }, { "type": "ThrowStatement", "span": { "start": 1377, "end": 1394, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 1383, "end": 1393, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 1387, "end": 1391, "ctxt": 0 }, "value": "Date", "optional": false }, "arguments": [], "typeArguments": null } }, { "type": "ThrowStatement", "span": { "start": 1395, "end": 1409, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 1401, "end": 1408, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 1405, "end": 1406, "ctxt": 0 }, "value": "C", "optional": false }, "arguments": [], "typeArguments": null } }, { "type": "ThrowStatement", "span": { "start": 1410, "end": 1429, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 1416, "end": 1428, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 1420, "end": 1426, "ctxt": 0 }, "value": "Object", "optional": false }, "arguments": [], "typeArguments": null } }, { "type": "ThrowStatement", "span": { "start": 1430, "end": 1452, "ctxt": 0 }, "argument": { "type": "NewExpression", "span": { "start": 1436, "end": 1451, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 1440, "end": 1441, "ctxt": 0 }, "value": "D", "optional": false }, "arguments": [], "typeArguments": { "type": "TsTypeParameterInstantiation", "span": { "start": 1441, "end": 1449, "ctxt": 0 }, "params": [ { "type": "TsKeywordType", "span": { "start": 1442, "end": 1448, "ctxt": 0 }, "kind": "number" } ] } } } ], "interpreter": null }