6 references to Count
Microsoft.CodeAnalysis (6)
CommandLine\SarifV2ErrorLogger.cs (6)
232var effectiveSeveritiesBuilder = ArrayBuilder<(string DescriptorId, int DescriptorIndex, ImmutableHashSet<ReportDiagnostic> EffectiveSeverities)>.GetInstance(_descriptors.Count); 234if (_descriptors.Count > 0) 488_distinctDescriptors.Add(descriptor, new(Index: Count, info ?? default)); 489return Count - 1; 498Debug.Assert(Count > 0); 500var list = new List<(int Index, DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)>(Count);