public MDRefactoringScript (MDRefactoringContext context, CSharpFormattingOptions formattingOptions) : base(context.TextEditor.Document, formattingOptions, context.TextEditor.CreateNRefactoryTextEditorOptions ())
		{
			this.context = context;
			undoGroup  = this.context.TextEditor.OpenUndoGroup ();
			this.startVersion = this.context.TextEditor.Version;

		}
Beispiel #2
0
 public MDRefactoringScript(MDRefactoringContext context, Document document, CSharpFormattingOptions formattingOptions) : base(document.Editor.Document, formattingOptions, document.Editor.CreateNRefactoryTextEditorOptions())
 {
     this.context      = context;
     this.document     = document;
     undoGroup         = this.document.Editor.OpenUndoGroup();
     this.startVersion = this.document.Editor.Version;
 }
 public TextSourceVersionWrapper(ICSharpCode.NRefactory.Editor.ITextSourceVersion version)
 {
     if (version == null)
     {
         throw new ArgumentNullException("version");
     }
     this.version = version;
 }
		public TextSourceVersionWrapper (ICSharpCode.NRefactory.Editor.ITextSourceVersion version)
		{
			if (version == null)
				throw new ArgumentNullException ("version");
			this.version = version;
		}