2 writes to Runs
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\Internal\Text\ClassifiedTextElement.cs (2)
22Runs = runs?.ToImmutableList() ?? throw new ArgumentNullException("runs"); 27Runs = runs?.ToImmutableList() ?? throw new ArgumentNullException("runs");
32 references to Runs
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (3)
34case nameof(ClassifiedTextElement.Runs): 61writer.WritePropertyName(nameof(ClassifiedTextElement.Runs)); 63foreach (var run in value.Runs)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Hover\HoverTests.cs (2)
618Assert.False(classifiedTextElements.SelectMany(classifiedTextElements => classifiedTextElements.Runs).Any(run => run.NavigationAction != null)); 619var content = string.Join("|", classifiedTextElements.Select(cte => string.Join(string.Empty, cte.Runs.Select(ctr => ctr.Text))));
References\FindAllReferencesHandlerTests.cs (5)
140var actualText = string.Concat(textElement.Runs.Select(r => r.Text)); 292var textRuns = ((ClassifiedTextElement)results.First().Text).Runs; 540item => ((ClassifiedTextElement)item.Text).Runs.Where(run => run.MarkerTagType == ReferenceHighlightingConstants.DefinitionTagId)).Where(i => i.Any()).Count(); 542item => ((ClassifiedTextElement)item.Text).Runs.Where(run => run.MarkerTagType == ReferenceHighlightingConstants.WrittenReferenceTagId)).Where(i => i.Any()).Count(); 544item => ((ClassifiedTextElement)item.Text).Runs.Where(run => run.MarkerTagType == ReferenceHighlightingConstants.ReferenceTagId)).Where(i => i.Any()).Count();
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (17)
Hover\HoverFactoryTest.cs (2)
554Assert.Collection(classifiedTextElement.Runs, 591Assert.Collection(classifiedTextElement.Runs,
Tooltip\ClassifiedTagHelperTooltipFactoryTest.cs (15)
205Assert.Collection(classifiedTextElement.Runs, 247Assert.Collection(classifiedTextElement.Runs, 289Assert.Collection(classifiedTextElement.Runs, 349Assert.Collection(classifiedTextElement.Runs, 403Assert.Collection(classifiedTextElement.Runs, 495Assert.Collection(classifiedTextElement.Runs, 506Assert.Collection(classifiedTextElement.Runs, 518Assert.Empty(classifiedTextElement.Runs); 525Assert.Collection(classifiedTextElement.Runs, 536Assert.Collection(classifiedTextElement.Runs, 594Assert.Collection(classifiedTextElement.Runs, 611Assert.Collection(classifiedTextElement.Runs, 623Assert.Empty(classifiedTextElement.Runs); 630Assert.Collection(classifiedTextElement.Runs, 648Assert.Collection(classifiedTextElement.Runs,
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (3)
Cohost\HoverAssertions.cs (1)
51var allRuns = classifiedText.Runs.ToArray();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (1)
1580foreach (var run in description.Runs)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFindAllReferencesEndpointTest.cs (1)
317return string.Join("", classifiedText.Runs.Select(s => s.Text));
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (1)
1580foreach (var run in description.Runs)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFindAllReferencesEndpointTest.cs (1)
317return string.Join("", classifiedText.Runs.Select(s => s.Text));