perf(parser): remove const generic param from finish_next_inner
#19684
+24
−10
finish_next_inner
#19684