fix(compiler): avoid errors with extremely long instruction chains (#45574)
fix(compiler): avoid errors with extremely long instruction chains (#45574)

Our logic for generating code from an AST uses recursion which limits the number of expressions we can nest before we reach the call stack limit. These changes add a limit in order to avoid errors in some cases where the chains become extremely long.

Fixes #45564.

PR Close #45574

JiaLiPassion/angular,angular-indonesia/angular,gkalpak/angular,angular-indonesia/angular,JiaLiPassion/angular,gkalpak/angular,angular-indonesia/angular,angular/angular,angular/angular,gkalpak/angular,gnomeontherun/angular,angular/angular,gkalpak/angular,gnomeontherun/angular,gnomeontherun/angular,angular/angular,JiaLiPassion/angular,JiaLiPassion/angular,angular-indonesia/angular,gnomeontherun/angular