コード例 #1
0
ファイル: ReportPrinter.cs プロジェクト: Arsslensoft/VSharp
        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());
            }
        }
コード例 #2
0
ファイル: ReportPrinter.cs プロジェクト: Arsslensoft/VSharp
 public virtual void Print(AbstractMessage msg, bool showFullPath)
 {
     if (msg.IsWarning)
     {
         ++WarningsCount;
     }
     else
     {
         ++ErrorsCount;
     }
 }
コード例 #3
0
 public override void Print(AbstractMessage msg, bool showFullPath)
 {
     Print(msg, writer, showFullPath);
     base.Print(msg, showFullPath);
 }
コード例 #4
0
 public override void Print(AbstractMessage msg, bool showFullPath)
 {
     Messages.Add(msg);
 }