Reduce complexity in NodePattern
Reduce complexity in NodePattern

* Extract `compile_union` into smaller methods.
* Add `with_temp_node`, `with_temp_value`, and `next_temp_value` helper
methods.

tdeo/rubocop,akihiro17/rubocop,legendetm/rubocop,sinsoku/rubocop,rtlechow/rubocop,meganemura/rubocop,vergenzt/rubocop,jfelchner/rubocop,mikegee/rubocop,lumeet/rubocop,alexcstark/rubocop,melch/rubocop,ilansh/rubocop,bquorning/rubocop,jmks/rubocop,rrosenblum/rubocop,deivid-rodriguez/rubocop,lucasuyezu/rubocop,ilansh/rubocop,petehamilton/rubocop,lumeet/rubocop,vergenzt/rubocop,meganemura/rubocop,jfelchner/rubocop,mclark/rubocop,backus/rubocop,smakagon/rubocop,bankair/rubocop,haziqhafizuddin/rubocop,pocke/rubocop,vergenzt/rubocop,iGEL/rubocop,scottmatthewman/rubocop,rrosenblum/rubocop,Drenmi/rubocop,mikegee/rubocop,smakagon/rubocop,tdeo/rubocop,scottmatthewman/rubocop,jmks/rubocop,maxjacobson/rubocop,melch/rubocop,alexdowad/rubocop,sinsoku/rubocop,deivid-rodriguez/rubocop,savef/rubocop,tejasbubane/rubocop,jfelchner/rubocop,tejasbubane/rubocop,NobodysNightmare/rubocop,maxjacobson/rubocop,petehamilton/rubocop,panthomakos/rubocop,akihiro17/rubocop,jmks/rubocop,rrosenblum/rubocop,hanumakanthvvn/rubocop,dreyks/rubocop,palkan/rubocop,bquorning/rubocop,panthomakos/rubocop,urbanautomaton/rubocop,bquorning/rubocop,alexdowad/rubocop,haziqhafizuddin/rubocop,rtlechow/rubocop,sue445/rubocop,palkan/rubocop,urbanautomaton/rubocop,backus/rubocop,tdeo/rubocop,bankair/rubocop,b-t-g/rubocop,lucasuyezu/rubocop,petehamilton/rubocop,akihiro17/rubocop,sue445/rubocop,palkan/rubocop,alexcstark/rubocop,mikegee/rubocop,sue445/rubocop,NobodysNightmare/rubocop,panthomakos/rubocop,savef/rubocop,deivid-rodriguez/rubocop,iGEL/rubocop,mclark/rubocop,hanumakanthvvn/rubocop,maxjacobson/rubocop,dreyks/rubocop,meganemura/rubocop,Drenmi/rubocop,b-t-g/rubocop,bbatsov/rubocop,legendetm/rubocop,bbatsov/rubocop,tejasbubane/rubocop,pocke/rubocop