43 references to Count
Microsoft.CodeAnalysis (4)
MemberDescriptor.cs (1)
53return DeclaringTypeId <= (int)SpecialType.Count
SpecialTypes.cs (2)
81s_nameToTypeIdMap = new Dictionary<string, SpecialType>((int)SpecialType.Count); 93s_typeIdToTypeCodeMap = new Microsoft.Cci.PrimitiveTypeCode[(int)SpecialType.Count + 1];
WellKnownTypes.cs (1)
20First = SpecialType.Count + 1,
Microsoft.CodeAnalysis.CSharp (6)
Compilation\CSharpCompilation.cs (1)
1548if (specialType <= SpecialType.None || specialType > SpecialType.Count)
Symbols\Compilation_WellKnownMembers.cs (1)
96NamedTypeSymbol type = descriptor.DeclaringTypeId <= (int)SpecialType.Count
Symbols\MetadataOrSourceAssemblySymbol.cs (3)
89new NamedTypeSymbol[(int)SpecialType.Count + 1], null); 101Debug.Assert(_cachedSpecialTypes > 0 && _cachedSpecialTypes <= (int)SpecialType.Count); 113return ReferenceEquals(this.CorLibrary, this) && _cachedSpecialTypes < (int)SpecialType.Count;
Symbols\MissingCorLibrarySymbol.cs (1)
55new NamedTypeSymbol[(int)SpecialType.Count + 1], null);
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)
33for (int i = 1; i <= (int)SpecialType.Count; i++) 61for (int i = 1; i <= (int)SpecialType.Count; i++) 104if (count >= (int)SpecialType.Count) 111Assert.Equal((int)SpecialType.Count, count + knownMissingTypes.Count); 122for (int i = 1; i <= (int)SpecialType.Count; i++) 162for (int i = 1; i <= (int)SpecialType.Count; i++) 185Assert.Throws<ArgumentOutOfRangeException>(() => 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 (3)
20for (int i = 1; i <= (int)SpecialType.Count; i++) 26for (int i = 0; i <= (int)SpecialType.Count; i++) 76for (var specialType = SpecialType.None + 1; specialType <= SpecialType.Count; specialType++)
Microsoft.CodeAnalysis.VisualBasic (6)
Symbols\AssemblySymbol.vb (1)
470If type <= SpecialType.None OrElse type > SpecialType.Count Then
Symbols\MetadataOrSourceAssemblySymbol.vb (3)
78New NamedTypeSymbol(SpecialType.Count) {}, Nothing) 87Debug.Assert(_cachedSpecialTypes > 0 AndAlso _cachedSpecialTypes <= SpecialType.Count) 97Return Me.CorLibrary Is Me AndAlso _cachedSpecialTypes < SpecialType.Count
Symbols\MissingAssemblySymbol.vb (1)
200Interlocked.CompareExchange(_lazySpecialTypes, New NamedTypeSymbol(SpecialType.Count) {}, Nothing)
Symbols\WellKnownMembers.vb (1)
326Dim type = If(descriptor.DeclaringTypeId <= SpecialType.Count,
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)
6389Dim type = CType(SpecialType.Count + 1, SpecialType) 6398Assert.StartsWith(expectedStartString:=$"Unexpected SpecialType: '{SpecialType.Count + 1}'.", actualString:=ex.Message)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (10)
SymbolsTests\CompilationCreationTests.vb (1)
94For i As Integer = 1 To SpecialType.Count Step 1
SymbolsTests\CorLibrary\CorTypes.vb (8)
20For i As Integer = 1 To SpecialType.Count 43For i As Integer = 1 To SpecialType.Count 77If (count >= SpecialType.Count) Then 83Assert.Equal(count + knownMissingTypes.Count, CType(SpecialType.Count, Integer)) 92For i As Integer = 1 To SpecialType.Count 126For i As Integer = 1 To SpecialType.Count 147Assert.Throws(Of ArgumentOutOfRangeException)(Function() c1.GetSpecialType(CType(SpecialType.Count + 1, SpecialType))) 149Assert.Throws(Of ArgumentOutOfRangeException)(Function() msCorLibRef.GetSpecialType(CType(SpecialType.Count + 1, SpecialType)))
SymbolsTests\WellKnownTypeValidationTests.vb (1)
453For special As SpecialType = CType(SpecialType.None + 1, SpecialType) To SpecialType.Count