23 references to IsObjectType
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Expressions.cs (1)
2262
(currentType.IsInterface && (declaringType.
IsObjectType
() || currentType.AllInterfacesNoUseSiteDiagnostics.Contains(declaringType))))
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
725
Debug.Assert(op.LeftType.
IsObjectType
());
726
Debug.Assert(op.RightType.
IsObjectType
());
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
450
method.ContainingType.
IsObjectType
() &&
Lowering\SyntheticBoundNodeFactory.cs (2)
1464
Debug.Assert(!allowBoxingByRefLikeTypeParametersToObject || type.
IsObjectType
());
1480
arg.Type is TypeParameterSymbol { AllowsRefLikeType: true } && type.
IsObjectType
())
Symbols\Source\SourceMemberContainerSymbol.cs (3)
4422
if (!isRecordClass || (this.IsSealed && this.BaseTypeNoUseSiteDiagnostics.
IsObjectType
()))
4684
if (this.IsSealed && this.BaseTypeNoUseSiteDiagnostics.
IsObjectType
())
4785
if (!BaseTypeNoUseSiteDiagnostics.
IsObjectType
())
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
103
Debug.Assert(!this.IsClassType() || localBase.
IsObjectType
() || baseLocation != null);
124
if (this.IsClassType() && !localBase.
IsObjectType
() && !baseContainsErrorTypes)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
741
parameterReference.Type.
IsObjectType
());
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (2)
87
if (!baseType.
IsObjectType
())
143
if (containingType.
IsObjectType
() || containingType is not NamedTypeSymbol containingNamedType)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
27
modifiers: (containingType.IsSealed, containingType.BaseTypeNoUseSiteDiagnostics.
IsObjectType
()) switch
103
if (overriding.ContainingType.BaseTypeNoUseSiteDiagnostics.
IsObjectType
())
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
67
else if (ContainingType.BaseTypeNoUseSiteDiagnostics.
IsObjectType
())
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
54
else if (ContainingType.BaseTypeNoUseSiteDiagnostics.
IsObjectType
())
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (4)
37
var result = (containingType.IsRecordStruct || (containingType.BaseTypeNoUseSiteDiagnostics.
IsObjectType
() && containingType.IsSealed)) ?
41
if (containingType.IsRecord && !containingType.BaseTypeNoUseSiteDiagnostics.
IsObjectType
())
132
if (ContainingType.BaseTypeNoUseSiteDiagnostics.
IsObjectType
() || ContainingType.IsRecordStruct)
266
if (baseType.
IsObjectType
())
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
27
Debug.Assert(objectType.
IsObjectType
());