1 write to SearchResult
Microsoft.CodeAnalysis.Features (1)
AddImport\References\Reference.cs (1)
33SearchResult = searchResult;
18 references to SearchResult
Microsoft.CodeAnalysis.Features (18)
AddImport\References\AssemblyReference.cs (1)
36var title = $"{provider.GetDescription(SearchResult.NameParts)} ({string.Format(FeaturesResources.from_0, _referenceAssemblyWithType.AssemblyName)})";
AddImport\References\ProjectSymbolReference.cs (1)
70if (SearchResult.DesiredNameMatchesSourceName(document))
AddImport\References\Reference.cs (14)
47SearchResult.DesiredName, other.SearchResult.DesiredName); 56SearchResult.NameParts, other.SearchResult.NameParts, 64(r, d) => r.SearchResult.Weight, 66(r, d) => !r.SearchResult.DesiredNameMatchesSourceName(d)); 74other.SearchResult.NameParts != null && 75SearchResult.NameParts.SequenceEqual(other.SearchResult.NameParts); 79=> Hash.CombineValues(SearchResult.NameParts); 84if (!SearchResult.DesiredNameDiffersFromSourceName()) 89var identifier = SearchResult.NameNode.GetFirstToken(); 91var newIdentifier = generator.IdentifierName(SearchResult.DesiredName).GetFirstToken().WithTriviaFrom(identifier); 116node, SearchResult.NameParts, document, options.AddImportOptions, cancellationToken).ConfigureAwait(false);
AddImport\References\SymbolReference.cs (2)
97var isFuzzy = !SearchResult.DesiredNameMatchesSourceName(document); 103description = $"{SearchResult.DesiredName} - {description}";