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 CodeSearchResult(uint rank, ICodeLocation location, int extent) { Rank = rank; Summary = Summary; Location = location; Extent = extent; }
public void AddDiagnostic(ICodeLocation location, Diagnostic d) { Console.Out.WriteLine("{0}: {1}: {2}", location.Text, d.ImageKey, d.Message); }
public void Error(ICodeLocation location, Exception ex, string message, params object[] args) { Debug.Print("Error: {0}: {1} {2}", location, string.Format(message, args), ex.Message); }
public Reference(Cursor c, IDeclaration decl, ISymbolTable table) { _cursor = c; _decl = decl; _table = table; _location = new CodeLocation(c.Extent.Start); //todo - replace for doc tracking }
public LibClang.Cursor GetCursorAt(ICodeLocation location) { LibClang.Cursor c = _tu.GetCursorAt(location.Path, location.Offset); if (c.Kind == CursorKind.NoDeclFound) return null; return c; }
public FindAllReferencesSearch(IProjectIndex index, ICodeLocation location) { JadeUtils.ArgChecking.ThrowIfNull(index, "index"); JadeUtils.ArgChecking.ThrowIfNull(location, "location"); _projectIndex = index; _location = location; }
private void AddDiagnosticImpl(ICodeLocation location, Diagnostic d) { 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 Error(ICodeLocation location, Exception ex, string message) { Console.Out.WriteLine("{0}: error: {1}", location.Text, message); Console.Out.WriteLine(" {0}", ex.Message); while (ex != null) { Console.Out.WriteLine(" {0}", ex.StackTrace); ex = ex.InnerException; } }
public IEnumerable<ICodeLocation> BrowseFrom(ICodeLocation loc) { ArgChecking.NotNull(loc, "loc"); IProjectItem item = _index.FindProjectItem(loc.Path); if (item == null) yield break; foreach (TranslationUnit tu in item.TranslationUnits) { ICodeLocation result = JumpTo(tu, loc); if (result != null) yield return result; } }
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 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 Warn(ICodeLocation location, string message) { Console.Out.WriteLine("{0}: warning: {1}", location.Text, message); }
public void Error(ICodeLocation location, Exception ex, string message) { Debug.Print("Error: {0}: {1} {2}", location, message, ex.Message); }
public void Error(ICodeLocation location, Exception ex, string message, params object[] args) { diagnosticSvc.Error(location, ex, message, args); }
public void Warn(ICodeLocation location, string message) { diagnosticSvc.Warn(location, message); }
public void Error(ICodeLocation location, Exception ex, string message, params object[] args) { Error(location, ex, string.Format(message, args)); }
public void Warn(ICodeLocation location, string message) { AddDiagnostic(location, new WarningDiagnostic(message)); }
public void Warn(ICodeLocation location, string message, params object[] args) { diagnosticSvc.Warn(location, message, args); }
public void Warn(ICodeLocation location, string message) { Debug.Print("Warning: {0}: {1}", location, message); }
public void Warn(ICodeLocation location, string message, params object[] args) { Debug.Print("{0}: warning: {1}", location, string.Format(message, args)); }
public void Warn(ICodeLocation location, string message) { Debug.Print("{0}: warning: {1}", location, message); }
public void Error(ICodeLocation location, Exception ex, string message) { Debug.Print("{0}: error: {1} {2}", location, message, ex.Message); Debug.Print(ex.StackTrace); }
public void Error(ICodeLocation location, string message) { Debug.Print("{0}: error: {1}", location, message); }
public void Error(ICodeLocation location, string message) { Console.Out.WriteLine("{0}: error: {1}", location.Text, message); }
public void Error(ICodeLocation location, Exception ex, string message, params object[] args) { AddDiagnostic(location, new ErrorDiagnostic(string.Format(message, args), ex)); }
public void Info(ICodeLocation location, string message) { Debug.Print("Info: {0}: {1}", location, message); }
public void Warn(ICodeLocation location, string message, params object[] args) { Warn(location, string.Format(message, args)); }
public void Error(ICodeLocation location, string message, params object [] args) { Debug.Print("Error: {0}: {1}", location, string.Format(message, args)); }
public void Error(ICodeLocation location, string message, params object[] args) { throw new NotImplementedException(); }
public void Error(ICodeLocation location, Exception ex, string message) { AddDiagnostic(location, new ErrorDiagnostic(message, ex)); }
public void Error(ICodeLocation location, Exception ex, string message, params object[] args) { writer.WriteLine("{0}: error: {1} {2}", location, string.Format(message, args), GetExceptionMessage(ex)); writer.WriteLine(ex.StackTrace); }
public void Error(ICodeLocation location, string message) { AddDiagnostic(location, new ErrorDiagnostic(message)); }
public void Warn(ICodeLocation location, string message) { throw new NotImplementedException(); }
public void Error(ICodeLocation location, Exception ex, string message) { diagnosticSvc.Error(location, ex, message); }
public void Warn(ICodeLocation location, string message, params object[] args) { writer.WriteLine("{0}: warning: {1}", location, string.Format(message, args)); }
public void Info(ICodeLocation location, string message) { diagnosticSvc.Inform(location, message); }
public void Info(ICodeLocation location, string message, params object[] args) { diagnosticSvc.Inform(location, message, args); }
public void Warn(ICodeLocation location, string message, params object[] args) { AddDiagnostic(location, new WarningDiagnostic(string.Format(message, args))); }
public void AddDiagnostic(ICodeLocation location, Diagnostic d) { throw new NotImplementedException(); }
public void Error(ICodeLocation location, string message) { Debug.Print("Error: {0}: {1}", location, message); }
public void Inform(ICodeLocation location, string message, params object[] args) { Inform(location, string.Format(message, args)); }
public void Error(ICodeLocation location, Exception ex, string message) { }
public void Error(ICodeLocation location, Exception ex, string message, params object[] args) { Debug.Print("{0}: error: {1} {2}", location, string.Format(message, args), ex.Message); Debug.Print(ex.StackTrace); }