Skip to content

Commit

Permalink
fix(@schematics/angular): pass down recursive flag
Browse files Browse the repository at this point in the history
This change makes `findNodes` recursive
  • Loading branch information
jaroslawsawicki authored and clydin committed Oct 6, 2020
1 parent 8d7703e commit b236341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schematics/angular/utility/ast-utils.ts
Expand Up @@ -132,7 +132,7 @@ export function findNodes<T extends ts.Node>(
}
if (max > 0 && (recursive || !test(node))) {
for (const child of node.getChildren()) {
findNodes(child, test, max).forEach((node) => {
findNodes(child, test, max, recursive).forEach((node) => {
if (max > 0) {
arr.push(node);
}
Expand Down

0 comments on commit b236341

Please sign in to comment.