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