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
);
122
if (
_source
.Length < 3)
148
if (Math.Abs(
_source
.Length - candidateText.Length) <= _threshold)
159
if (_substringsAreSimilar && candidateText.IndexOf(
_source
, StringComparison.OrdinalIgnoreCase) >= 0)
171
similarityWeight += Penalty(candidateText,
_source
);