Example #1
0
            public override void Print (AbstractMessage msg)
            {
                base.Print (msg);

                if (!msg.Location.IsNull) {
                    output.Write (msg.Location.ToString ());
                    output.Write (" ");
                }

                output.WriteLine ("{0} C{1:0000}: {2}", msg.MessageType, msg.Code, msg.Text);
            }
 public virtual void Print(AbstractMessage msg)
 {
     if (msg.IsWarning)
     {
         ++warnings;
     }
     else
     {
         ++errors;
     }
 }
Example #3
0
        public override void Print(AbstractMessage msg)
        {
            if (!msg.Location.IsNull)
            {
                output.Write(msg.Location.ToString());
                output.Write(" ");
            }

            output.WriteLine("{0} C{1:0000}: {2}", msg.MessageType, msg.Code, msg.Text);

            if (msg.RelatedSymbols != null)
            {
                foreach (string s in msg.RelatedSymbols)
                {
                    output.WriteLine("  " + s);
                }
            }
        }
Example #4
0
            public override void Print (AbstractMessage msg)
            {
                base.Print (msg);

                Messages.Add (msg);
            }