protected override void TryRenameVariable(VariableDefinition variable) { if (state != State.RenameVariables) { return; } string name = methodContext.VariableDefinitionToNameMap[variable.Resolve()]; if (!IsValidNameInContext(name, variable)) { this.methodContext.VariablesToRename.Add(variable); } base.TryRenameVariable(variable); }
protected override void TryRenameVariable(VariableDefinition variable) { if (this.state != 1) { return; } if (!this.IsValidNameInContext(this.methodContext.get_VariableDefinitionToNameMap().get_Item(variable.Resolve()), variable)) { dummyVar0 = this.methodContext.get_VariablesToRename().Add(variable); } this.TryRenameVariable(variable); return; }