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");
10 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)
133var actualText = string.Concat(textElement.Runs.Select(r => r.Text)); 285var textRuns = ((ClassifiedTextElement)results.First().Text).Runs; 427item => ((ClassifiedTextElement)item.Text).Runs.Where(run => run.MarkerTagType == ReferenceHighlightingConstants.DefinitionTagId)).Where(i => i.Any()).Count(); 429item => ((ClassifiedTextElement)item.Text).Runs.Where(run => run.MarkerTagType == ReferenceHighlightingConstants.WrittenReferenceTagId)).Where(i => i.Any()).Count(); 431item => ((ClassifiedTextElement)item.Text).Runs.Where(run => run.MarkerTagType == ReferenceHighlightingConstants.ReferenceTagId)).Where(i => i.Any()).Count();