41 overrides of IsVirtual
Microsoft.CodeAnalysis.CSharp (41)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
219
public override bool
IsVirtual
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
129
public override bool
IsVirtual
Symbols\AliasSymbol.cs (1)
167
public override bool
IsVirtual
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
112
public override bool
IsVirtual
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
69
public sealed override bool
IsVirtual
Symbols\AssemblySymbol.cs (1)
241
public sealed override bool
IsVirtual
Symbols\DiscardSymbol.cs (1)
30
public override bool
IsVirtual
=> false;
Symbols\ErrorMethodSymbol.cs (1)
64
public override bool
IsVirtual
Symbols\ErrorPropertySymbol.cs (1)
70
public override bool
IsVirtual
{ get { return false; } }
Symbols\FieldSymbol.cs (1)
256
public sealed override bool
IsVirtual
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
830
public override bool
IsVirtual
=> false;
Symbols\LabelSymbol.cs (1)
65
public override bool
IsVirtual
Symbols\LocalSymbol.cs (1)
147
public sealed override bool
IsVirtual
Symbols\Metadata\PE\PEEventSymbol.cs (1)
302
public override bool
IsVirtual
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
577
public override bool
IsVirtual
=> this.IsMetadataVirtual() && !this.IsDestructor && !this.IsMetadataFinal && !this.IsAbstract &&
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
577
public override bool
IsVirtual
Symbols\ModuleSymbol.cs (1)
136
public sealed override bool
IsVirtual
Symbols\NamespaceOrTypeSymbol.cs (1)
66
public sealed override bool
IsVirtual
Symbols\ParameterSymbol.cs (1)
325
public override bool
IsVirtual
Symbols\RangeVariableSymbol.cs (1)
102
public override bool
IsVirtual
Symbols\ReducedExtensionMethodSymbol.cs (1)
391
public override bool
IsVirtual
Symbols\SignatureOnlyMethodSymbol.cs (1)
147
public override bool
IsVirtual
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
80
public override bool
IsVirtual
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
95
public override bool
IsVirtual
Symbols\Source\LocalFunctionSymbol.cs (1)
361
public override bool
IsVirtual
=> (_declarationModifiers & DeclarationModifiers.Virtual) != 0;
Symbols\Source\SourceEventSymbol.cs (1)
393
public sealed override bool
IsVirtual
Symbols\Source\SourceMemberMethodSymbol.cs (1)
635
public sealed override bool
IsVirtual
Symbols\Source\SourcePropertySymbolBase.cs (1)
590
public override bool
IsVirtual
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
59
public override bool
IsVirtual
=> false;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
238
public override bool
IsVirtual
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
176
public override bool
IsVirtual
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
269
public override bool
IsVirtual
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
176
public sealed override bool
IsVirtual
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
218
public sealed override bool
IsVirtual
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
119
public override bool
IsVirtual
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
360
public override bool
IsVirtual
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
117
public override bool
IsVirtual
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
229
public override bool
IsVirtual
Symbols\Wrapped\WrappedEventSymbol.cs (1)
102
public override bool
IsVirtual
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
133
public override bool
IsVirtual
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
124
public override bool
IsVirtual
47 references to IsVirtual
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder_Conversions.cs (1)
415
if (method.IsAbstract || method.
IsVirtual
)
Binder\Binder_Expressions.cs (1)
8695
if (symbol.IsStatic && (symbol.IsAbstract || symbol.
IsVirtual
))
Binder\Binder_Operators.cs (2)
1160
(t.IsInterface && (signature.Method.IsAbstract || signature.Method.
IsVirtual
) &&
2386
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 (2)
1666
if (method.IsAbstract || method.
IsVirtual
)
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)
Emitter\Model\MethodSymbolAdapter.cs (1)
651
!(this.
IsVirtual
|| this.IsOverride || this.IsAbstract || this.MethodKind == MethodKind.Destructor));
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\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)
220
get { return UnderlyingSymbol.
IsVirtual
; }
Symbols\ReducedExtensionMethodSymbol.cs (1)
393
get { return _reducedFrom.
IsVirtual
; }
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4758
((!symbol.IsAbstract && !symbol.
IsVirtual
&& !symbol.IsOverride) || symbol.IsSealed))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
890
else if (!overriddenMember.
IsVirtual
&& !overriddenMember.IsAbstract && !overriddenMember.IsOverride &&
1588
(hiddenMember.IsAbstract || hiddenMember.
IsVirtual
|| hiddenMember.IsOverride) &&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
960
if (!IsStatic || ParameterCount > 0 || !ReturnsVoid || IsAbstract ||
IsVirtual
)
Symbols\Symbol.cs (1)
1767
get { return this.
IsVirtual
; }
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\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)
106
return _underlyingEvent.
IsVirtual
;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
137
return UnderlyingMethod.
IsVirtual
;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
128
return _underlyingProperty.
IsVirtual
;