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