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); }
public void AddDiagnostic(ICodeLocation location, Diagnostic d) { Console.Out.WriteLine("{0}: {1}: {2}", location.Text, d.ImageKey, d.Message); }
public void AddDiagnostic(Address addr, Diagnostic d) { Console.Write(d.GetType().Name); Console.Write(" - "); Console.WriteLine(addr.ToString()); Console.Write(": "); Console.WriteLine(d.Message); }
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); })); }
public void WriteDiagnostic(Diagnostic d, string format, params object[] args) { writer.Write("{0}: ", d); writer.Write(format, args); writer.WriteLine("<br />"); }
public void AddDiagnostic(ICodeLocation location, Diagnostic d) { throw new NotImplementedException(); }
public void AddDiagnostic(Diagnostic d) { throw new NotImplementedException(); }