refactor(ivy): refactor getBeforeNodeForView for readability (#30614)
refactor(ivy): refactor getBeforeNodeForView for readability (#30614)

PR Close #30614

IdeaBlade/angular,jasonaden/angular,StephenFluin/angular,alxhub/angular,mhevery/angular,manekinekko/angular,gdi2290/angular,jasonaden/angular,mgechev/angular,ocombe/angular,brandonroberts/angular,Brocco/angular,wKoza/angular,Brocco/angular,wKoza/angular,mprobst/angular,JiaLiPassion/angular,wKoza/angular,angular/angular,filipesilva/angular,angular-indonesia/angular,shairez/angular,jasonaden/angular,IdeaBlade/angular,matsko/angular,petebacondarwin/angular,alxhub/angular,sarunint/angular,vikerman/angular,vikerman/angular,gkalpak/angular,angular-indonesia/angular,alexeagle/angular,snaptech/angular,alxhub/angular,alxhub/angular,gdi2290/angular,blesh/angular,angular/angular,manekinekko/angular,blesh/angular,Toxicable/angular,ocombe/angular,Toxicable/angular,gdi2290/angular,StephenFluin/angular,filipesilva/angular,JiaLiPassion/angular,sarunint/angular,filipesilva/angular,StephenFluin/angular,petebacondarwin/angular,wKoza/angular,mgechev/angular,snaptech/angular,gkalpak/angular,gdi2290/angular,IdeaBlade/angular,snaptech/angular,angular/angular,sarunint/angular,blesh/angular,StephenFluin/angular,vikerman/angular,alexeagle/angular,brandonroberts/angular,shairez/angular,shairez/angular,angular-indonesia/angular,StephenFluin/angular,Brocco/angular,mgechev/angular,brandonroberts/angular,alexeagle/angular,alexeagle/angular,angular-indonesia/angular,mhevery/angular,Toxicable/angular,jasonaden/angular,petebacondarwin/angular,angular/angular,matsko/angular,mgechev/angular,petebacondarwin/angular,vikerman/angular,ocombe/angular,JiaLiPassion/angular,Brocco/angular,filipesilva/angular,mhevery/angular,Brocco/angular,IdeaBlade/angular,blesh/angular,manekinekko/angular,manekinekko/angular,wKoza/angular,sarunint/angular,petebacondarwin/angular,vikerman/angular,jasonaden/angular,mhevery/angular,Toxicable/angular,vikerman/angular,ocombe/angular,shairez/angular,alxhub/angular,mprobst/angular,shairez/angular,manekinekko/angular,mhevery/angular,alexeagle/angular,matsko/angular,blesh/angular,gnomeontherun/angular,snaptech/angular,brandonroberts/angular,ocombe/angular,gnomeontherun/angular,mgechev/angular,brandonroberts/angular,matsko/angular,gdi2290/angular,alexeagle/angular,gnomeontherun/angular,petebacondarwin/angular,gdi2290/angular,jasonaden/angular,gnomeontherun/angular,snaptech/angular,snaptech/angular,mhevery/angular,matsko/angular,sarunint/angular,mprobst/angular,ocombe/angular,Toxicable/angular,mprobst/angular,manekinekko/angular,mprobst/angular,gkalpak/angular,gkalpak/angular,filipesilva/angular,Toxicable/angular,mprobst/angular,sarunint/angular,Brocco/angular,wKoza/angular,JiaLiPassion/angular,brandonroberts/angular,IdeaBlade/angular