30 references to Count
Microsoft.CodeAnalysis (4)
Compilation\Compilation.cs (1)
973
if (specialType <= SpecialType.None || specialType > SpecialType.
Count
)
ExtendedSpecialType.cs (1)
61
if (_value > (int)SpecialType.None && _value <= (int)SpecialType.
Count
)
InternalSpecialType.cs (1)
28
System_ReadOnlySpan_T = SpecialType.
Count
+ 1,
SpecialTypes.cs (1)
99
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++)
63
for (int i = 1; i <= (int)SpecialType.
Count
; i++)
124
if (count >= (int)SpecialType.
Count
)
131
Assert.Equal((int)SpecialType.
Count
, count + knownMissingTypes.Count);
142
for (int i = 1; i <= (int)SpecialType.
Count
; i++)
193
for (int i = 1; i <= (int)SpecialType.
Count
; i++)
231
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)
325
Dim ntSmb = comp.GetSpecialType(typeId:=SpecialType.
Count
)
326
Assert.Equal(SpecialType.
Count
, ntSmb.SpecialType)
Semantics\GetSemanticInfoTests.vb (2)
6388
Dim type = CType(SpecialType.
Count
+ 1, SpecialType)
6397
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
55
For i As Integer = 1 To SpecialType.
Count
103
If (count >= SpecialType.
Count
) Then
109
Assert.Equal(count + knownMissingTypes.Count, CType(SpecialType.
Count
, Integer))
118
For i As Integer = 1 To SpecialType.
Count
162
For i As Integer = 1 To SpecialType.
Count
196
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