18 references to GetSpecialTypeSafe
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder.ValueChecks.cs (3)
556if ((expr.ConstantValueOpt != null) || (expr.Type.GetSpecialTypeSafe() == SpecialType.System_Void)) 2921if (expr.Type?.GetSpecialTypeSafe() == SpecialType.System_Void) 3165if (expr.Type?.GetSpecialTypeSafe() == SpecialType.System_Void)
Binder\Binder_Conversions.cs (1)
1651destinationType = destination.GetSpecialTypeSafe();
Binder\Binder_Deconstruct.cs (1)
693if (deconstructMethod.ReturnType.GetSpecialTypeSafe() != SpecialType.System_Void)
Binder\Semantics\Conversions\ConversionsBase.cs (8)
1202if (nt.OriginalDefinition.GetSpecialTypeSafe() == SpecialType.System_Nullable_T && 1229if (nt.OriginalDefinition.GetSpecialTypeSafe() == SpecialType.System_Nullable_T) 1260if (nt.OriginalDefinition.GetSpecialTypeSafe() == SpecialType.System_Nullable_T) 1288var specialSource = source.Type.GetSpecialTypeSafe(); 1294switch (destination.GetSpecialTypeSafe()) 1315else if (specialSource == SpecialType.System_Int64 && destination.GetSpecialTypeSafe() == SpecialType.System_UInt64 && (constantValue.IsBad || 0 <= constantValue.Int64Value)) 2590if (destination.GetSpecialTypeSafe() == SpecialType.System_Array) 2628var specialDestination = destination.GetSpecialTypeSafe();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1368if (type.IsClassType() && type.GetSpecialTypeSafe() != SpecialType.System_Object) 3038switch (type.GetSpecialTypeSafe()) 3059switch (type.GetSpecialTypeSafe())
Symbols\TypeSymbolExtensions.cs (2)
2110switch (type.GetSpecialTypeSafe()) 2135switch (underlyingType.GetSpecialTypeSafe())