Example #1
0
 private static string ToConciseString(IAnnotationBoundaryMap map)
 {
     var b = new StringBuilder();
     b.Append("{ ");
     bool notEmpty = false;
     for (int i = 0; i < map.EndSize(); ++i)
     {
         if (notEmpty)
         {
             b.Append(", ");
         }
         else
         {
             notEmpty = true;
         }
         b.Append(LiteralString(map.GetEndKey(i)));
     }
     for (int i = 0; i < map.ChangeSize(); ++i)
     {
         if (notEmpty)
         {
             b.Append(", ");
         }
         else
         {
             notEmpty = true;
         }
         b.Append(LiteralString(map.GetChangeKey(i)));
         b.Append(": ");
         b.Append(LiteralString(map.GetOldValue(i)));
         b.Append(" -> ");
         b.Append(LiteralString(map.GetNewValue(i)));
     }
     b.Append(" }");
     return notEmpty ? b.ToString() : "{}";
 }
 public void AnnotationBoundary(IAnnotationBoundaryMap map)
 {
     throw new System.NotImplementedException();
 }
 public AnnotationBoundary(IAnnotationBoundaryMap boundary)
 {
     _boundary = boundary;
 }
Example #4
0
 public void AnnotationBoundary(IAnnotationBoundaryMap map)
 {
     _sb.Append("|| " + ToConciseString(map) + "; ");
 }
 public void AnnotationBoundary(IAnnotationBoundaryMap map)
 {
     _inner.AnnotationBoundary(map);
 }
Example #6
0
 public DocOpBuilder AnnotationBoundary(IAnnotationBoundaryMap map)
 {
     _accu.Add(new AnnotationBoundary(map));
     return this;
 }
Example #7
0
 public abstract void AnnotationBoundary(IAnnotationBoundaryMap map);
Example #8
0
 public override void AnnotationBoundary(IAnnotationBoundaryMap map)
 {
     _preAnnotationQueue.Enqueue(map);
 }
Example #9
0
 public override void Unqueue(IAnnotationBoundaryMap map)
 {
     throw new NotImplementedException();
 }
Example #10
0
 public void Enqueue(IAnnotationBoundaryMap map)
 {
     _events.Add(map);
 }
Example #11
0
 public abstract void Unqueue(IAnnotationBoundaryMap map);