24 references to SearchKind
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\SymbolFinder\RemoteSymbolFinderService.cs (1)
97SearchKind searchKind,
Microsoft.CodeAnalysis.Workspaces (23)
FindSymbols\Declarations\DeclarationFinder.cs (4)
30Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API"); 42var isExactNameSearch = query.Kind == SearchKind.Exact || 43(query.Kind == SearchKind.ExactIgnoreCase && !syntaxFacts.IsCaseSensitive); 80Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API");
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
28Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API");
FindSymbols\IRemoteSymbolFinderService.cs (1)
38Checksum solutionChecksum, ProjectId projectId, string name, SearchKind searchKind, SymbolFilter criteria, CancellationToken cancellationToken);
FindSymbols\SearchQuery.cs (11)
17/// SearchKind is not <see cref="SearchKind.Custom"/>.</summary> 18public readonly SearchKind Kind; 25private SearchQuery(string name, SearchKind kind) 32case SearchKind.Exact: 35case SearchKind.ExactIgnoreCase: 38case SearchKind.Fuzzy: 53Kind = SearchKind.Custom; 60public static SearchQuery Create(string name, SearchKind kind) 64=> new(name, ignoreCase ? SearchKind.ExactIgnoreCase : SearchKind.Exact); 67=> new(name, SearchKind.Fuzzy);
FindSymbols\SymbolTree\SymbolTreeInfo.cs (6)
126Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API"); 138Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API"); 150Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API"); 160SearchKind.Exact => this.FindAsync(lazyAssembly, queryName, ignoreCase: false, cancellationToken: cancellationToken), 161SearchKind.ExactIgnoreCase => this.FindAsync(lazyAssembly, queryName, ignoreCase: true, cancellationToken: cancellationToken), 162SearchKind.Fuzzy => this.FuzzyFindAsync(lazyAssembly, queryName, cancellationToken),