84 references to NavigateToMatchKind
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
NavigateTo\NavigateToSearcherTests.cs (1)
278
public
NavigateToMatchKind
MatchKind => throw new NotImplementedException();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (12)
NavigateTo\NavigateToItemProvider.Callback.cs (12)
89
private static PatternMatchKind GetPatternMatchKind(
NavigateToMatchKind
matchKind)
92
NavigateToMatchKind
.Exact => PatternMatchKind.Exact,
93
NavigateToMatchKind
.Prefix => PatternMatchKind.Prefix,
94
NavigateToMatchKind
.Substring => PatternMatchKind.Substring,
95
NavigateToMatchKind
.Regular => PatternMatchKind.Fuzzy,
96
NavigateToMatchKind
.None => PatternMatchKind.Fuzzy,
97
NavigateToMatchKind
.CamelCaseExact => PatternMatchKind.CamelCaseExact,
98
NavigateToMatchKind
.CamelCasePrefix => PatternMatchKind.CamelCasePrefix,
99
NavigateToMatchKind
.CamelCaseNonContiguousPrefix => PatternMatchKind.CamelCaseNonContiguousPrefix,
100
NavigateToMatchKind
.CamelCaseSubstring => PatternMatchKind.CamelCaseSubstring,
101
NavigateToMatchKind
.CamelCaseNonContiguousSubstring => PatternMatchKind.CamelCaseNonContiguousSubstring,
102
NavigateToMatchKind
.Fuzzy => PatternMatchKind.Fuzzy,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (13)
Internal\NavigateTo\FSharpNavigateToMatchKindHelpers.cs (12)
16
public static
NavigateToMatchKind
ConvertTo(FSharpNavigateToMatchKind kind)
22
return
NavigateToMatchKind
.Exact;
26
return
NavigateToMatchKind
.Prefix;
30
return
NavigateToMatchKind
.Substring;
34
return
NavigateToMatchKind
.Regular;
38
return
NavigateToMatchKind
.None;
42
return
NavigateToMatchKind
.CamelCaseExact;
46
return
NavigateToMatchKind
.CamelCasePrefix;
50
return
NavigateToMatchKind
.CamelCaseNonContiguousPrefix;
54
return
NavigateToMatchKind
.CamelCaseSubstring;
58
return
NavigateToMatchKind
.CamelCaseNonContiguousSubstring;
62
return
NavigateToMatchKind
.Fuzzy;
Internal\NavigateTo\InternalFSharpNavigateToSearchResult.cs (1)
21
public
NavigateToMatchKind
MatchKind { get; }
Microsoft.CodeAnalysis.ExternalAccess.FSharp.UnitTests (14)
FSharpNavigateToMatchKindTests.cs (14)
27
internal static
NavigateToMatchKind
GetExpectedNavigateToMatchKind(FSharpNavigateToMatchKind kind)
33
return
NavigateToMatchKind
.Exact;
37
return
NavigateToMatchKind
.Prefix;
41
return
NavigateToMatchKind
.Substring;
45
return
NavigateToMatchKind
.Regular;
49
return
NavigateToMatchKind
.None;
53
return
NavigateToMatchKind
.CamelCaseExact;
57
return
NavigateToMatchKind
.CamelCasePrefix;
61
return
NavigateToMatchKind
.CamelCaseNonContiguousPrefix;
65
return
NavigateToMatchKind
.CamelCaseSubstring;
69
return
NavigateToMatchKind
.CamelCaseNonContiguousSubstring;
73
return
NavigateToMatchKind
.Fuzzy;
86
var
actual = FSharpNavigateToMatchKindHelpers.ConvertTo(kind);
87
var
expected = GetExpectedNavigateToMatchKind(kind);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.UnitTests (1)
EnumTests.cs (1)
25
[InlineData(typeof(
NavigateToMatchKind
), typeof(OmniSharpNavigateToMatchKind))]
Microsoft.CodeAnalysis.Features (43)
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (12)
113
public
NavigateToMatchKind
MatchKind
116
VSTypeScriptNavigateToMatchKind.Exact =>
NavigateToMatchKind
.Exact,
117
VSTypeScriptNavigateToMatchKind.Prefix =>
NavigateToMatchKind
.Prefix,
118
VSTypeScriptNavigateToMatchKind.Substring =>
NavigateToMatchKind
.Substring,
119
VSTypeScriptNavigateToMatchKind.Regular =>
NavigateToMatchKind
.Regular,
120
VSTypeScriptNavigateToMatchKind.None =>
NavigateToMatchKind
.None,
121
VSTypeScriptNavigateToMatchKind.CamelCaseExact =>
NavigateToMatchKind
.CamelCaseExact,
122
VSTypeScriptNavigateToMatchKind.CamelCasePrefix =>
NavigateToMatchKind
.CamelCasePrefix,
123
VSTypeScriptNavigateToMatchKind.CamelCaseNonContiguousPrefix =>
NavigateToMatchKind
.CamelCaseNonContiguousPrefix,
124
VSTypeScriptNavigateToMatchKind.CamelCaseSubstring =>
NavigateToMatchKind
.CamelCaseSubstring,
125
VSTypeScriptNavigateToMatchKind.CamelCaseNonContiguousSubstring =>
NavigateToMatchKind
.CamelCaseNonContiguousSubstring,
126
VSTypeScriptNavigateToMatchKind.Fuzzy =>
NavigateToMatchKind
.Fuzzy,
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (15)
24
private static readonly ImmutableArray<(PatternMatchKind roslynKind,
NavigateToMatchKind
vsKind)> s_kindPairs =
26
(PatternMatchKind.Exact,
NavigateToMatchKind
.Exact),
27
(PatternMatchKind.Prefix,
NavigateToMatchKind
.Prefix),
28
(PatternMatchKind.NonLowercaseSubstring,
NavigateToMatchKind
.Substring),
29
(PatternMatchKind.StartOfWordSubstring,
NavigateToMatchKind
.Substring),
30
(PatternMatchKind.CamelCaseExact,
NavigateToMatchKind
.CamelCaseExact),
31
(PatternMatchKind.CamelCasePrefix,
NavigateToMatchKind
.CamelCasePrefix),
32
(PatternMatchKind.CamelCaseNonContiguousPrefix,
NavigateToMatchKind
.CamelCaseNonContiguousPrefix),
33
(PatternMatchKind.CamelCaseSubstring,
NavigateToMatchKind
.CamelCaseSubstring),
34
(PatternMatchKind.CamelCaseNonContiguousSubstring,
NavigateToMatchKind
.CamelCaseNonContiguousSubstring),
35
(PatternMatchKind.Fuzzy,
NavigateToMatchKind
.Fuzzy),
37
(PatternMatchKind.LowercaseSubstring,
NavigateToMatchKind
.Fuzzy));
174
var
matchKind = GetNavigateToMatchKind(nameMatches);
267
private static
NavigateToMatchKind
GetNavigateToMatchKind(in TemporaryArray<PatternMatch> nameMatches)
284
return
NavigateToMatchKind
.Regular;
NavigateTo\INavigateToSearchResult.cs (13)
19
NavigateToMatchKind
MatchKind { get; }
45
private static PatternMatchKind GetPatternMatchKind(
NavigateToMatchKind
matchKind)
48
NavigateToMatchKind
.Exact => PatternMatchKind.Exact,
49
NavigateToMatchKind
.Prefix => PatternMatchKind.Prefix,
50
NavigateToMatchKind
.Substring => PatternMatchKind.NonLowercaseSubstring,
51
NavigateToMatchKind
.Regular => PatternMatchKind.Fuzzy,
52
NavigateToMatchKind
.None => PatternMatchKind.Fuzzy,
53
NavigateToMatchKind
.CamelCaseExact => PatternMatchKind.CamelCaseExact,
54
NavigateToMatchKind
.CamelCasePrefix => PatternMatchKind.CamelCasePrefix,
55
NavigateToMatchKind
.CamelCaseNonContiguousPrefix => PatternMatchKind.CamelCaseNonContiguousPrefix,
56
NavigateToMatchKind
.CamelCaseSubstring => PatternMatchKind.CamelCaseSubstring,
57
NavigateToMatchKind
.CamelCaseNonContiguousSubstring => PatternMatchKind.CamelCaseNonContiguousSubstring,
58
NavigateToMatchKind
.Fuzzy => PatternMatchKind.Fuzzy,
NavigateTo\RoslynNavigateToItem.cs (3)
48
public readonly
NavigateToMatchKind
MatchKind;
65
NavigateToMatchKind
matchKind,
208
NavigateToMatchKind
INavigateToSearchResult.MatchKind => _item.MatchKind;