Commit da36ca7
authored
fix(material/schematics): avoid mutating the AST when traversing (#25964)
The `visitElements` function was calling `reverse` on the node's `children` which reverses it in place. We shouldn't be mutating the AST just to traverse it in reverse order.
These changes switch to using a reverse loop instead.1 parent 09e44f0 commit da36ca7
File tree
1 file changed
+1
-2
lines changed- src/material/schematics/ng-generate/mdc-migration/rules
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
0 commit comments