42 references to Sealed
Microsoft.CodeAnalysis.CSharp (42)
Declarations\DeclarationTreeBuilder.cs (2)
222
modifiers: DeclarationModifiers.Internal | DeclarationModifiers.Partial | DeclarationModifiers.
Sealed
,
337
modifiers: DeclarationModifiers.Internal | DeclarationModifiers.Partial | DeclarationModifiers.
Sealed
,
Parser\LanguageParser.cs (1)
1306
return DeclarationModifiers.
Sealed
;
Symbols\Source\LocalFunctionSymbol.cs (1)
367
public override bool IsSealed => (_declarationModifiers & DeclarationModifiers.
Sealed
) != 0;
Symbols\Source\ModifierUtils.cs (12)
157
(modifiers & defaultInterfaceImplementationModifiers & (DeclarationModifiers.
Sealed
| DeclarationModifiers.Abstract | DeclarationModifiers.Virtual)) != 0)
159
var reportModifiers = DeclarationModifiers.
Sealed
| DeclarationModifiers.Abstract | DeclarationModifiers.Virtual;
160
if ((modifiers & defaultInterfaceImplementationModifiers & DeclarationModifiers.
Sealed
) != 0 &&
163
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, errorLocation, ConvertSingleModifierToSyntaxText(DeclarationModifiers.
Sealed
));
164
reportModifiers &= ~DeclarationModifiers.
Sealed
;
232
mods |= DeclarationModifiers.
Sealed
;
237
mods &= ~DeclarationModifiers.
Sealed
;
243
if (hasBody || (mods & (DeclarationModifiers.Extern | DeclarationModifiers.
Sealed
)) != 0)
245
if ((mods & DeclarationModifiers.
Sealed
) == 0)
251
mods &= ~DeclarationModifiers.
Sealed
;
281
case DeclarationModifiers.
Sealed
:
341
return DeclarationModifiers.
Sealed
;
Symbols\Source\SourceEventSymbol.cs (3)
390
get { return (_modifiers & DeclarationModifiers.
Sealed
) != 0; }
456
DeclarationModifiers.
Sealed
|
473
defaultInterfaceImplementationModifiers |= DeclarationModifiers.
Sealed
|
Symbols\Source\SourceMemberContainerSymbol.cs (7)
319
allowedModifiers |= DeclarationModifiers.Partial | DeclarationModifiers.
Sealed
| DeclarationModifiers.Abstract
356
(mods & (DeclarationModifiers.
Sealed
| DeclarationModifiers.Static)) != 0)
362
(mods & (DeclarationModifiers.
Sealed
| DeclarationModifiers.Static)) == (DeclarationModifiers.
Sealed
| DeclarationModifiers.Static))
374
mods |= DeclarationModifiers.
Sealed
;
377
mods |= DeclarationModifiers.
Sealed
;
847
public override bool IsSealed => HasFlag(DeclarationModifiers.
Sealed
);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
607
return (this.DeclarationModifiers & DeclarationModifiers.
Sealed
) != 0;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
703
DeclarationModifiers.
Sealed
|
715
defaultInterfaceImplementationModifiers |= DeclarationModifiers.
Sealed
|
788
DeclarationModifiers.
Sealed
|
Symbols\Source\SourcePropertySymbol.cs (2)
378
DeclarationModifiers.
Sealed
|
403
defaultInterfaceImplementationModifiers |= DeclarationModifiers.
Sealed
|
Symbols\Source\SourcePropertySymbolBase.cs (1)
587
get { return (_modifiers & DeclarationModifiers.
Sealed
) != 0; }
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (8)
144
allowedModifiers |= DeclarationModifiers.
Sealed
;
160
if ((result & (DeclarationModifiers.Abstract | DeclarationModifiers.Virtual | DeclarationModifiers.
Sealed
)) != 0)
162
if ((result & DeclarationModifiers.
Sealed
) != 0 &&
165
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, ModifierUtils.ConvertSingleModifierToSyntaxText(DeclarationModifiers.
Sealed
));
166
result &= ~DeclarationModifiers.
Sealed
;
186
reportModifierIfPresent(result, DeclarationModifiers.
Sealed
, location, diagnostics, requiredVersionArgument, availableVersionArgument);
189
result &= ~DeclarationModifiers.
Sealed
;
201
result |= DeclarationModifiers.
Sealed
;
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
20
: base(containingType, WellKnownMemberNames.ObjectEquals, memberOffset, DeclarationModifiers.Public | DeclarationModifiers.Override | DeclarationModifiers.
Sealed
)