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; }
public void AnnotationBoundary(IAnnotationBoundaryMap map) { _sb.Append("|| " + ToConciseString(map) + "; "); }
public void AnnotationBoundary(IAnnotationBoundaryMap map) { _inner.AnnotationBoundary(map); }
public DocOpBuilder AnnotationBoundary(IAnnotationBoundaryMap map) { _accu.Add(new AnnotationBoundary(map)); return this; }
public abstract void AnnotationBoundary(IAnnotationBoundaryMap map);
public override void AnnotationBoundary(IAnnotationBoundaryMap map) { _preAnnotationQueue.Enqueue(map); }
public override void Unqueue(IAnnotationBoundaryMap map) { throw new NotImplementedException(); }
public void Enqueue(IAnnotationBoundaryMap map) { _events.Add(map); }
public abstract void Unqueue(IAnnotationBoundaryMap map);