15 references to GetSpecialTypeSafe
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder.ValueChecks.cs (3)
971
if ((expr.ConstantValueOpt != null) || (expr.Type.
GetSpecialTypeSafe
() == SpecialType.System_Void))
3717
if (expr.Type?.
GetSpecialTypeSafe
() == SpecialType.System_Void)
4002
if (expr.Type?.
GetSpecialTypeSafe
() == SpecialType.System_Void)
Binder\Binder_Conversions.cs (1)
3709
destinationType = destination.
GetSpecialTypeSafe
();
Binder\Binder_Deconstruct.cs (1)
696
if (deconstructMethod.ReturnType.
GetSpecialTypeSafe
() != SpecialType.System_Void)
Binder\Semantics\Conversions\ConversionsBase.cs (5)
1363
var specialSource = source.Type.
GetSpecialTypeSafe
();
1369
switch (destination.
GetSpecialTypeSafe
())
1390
else if (specialSource == SpecialType.System_Int64 && destination.
GetSpecialTypeSafe
() == SpecialType.System_UInt64 && (constantValue.IsBad || 0 <= constantValue.Int64Value))
2737
if (destination.
GetSpecialTypeSafe
() == SpecialType.System_Array)
2775
var specialDestination = destination.
GetSpecialTypeSafe
();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1713
if (type.IsClassType() && type.
GetSpecialTypeSafe
() != SpecialType.System_Object)
3815
switch (type.
GetSpecialTypeSafe
())
3836
switch (type.
GetSpecialTypeSafe
())
Symbols\TypeSymbolExtensions.cs (2)
2251
switch (type.
GetSpecialTypeSafe
())
2276
switch (underlyingType.
GetSpecialTypeSafe
())