35 references to IsObjectType
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_Expressions.cs (2)
2028
(currentType.IsInterface && (declaringType.
IsObjectType
() || currentType.AllInterfacesNoUseSiteDiagnostics.Contains(declaringType))))
2372
(currentType.IsInterface && (declaringType.
IsObjectType
() || currentType.AllInterfacesNoUseSiteDiagnostics.Contains(declaringType))))
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
738
Debug.Assert(op.LeftType.
IsObjectType
());
739
Debug.Assert(op.RightType.
IsObjectType
());
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (2)
618
Debug.Assert(pendingCaughtExceptionType.
IsObjectType
());
740
Debug.Assert(pendingExceptionRef.Type.
IsObjectType
());
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
494
Debug.Assert(awaiterFieldType.
IsObjectType
());
536
Debug.Assert(awaiterFieldRef.Type.
IsObjectType
());
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
468
method.ContainingType.
IsObjectType
() &&
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
311
Debug.Assert(parameters0Type.
IsObjectType
());
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
421
Debug.Assert(instance.Type.
IsObjectType
());
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
2220
type.TypeKind == TypeKind.Class && type.BaseTypeNoUseSiteDiagnostics.
IsObjectType
() &&
2244
marker.TypeKind == TypeKind.Class && marker.BaseTypeNoUseSiteDiagnostics.
IsObjectType
() && marker.Arity == 0 &&
Symbols\Source\SourceMemberContainerSymbol.cs (3)
5007
if (!isRecordClass || (this.IsSealed && this.BaseTypeNoUseSiteDiagnostics.
IsObjectType
()))
5269
if (this.IsSealed && this.BaseTypeNoUseSiteDiagnostics.
IsObjectType
())
5370
if (!BaseTypeNoUseSiteDiagnostics.
IsObjectType
())
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
514
var hasInvalidRecordInheritance = this.IsRecord && !baseType.
IsObjectType
() && !baseType.IsRecord;
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\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
59
Debug.Assert(method.ReturnType.
IsObjectType
());
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
544
Debug.Assert(returnType.
IsObjectType
());
783
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
104
if (baseType.
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\SynthesizedRecordObjEquals.cs (1)
62
Debug.Assert(paramAccess.Type.
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)
270
if (baseType.
IsObjectType
())
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
28
Debug.Assert(objectType.
IsObjectType
());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\OperatorTests.cs (1)
8375
if (signature.LeftType.
IsObjectType
() && signature.RightType.IsStringType())