protected void ProcessDeclarationsForIterator(DeclarationCollection declarations, IType iteratorType)
{
var defaultDeclType = GetEnumeratorItemType(iteratorType);
if (declarations.Count > 1)
// will enumerate (unpack) each item
defaultDeclType = GetEnumeratorItemType(defaultDeclType);
foreach (var d in declarations)
ProcessDeclarationForIterator(d, defaultDeclType);
}