UNPKG

@nrwl/workspace

Version:

Smart, Fast and Extensible Build System.

19 lines 566 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSourceNodes = void 0; function getSourceNodes(sourceFile) { const nodes = [sourceFile]; const result = []; while (nodes.length > 0) { const node = nodes.shift(); if (node) { result.push(node); if (node.getChildCount(sourceFile) >= 0) { nodes.unshift(...node.getChildren()); } } } return result; } exports.getSourceNodes = getSourceNodes; //# sourceMappingURL=get-source-nodes.js.map