Ejemplo n.º 1
0
 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))
                ));
 }
Ejemplo n.º 2
0
 public ChangeSample(ChangeAndContextSpan before, ChangeAndContextSpan after)
 {
     BeforeSpan = before;
     AfterSpan  = after;
 }