{ "type": "Script", "span": { "start": 0, "end": 397, "ctxt": 0 }, "body": [ { "type": "VariableDeclaration", "span": { "start": 0, "end": 12, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 4, "end": 11, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 4, "end": 5, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 5, "end": 11, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 7, "end": 11, "ctxt": 0 }, "kind": "void" } } }, "init": null, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 16, "end": 35, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 20, "end": 34, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 20, "end": 21, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 21, "end": 30, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 23, "end": 30, "ctxt": 0 }, "kind": "boolean" } } }, "init": { "type": "Identifier", "span": { "start": 33, "end": 34, "ctxt": 0 }, "value": "x", "optional": false }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 37, "end": 55, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 41, "end": 54, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 41, "end": 42, "ctxt": 0 }, "value": "b", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 42, "end": 50, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 44, "end": 50, "ctxt": 0 }, "kind": "string" } } }, "init": { "type": "Identifier", "span": { "start": 53, "end": 54, "ctxt": 0 }, "value": "x", "optional": false }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 57, "end": 75, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 61, "end": 74, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 61, "end": 62, "ctxt": 0 }, "value": "c", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 62, "end": 70, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 64, "end": 70, "ctxt": 0 }, "kind": "number" } } }, "init": { "type": "Identifier", "span": { "start": 73, "end": 74, "ctxt": 0 }, "value": "x", "optional": false }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 77, "end": 105, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 81, "end": 104, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 81, "end": 82, "ctxt": 0 }, "value": "d", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 82, "end": 100, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeQuery", "span": { "start": 84, "end": 100, "ctxt": 0 }, "exprName": { "type": "Identifier", "span": { "start": 91, "end": 100, "ctxt": 0 }, "value": "undefined", "optional": false } } } }, "init": { "type": "Identifier", "span": { "start": 103, "end": 104, "ctxt": 0 }, "value": "x", "optional": false }, "definite": false } ] }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 115, "end": 116, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "span": { "start": 109, "end": 133, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassProperty", "span": { "start": 119, "end": 131, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 119, "end": 122, "ctxt": 0 }, "value": "foo", "optional": false }, "value": null, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 122, "end": 130, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 124, "end": 130, "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": "VariableDeclaration", "span": { "start": 135, "end": 148, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 139, "end": 147, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 139, "end": 140, "ctxt": 0 }, "value": "e", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 140, "end": 143, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 142, "end": 143, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 142, "end": 143, "ctxt": 0 }, "value": "C", "optional": false }, "typeParams": null } } }, "init": { "type": "Identifier", "span": { "start": 146, "end": 147, "ctxt": 0 }, "value": "x", "optional": false }, "definite": false } ] }, { "type": "TsInterfaceDeclaration", "span": { "start": 152, "end": 180, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 162, "end": 163, "ctxt": 0 }, "value": "I", "optional": false }, "declare": false, "typeParams": null, "extends": [], "body": { "type": "TsInterfaceBody", "span": { "start": 164, "end": 180, "ctxt": 0 }, "body": [ { "type": "TsPropertySignature", "span": { "start": 166, "end": 178, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 166, "end": 169, "ctxt": 0 }, "value": "bar", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 169, "end": 177, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 171, "end": 177, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } }, { "type": "VariableDeclaration", "span": { "start": 182, "end": 195, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 186, "end": 194, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 186, "end": 187, "ctxt": 0 }, "value": "f", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 187, "end": 190, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 189, "end": 190, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 189, "end": 190, "ctxt": 0 }, "value": "I", "optional": false }, "typeParams": null } } }, "init": { "type": "Identifier", "span": { "start": 193, "end": 194, "ctxt": 0 }, "value": "x", "optional": false }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 199, "end": 226, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 203, "end": 225, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 203, "end": 204, "ctxt": 0 }, "value": "g", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 204, "end": 221, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 206, "end": 221, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 208, "end": 219, "ctxt": 0 }, "readonly": false, "key": { "type": "Identifier", "span": { "start": 208, "end": 211, "ctxt": 0 }, "value": "baz", "optional": false }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 211, "end": 219, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 213, "end": 219, "ctxt": 0 }, "kind": "string" } }, "typeParams": null } ] } } }, "init": { "type": "NumericLiteral", "span": { "start": 224, "end": 225, "ctxt": 0 }, "value": 1.0 }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 228, "end": 254, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 232, "end": 253, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 232, "end": 234, "ctxt": 0 }, "value": "g2", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 234, "end": 249, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeLiteral", "span": { "start": 236, "end": 249, "ctxt": 0 }, "members": [ { "type": "TsPropertySignature", "span": { "start": 238, "end": 247, "ctxt": 0 }, "readonly": false, "key": { "type": "NumericLiteral", "span": { "start": 238, "end": 239, "ctxt": 0 }, "value": 0.0 }, "computed": false, "optional": false, "init": null, "params": [], "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 239, "end": 247, "ctxt": 0 }, "typeAnnotation": { "type": "TsKeywordType", "span": { "start": 241, "end": 247, "ctxt": 0 }, "kind": "number" } }, "typeParams": null } ] } } }, "init": { "type": "NumericLiteral", "span": { "start": 252, "end": 253, "ctxt": 0 }, "value": 1.0 }, "definite": false } ] }, { "type": "TsModuleDeclaration", "span": { "start": 258, "end": 288, "ctxt": 0 }, "declare": false, "global": false, "id": { "type": "Identifier", "span": { "start": 265, "end": 266, "ctxt": 0 }, "value": "M", "optional": false }, "body": { "type": "TsModuleBlock", "span": { "start": 267, "end": 288, "ctxt": 0 }, "body": [ { "type": "ExportDeclaration", "span": { "start": 269, "end": 286, "ctxt": 0 }, "declaration": { "type": "VariableDeclaration", "span": { "start": 276, "end": 286, "ctxt": 0 }, "kind": "var", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 280, "end": 285, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 280, "end": 281, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "init": { "type": "NumericLiteral", "span": { "start": 284, "end": 285, "ctxt": 0 }, "value": 1.0 }, "definite": false } ] } } ] } }, { "type": "ExpressionStatement", "span": { "start": 290, "end": 296, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 290, "end": 295, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 290, "end": 291, "ctxt": 0 }, "value": "M", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 294, "end": 295, "ctxt": 0 }, "value": "x", "optional": false } } }, { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 309, "end": 310, "ctxt": 0 }, "value": "i", "optional": false }, "declare": false, "params": [ { "type": "Parameter", "span": { "start": 314, "end": 318, "ctxt": 0 }, "decorators": [], "pat": { "type": "Identifier", "span": { "start": 314, "end": 318, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": { "type": "TsTypeAnnotation", "span": { "start": 315, "end": 318, "ctxt": 0 }, "typeAnnotation": { "type": "TsTypeReference", "span": { "start": 317, "end": 318, "ctxt": 0 }, "typeName": { "type": "Identifier", "span": { "start": 317, "end": 318, "ctxt": 0 }, "value": "T", "optional": false }, "typeParams": null } } } } ], "decorators": [], "span": { "start": 300, "end": 336, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 320, "end": 336, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 327, "end": 333, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 327, "end": 332, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 327, "end": 328, "ctxt": 0 }, "value": "a", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 331, "end": 332, "ctxt": 0 }, "value": "x", "optional": false } } } ] }, "generator": false, "async": false, "typeParameters": { "type": "TsTypeParameterDeclaration", "span": { "start": 310, "end": 313, "ctxt": 0 }, "parameters": [ { "type": "TsTypeParameter", "span": { "start": 311, "end": 312, "ctxt": 0 }, "name": { "type": "Identifier", "span": { "start": 311, "end": 312, "ctxt": 0 }, "value": "T", "optional": false }, "constraint": null, "default": null } ] }, "returnType": null }, { "type": "ExpressionStatement", "span": { "start": 338, "end": 344, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 338, "end": 343, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 338, "end": 339, "ctxt": 0 }, "value": "i", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 342, "end": 343, "ctxt": 0 }, "value": "x", "optional": false } } }, { "type": "TsEnumDeclaration", "span": { "start": 348, "end": 360, "ctxt": 0 }, "declare": false, "isConst": false, "id": { "type": "Identifier", "span": { "start": 353, "end": 354, "ctxt": 0 }, "value": "E", "optional": false }, "members": [ { "type": "TsEnumMember", "span": { "start": 357, "end": 358, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 357, "end": 358, "ctxt": 0 }, "value": "A", "optional": false }, "init": null } ] }, { "type": "ExpressionStatement", "span": { "start": 362, "end": 368, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 362, "end": 367, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 362, "end": 363, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "right": { "type": "Identifier", "span": { "start": 366, "end": 367, "ctxt": 0 }, "value": "E", "optional": false } } }, { "type": "ExpressionStatement", "span": { "start": 370, "end": 378, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 370, "end": 377, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 370, "end": 371, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "right": { "type": "MemberExpression", "span": { "start": 374, "end": 377, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 374, "end": 375, "ctxt": 0 }, "value": "E", "optional": false }, "property": { "type": "Identifier", "span": { "start": 376, "end": 377, "ctxt": 0 }, "value": "A", "optional": false } } } }, { "type": "ExpressionStatement", "span": { "start": 382, "end": 397, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 382, "end": 397, "ctxt": 0 }, "operator": "=", "left": { "type": "Identifier", "span": { "start": 382, "end": 383, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "right": { "type": "ObjectExpression", "span": { "start": 386, "end": 397, "ctxt": 0 }, "properties": [ { "type": "MethodProperty", "key": { "type": "Identifier", "span": { "start": 388, "end": 389, "ctxt": 0 }, "value": "f", "optional": false }, "params": [], "decorators": [], "span": { "start": 388, "end": 395, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 392, "end": 395, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } ] } } } ], "interpreter": null }