public override void VisitMarkerTag(MarkerTag tag) { if (!Truncating) { using (writer.BeginMarker(tag.Marker)) tag.AcceptContents(this); } }
public void VisitMarkerTag(MarkerTag tag) { if (tag.Class == Marker.StackTraceClass) { testResultMessage = textBuilder.ToString(); textBuilder = new StringBuilder(); } tag.AcceptContents(this); }
public void VisitMarkerTag(MarkerTag tag) { if (tag.Class == Marker.StackTraceClass) { testResultMessage = textBuilder.ToString(); textBuilder = new StringBuilder(); } tag.AcceptContents(this); }
private void VisitLinkMarkerTag(MarkerTag tag) { Marker marker = tag.Marker; string url; marker.Attributes.TryGetValue(Marker.LinkUrlAttrib, out url); if (url != null) { writer.Write("<a class=\"crossref\" href=\""); WriteHtmlEncoded(writer, url); writer.Write("\">"); tag.AcceptContents(this); writer.Write("</a>"); } else { tag.AcceptContents(this); } }
private void VisitCodeLocationMarkerTag(MarkerTag tag) { Marker marker = tag.Marker; string path, line, column; marker.Attributes.TryGetValue(Marker.CodeLocationPathAttrib, out path); marker.Attributes.TryGetValue(Marker.CodeLocationLineNumberAttrib, out line); marker.Attributes.TryGetValue(Marker.CodeLocationColumnNumberAttrib, out column); CodeLocation location = new CodeLocation(path, line != null ? int.Parse(line, CultureInfo.InvariantCulture) : 0, column != null ? int.Parse(column, CultureInfo.InvariantCulture) : 0); WriteCodeLocationLink(writer, location, () => tag.AcceptContents(this)); }
public void VisitMarkerTag(MarkerTag tag) { writer.Write("<span class=\"logStreamMarker-"); WriteHtmlEncoded(writer, tag.Class); writer.Write("\">"); switch (tag.Class) { case Marker.CodeLocationClass: VisitCodeLocationMarkerTag(tag); break; case Marker.LinkClass: VisitLinkMarkerTag(tag); break; default: tag.AcceptContents(this); break; } writer.Write("</span>"); }
/// <inheritdoc /> public virtual void VisitMarkerTag(MarkerTag tag) { tag.AcceptContents(this); }
private void VisitLinkMarkerTag(MarkerTag tag) { Marker marker = tag.Marker; string url; marker.Attributes.TryGetValue(Marker.LinkUrlAttrib, out url); if (url != null) { writer.Write("<a class=\"crossref\" href=\""); WriteHtmlEncoded(writer, url); writer.Write("\">"); tag.AcceptContents(this); writer.Write("</a>"); } else { tag.AcceptContents(this); } }
private void VisitCodeLocationMarkerTag(MarkerTag tag) { Marker marker = tag.Marker; string path, line, column; marker.Attributes.TryGetValue(Marker.CodeLocationPathAttrib, out path); marker.Attributes.TryGetValue(Marker.CodeLocationLineNumberAttrib, out line); marker.Attributes.TryGetValue(Marker.CodeLocationColumnNumberAttrib, out column); CodeLocation location = new CodeLocation(path, line != null ? int.Parse(line, CultureInfo.InvariantCulture) : 0, column != null ? int.Parse(column, CultureInfo.InvariantCulture) : 0); WriteCodeLocationLink(writer, location, () => tag.AcceptContents(this)); }
public void VisitMarkerTag(MarkerTag tag) { writer.Write("<span class=\"logStreamMarker-"); WriteHtmlEncoded(writer, tag.Class); writer.Write("\">"); switch (tag.Class) { case Marker.CodeLocationClass: VisitCodeLocationMarkerTag(tag); break; case Marker.LinkClass: VisitLinkMarkerTag(tag); break; default: tag.AcceptContents(this); break; } writer.Write("</span>"); }