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

            if (list.Find(result.Equals) == null)
            {
                list.Add(result);
            }
        }
Esempio n. 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);
 }