3 writes to _source
Microsoft.CodeAnalysis.CodeStyle (3)
WordSimilarityChecker.cs (3)
63_source = null!; 69_source = text ?? throw new ArgumentNullException(nameof(text)); 78_source = null!;
5 references to _source
Microsoft.CodeAnalysis.CodeStyle (5)
WordSimilarityChecker.cs (5)
70_threshold = GetThreshold(_source); 122if (_source.Length < 3) 148if (Math.Abs(_source.Length - candidateText.Length) <= _threshold) 159if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0) 171similarityWeight += Penalty(candidateText, _source);