30 references to Count
Microsoft.CodeAnalysis (4)
Compilation\Compilation.cs (1)
974
if (specialType <= SpecialType.None || specialType > SpecialType.
Count
)
ExtendedSpecialType.cs (1)
65
if (_value > (int)SpecialType.None && _value <= (int)SpecialType.
Count
)
InternalSpecialType.cs (1)
28
System_ReadOnlySpan_T = SpecialType.
Count
+ 1,
SpecialTypes.cs (1)
105
s_typeIdToTypeCodeMap = new Microsoft.Cci.PrimitiveTypeCode[(int)SpecialType.
Count
+ 1];
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Compilation\GetSemanticInfoTests.cs (1)
5948
var specialType = SpecialType.
Count
+ 1;
Symbols\CompilationCreationTests.cs (1)
78
for (int i = 1; i <= (int)SpecialType.
Count
; i++)
Symbols\CorLibrary\CorTypes.cs (7)
34
for (int i = 1; i <= (int)SpecialType.
Count
; i++)
68
for (int i = 1; i <= (int)SpecialType.
Count
; i++)
131
if (count >= (int)SpecialType.
Count
)
138
Assert.Equal((int)SpecialType.
Count
, count + knownMissingSpecialTypes.Count);
149
for (int i = 1; i <= (int)SpecialType.
Count
; i++)
200
for (int i = 1; i <= (int)SpecialType.
Count
; i++)
238
Assert.Throws<ArgumentOutOfRangeException>(() => ((Compilation)c1).GetSpecialType(SpecialType.
Count
+ 1));
Symbols\MissingSpecialMember.cs (1)
528
for (var special = SpecialType.None + 1; special <= SpecialType.
Count
; special++)
Microsoft.CodeAnalysis.UnitTests (3)
CorLibTypesTests.cs (2)
26
for (int i = 0; i <= (int)SpecialType.
Count
; i++)
77
for (var specialType = SpecialType.None + 1; specialType <= SpecialType.
Count
; specialType++)
Symbols\SpecialTypeTests.cs (1)
17
AssertEx.Equal("System_Runtime_CompilerServices_InlineArrayAttribute", ((ExtendedSpecialType)SpecialType.
Count
).ToString());
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Compilation\CompilationAPITests.vb (2)
326
Dim ntSmb = comp.GetSpecialType(typeId:=SpecialType.
Count
)
327
Assert.Equal(SpecialType.
Count
, ntSmb.SpecialType)
Semantics\GetSemanticInfoTests.vb (2)
6384
Dim type = CType(SpecialType.
Count
+ 1, SpecialType)
6393
Assert.StartsWith(expectedStartString:=$"Unexpected SpecialType: '{SpecialType.
Count
+ 1}'.", actualString:=ex.Message)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (9)
SymbolsTests\CompilationCreationTests.vb (1)
94
For i As Integer = 1 To SpecialType.
Count
Step 1
SymbolsTests\CorLibrary\CorTypes.vb (7)
22
For i As Integer = 1 To SpecialType.
Count
56
For i As Integer = 1 To SpecialType.
Count
106
If (count >= SpecialType.
Count
) Then
112
Assert.Equal(count + knownMissingSpecialTypes.Count, CType(SpecialType.
Count
, Integer))
121
For i As Integer = 1 To SpecialType.
Count
165
For i As Integer = 1 To SpecialType.
Count
199
Assert.Throws(Of ArgumentOutOfRangeException)(Function() DirectCast(c1, Compilation).GetSpecialType(CType(SpecialType.
Count
+ 1, SpecialType)))
SymbolsTests\WellKnownTypeValidationTests.vb (1)
453
For special As SpecialType = CType(SpecialType.None + 1, SpecialType) To SpecialType.
Count