예제 #1
0
        private void AddResult(string document, LintingResult result)
        {
            var list = results.GetOrCreate(document);

            if (list.Find(result.Equals) == null)
            {
                list.Add(result);
            }
        }
예제 #2
0
 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);
 }