60 overrides of IsAbstract
Microsoft.CodeAnalysis.CSharp (60)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
229public override bool IsAbstract
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
139public override bool IsAbstract
Symbols\AliasSymbol.cs (1)
152public override bool IsAbstract
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
100public sealed override bool IsAbstract
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
127public override bool IsAbstract
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
143public sealed override bool IsAbstract
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
155public sealed override bool IsAbstract
Symbols\ArrayTypeSymbol.cs (1)
434public override bool IsAbstract
Symbols\AssemblySymbol.cs (1)
257public sealed override bool IsAbstract
Symbols\DiscardSymbol.cs (1)
24public override bool IsAbstract => false;
Symbols\DynamicTypeSymbol.cs (1)
30public override bool IsAbstract
Symbols\ErrorMethodSymbol.cs (1)
54public override bool IsAbstract
Symbols\ErrorPropertySymbol.cs (1)
74public override bool IsAbstract { get { return false; } }
Symbols\ErrorTypeSymbol.cs (1)
399public sealed override bool IsAbstract
Symbols\FieldSymbol.cs (1)
212public sealed override bool IsAbstract
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
832public override bool IsAbstract => false;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
84public override bool IsAbstract => false;
Symbols\FunctionTypeSymbol.cs (1)
120public override bool IsAbstract => throw ExceptionUtilities.Unreachable();
Symbols\LabelSymbol.cs (1)
43public override bool IsAbstract
Symbols\LocalSymbol.cs (1)
125public sealed override bool IsAbstract
Symbols\Metadata\PE\PEEventSymbol.cs (1)
284public override bool IsAbstract
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
558public override bool IsAbstract => HasFlag(MethodAttributes.Abstract);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1663public override bool IsAbstract
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
555public override bool IsAbstract
Symbols\ModuleSymbol.cs (1)
158public sealed override bool IsAbstract
Symbols\NamespaceSymbol.cs (1)
189public sealed override bool IsAbstract
Symbols\ParameterSymbol.cs (1)
298public override bool IsAbstract
Symbols\PointerTypeSymbol.cs (1)
46public override bool IsAbstract
Symbols\RangeVariableSymbol.cs (1)
86public override bool IsAbstract
Symbols\ReducedExtensionMethodSymbol.cs (1)
396public override bool IsAbstract
Symbols\SignatureOnlyMethodSymbol.cs (1)
151public override bool IsAbstract { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
84public override bool IsAbstract { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
90public override bool IsAbstract
Symbols\Source\LocalFunctionSymbol.cs (1)
366public override bool IsAbstract => (_declarationModifiers & DeclarationModifiers.Abstract) != 0;
Symbols\Source\SourceEventSymbol.cs (1)
368public sealed override bool IsAbstract
Symbols\Source\SourceMemberContainerSymbol.cs (1)
849public override bool IsAbstract => HasFlag(DeclarationModifiers.Abstract);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
611public sealed override bool IsAbstract
Symbols\Source\SourcePropertySymbolBase.cs (1)
542public override bool IsAbstract
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
156public override bool IsAbstract => false;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
63public override bool IsAbstract => false;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
833public override bool IsAbstract => false;
Symbols\Synthesized\SynthesizedContainer.cs (1)
96public override bool IsAbstract => (object)Constructor == null && this.TypeKind != TypeKind.Struct;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
248public override bool IsAbstract
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
94public override bool IsAbstract => false;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
166public override bool IsAbstract
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
259public override bool IsAbstract
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
100public override bool IsAbstract => false;
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
186public sealed override bool IsAbstract
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
81public override bool IsAbstract => false;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
208public sealed override bool IsAbstract
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
74public override bool IsAbstract
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
376public override bool IsAbstract
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
70public override bool IsAbstract => _privateImplementationDetails.IsAbstract && !_privateImplementationDetails.IsSealed;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
262public override bool IsAbstract
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
213public override bool IsAbstract
Symbols\TypeParameterSymbol.cs (1)
224public sealed override bool IsAbstract
Symbols\Wrapped\WrappedEventSymbol.cs (1)
118public override bool IsAbstract
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
157public override bool IsAbstract
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
161public override bool IsAbstract
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
140public override bool IsAbstract
80 references to IsAbstract
Microsoft.CodeAnalysis.CSharp (80)
Binder\Binder.ValueChecks.cs (1)
1905if (receiverOpt?.Kind == BoundKind.BaseReference && member.IsAbstract)
Binder\Binder_Attributes.cs (1)
292if (attributeType.IsErrorType() || attributeType.IsAbstract || attributeConstructor is null)
Binder\Binder_Conversions.cs (2)
415if (method.IsAbstract || method.IsVirtual) 1119if (namedType.IsAbstract)
Binder\Binder_Expressions.cs (4)
6633if (type.IsAbstract) 6702!type.IsAbstract) 6825if (type.IsAbstract) 8696if (symbol.IsStatic && (symbol.IsAbstract || symbol.IsVirtual))
Binder\Binder_Lookup.cs (1)
701if (namedType.IsAbstract)
Binder\Binder_Operators.cs (2)
1160(t.IsInterface && (signature.Method.IsAbstract || signature.Method.IsVirtual) && 2391if (methodOpt.IsAbstract || methodOpt.IsVirtual)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
1404if (!member.IsVirtual && !member.IsAbstract && !member.IsOverride)
CodeGen\EmitConversion.cs (1)
329if (method.IsAbstract || method.IsVirtual)
CodeGen\EmitExpression.cs (3)
1666if (method.IsAbstract || method.IsVirtual) 2307if ((object)overriddenMethod == null || overriddenMethod.IsAbstract) 4104if ((load.TargetMethod.IsAbstract || load.TargetMethod.IsVirtual) && load.TargetMethod.IsStatic)
CodeGen\Optimizer.cs (1)
1172if ((method.IsAbstract || method.IsVirtual) && receiver is BoundTypeExpression { Type: { TypeKind: TypeKind.TypeParameter } } typeExpression)
Compiler\ClsComplianceChecker.cs (1)
506else if (symbol.IsAbstract && symbol.Kind != SymbolKind.NamedType)
Compiler\MethodCompiler.cs (1)
895if (methodSymbol.IsAbstract || methodSymbol.ContainingType?.IsDelegateType() == true)
Emitter\Model\MethodSymbolAdapter.cs (2)
369return AdaptedMethodSymbol.IsAbstract; 651!(this.IsVirtual || this.IsOverride || this.IsAbstract || this.MethodKind == MethodKind.Destructor));
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
1000return this.IsAbstract || this.IsStatic;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
274if (!member.IsAbstract)
FlowAnalysis\NullableWalker.cs (2)
963if (requiredMember is PropertySymbol { IsAbstract: true } abstractProperty) 1018if (property.OverriddenProperty is not { IsAbstract: true } overriddenProperty)
Lowering\DiagnosticsPass_ExpressionTrees.cs (7)
351else if ((method.IsAbstract || method.IsVirtual) && method.IsStatic) 552if (_inExpressionLambda && (property.IsAbstract || property.IsVirtual) && property.IsStatic) 710if (((binary.IsAbstract || binary.IsVirtual) && binary.IsStatic) || ((unary.IsAbstract || unary.IsVirtual) && unary.IsStatic)) 741if (_inExpressionLambda && node.MethodOpt is MethodSymbol method && (method.IsAbstract || method.IsVirtual) && method.IsStatic) 838if (_inExpressionLambda && node.Conversion.Method is MethodSymbol method && (method.IsAbstract || method.IsVirtual) && method.IsStatic) 888else if (method is not null && (method.IsAbstract || method.IsVirtual) && method.IsStatic)
Lowering\DiagnosticsPass_Warnings.cs (1)
260else if ((method.IsAbstract || method.IsVirtual) && method.IsStatic)
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
62var constrainedToTypeOpt = ((targetMethod.IsAbstract || targetMethod.IsVirtual) && boundDelegateCreation.Argument is BoundTypeExpression typeExpression) ? typeExpression.Type : null;
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
166if ((targetMethod.IsAbstract || targetMethod.IsVirtual) && boundDelegateCreation.Argument is BoundTypeExpression typeExpression)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
557(symbolOpt.IsAbstract || symbolOpt.IsVirtual) ? mg.ReceiverOpt?.Type : null, 570var receiver = (!method.RequiresInstanceReceiver && !oldNodeOpt.IsExtensionMethod && !method.IsAbstract && !method.IsVirtual) ? _factory.Type(method.ContainingType) : mg.ReceiverOpt;
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
35var receiver = (!method.RequiresInstanceReceiver && !node.IsExtensionMethod && !method.IsAbstract && !method.IsVirtual) ? _factory.Type(method.ContainingType) : VisitExpression(mg.ReceiverOpt)!;
Operations\CSharpOperationFactory.cs (3)
463if (targetMember.IsStatic && (targetMember.IsAbstract || targetMember.IsVirtual) && 1163bool isVirtual = constrainedToType is not null || ((methodSymbol.IsAbstract || methodSymbol.IsOverride || methodSymbol.IsVirtual) && !suppressVirtualCalls); 1376if (operatorMethod is not null && operatorMethod.IsStatic && (operatorMethod.IsAbstract || operatorMethod.IsVirtual) &&
Operations\CSharpOperationFactory_Methods.cs (1)
117(targetMethod.IsVirtual || targetMethod.IsAbstract || targetMethod.IsOverride) &&
Symbols\Compilation_WellKnownMembers.cs (2)
315((descriptor.Flags & MemberFlags.Virtual) != 0) != (method.IsVirtual || method.IsOverride || method.IsAbstract)) 331if (((descriptor.Flags & MemberFlags.Virtual) != 0) != (property.IsVirtual || property.IsOverride || property.IsAbstract))
Symbols\ConstraintsHelper.cs (1)
1464if (typeArgument.IsAbstract)
Symbols\MemberSymbolExtensions.cs (1)
152return (object)methodOpt != null && !methodOpt.IsSealed && (methodOpt.IsAbstract || methodOpt.IsVirtual);
Symbols\MethodSymbol.cs (2)
719return IsStatic && !IsAbstract && !IsVirtual && Name == WellKnownMemberNames.EntryPointMethodName; 1040if (!IsStatic || IsAbstract || IsVirtual || MethodKind is not (MethodKind.Ordinary or MethodKind.LocalFunction))
Symbols\OverriddenOrHiddenMembersResult.cs (1)
92if (overriddenMember.IsAbstract || overriddenMember.IsVirtual || overriddenMember.IsOverride)
Symbols\PublicModel\Symbol.cs (1)
232return UnderlyingSymbol.IsAbstract;
Symbols\ReducedExtensionMethodSymbol.cs (1)
398get { return _reducedFrom.IsAbstract; }
Symbols\Source\SourceEventSymbol.cs (1)
603else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4572if (isInherited && prop.IsAbstract) 4772((!symbol.IsAbstract && !symbol.IsVirtual && !symbol.IsOverride) || symbol.IsSealed))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (5)
92if (this.IsAbstract || (object)baseType == null || !baseType.IsAbstract) 890else if (!overriddenMember.IsVirtual && !overriddenMember.IsAbstract && !overriddenMember.IsOverride && 1588(hiddenMember.IsAbstract || hiddenMember.IsVirtual || hiddenMember.IsOverride) && 1653if (!hiddenMember.IsAbstract || !hidingMember.ContainingType.IsAbstract)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
965if (!IsStatic || ParameterCount > 0 || !ReturnsVoid || IsAbstract || IsVirtual) 1490if (!this.IsAbstract && !this.IsExtern) 1501&& !IsAbstract
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
874else if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
529if (IsAbstract && !ContainingType.IsAbstract && (ContainingType.TypeKind == TypeKind.Class || ContainingType.TypeKind == TypeKind.Submission))
Symbols\Symbol.cs (1)
1779return this.IsAbstract;
Symbols\SymbolExtensions.cs (1)
540return !symbol.IsSealed && (symbol.IsAbstract || symbol.IsVirtual) && (symbol.ContainingType?.IsInterface ?? false);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
179!(containingType.IsSealed || candidate.IsOverride || candidate.IsVirtual || candidate.IsAbstract) ||
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
42get { return ContainingType.IsAbstract ? Accessibility.Protected : Accessibility.Public; }
Symbols\TypeSymbol.cs (6)
1125if (result.IsAbstract) 1348if (result.IsAbstract) 1380if (!interfaceMember.IsAbstract) 2392if (this.IsAbstract && member.IsAbstract && member.Kind != SymbolKind.NamedType) 2423if ((object)this.BaseTypeNoUseSiteDiagnostics != null && this.BaseTypeNoUseSiteDiagnostics.IsAbstract)
Symbols\VarianceSafety.cs (2)
174if (member.IsStatic && !member.IsAbstract && !member.IsVirtual) 472if (!(context is TypeSymbol) && context.IsStatic && !context.IsAbstract && !context.IsVirtual)
Symbols\Wrapped\WrappedEventSymbol.cs (1)
122return _underlyingEvent.IsAbstract;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
161return UnderlyingMethod.IsAbstract;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
165return _underlyingType.IsAbstract;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
144return _underlyingProperty.IsAbstract;