Boo.Lang.Compiler.Steps.GeneratorMethodProcessor.FixGeneratorMethodBody C# (CSharp) Метод

FixGeneratorMethodBody() приватный Метод

private FixGeneratorMethodBody ( MethodInvocationExpression enumerableConstructorInvocation ) : void
enumerableConstructorInvocation Boo.Lang.Compiler.Ast.MethodInvocationExpression
Результат void
        void FixGeneratorMethodBody(MethodInvocationExpression enumerableConstructorInvocation)
        {
            Block body = _generator.Method.Body;
            body.Clear();

            body.Add(
                new ReturnStatement(
                    _generator.Method.LexicalInfo,
                    GeneratorReturnsIEnumerator()
                    ? CreateGetEnumeratorInvocation(enumerableConstructorInvocation)
                    : enumerableConstructorInvocation));
        }