{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "is", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 9 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "annotations": [], "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 13 } } }, "body": [], "indexSignatures": [], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 13 } } }, "decorators": [], "isAnnotationDeclaration": false, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 13 } } }, { "type": "TSModuleDeclaration", "id": { "type": "Identifier", "name": "is", "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 13 } } }, "body": { "type": "TSModuleBlock", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "is", "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 20, "column": 14 }, "end": { "line": 20, "column": 15 } } }, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 15 } } } ], "kind": "var", "loc": { "start": { "line": 20, "column": 5 }, "end": { "line": 20, "column": 16 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "asserts", "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 16 } } }, "init": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 20 } } }, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 20 } } } ], "kind": "var", "loc": { "start": { "line": 21, "column": 5 }, "end": { "line": 21, "column": 21 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "async", "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 14 } } }, "init": { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 18 } } }, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 18 } } } ], "kind": "var", "loc": { "start": { "line": 22, "column": 5 }, "end": { "line": 22, "column": 19 } } } ], "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 23, "column": 2 } } }, "declare": false, "global": false, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 25, "column": 6 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "asserts", "loc": { "start": { "line": 25, "column": 7 }, "end": { "line": 25, "column": 14 } } }, "superClass": null, "implements": [], "constructor": { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": null, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "annotations": [], "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 29, "column": 2 } } }, "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "is", "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 7 } } }, "value": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 26, "column": 10 }, "end": { "line": 26, "column": 11 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "decorators": [], "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 11 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "asserts", "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 12 } } }, "value": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 27, "column": 15 }, "end": { "line": 27, "column": 16 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "decorators": [], "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 16 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "async", "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 10 } } }, "value": { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 14 } } }, "static": false, "readonly": false, "declare": false, "optional": false, "computed": false, "decorators": [], "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 14 } } } ], "indexSignatures": [], "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 29, "column": 2 } } }, "decorators": [], "isAnnotationDeclaration": false, "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 29, "column": 2 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "async", "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 15 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 31, "column": 18 }, "end": { "line": 31, "column": 21 } } }, "loc": { "start": { "line": 31, "column": 1 }, "end": { "line": 31, "column": 21 } } }, "loc": { "start": { "line": 31, "column": 1 }, "end": { "line": 31, "column": 21 } } }, { "type": "FunctionDeclaration", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "assertsUse", "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 20 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "Identifier", "name": "asserts", "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 33, "column": 33 }, "end": { "line": 33, "column": 34 } } }, "loc": { "start": { "line": 33, "column": 33 }, "end": { "line": 33, "column": 34 } } }, "loc": { "start": { "line": 33, "column": 24 }, "end": { "line": 33, "column": 31 } } } ], "returnType": { "type": "TSTypePredicate", "parameterName": { "type": "Identifier", "name": "asserts", "loc": { "start": { "line": 33, "column": 45 }, "end": { "line": 33, "column": 52 } } }, "typeAnnotation": { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "NonNullable", "loc": { "start": { "line": 33, "column": 56 }, "end": { "line": 33, "column": 67 } } }, "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 33, "column": 68 }, "end": { "line": 33, "column": 69 } } }, "loc": { "start": { "line": 33, "column": 68 }, "end": { "line": 33, "column": 69 } } } ], "loc": { "start": { "line": 33, "column": 67 }, "end": { "line": 33, "column": 70 } } }, "loc": { "start": { "line": 33, "column": 56 }, "end": { "line": 33, "column": 67 } } }, "asserts": true, "loc": { "start": { "line": 33, "column": 37 }, "end": { "line": 33, "column": 67 } } }, "typeParameters": { "type": "TSTypeParameterDeclaration", "params": [ { "type": "TSTypeParameter", "name": { "type": "Identifier", "name": "T", "loc": { "start": { "line": 33, "column": 21 }, "end": { "line": 33, "column": 22 } } }, "in": false, "out": false, "loc": { "start": { "line": 33, "column": 21 }, "end": { "line": 33, "column": 23 } } } ], "loc": { "start": { "line": 33, "column": 20 }, "end": { "line": 33, "column": 23 } } }, "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 33, "column": 71 }, "end": { "line": 33, "column": 74 } } }, "loc": { "start": { "line": 33, "column": 1 }, "end": { "line": 33, "column": 74 } } }, "loc": { "start": { "line": 33, "column": 1 }, "end": { "line": 33, "column": 74 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 34, "column": 1 } } }