6 implementations of IsSealed
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
126public bool IsSealed
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
124bool ISymbol.IsSealed => false;
Symbols\PublicModel\Symbol.cs (1)
236bool ISymbol.IsSealed
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
55public bool IsSealed => _symbol.IsSealed;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1259Protected Overridable ReadOnly Property ISymbol_IsSealed As Boolean Implements ISymbol.IsSealed
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
126public bool IsSealed
58 references to IsSealed
ILLink.RoslynAnalyzer (1)
TrimAnalysis\HandleCallAction.cs (1)
106 } else if (staticType.IsSealed || staticType.IsTypeOf ("System", "Delegate") || staticType.TypeKind == TypeKind.Array) {
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
290if (type.IsSealed)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\Emitters\EndpointJsonPreparationEmitter.cs (1)
49(endpointResponse.ResponseType.IsSealed || endpointResponse.ResponseType.IsValueType))
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
361if (property.IsVirtual || property.IsOverride || property.IsSealed)
src\Workspaces\Core\Portable\Editing\DeclarationModifiers.cs (1)
85isSealed: symbol.IsSealed,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
628if (member.IsSealed)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
165return symbol is { ContainingType.TypeKind: TypeKind.Class, IsSealed: false } &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
258if (typeSymbol.IsSealed || typeSymbol.IsValueType)
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.AbstractCodeAction.cs (1)
94if (classType.IsSealed)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
140var accessibility = State.ClassOrStructType.IsSealed 144var modifiers = State.ClassOrStructType.IsSealed
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
40type.TypeKind == TypeKind.Class && type.IsSealed && !type.IsStatic)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISymbolExtensions.cs (1)
23isSealed: symbol.IsSealed,
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
952if (symbol.IsSealed)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1291rewrittenType.IsSealed ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
293if (method.IsSealed)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
296if (namedType.IsSealed)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
385if (property.IsSealed)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
7668Assert.False(symbol1.IsSealed); 8463Assert.False(symbol1.IsSealed);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\AssemblyAndNamespaceTests.cs (2)
43Assert.False(sym.IsSealed); 70Assert.False(sym.IsSealed);
Symbols\Source\DelegateTests.cs (1)
133Assert.True(v.IsSealed);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1291rewrittenType.IsSealed ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
293if (method.IsSealed)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
296if (namedType.IsSealed)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
385if (property.IsSealed)
Microsoft.CodeAnalysis.Features (8)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
121if (namedType.IsStructType() || namedType.IsStatic || namedType.IsSealed)
GenerateType\AbstractGenerateTypeService.State.cs (1)
242if (baseType.IsSealed || baseType.IsStatic)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
55public bool IsSealed => _symbol.IsSealed;
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
361if (property.IsVirtual || property.IsOverride || property.IsSealed)
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.AbstractCodeAction.cs (1)
94if (classType.IsSealed)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
140var accessibility = State.ClassOrStructType.IsSealed 144var modifiers = State.ClassOrStructType.IsSealed
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
40type.TypeKind == TypeKind.Class && type.IsSealed && !type.IsStatic)
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
634If symbol.IsSealed Then
Symbols\Symbol.vb (1)
1259Protected Overridable ReadOnly Property ISymbol_IsSealed As Boolean Implements ISymbol.IsSealed
VisualBasicExtensions.vb (1)
539Return symbol.IsSealed
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (1)
153If method.IsSealed Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
188If namedType.IsSealed Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (1)
211If [property].IsSealed Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
Recommendations\VisualBasicRecommendationServiceRunner.vb (2)
497If type.TypeKind = TypeKind.Class AndAlso Not type.IsSealed AndAlso Not Equals(type, within) Then 527If namedTypeSymbol.TypeKind = TypeKind.Class AndAlso Not namedTypeSymbol.IsSealed AndAlso Not Equals(namedTypeSymbol, within) Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (1)
153If method.IsSealed Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
188If namedType.IsSealed Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (1)
211If [property].IsSealed Then
Microsoft.CodeAnalysis.Workspaces (6)
Editing\DeclarationModifiers.cs (1)
85isSealed: symbol.IsSealed,
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
46private static readonly Func<INamedTypeSymbol, bool> s_isNonSealedClass = static t => t is { TypeKind: TypeKind.Class, IsSealed: false };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
628if (member.IsSealed)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
165return symbol is { ContainingType.TypeKind: TypeKind.Class, IsSealed: false } &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
258if (typeSymbol.IsSealed || typeSymbol.IsValueType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISymbolExtensions.cs (1)
23isSealed: symbol.IsSealed,
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphBuilder.cs (1)
472if (symbol.IsSealed)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ObjectBrowser\DescriptionBuilder.cs (2)
181if (typeSymbol.IsSealed && 311if (memberSymbol.IsSealed)
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
CodeModel\VisualBasicCodeModelService.vb (1)
2574If typeSymbol.IsSealed Then
ObjectBrowser\DescriptionBuilder.vb (2)
318If typeSymbol.IsSealed AndAlso 367If memberSymbol.IsSealed Then