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);
}