6 references to Sum
Microsoft.CodeAnalysis (6)
Collections\UnionCollection.cs (1)
112_count = _collections.Sum(c => c.Count);
MetadataReader\PEAssembly.cs (1)
66var totalRefCount = modules.Sum(static module => module.ReferencedAssemblies.Length);
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (1)
39var builderSize = referencedAssemblyData.Length + modules.Sum(static module => module.ReferencedAssemblies.Length);
SourceGeneration\GlobalAliases.cs (1)
42var 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); 554isCached: finalStates.All(static s => s.IsCached) && _previous.GetTotalEntryItemCount() == finalStates.Sum(static s => s.Count));