void FixGeneratorMethodBody(MethodInvocationExpression enumerableConstructorInvocation)
{
Block body = _generator.Method.Body;
body.Clear();
body.Add(
new ReturnStatement(
_generator.Method.LexicalInfo,
GeneratorReturnsIEnumerator()
? CreateGetEnumeratorInvocation(enumerableConstructorInvocation)
: enumerableConstructorInvocation));
}