{ "type": "Program", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "ErrorMap", "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 15 } } }, "init": { "type": "TypeArgumentsExpression", "leftHandExpression": { "type": "Identifier", "name": "Map", "loc": { "start": { "line": 17, "column": 18 }, "end": { "line": 17, "column": 21 } } }, "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 28 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "Error", "loc": { "start": { "line": 17, "column": 30 }, "end": { "line": 17, "column": 35 } } }, "loc": { "start": { "line": 17, "column": 30 }, "end": { "line": 17, "column": 35 } } } ], "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 17, "column": 36 } } }, "loc": { "start": { "line": 17, "column": 18 }, "end": { "line": 17, "column": 36 } } }, "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 36 } } } ], "kind": "const", "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 37 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "errorMap", "loc": { "start": { "line": 18, "column": 7 }, "end": { "line": 18, "column": 15 } } }, "init": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "ErrorMap", "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 30 } } }, "arguments": [], "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "column": 32 } } }, "loc": { "start": { "line": 18, "column": 7 }, "end": { "line": 18, "column": 32 } } } ], "kind": "const", "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 33 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "ErrorMapConstructor", "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 25 } } }, "typeAnnotation": { "type": "TSTypeQuery", "exprName": { "type": "TypeArgumentsExpression", "leftHandExpression": { "type": "Identifier", "name": "Map", "loc": { "start": { "line": 20, "column": 35 }, "end": { "line": 20, "column": 38 } } }, "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 20, "column": 39 }, "end": { "line": 20, "column": 45 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "Error", "loc": { "start": { "line": 20, "column": 47 }, "end": { "line": 20, "column": 52 } } }, "loc": { "start": { "line": 20, "column": 47 }, "end": { "line": 20, "column": 52 } } } ], "loc": { "start": { "line": 20, "column": 38 }, "end": { "line": 20, "column": 53 } } }, "loc": { "start": { "line": 20, "column": 28 }, "end": { "line": 20, "column": 53 } } }, "loc": { "start": { "line": 20, "column": 28 }, "end": { "line": 20, "column": 53 } } }, "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 20, "column": 54 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 21, "column": 1 } } }