MonoDevelop.Refactoring.Rename.RenameRefactoring.Rollback C# (CSharp) Method

Rollback() static private method

static private Rollback ( MonoDevelop.Ide.Gui.TextEditor editor, List textChanges ) : void
editor MonoDevelop.Ide.Gui.TextEditor
textChanges List
return void
		static void Rollback (TextEditor editor, List<MonoDevelop.Core.Text.TextChangeEventArgs> textChanges)
		{
			for (int i = textChanges.Count - 1; i >= 0; i--) {
				var v = textChanges [i];
				editor.ReplaceText (v.Offset, v.InsertionLength, v.RemovedText);
			}
		}