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