6 references to Sum
Microsoft.CodeAnalysis.Features (5)
Common\TaggedText.cs (1)
143builder.EnsureCapacity(values.Sum(static value => value.Text.Length));
Completion\Utilities.cs (1)
39var sumOfDeltas = changes.Sum(c => c.NewText!.Length - c.Span.Length);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
115var labelCount = sections.Sum(section => section.Labels.IsDefault ? 1 : section.Labels.Length);
NavigateTo\NavigateToSearcher.cs (1)
241var 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)
342runResult.Results.Sum(r => r.GeneratedSources.IsDefaultOrEmpty ? 0 : r.GeneratedSources.Length);