Skip to content

Commit b236341

Browse files
jaroslawsawickiclydin
authored andcommitted
fix(@schematics/angular): pass down recursive flag
This change makes `findNodes` recursive
1 parent 8d7703e commit b236341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/schematics/angular/utility/ast-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export function findNodes<T extends ts.Node>(
132132
}
133133
if (max > 0 && (recursive || !test(node))) {
134134
for (const child of node.getChildren()) {
135-
findNodes(child, test, max).forEach((node) => {
135+
findNodes(child, test, max, recursive).forEach((node) => {
136136
if (max > 0) {
137137
arr.push(node);
138138
}

0 commit comments

Comments
 (0)