23 references to SearchKind
Microsoft.CodeAnalysis.Workspaces (23)
FindSymbols\Declarations\DeclarationFinder.cs (4)
28Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API"); 40var isExactNameSearch = query.Kind == SearchKind.Exact || 41(query.Kind == SearchKind.ExactIgnoreCase && !syntaxFacts.IsCaseSensitive); 78Contract.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)
36Checksum 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; 28private SearchQuery(string name, SearchKind kind) 35case SearchKind.Exact: 38case SearchKind.ExactIgnoreCase: 41case SearchKind.Fuzzy: 56Kind = SearchKind.Custom; 63public static SearchQuery Create(string name, SearchKind kind) 67=> new(name, ignoreCase ? SearchKind.ExactIgnoreCase : SearchKind.Exact); 70=> new(name, SearchKind.Fuzzy);
FindSymbols\SymbolTree\SymbolTreeInfo.cs (6)
123Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API"); 135Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API"); 147Contract.ThrowIfTrue(query.Kind == SearchKind.Custom, "Custom queries are not supported in this API"); 157SearchKind.Exact => this.FindAsync(lazyAssembly, queryName, ignoreCase: false, cancellationToken: cancellationToken), 158SearchKind.ExactIgnoreCase => this.FindAsync(lazyAssembly, queryName, ignoreCase: true, cancellationToken: cancellationToken), 159SearchKind.Fuzzy => this.FuzzyFindAsync(lazyAssembly, queryName, cancellationToken),