6 references to Sum
Microsoft.CodeAnalysis.Features (5)
Common\TaggedText.cs (1)
143
builder.EnsureCapacity(values.
Sum
(static value => value.Text.Length));
Completion\Utilities.cs (1)
39
var sumOfDeltas = changes.
Sum
(c => c.NewText!.Length - c.Span.Length);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
115
var labelCount = sections.
Sum
(section => section.Labels.IsDefault ? 1 : section.Labels.Length);
NavigateTo\NavigateToSearcher.cs (1)
241
var projectCount = orderedProjects.
Sum
(g => g.Length);
Wrapping\ChainedExpression\ChainedExpressionCodeActionComputer.cs (1)
175
=> chunk.
Sum
(s => s.IsNode ? s.AsNode().Width() : s.AsToken().Width());
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
342
runResult.Results.
Sum
(r => r.GeneratedSources.IsDefaultOrEmpty ? 0 : r.GeneratedSources.Length);