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