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

ProcessDeclarationForIterator() защищенный Метод

protected ProcessDeclarationForIterator ( Declaration d, IType defaultDeclType ) : void
d Declaration
defaultDeclType IType
Результат void
        protected void ProcessDeclarationForIterator(Declaration d, IType defaultDeclType)
        {
            var local = LocalToReuseFor(d);
            if (local != null)
            {
                var localType = ((InternalLocal)GetEntity(local)).Type;
                AssertTypeCompatibility(d, localType, defaultDeclType);

                d.Type = CodeBuilder.CreateTypeReference(localType);
                d.Entity = local.Entity;
                return;
            }
            GetDeclarationType(defaultDeclType, d);
            DeclareLocal(d, true);
        }
ProcessMethodBodies