20 references to IsClassType
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Operators.cs (2)
4937if (operandType.IsValueType && targetType.IsClassType() && targetType.SpecialType != SpecialType.System_Enum || 4938targetType.IsValueType && operandType.IsClassType() && operandType.SpecialType != SpecialType.System_Enum)
Binder\Semantics\Conversions\ConversionsBase.cs (6)
991if (!baseType.IsClassType()) 2652if (destination.IsClassType() && IsBaseClass(source, destination, ref useSiteInfo)) 2693if (source.IsClassType()) 3475if (destination.IsClassType() && IsBaseClass(destination, source, ref useSiteInfo)) 3483if (source.IsClassType() && destination.IsInterfaceType() && !source.IsSealed && !HasAnyBaseInterfaceConversion(source, destination, ref useSiteInfo)) 3491if (source.IsInterfaceType() && destination.IsClassType() && (!destination.IsSealed || HasAnyBaseInterfaceConversion(destination, source, ref useSiteInfo)))
Binder\Semantics\Conversions\UserDefinedConversions.cs (1)
116if (type.IsClassType() || type.IsStructType())
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
1420if (!member.ContainingType.IsClassType()) 1653else if (currentType.IsClassType() && type.IsClassType() && currentType.IsDerivedFrom(type, TypeCompareKind.ConsiderEverything, useSiteInfo: ref useSiteInfo)) 1706if (type.IsClassType() && type.GetSpecialTypeSafe() != SpecialType.System_Object)
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1395if (method.ContainingType.IsClassType())
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
103Debug.Assert(!this.IsClassType() || localBase.IsObjectType() || baseLocation != null); 124if (this.IsClassType() && !localBase.IsObjectType() && !baseContainsErrorTypes)
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
211if (containingType.IsClassType()) 759if (different.IsClassType() && !same.IsTypeParameter())
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
17Debug.Assert(containingType.IsClassType());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\InlineArrayTests.cs (1)
744Assert.True(buffer.IsClassType());