1 write to MatchedSpans
Microsoft.CodeAnalysis.Workspaces (1)
PatternMatching\PatternMatch.cs (1)
55this.MatchedSpans = matchedSpans;
16 references to MatchedSpans
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
616return patternMatch.Value.MatchedSpans.SelectAsArray(GetOffsetSpan, matchResult.CompletionItem);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Utilities\PatternMatcherTests.cs (2)
470Assert.Equal<TextSpan>(match.Value.MatchedSpans, spans); 492flattened.AddRange(match.MatchedSpans);
Microsoft.CodeAnalysis.Features (2)
Completion\PatternMatchHelper.cs (1)
45return match == null ? [] : match.Value.MatchedSpans;
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (1)
211matchedSpans.AddRange(match.MatchedSpans);
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
FindSymbols\RegexPatternMatcherTests.cs (10)
111Assert.Single(match.Value.MatchedSpans); 112Assert.Equal(4, match.Value.MatchedSpans[0].Start); 113Assert.Equal(4, match.Value.MatchedSpans[0].Length); 121Assert.Single(match.Value.MatchedSpans); 123Assert.Equal(2, match.Value.MatchedSpans[0].Start); 124Assert.Equal(15, match.Value.MatchedSpans[0].Length); 132Assert.Single(match.Value.MatchedSpans); 133Assert.Equal(0, match.Value.MatchedSpans[0].Start); 134Assert.Equal(6, match.Value.MatchedSpans[0].Length); 142Assert.True(match.Value.MatchedSpans.IsDefaultOrEmpty);
Microsoft.VisualStudio.LanguageServices (1)
NavigateTo\RoslynNavigateToSearchCallback.cs (1)
60m.MatchedSpans.SelectAsArray(static s => s.ToSpan())));