Base:
property
IsSealed
Microsoft.CodeAnalysis.CSharp.Symbol.IsSealed
11 references to IsSealed
Microsoft.CodeAnalysis.CSharp (11)
Symbols\Source\SourceMemberContainerSymbol.cs (6)
4379
if (!this.
IsSealed
&& (constructor.DeclaredAccessibility != Accessibility.Public && constructor.DeclaredAccessibility != Accessibility.Protected))
4422
if (!isRecordClass || (this.
IsSealed
&& this.BaseTypeNoUseSiteDiagnostics.IsObjectType()))
4496
if (!SynthesizedRecordObjectMethod.VerifyOverridesMethodFromObject(toStringMethod, SpecialMember.System_Object__ToString, diagnostics) && toStringMethod.IsSealed && !
IsSealed
)
4652
if (!SynthesizedRecordObjectMethod.VerifyOverridesMethodFromObject(getHashCode, SpecialMember.System_Object__GetHashCode, diagnostics) && getHashCode.IsSealed && !
IsSealed
)
4684
if (this.
IsSealed
&& this.BaseTypeNoUseSiteDiagnostics.IsObjectType())
4771
!
IsSealed
&&
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
40
result |= containingType.
IsSealed
? DeclarationModifiers.None : DeclarationModifiers.Virtual;
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
27
modifiers: (containingType.
IsSealed
, containingType.BaseTypeNoUseSiteDiagnostics.IsObjectType()) switch
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
24
(containingType.
IsSealed
? 0 : DeclarationModifiers.Virtual) |
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
37
var result = (containingType.IsRecordStruct || (containingType.BaseTypeNoUseSiteDiagnostics.IsObjectType() && containingType.
IsSealed
)) ?
47
result |= containingType.
IsSealed
? DeclarationModifiers.None : DeclarationModifiers.Virtual;