6 references to Sum
Microsoft.CodeAnalysis (6)
Collections\UnionCollection.cs (1)
112
_count = _collections.
Sum
(c => c.Count);
MetadataReader\PEAssembly.cs (1)
66
var totalRefCount = modules.
Sum
(static module => module.ReferencedAssemblies.Length);
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (1)
39
var builderSize = referencedAssemblyData.Length + modules.
Sum
(static module => module.ReferencedAssemblies.Length);
SourceGeneration\GlobalAliases.cs (1)
42
var total = ArrayBuilder<(string aliasName, string symbolName)>.GetInstance(aliasesArray.
Sum
(a => a.AliasAndSymbolNames.Length));
SourceGeneration\Nodes\NodeStateTable.cs (2)
91
=> _states.
Sum
(static e => e.Count);
554
isCached: finalStates.All(static s => s.IsCached) && _previous.GetTotalEntryItemCount() == finalStates.
Sum
(static s => s.Count));