protected void Print(AbstractMessage msg, TextWriter output, bool showFullPath) { StringBuilder txt = new StringBuilder(); if (!msg.Location.IsNull) { if (showFullPath) { txt.Append(msg.Location.ToStringFullName()); } else { txt.Append(msg.Location.ToString()); } txt.Append(" "); } txt.AppendFormat("{0} VS{1:0000}: {2}", msg.MessageType, msg.Code, msg.Text); if (!msg.IsWarning) { output.WriteLine(FormatText(txt.ToString())); } else { output.WriteLine(txt.ToString()); } }
public virtual void Print(AbstractMessage msg, bool showFullPath) { if (msg.IsWarning) { ++WarningsCount; } else { ++ErrorsCount; } }
public override void Print(AbstractMessage msg, bool showFullPath) { Print(msg, writer, showFullPath); base.Print(msg, showFullPath); }
public override void Print(AbstractMessage msg, bool showFullPath) { Messages.Add(msg); }