public ChangeAndContextSpan Merge(ChangeAndContextSpan other) { Debug.Assert(ContextSpan.OverlapsWith(other.ContextSpan)); return(new ChangeAndContextSpan( new TextSpan(Math.Min(ChangeSpan.Start, other.ChangeSpan.Start), Math.Max(ChangeSpan.End, other.ChangeSpan.End)), new TextSpan(Math.Min(ContextSpan.Start, other.ContextSpan.Start), Math.Max(ContextSpan.End, other.ContextSpan.End)) )); }
public ChangeSample(ChangeAndContextSpan before, ChangeAndContextSpan after) { BeforeSpan = before; AfterSpan = after; }