@alyle/ui
Version:
Minimal Design, a set of components for Angular
21 lines • 580 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.findNode = findNode;
exports.getNodes = getNodes;
const ts = require("typescript");
function findNode(node, kind) {
if (node.kind === kind) {
return node;
}
let foundNode = null;
ts.forEachChild(node, childNode => {
foundNode = foundNode || findNode(childNode, kind);
});
return foundNode;
}
function getNodes(node) {
const nodes = [];
ts.forEachChild(node, childNode => nodes.push(childNode));
return nodes;
}
//# sourceMappingURL=util.js.map