84 references to NavigateToMatchKind
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
NavigateTo\NavigateToSearcherTests.cs (1)
548
public
NavigateToMatchKind
MatchKind => throw new NotImplementedException();
Microsoft.CodeAnalysis.EditorFeatures (12)
NavigateTo\NavigateToItemProvider.Callback.cs (12)
92
private static PatternMatchKind GetPatternMatchKind(
NavigateToMatchKind
matchKind)
95
NavigateToMatchKind
.Exact => PatternMatchKind.Exact,
96
NavigateToMatchKind
.Prefix => PatternMatchKind.Prefix,
97
NavigateToMatchKind
.Substring => PatternMatchKind.Substring,
98
NavigateToMatchKind
.Regular => PatternMatchKind.Fuzzy,
99
NavigateToMatchKind
.None => PatternMatchKind.Fuzzy,
100
NavigateToMatchKind
.CamelCaseExact => PatternMatchKind.CamelCaseExact,
101
NavigateToMatchKind
.CamelCasePrefix => PatternMatchKind.CamelCasePrefix,
102
NavigateToMatchKind
.CamelCaseNonContiguousPrefix => PatternMatchKind.CamelCaseNonContiguousPrefix,
103
NavigateToMatchKind
.CamelCaseSubstring => PatternMatchKind.CamelCaseSubstring,
104
NavigateToMatchKind
.CamelCaseNonContiguousSubstring => PatternMatchKind.CamelCaseNonContiguousSubstring,
105
NavigateToMatchKind
.Fuzzy => PatternMatchKind.Fuzzy,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (13)
Internal\NavigateTo\FSharpNavigateToMatchKindHelpers.cs (12)
14
public static
NavigateToMatchKind
ConvertTo(FSharpNavigateToMatchKind kind)
20
return
NavigateToMatchKind
.Exact;
24
return
NavigateToMatchKind
.Prefix;
28
return
NavigateToMatchKind
.Substring;
32
return
NavigateToMatchKind
.Regular;
36
return
NavigateToMatchKind
.None;
40
return
NavigateToMatchKind
.CamelCaseExact;
44
return
NavigateToMatchKind
.CamelCasePrefix;
48
return
NavigateToMatchKind
.CamelCaseNonContiguousPrefix;
52
return
NavigateToMatchKind
.CamelCaseSubstring;
56
return
NavigateToMatchKind
.CamelCaseNonContiguousSubstring;
60
return
NavigateToMatchKind
.Fuzzy;
Internal\NavigateTo\InternalFSharpNavigateToSearchResult.cs (1)
21
public
NavigateToMatchKind
MatchKind { get; }
Microsoft.CodeAnalysis.ExternalAccess.FSharp.UnitTests (14)
FSharpNavigateToMatchKindTests.cs (14)
26
internal static
NavigateToMatchKind
GetExpectedNavigateToMatchKind(FSharpNavigateToMatchKind kind)
32
return
NavigateToMatchKind
.Exact;
36
return
NavigateToMatchKind
.Prefix;
40
return
NavigateToMatchKind
.Substring;
44
return
NavigateToMatchKind
.Regular;
48
return
NavigateToMatchKind
.None;
52
return
NavigateToMatchKind
.CamelCaseExact;
56
return
NavigateToMatchKind
.CamelCasePrefix;
60
return
NavigateToMatchKind
.CamelCaseNonContiguousPrefix;
64
return
NavigateToMatchKind
.CamelCaseSubstring;
68
return
NavigateToMatchKind
.CamelCaseNonContiguousSubstring;
72
return
NavigateToMatchKind
.Fuzzy;
85
var
actual = FSharpNavigateToMatchKindHelpers.ConvertTo(kind);
86
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)
102
public
NavigateToMatchKind
MatchKind
105
VSTypeScriptNavigateToMatchKind.Exact =>
NavigateToMatchKind
.Exact,
106
VSTypeScriptNavigateToMatchKind.Prefix =>
NavigateToMatchKind
.Prefix,
107
VSTypeScriptNavigateToMatchKind.Substring =>
NavigateToMatchKind
.Substring,
108
VSTypeScriptNavigateToMatchKind.Regular =>
NavigateToMatchKind
.Regular,
109
VSTypeScriptNavigateToMatchKind.None =>
NavigateToMatchKind
.None,
110
VSTypeScriptNavigateToMatchKind.CamelCaseExact =>
NavigateToMatchKind
.CamelCaseExact,
111
VSTypeScriptNavigateToMatchKind.CamelCasePrefix =>
NavigateToMatchKind
.CamelCasePrefix,
112
VSTypeScriptNavigateToMatchKind.CamelCaseNonContiguousPrefix =>
NavigateToMatchKind
.CamelCaseNonContiguousPrefix,
113
VSTypeScriptNavigateToMatchKind.CamelCaseSubstring =>
NavigateToMatchKind
.CamelCaseSubstring,
114
VSTypeScriptNavigateToMatchKind.CamelCaseNonContiguousSubstring =>
NavigateToMatchKind
.CamelCaseNonContiguousSubstring,
115
VSTypeScriptNavigateToMatchKind.Fuzzy =>
NavigateToMatchKind
.Fuzzy,
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (15)
26
private static readonly ImmutableArray<(PatternMatchKind roslynKind,
NavigateToMatchKind
vsKind)> s_kindPairs =
28
(PatternMatchKind.Exact,
NavigateToMatchKind
.Exact),
29
(PatternMatchKind.Prefix,
NavigateToMatchKind
.Prefix),
30
(PatternMatchKind.NonLowercaseSubstring,
NavigateToMatchKind
.Substring),
31
(PatternMatchKind.StartOfWordSubstring,
NavigateToMatchKind
.Substring),
32
(PatternMatchKind.CamelCaseExact,
NavigateToMatchKind
.CamelCaseExact),
33
(PatternMatchKind.CamelCasePrefix,
NavigateToMatchKind
.CamelCasePrefix),
34
(PatternMatchKind.CamelCaseNonContiguousPrefix,
NavigateToMatchKind
.CamelCaseNonContiguousPrefix),
35
(PatternMatchKind.CamelCaseSubstring,
NavigateToMatchKind
.CamelCaseSubstring),
36
(PatternMatchKind.CamelCaseNonContiguousSubstring,
NavigateToMatchKind
.CamelCaseNonContiguousSubstring),
37
(PatternMatchKind.Fuzzy,
NavigateToMatchKind
.Fuzzy),
38
(PatternMatchKind.LowercaseSubstring,
NavigateToMatchKind
.Fuzzy),
135
var
matchKind = GetNavigateToMatchKind(nameMatches);
226
private static
NavigateToMatchKind
GetNavigateToMatchKind(in TemporaryArray<PatternMatch> nameMatches)
243
return
NavigateToMatchKind
.Regular;
NavigateTo\INavigateToSearchResult.cs (13)
16
NavigateToMatchKind
MatchKind { get; }
42
private static PatternMatchKind GetPatternMatchKind(
NavigateToMatchKind
matchKind)
45
NavigateToMatchKind
.Exact => PatternMatchKind.Exact,
46
NavigateToMatchKind
.Prefix => PatternMatchKind.Prefix,
47
NavigateToMatchKind
.Substring => PatternMatchKind.NonLowercaseSubstring,
48
NavigateToMatchKind
.Regular => PatternMatchKind.Fuzzy,
49
NavigateToMatchKind
.None => PatternMatchKind.Fuzzy,
50
NavigateToMatchKind
.CamelCaseExact => PatternMatchKind.CamelCaseExact,
51
NavigateToMatchKind
.CamelCasePrefix => PatternMatchKind.CamelCasePrefix,
52
NavigateToMatchKind
.CamelCaseNonContiguousPrefix => PatternMatchKind.CamelCaseNonContiguousPrefix,
53
NavigateToMatchKind
.CamelCaseSubstring => PatternMatchKind.CamelCaseSubstring,
54
NavigateToMatchKind
.CamelCaseNonContiguousSubstring => PatternMatchKind.CamelCaseNonContiguousSubstring,
55
NavigateToMatchKind
.Fuzzy => PatternMatchKind.Fuzzy,
NavigateTo\RoslynNavigateToItem.cs (3)
33
NavigateToMatchKind
matchKind,
57
public readonly
NavigateToMatchKind
MatchKind = matchKind;
199
NavigateToMatchKind
INavigateToSearchResult.MatchKind => _item.MatchKind;