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