Boo.Lang.Compiler.Steps.ProcessMethodBodies.CheckGeneratorCantReturnValues C# (CSharp) Метод

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

private CheckGeneratorCantReturnValues ( Boo.Lang.Compiler.TypeSystem.InternalMethod entity ) : void
entity Boo.Lang.Compiler.TypeSystem.InternalMethod
Результат void
        void CheckGeneratorCantReturnValues(InternalMethod entity)
        {
            if (!entity.IsGenerator) return;
            if (null == entity.ReturnExpressions) return;

            foreach (Expression e in entity.ReturnExpressions)
            {
                Error(CompilerErrorFactory.GeneratorCantReturnValue(e));
            }
        }
ProcessMethodBodies