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