18 references to ForSpecialType
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.cs (1)
61return ForSpecialType(type.SpecialType, type.IsNativeIntegerType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Utilities\ValueSetTests.cs (17)
492Assert.Same(ForByte, ForSpecialType(SpecialType.System_Byte)); 493Assert.Same(ForSByte, ForSpecialType(SpecialType.System_SByte)); 494Assert.Same(ForShort, ForSpecialType(SpecialType.System_Int16)); 495Assert.Same(ForUShort, ForSpecialType(SpecialType.System_UInt16)); 496Assert.Same(ForInt, ForSpecialType(SpecialType.System_Int32)); 497Assert.Same(ForUInt, ForSpecialType(SpecialType.System_UInt32)); 498Assert.Same(ForLong, ForSpecialType(SpecialType.System_Int64)); 499Assert.Same(ForULong, ForSpecialType(SpecialType.System_UInt64)); 500Assert.Same(ForFloat, ForSpecialType(SpecialType.System_Single)); 501Assert.Same(ForDouble, ForSpecialType(SpecialType.System_Double)); 502Assert.Same(ForString, ForSpecialType(SpecialType.System_String)); 503Assert.Same(ForDecimal, ForSpecialType(SpecialType.System_Decimal)); 504Assert.Same(ForChar, ForSpecialType(SpecialType.System_Char)); 505Assert.Same(ForBool, ForSpecialType(SpecialType.System_Boolean)); 506Assert.Same(ForNint, ForSpecialType(SpecialType.System_IntPtr, isNative: true)); 507Assert.Same(ForNuint, ForSpecialType(SpecialType.System_UIntPtr, isNative: true)); 508Assert.Null(ForSpecialType(SpecialType.System_Enum));