14 references to GetSpecialTypeSafe
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.ValueChecks.cs (3)
699
if ((expr.ConstantValueOpt != null) || (expr.Type.
GetSpecialTypeSafe
() == SpecialType.System_Void))
3316
if (expr.Type?.
GetSpecialTypeSafe
() == SpecialType.System_Void)
3632
if (expr.Type?.
GetSpecialTypeSafe
() == SpecialType.System_Void)
Binder\Binder_Conversions.cs (1)
2945
destinationType = destination.
GetSpecialTypeSafe
();
Binder\Binder_Deconstruct.cs (1)
693
if (deconstructMethod.ReturnType.
GetSpecialTypeSafe
() != SpecialType.System_Void)
Binder\Semantics\Conversions\ConversionsBase.cs (5)
1347
var specialSource = source.Type.
GetSpecialTypeSafe
();
1353
switch (destination.
GetSpecialTypeSafe
())
1374
else if (specialSource == SpecialType.System_Int64 && destination.
GetSpecialTypeSafe
() == SpecialType.System_UInt64 && (constantValue.IsBad || 0 <= constantValue.Int64Value))
2716
if (destination.
GetSpecialTypeSafe
() == SpecialType.System_Array)
2754
var specialDestination = destination.
GetSpecialTypeSafe
();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
3456
switch (type.
GetSpecialTypeSafe
())
3477
switch (type.
GetSpecialTypeSafe
())
Symbols\TypeSymbolExtensions.cs (2)
2161
switch (type.
GetSpecialTypeSafe
())
2186
switch (underlyingType.
GetSpecialTypeSafe
())