private void TrySetPendingForSuggestion(VariableDefinition variable)
 {
     if (this.variableSuggestedNames.TryGetValue(variable, out V_0))
     {
         V_0.set_IsPendingForSuggestion(true);
         return;
     }
     V_0 = new RenameVariables.VariableSuggestion();
     V_0.set_IsPendingForSuggestion(true);
     this.variableSuggestedNames.Add(variable, V_0);
     return;
 }
 private RenameVariables.VariableSuggestion TryAddNewSuggestionForVariable(VariableDefinition variable, string name)
 {
     if (!this.variableSuggestedNames.TryGetValue(variable, out V_0))
     {
         V_0 = new RenameVariables.VariableSuggestion(name);
         this.variableSuggestedNames.Add(variable, V_0);
     }
     else
     {
         this.AddNewSuggestion(V_0.get_SuggestedNames(), name);
     }
     return(V_0);
 }
 protected virtual void TryRenameVariable(VariableDefinition variable)
 {
     if (this.state == 1)
     {
         if (!this.variableSuggestedNames.TryGetValue(variable, out V_0))
         {
             V_0 = new RenameVariables.VariableSuggestion();
             V_0.set_IsRenamed(true);
             this.TryRenameUsingSuggestions(variable, V_0);
         }
         else
         {
             if (!V_0.get_IsRenamed())
             {
                 V_0.set_IsRenamed(true);
                 this.TryRenameUsingSuggestions(variable, V_0);
                 return;
             }
         }
     }
     return;
 }
        private void TryRenameUsingSuggestions(VariableDefinition variable, RenameVariables.VariableSuggestion variableSuggestion)
        {
            V_0 = 0;
            while (true)
            {
                V_2 = variableSuggestion.get_SuggestedNames().GetEnumerator();
                try
                {
                    while (V_2.MoveNext())
                    {
                        V_3 = V_2.get_Current();
                        if (!this.TryRenameVariable(variable, V_3, V_0))
                        {
                            continue;
                        }
                        goto Label1;
                    }
                }
                finally
                {
                    if (V_2 != null)
                    {
                        V_2.Dispose();
                    }
                }
                if (this.TryRenameVariable(variable, this.GetNameByType(variable.get_VariableType()), V_0))
                {
                    goto Label0;
                }
                V_0 = V_0 + 1;
            }
Label1:
            return;

Label0:
            return;
        }