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