30 references to Count
Microsoft.CodeAnalysis (4)
Compilation\Compilation.cs (1)
958if (specialType <= SpecialType.None || specialType > SpecialType.Count)
ExtendedSpecialType.cs (1)
61if (_value > (int)SpecialType.None && _value <= (int)SpecialType.Count)
InternalSpecialType.cs (1)
28System_ReadOnlySpan_T = SpecialType.Count + 1,
SpecialTypes.cs (1)
99s_typeIdToTypeCodeMap = new Microsoft.Cci.PrimitiveTypeCode[(int)SpecialType.Count + 1];
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Compilation\GetSemanticInfoTests.cs (1)
5948var specialType = SpecialType.Count + 1;
Symbols\CompilationCreationTests.cs (1)
78for (int i = 1; i <= (int)SpecialType.Count; i++)
Symbols\CorLibrary\CorTypes.cs (7)
34for (int i = 1; i <= (int)SpecialType.Count; i++) 63for (int i = 1; i <= (int)SpecialType.Count; i++) 124if (count >= (int)SpecialType.Count) 131Assert.Equal((int)SpecialType.Count, count + knownMissingTypes.Count); 142for (int i = 1; i <= (int)SpecialType.Count; i++) 193for (int i = 1; i <= (int)SpecialType.Count; i++) 231Assert.Throws<ArgumentOutOfRangeException>(() => ((Compilation)c1).GetSpecialType(SpecialType.Count + 1));
Symbols\MissingSpecialMember.cs (1)
528for (var special = SpecialType.None + 1; special <= SpecialType.Count; special++)
Microsoft.CodeAnalysis.UnitTests (3)
CorLibTypesTests.cs (2)
26for (int i = 0; i <= (int)SpecialType.Count; i++) 77for (var specialType = SpecialType.None + 1; specialType <= SpecialType.Count; specialType++)
Symbols\SpecialTypeTests.cs (1)
17AssertEx.Equal("System_Runtime_CompilerServices_InlineArrayAttribute", ((ExtendedSpecialType)SpecialType.Count).ToString());
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Compilation\CompilationAPITests.vb (2)
325Dim ntSmb = comp.GetSpecialType(typeId:=SpecialType.Count) 326Assert.Equal(SpecialType.Count, ntSmb.SpecialType)
Semantics\GetSemanticInfoTests.vb (2)
6388Dim type = CType(SpecialType.Count + 1, SpecialType) 6397Assert.StartsWith(expectedStartString:=$"Unexpected SpecialType: '{SpecialType.Count + 1}'.", actualString:=ex.Message)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (9)
SymbolsTests\CompilationCreationTests.vb (1)
94For i As Integer = 1 To SpecialType.Count Step 1
SymbolsTests\CorLibrary\CorTypes.vb (7)
22For i As Integer = 1 To SpecialType.Count 55For i As Integer = 1 To SpecialType.Count 103If (count >= SpecialType.Count) Then 109Assert.Equal(count + knownMissingTypes.Count, CType(SpecialType.Count, Integer)) 118For i As Integer = 1 To SpecialType.Count 162For i As Integer = 1 To SpecialType.Count 196Assert.Throws(Of ArgumentOutOfRangeException)(Function() DirectCast(c1, Compilation).GetSpecialType(CType(SpecialType.Count + 1, SpecialType)))
SymbolsTests\WellKnownTypeValidationTests.vb (1)
453For special As SpecialType = CType(SpecialType.None + 1, SpecialType) To SpecialType.Count