Exemplo n.º 1
0
 public static void AddImaginaryBlock(this DiffFile file, DiffInfo textInfo)
 {
     file.AppendDiffBlock(textInfo.BlockPosition, textInfo.TextOffset,
                          DiffBlockType.Imaginary);
     textInfo.BlockPosition++;
     textInfo.TextOffset++;
 }
Exemplo n.º 2
0
 public static void AddUnchangedBlocks(this DiffFile diffFile, DiffInfo textInfo)
 {
     while (textInfo.BlockPosition - textInfo.TextOffset < textInfo.HighBound)
     {
         diffFile.AppendDiffBlock(textInfo.BlockPosition,
                                  textInfo.TextOffset,
                                  DiffBlockType.Unchanged);
         textInfo.BlockPosition++;
     }
 }
Exemplo n.º 3
0
 public static void AddDiffBlock(this DiffFile file, DiffInfo textInfo, DiffBlockType diffBlockType)
 {
     file.AppendDiffBlock(textInfo.BlockPosition, textInfo.TextOffset,
                          diffBlockType);
     textInfo.BlockPosition++;
 }