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