1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var utils = require("tsutils/typeguard/2.8");
|
4 | var check_node_1 = require("./shared/check-node");
|
5 | // tslint:disable-next-line:variable-name
|
6 | exports.Rule = check_node_1.createCheckNodeRule(checkNode, "Unexpected throw, throwing exceptions is not functional.");
|
7 | function checkNode(node, _ctx) {
|
8 | return utils.isThrowStatement(node)
|
9 | ? { invalidNodes: [check_node_1.createInvalidNode(node, [])] }
|
10 | : { invalidNodes: [] };
|
11 | }
|
12 | //# sourceMappingURL=noThrowRule.js.map |
\ | No newline at end of file |