6 implementations of IsAbstract
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
118public bool IsAbstract
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
122bool ISymbol.IsAbstract => false;
Symbols\PublicModel\Symbol.cs (1)
228bool ISymbol.IsAbstract
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
45public bool IsAbstract => _symbol.IsAbstract;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1241Protected Overridable ReadOnly Property ISymbol_IsAbstract As Boolean Implements ISymbol.IsAbstract, ISymbolInternal.IsAbstract
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
118public bool IsAbstract
154 references to IsAbstract
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
602if (!(typeSymbol.IsAbstract || typeSymbol.TypeKind is TypeKind.Interface))
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
295if (type.IsAbstract)
Microsoft.AspNetCore.App.Analyzers (2)
src\Shared\Roslyn\MvcFacts.cs (2)
22if (type.IsAbstract) 88if (method.IsAbstract)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
463if (type.IsAbstract)
Microsoft.AspNetCore.Mvc.Analyzers (2)
src\Shared\Roslyn\MvcFacts.cs (2)
22if (type.IsAbstract) 88if (method.IsAbstract)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
src\Shared\Roslyn\MvcFacts.cs (2)
22if (type.IsAbstract) 88if (method.IsAbstract)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (1)
HubServerProxyGenerator.Parser.cs (1)
237if (ModelExtensions.GetSymbolInfo(argumentModel, proxyType).Symbol is not ITypeSymbol { IsAbstract: true } symbol)
Microsoft.CodeAnalysis (6)
Operations\ControlFlowGraphBuilder.cs (6)
2504constrainedToType: unaryOperatorMethod is not null && (unaryOperatorMethod.IsAbstract || unaryOperatorMethod.IsVirtual) ? binOp.ConstrainedToType : null, 2546binOp.OperatorMethod is not null && (binOp.OperatorMethod.IsAbstract || binOp.OperatorMethod.IsVirtual) ? binOp.ConstrainedToType : null, 2607constrainedToType: unaryOperatorMethod.IsAbstract || unaryOperatorMethod.IsVirtual ? binOp.ConstrainedToType : null, 2636binOp.OperatorMethod.IsAbstract || binOp.OperatorMethod.IsVirtual ? binOp.ConstrainedToType : null, 4189var invocation = new InvocationOperation(method, constrainedToType: null, value, isVirtual: disposeMethod is (null or { IsVirtual: true } or { IsAbstract: true }), 4705isVirtual: method.IsVirtual || method.IsAbstract || method.IsOverride,
Microsoft.CodeAnalysis.CodeStyle (12)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
794if (methodSymbol.IsAbstract ||
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
209method.IsAbstract ||
src\Workspaces\Core\Portable\Editing\DeclarationModifiers.cs (1)
81isAbstract: symbol.IsAbstract,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (5)
69if (symbol.IsAbstract) 99if (member.IsAbstract) 226if (member is IMethodSymbol { IsStatic: true, IsAbstract: true, MethodKind: MethodKind.UserDefinedOperator } method) 242=> m.IsVirtual || m.IsAbstract; 625if (!member.IsAbstract && !member.IsVirtual && !member.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
92(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride)) 166(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
56=> symbol?.TypeKind == TypeKind.Class && symbol.IsAbstract;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
496if ((Modifier.IsAbstract && symbol.IsAbstract) ||
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AddAccessibilityModifiersHelpers.cs (1)
52if (symbol.IsAbstract)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
35if (method.IsVirtual || method.IsOverride || method.IsAbstract)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
49var canGenerateAbstractly = state.TypeToGenerateIn.IsAbstract &&
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (1)
53if (classType.IsAbstract)
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
157if (state.ClassOrStructType.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISymbolExtensions.cs (1)
19isAbstract: symbol.IsAbstract,
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
938if (symbol.IsAbstract)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
339if (namedType.IsAbstract)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
303if (!namedType.IsAbstract)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (16)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (1)
125propertySymbol.IsAbstract ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (5)
106var declaration = !info.Context.GenerateMethodBodies || @event.IsAbstract || @event.AddMethod == null || @event.RemoveMethod == null 187!@event.IsAbstract && 189!accessor.IsAbstract; 213if (@event.IsAbstract) 232if (@event.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (3)
118var hasNoBody = !info.Context.GenerateMethodBodies || method.IsAbstract; 278if (method.IsAbstract) 290if (method.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
293if (namedType.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (2)
79var hasNoBody = !info.Context.GenerateMethodBodies || method.IsExtern || method.IsAbstract; 121if (method.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (4)
320!property.IsAbstract && 322!accessor.IsAbstract; 365if (property.IsAbstract) 394if (property.IsAbstract)
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
80if (!member.IsAbstract && !member.IsVirtual)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2533{ IsVirtual: true } or { IsOverride: true } or { IsAbstract: true }
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
339if (namedType.IsAbstract)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
303if (!namedType.IsAbstract)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\PositionalParameterInfo.cs (1)
125propertySymbol.IsAbstract ||
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
7667Assert.False(symbol1.IsAbstract); 8462Assert.False(symbol1.IsAbstract);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\AssemblyAndNamespaceTests.cs (2)
42Assert.False(sym.IsAbstract); 69Assert.False(sym.IsAbstract);
Symbols\Source\DelegateTests.cs (1)
134Assert.False(v.IsAbstract);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
833if (!(symbol.IsVirtual || symbol.IsAbstract))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (5)
106var declaration = !info.Context.GenerateMethodBodies || @event.IsAbstract || @event.AddMethod == null || @event.RemoveMethod == null 187!@event.IsAbstract && 189!accessor.IsAbstract; 213if (@event.IsAbstract) 232if (@event.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (3)
118var hasNoBody = !info.Context.GenerateMethodBodies || method.IsAbstract; 278if (method.IsAbstract) 290if (method.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
293if (namedType.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (2)
79var hasNoBody = !info.Context.GenerateMethodBodies || method.IsExtern || method.IsAbstract; 121if (method.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (4)
320!property.IsAbstract && 322!accessor.IsAbstract; 365if (property.IsAbstract) 394if (property.IsAbstract)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticServiceTests.vb (1)
1262If method.IsAbstract Then
Microsoft.CodeAnalysis.Features (16)
Debugging\AbstractBreakpointResolver.cs (1)
250if (methodOrProperty.IsAbstract)
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
187!symbol.IsAbstract)
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
86methodSymbol.IsAbstract ||
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
45public bool IsAbstract => _symbol.IsAbstract;
PullMemberUp\MembersPuller.cs (2)
352if (!result.Destination.IsAbstract && 443if (member.IsAbstract)
PullMemberUp\PullMembersUpOptionsBuilder.cs (1)
33var changeDestinationToAbstract = !destination.IsAbstract && (memberAndMakeAbstract.makeAbstract || memberAndMakeAbstract.member.IsAbstract);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
139setMethod.IsAbstract == getMethod.IsAbstract;
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
794if (methodSymbol.IsAbstract ||
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
209method.IsAbstract ||
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AddAccessibilityModifiersHelpers.cs (1)
52if (symbol.IsAbstract)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
35if (method.IsVirtual || method.IsOverride || method.IsAbstract)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
49var canGenerateAbstractly = state.TypeToGenerateIn.IsAbstract &&
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (1)
53if (classType.IsAbstract)
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
157if (state.ClassOrStructType.IsAbstract)
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\TestOperationVisitor.cs (3)
774if ((operatorMethod is null || !operatorMethod.IsStatic || (!operatorMethod.IsVirtual && !operatorMethod.IsAbstract)) && 775(unaryOperatorMethod is null || !unaryOperatorMethod.IsStatic || (!unaryOperatorMethod.IsVirtual && !unaryOperatorMethod.IsAbstract))) 876if (member is null || !member.IsStatic || (!member.IsVirtual && !member.IsAbstract))
Microsoft.CodeAnalysis.VisualBasic (5)
Operations\VisualBasicOperationFactory.vb (2)
443(targetMethod.IsVirtual OrElse targetMethod.IsAbstract OrElse targetMethod.IsOverride) AndAlso 762(method.IsAbstract OrElse method.IsOverride OrElse method.IsVirtual) AndAlso
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
629If symbol.IsAbstract Then
Symbols\Symbol.vb (1)
1241Protected Overridable ReadOnly Property ISymbol_IsAbstract As Boolean Implements ISymbol.IsAbstract, ISymbolInternal.IsAbstract
VisualBasicExtensions.vb (1)
544Return symbol.IsAbstract
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (8)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EventGenerator.vb (1)
176If [event].IsAbstract Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (2)
88method.IsAbstract OrElse 149If method.IsAbstract Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
192If namedType.IsAbstract Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (4)
81(getMethod IsNot Nothing AndAlso Not getMethod.IsAbstract) OrElse 82(setMethod IsNot Nothing AndAlso Not setMethod.IsAbstract) 87[property].IsAbstract OrElse 207If [property].IsAbstract Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
2025If newSymbol.IsVirtual Or newSymbol.IsOverride Or newSymbol.IsAbstract Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EventGenerator.vb (1)
176If [event].IsAbstract Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (2)
88method.IsAbstract OrElse 149If method.IsAbstract Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
192If namedType.IsAbstract Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (4)
81(getMethod IsNot Nothing AndAlso Not getMethod.IsAbstract) OrElse 82(setMethod IsNot Nothing AndAlso Not setMethod.IsAbstract) 87[property].IsAbstract OrElse 207If [property].IsAbstract Then
Microsoft.CodeAnalysis.Workspaces (15)
Editing\DeclarationModifiers.cs (1)
81isAbstract: symbol.IsAbstract,
Shared\Extensions\SyntaxGeneratorExtensions.cs (2)
57if (overriddenProperty.IsAbstract) 246if (overriddenMethod.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (5)
69if (symbol.IsAbstract) 99if (member.IsAbstract) 226if (member is IMethodSymbol { IsStatic: true, IsAbstract: true, MethodKind: MethodKind.UserDefinedOperator } method) 242=> m.IsVirtual || m.IsAbstract; 625if (!member.IsAbstract && !member.IsVirtual && !member.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
92(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride)) 166(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
56=> symbol?.TypeKind == TypeKind.Class && symbol.IsAbstract;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
496if ((Modifier.IsAbstract && symbol.IsAbstract) ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISymbolExtensions.cs (1)
19isAbstract: symbol.IsAbstract,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
450!method.IsAbstract
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
211!method.IsAbstract
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
65foreach (var method in type.GetMembers().OfType<IMethodSymbol>().Where(m => !m.IsStatic && m.IsAbstract))
Microsoft.Interop.SourceGeneration (2)
SafeHandleMarshallingInfoProvider.cs (2)
44if (type is INamedTypeSymbol named && !named.IsAbstract && named.InstanceConstructors.Length > 0) 75if (!hasDefaultConstructor || type.IsAbstract)
Microsoft.ML.InternalCodeAnalyzer (1)
InstanceInitializerAnalyzer.cs (1)
66if (symbol.IsAbstract || symbol.IsImplicitlyDeclared || symbol.IsStatic)
Microsoft.VisualStudio.LanguageServices (3)
CallHierarchy\CallHierarchyProvider.cs (1)
114if (symbol.IsVirtual || symbol.IsAbstract)
Progression\GraphBuilder.cs (1)
467if (symbol.IsAbstract)
Utilities\MemberSymbolViewModel.cs (1)
27public Visibility MakeAbstractVisibility => Symbol.Kind == SymbolKind.Field || Symbol.IsAbstract ? Visibility.Hidden : Visibility.Visible;
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ObjectBrowser\DescriptionBuilder.cs (2)
175if (typeSymbol.IsAbstract && 305if (memberSymbol.IsAbstract)
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (2)
2576ElseIf typeSymbol.IsAbstract Then 2805Return symbol.IsAbstract
ObjectBrowser\DescriptionBuilder.vb (2)
313If typeSymbol.IsAbstract AndAlso 355If memberSymbol.IsAbstract Then
System.Text.Json.SourceGeneration (3)
Helpers\RoslynExtensions.cs (2)
106if (type.IsAbstract || type.TypeKind is TypeKind.Interface || type is not INamedTypeSymbol namedType) 123=> symbol.IsVirtual || symbol.IsOverride || symbol.IsAbstract;
JsonSourceGenerator.Parser.cs (1)
1443if ((constructor is null && !type.IsValueType) || type.IsAbstract)
System.Text.RegularExpressions.Generator (2)
RegexGenerator.Parser.cs (2)
116regexMethodSymbol.IsAbstract || 131regexPropertySymbol.IsAbstract ||