Ejemplo n.º 1
0
 public void AddDiagnostic(ICodeLocation location, Diagnostic d)
 {
     StringBuilder sb = new StringBuilder();
     sb.AppendFormat("{0} - {1} - {2}", d.GetType().Name, location.Text, d.Message);
     lastDiagnostic = sb.ToString();
     Debug.WriteLine(lastDiagnostic);
 }
Ejemplo n.º 2
0
 public void AddDiagnostic(ICodeLocation location, Diagnostic d)
 {
     Console.Out.WriteLine("{0}: {1}: {2}",
         location.Text,
         d.ImageKey,
         d.Message);
 }
Ejemplo n.º 3
0
 public void AddDiagnostic(Address addr, Diagnostic d)
 {
     Console.Write(d.GetType().Name);
     Console.Write(" - ");
     Console.WriteLine(addr.ToString());
     Console.Write(": ");
     Console.WriteLine(d.Message);
 }
Ejemplo n.º 4
0
        public void AddDiagnostic(ICodeLocation location, Diagnostic d)
        {
            if (!listView.IsHandleCreated)
            {
                if (pending == null)
                    pending = new List<KeyValuePair<ICodeLocation, Diagnostic>>();
                pending.Add(new KeyValuePair<ICodeLocation, Diagnostic>(location, d));
                return;
            }

            // This may be called from a worker thread, so we have to be careful to 
            // call the listView on the UI thread.
            listView.Invoke(new Action(() =>
            {
                var li = new ListViewItem();
                li.Text = location.Text;
                li.Tag = location;
                li.ImageKey = d.ImageKey;
                li.SubItems.Add(d.Message);
                listView.Items.Add(li);
            }));
        }
Ejemplo n.º 5
0
		public void WriteDiagnostic(Diagnostic d, string format, params object[] args)
		{
			writer.Write("{0}: ", d);
			writer.Write(format, args);
			writer.WriteLine("<br />");
		}
Ejemplo n.º 6
0
 public void AddDiagnostic(ICodeLocation location, Diagnostic d)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 7
0
 public void AddDiagnostic(Diagnostic d)
 {
     throw new NotImplementedException();
 }