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