private void AddResult(string document, LintingResult result) { var list = results.GetOrCreate(document); if (list.Find(result.Equals) == null) { list.Add(result); } }
public bool Equals(LintingResult other) { return(string.Equals(File, other.File) && Line == other.Line && FirstChar == other.FirstChar && Length == other.Length && string.Equals(Description, other.Description) && Severity == other.Severity); }