1 write to _source
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (1)
39_source = text ?? throw new ArgumentNullException(nameof(text));
6 references to _source
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\WordSimilarityChecker.cs (6)
35public readonly bool IsDefault => _source is null; 40_threshold = GetThreshold(_source); 87if (_source.Length < 3) 113if (Math.Abs(_source.Length - candidateText.Length) <= _threshold) 124if (_substringsAreSimilar && candidateText.IndexOf(_source, StringComparison.OrdinalIgnoreCase) >= 0) 136similarityWeight += Penalty(candidateText, _source);