Base:
property
IsSealed
Microsoft.CodeAnalysis.CSharp.Symbol.IsSealed
11 references to IsSealed
Microsoft.CodeAnalysis.CSharp (11)
Symbols\Source\SourceMemberContainerSymbol.cs (6)
4365
if (!this.
IsSealed
&& (constructor.DeclaredAccessibility != Accessibility.Public && constructor.DeclaredAccessibility != Accessibility.Protected))
4408
if (!isRecordClass || (this.
IsSealed
&& this.BaseTypeNoUseSiteDiagnostics.IsObjectType()))
4482
if (!SynthesizedRecordObjectMethod.VerifyOverridesMethodFromObject(toStringMethod, SpecialMember.System_Object__ToString, diagnostics) && toStringMethod.IsSealed && !
IsSealed
)
4638
if (!SynthesizedRecordObjectMethod.VerifyOverridesMethodFromObject(getHashCode, SpecialMember.System_Object__GetHashCode, diagnostics) && getHashCode.IsSealed && !
IsSealed
)
4670
if (this.
IsSealed
&& this.BaseTypeNoUseSiteDiagnostics.IsObjectType())
4757
!
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;