Microsoft.Cci.SourceDocumentEdit.SourceDocumentEdit C# (CSharp) Method

SourceDocumentEdit() protected method

Allocates an object that describes an edit to a source file.
protected SourceDocumentEdit ( ISourceLocation sourceLocationBeforeEdit, ISourceDocument sourceDocumentAfterEdit ) : System
sourceLocationBeforeEdit ISourceLocation
sourceDocumentAfterEdit ISourceDocument
return System
    protected SourceDocumentEdit(ISourceLocation sourceLocationBeforeEdit, ISourceDocument sourceDocumentAfterEdit) {
      Contract.Requires(sourceLocationBeforeEdit != null);
      Contract.Requires(sourceDocumentAfterEdit != null);
      Contract.Requires(sourceDocumentAfterEdit.IsUpdatedVersionOf(sourceLocationBeforeEdit.SourceDocument));

      this.sourceLocationBeforeEdit = sourceLocationBeforeEdit;
      this.sourceDocumentAfterEdit = sourceDocumentAfterEdit;
    }