22 overrides of BaseTypeNoUseSiteDiagnostics
Microsoft.CodeAnalysis.CSharp (22)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
162internal abstract override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics { get; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
230internal abstract override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics { get; }
Symbols\ArrayTypeSymbol.cs (1)
220internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => _baseType;
Symbols\DynamicTypeSymbol.cs (1)
86internal override NamedTypeSymbol? BaseTypeNoUseSiteDiagnostics => null;
Symbols\ErrorTypeSymbol.cs (1)
434internal override NamedTypeSymbol? BaseTypeNoUseSiteDiagnostics => null;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
87internal override NamedTypeSymbol? BaseTypeNoUseSiteDiagnostics => null;
Symbols\FunctionTypeSymbol.cs (1)
124internal override NamedTypeSymbol? BaseTypeNoUseSiteDiagnostics => null;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
470internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics
Symbols\NativeIntegerTypeSymbol.cs (1)
48internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => _underlyingType.BaseTypeNoUseSiteDiagnostics;
Symbols\PointerTypeSymbol.cs (1)
78internal override NamedTypeSymbol? BaseTypeNoUseSiteDiagnostics
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
273internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
56internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
35internal sealed override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics
Symbols\SubstitutedNamedTypeSymbol.cs (1)
154internal sealed override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
192internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
869internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Synthesized\SynthesizedContainer.cs (1)
162internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(this.TypeKind == TypeKind.Struct ? SpecialType.System_ValueType : SpecialType.System_Object);
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
135internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => _baseType;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
118internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => _baseType;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
123internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(SpecialType.System_ValueType);
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
106internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => _objectType;
Symbols\TypeParameterSymbol.cs (1)
240internal sealed override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => null;
104 references to BaseTypeNoUseSiteDiagnostics
Microsoft.CodeAnalysis.CSharp (104)
Binder\Binder_Expressions.cs (5)
1738NamedTypeSymbol baseToCheck = containingTypeDefinition.BaseTypeNoUseSiteDiagnostics; 1746baseToCheck = baseToCheck.OriginalDefinition.BaseTypeNoUseSiteDiagnostics; 2509TypeSymbol baseType = this.ContainingType is null ? null : this.ContainingType.BaseTypeNoUseSiteDiagnostics; 4804initializerType = initializerType.BaseTypeNoUseSiteDiagnostics; 4936NamedTypeSymbol baseType = constructor.ContainingType.BaseTypeNoUseSiteDiagnostics;
Binder\Binder_Statements.cs (3)
3814NamedTypeSymbol baseType = containingType.BaseTypeNoUseSiteDiagnostics; 3914NamedTypeSymbol baseType = constructor.ContainingType.BaseTypeNoUseSiteDiagnostics; 3977NamedTypeSymbol baseType = containingType.BaseTypeNoUseSiteDiagnostics;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
3003type = type.BaseTypeNoUseSiteDiagnostics;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
203members.All(static m => m.ContainingSymbol is NamedTypeSymbol { BaseTypeNoUseSiteDiagnostics.SpecialType: SpecialType.System_Object }));
Compilation\CSharpSemanticModel.cs (1)
1600if ((object)containingType == null || (object)(baseType = containingType.BaseTypeNoUseSiteDiagnostics) == null)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
38Debug.Assert(ContainingType.BaseTypeNoUseSiteDiagnostics.SpecialType == SpecialType.System_Object);
Compiler\ClsComplianceChecker.cs (4)
531NamedTypeSymbol baseType = symbol.EnumUnderlyingType ?? symbol.BaseTypeNoUseSiteDiagnostics; // null for interfaces 835NamedTypeSymbol baseType = type.BaseTypeNoUseSiteDiagnostics; 850baseType = baseType.BaseTypeNoUseSiteDiagnostics; 1103contextBaseType = contextBaseType.BaseTypeNoUseSiteDiagnostics;
Compiler\MethodBodySynthesizer.cs (4)
37Debug.Assert((object)constructor.ContainingType.BaseTypeNoUseSiteDiagnostics == null || constructor.ContainingType.BaseTypeNoUseSiteDiagnostics.SpecialType == SpecialType.System_Object); 595NamedTypeSymbol baseType = method.ContainingType.BaseTypeNoUseSiteDiagnostics; 614baseType = baseType.BaseTypeNoUseSiteDiagnostics;
Emitter\Model\AttributeDataAdapter.cs (1)
190type = type.BaseTypeNoUseSiteDiagnostics;
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
288NamedTypeSymbol baseType = AdaptedNamedTypeSymbol.BaseTypeNoUseSiteDiagnostics;
Emitter\Model\PEModuleBuilder.cs (1)
1083var declaredBase = namedTypeSymbol.BaseTypeNoUseSiteDiagnostics;
FlowAnalysis\NullableWalker.cs (7)
674if (chainedConstructorEnforcesRequiredMembers && !constructorEnforcesRequiredMembers && method.ContainingType.BaseTypeNoUseSiteDiagnostics is { } baseType) 931var requiredMembers = containingType.BaseTypeNoUseSiteDiagnostics?.AllRequiredMembers ?? ImmutableSegmentedDictionary<string, Symbol>.Empty; 5499for (NamedTypeSymbol baseType = effectiveBase(type); !(baseType is null); baseType = baseType.BaseTypeNoUseSiteDiagnostics) 5513var t => t.BaseTypeNoUseSiteDiagnostics, 6376for (var baseType = receiverType; baseType is object && method is object; baseType = baseType.BaseTypeNoUseSiteDiagnostics) 6425baseType = baseType.BaseTypeNoUseSiteDiagnostics; 8233containingType = containingType.BaseTypeNoUseSiteDiagnostics;
Lowering\DiagnosticsPass_Warnings.cs (2)
126baseType = baseType.BaseTypeNoUseSiteDiagnostics; 363for (var t = nt; (object)t != null; t = t.BaseTypeNoUseSiteDiagnostics)
Lowering\SyntheticBoundNodeFactory.cs (1)
1187NamedTypeSymbol baseType = CurrentFunction.ThisParameter.Type.BaseTypeNoUseSiteDiagnostics;
Symbols\Metadata\PE\MetadataDecoder.cs (2)
422SpecialType baseSpecialType = (candidate.BaseTypeNoUseSiteDiagnostics?.SpecialType ?? SpecialType.None); 583EnqueueTypeSymbol(typeDefsToSearch, typeSymbolsToSearch, typeSymbol.BaseTypeNoUseSiteDiagnostics);
Symbols\NamedTypeSymbol.cs (7)
583? builder?.ToImmutable() ?? BaseTypeNoUseSiteDiagnostics?.AllRequiredMembers ?? ImmutableSegmentedDictionary<string, Symbol>.Empty 591if (BaseTypeNoUseSiteDiagnostics?.HasRequiredMembersError == true) 596var baseAllRequiredMembers = BaseTypeNoUseSiteDiagnostics?.AllRequiredMembers ?? ImmutableSegmentedDictionary<string, Symbol>.Empty; 1426NamedTypeSymbol @base = this.BaseTypeNoUseSiteDiagnostics; 1435@base = @base.BaseTypeNoUseSiteDiagnostics; 1463var @base = this.BaseTypeNoUseSiteDiagnostics; 1527var baseType = this.BaseTypeNoUseSiteDiagnostics;
Symbols\NativeIntegerTypeSymbol.cs (1)
48internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => _underlyingType.BaseTypeNoUseSiteDiagnostics;
Symbols\OverriddenOrHiddenMembersHelpers.cs (4)
159for (NamedTypeSymbol currType = containingType.BaseTypeNoUseSiteDiagnostics; 161currType = currType.BaseTypeNoUseSiteDiagnostics) 1029for (NamedTypeSymbol currType = containingType.BaseTypeNoUseSiteDiagnostics; !ReferenceEquals(currType, null); currType = currType.BaseTypeNoUseSiteDiagnostics)
Symbols\OverriddenOrHiddenMembersResult.cs (2)
62for (NamedTypeSymbol baseType = substitutedOverridingMember.ContainingType.BaseTypeNoUseSiteDiagnostics; 64baseType = baseType.BaseTypeNoUseSiteDiagnostics)
Symbols\PublicModel\TypeSymbol.cs (1)
90return UnderlyingTypeSymbol.BaseTypeNoUseSiteDiagnostics.GetPublicSymbol();
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
284var underlyingBase = _underlyingType.BaseTypeNoUseSiteDiagnostics;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
380type.BaseTypeNoUseSiteDiagnostics,
Symbols\Source\SourceDestructorSymbol.cs (1)
172return (object)this.ContainingType.BaseTypeNoUseSiteDiagnostics == null;
Symbols\Source\SourceMemberContainerSymbol.cs (10)
1825var baseType = BaseTypeNoUseSiteDiagnostics; 2634if (BaseTypeNoUseSiteDiagnostics is (not SourceMemberContainerTypeSymbol) and { HasRequiredMembersError: true }) 2644diagnostics.Add(ErrorCode.ERR_RequiredMembersBaseTypeInvalid, method.GetFirstLocation(), BaseTypeNoUseSiteDiagnostics); 4408if (!isRecordClass || (this.IsSealed && this.BaseTypeNoUseSiteDiagnostics.IsObjectType())) 4495var currentBaseType = this.BaseTypeNoUseSiteDiagnostics; 4507currentBaseType = currentBaseType.BaseTypeNoUseSiteDiagnostics; 4670if (this.IsSealed && this.BaseTypeNoUseSiteDiagnostics.IsObjectType()) 4771if (!BaseTypeNoUseSiteDiagnostics.IsObjectType()) 5283var baseType = BaseTypeNoUseSiteDiagnostics; 5321NamedTypeSymbol baseType = this.BaseTypeNoUseSiteDiagnostics;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (9)
90NamedTypeSymbol baseType = this.BaseTypeNoUseSiteDiagnostics; 446for (NamedTypeSymbol currType = this.BaseTypeNoUseSiteDiagnostics; (object)currType != null; currType = currType.BaseTypeNoUseSiteDiagnostics) 504if (this.BaseTypeNoUseSiteDiagnostics?.IsErrorType() == true) 689if ((object)this.BaseTypeNoUseSiteDiagnostics == null) 698NamedTypeSymbol currType = this.BaseTypeNoUseSiteDiagnostics; 731currType = currType.BaseTypeNoUseSiteDiagnostics; 1858implementingMethod.Equals(this.BaseTypeNoUseSiteDiagnostics?.FindImplementationForInterfaceMemberInNonInterfaceWithDiagnostics(interfaceMethod).Symbol, TypeCompareKind.CLRSignatureCompareOptions)) 1902NamedTypeSymbol baseType = type.BaseTypeNoUseSiteDiagnostics;
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
46var tmp = ContainingType.BaseTypeNoUseSiteDiagnostics; 773current = current.BaseTypeNoUseSiteDiagnostics;
Symbols\SubstitutedNamedTypeSymbol.cs (1)
165var baseType = Map.SubstituteNamedType(OriginalDefinition.BaseTypeNoUseSiteDiagnostics);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
29var baseConstructor = ContainingType.BaseTypeNoUseSiteDiagnostics.InstanceConstructors.Single();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
29var baseConstructor = ContainingType.BaseTypeNoUseSiteDiagnostics.InstanceConstructors.Single();
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (3)
32TypeWithAnnotations.Create(ContainingType.BaseTypeNoUseSiteDiagnostics, NullableAnnotation.Annotated), 45!overridden.ContainingType.Equals(ContainingType.BaseTypeNoUseSiteDiagnostics, TypeCompareKind.AllIgnoreOptions)) 47diagnostics.Add(ErrorCode.ERR_DoesNotOverrideBaseMethod, GetFirstLocation(), this, ContainingType.BaseTypeNoUseSiteDiagnostics);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
85NamedTypeSymbol baseType = containingType.BaseTypeNoUseSiteDiagnostics;
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (4)
27modifiers: (containingType.IsSealed, containingType.BaseTypeNoUseSiteDiagnostics.IsObjectType()) switch 103if (overriding.ContainingType.BaseTypeNoUseSiteDiagnostics.IsObjectType()) 119!overridden.ContainingType.Equals(overriding.ContainingType.BaseTypeNoUseSiteDiagnostics, TypeCompareKind.AllIgnoreOptions)) 127diagnostics.Add(ErrorCode.ERR_DoesNotOverrideBaseEqualityContract, overriding.GetFirstLocation(), overriding, overriding.ContainingType.BaseTypeNoUseSiteDiagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (2)
67else if (ContainingType.BaseTypeNoUseSiteDiagnostics.IsObjectType()) 107if (baseEquals is null || !baseEquals.ContainingType.Equals(ContainingType.BaseTypeNoUseSiteDiagnostics, TypeCompareKind.AllIgnoreOptions) ||
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
54else if (ContainingType.BaseTypeNoUseSiteDiagnostics.IsObjectType())
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (7)
37var result = (containingType.IsRecordStruct || (containingType.BaseTypeNoUseSiteDiagnostics.IsObjectType() && containingType.IsSealed)) ? 41if (containingType.IsRecord && !containingType.BaseTypeNoUseSiteDiagnostics.IsObjectType()) 110!overridden.ContainingType.Equals(ContainingType.BaseTypeNoUseSiteDiagnostics, TypeCompareKind.AllIgnoreOptions)) 112diagnostics.Add(ErrorCode.ERR_DoesNotOverrideBaseMethod, GetFirstLocation(), this, ContainingType.BaseTypeNoUseSiteDiagnostics); 132if (ContainingType.BaseTypeNoUseSiteDiagnostics.IsObjectType() || ContainingType.IsRecordStruct) 164var basePrintCall = F.Call(receiver: F.Base(ContainingType.BaseTypeNoUseSiteDiagnostics), basePrintMethod, builder); 265NamedTypeSymbol baseType = overriding.ContainingType.BaseTypeNoUseSiteDiagnostics;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
290if (ContainingType.BaseTypeNoUseSiteDiagnostics is MissingMetadataTypeSymbol)
Symbols\TypeSymbol.cs (7)
106for (var baseType = this; !ReferenceEquals(baseType, null); baseType = baseType.BaseTypeNoUseSiteDiagnostics) 164var result = BaseTypeNoUseSiteDiagnostics; 176var result = BaseTypeNoUseSiteDiagnostics; 342for (var baseType = this; !ReferenceEquals(baseType, null); baseType = baseType.BaseTypeNoUseSiteDiagnostics) 2423if ((object)this.BaseTypeNoUseSiteDiagnostics != null && this.BaseTypeNoUseSiteDiagnostics.IsAbstract) 2425foreach (var baseAbstractMember in this.BaseTypeNoUseSiteDiagnostics.AbstractMembers)
Utilities\TypeSymbolExtensions.cs (1)
202return type.BaseTypeNoUseSiteDiagnostics;