Exemple #1
0
        public virtual void AppendMessage(StringBuilder sb)
        {
            if (Context != null)
            {
                var loc = Context.BestLoc;
                if (loc != null && !String.IsNullOrEmpty(loc.File))
                {
                    loc.Append(sb);
                    sb.Append(": ");
                }
            }
            switch (Severity)
            {
            case Severity.Warning:
                sb.Append("warning");
                break;

            default:
                sb.Append("error");
                break;
            }
            sb.Append(' ');
            sb.Append(Id);
            sb.Append(": ");
            if (Context != null)
            {
                Context.Append(sb);
                sb.Append(": ");
            }
        }
 public void Append(StringBuilder sb)
 {
     if (Parent != null)
     {
         Parent.Append(sb);
         if (append != null)
         {
             sb.Append('/');
             append(sb);
         }
     }
     else if (append != null)
     {
         append(sb);
     }
 }