Since this function needs to handle recursive functions, it needs to know the name of its input function, so this must be provided as a bare symbol.
loop_transform(fun, byte_compile = TRUE, set_srcref = TRUE)
The function to transform. Must be provided as a bare name.
Flag specifying whether to compile the function after transformation.
Flag specifying whether the "srcref" attribute should be set to the original value. If you do this, you can print the modified function and it will look like the original, but printing it will not show the actual, tranformed, source.