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