Skip to content

Commit 178567f

Browse files
jaroslawsawickiclydin
authored andcommitted
fix(@schematics/angular): pass down recursive flag
This change makes `findNodes` recursive (cherry picked from commit b236341)
1 parent a0b02d7 commit 178567f

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)