securityos/node_modules/ts-prune/lib/util/getNodesOfKind.js

8 lines
327 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNodesOfKind = void 0;
function getNodesOfKind(node, kind) {
return node.getDescendants().filter(function (node) { return node.getKind() === kind; });
}
exports.getNodesOfKind = getNodesOfKind;
//# sourceMappingURL=getNodesOfKind.js.map