Returns FunctionEnvironment even if compile_only is defined.