18 references to SearchResult
Microsoft.CodeAnalysis.Features (18)
AddImport\References\AssemblyReference.cs (1)
30var title = $"{provider.GetDescription(SearchResult.NameParts)} ({string.Format(FeaturesResources.from_0, _referenceAssemblyWithType.AssemblyName)})";
AddImport\References\ProjectSymbolReference.cs (1)
62if (SearchResult.DesiredNameMatchesSourceName(document))
AddImport\References\Reference.cs (14)
44SearchResult.DesiredName, other.SearchResult.DesiredName); 53SearchResult.NameParts, other.SearchResult.NameParts, 60(r, d) => r.SearchResult.Weight, 61(r, d) => !r.SearchResult.DesiredNameMatchesSourceName(d), 70other.SearchResult.NameParts != null && 71SearchResult.NameParts.SequenceEqual(other.SearchResult.NameParts); 75=> Hash.CombineValues(SearchResult.NameParts); 80if (!SearchResult.DesiredNameDiffersFromSourceName()) 85var identifier = SearchResult.NameNode.GetFirstToken(); 87var newIdentifier = generator.IdentifierName(SearchResult.DesiredName).GetFirstToken().WithTriviaFrom(identifier); 117node, SearchResult.NameParts, document, options.AddImportOptions, cancellationToken).ConfigureAwait(false);
AddImport\References\SymbolReference.cs (2)
91var isFuzzy = !SearchResult.DesiredNameMatchesSourceName(document); 97description = $"{SearchResult.DesiredName} - {description}";