24 overrides of IsMetadataVirtual
Microsoft.CodeAnalysis.CSharp (24)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
57internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
73internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (1)
58internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (1)
62internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
73internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
62internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\ErrorMethodSymbol.cs (1)
219internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
849internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None) => false;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
598internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None) => HasFlag(MethodAttributes.Virtual);
Symbols\ReducedExtensionMethodSymbol.cs (1)
426internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\SignatureOnlyMethodSymbol.cs (1)
165internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None) { throw ExceptionUtilities.Unreachable(); }
Symbols\Source\LambdaSymbol.cs (1)
117internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Source\LocalFunctionSymbol.cs (1)
382internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None) => false;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
561internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
80internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
232internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
294internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
226internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
243internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
228internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
100internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
310internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
317internal sealed override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
189internal override bool IsMetadataVirtual(IsMetadataVirtualOption option = IsMetadataVirtualOption.None)
16 references to IsMetadataVirtual
Microsoft.CodeAnalysis.CSharp (16)
CodeGen\EmitConversion.cs (1)
354if (!method.IsStatic && method.IsMetadataVirtual() && !method.ContainingType.IsDelegateType() && !receiver.SuppressVirtualCalls)
CodeGen\EmitExpression.cs (3)
1841(!method.IsMetadataVirtual() && CanUseCallOnRefTypeReceiver(receiver))) 1881if (method.IsMetadataVirtual()) 2301if (!method.IsMetadataVirtual() || method.IsStatic)
Emitter\Model\MethodSymbolAdapter.cs (3)
485return AdaptedMethodSymbol.IsMetadataVirtual(); 601&& this.IsMetadataVirtual() && !this.IsMetadataFinal; 650(this.IsMetadataVirtual() &&
Lowering\MethodToClassRewriter.cs (4)
238Debug.Assert(rewrittenMethodSymbol.IsMetadataVirtual(MethodSymbol.IsMetadataVirtualOption.ForceCompleteIfNeeded) 239== node.Method.IsMetadataVirtual(MethodSymbol.IsMetadataVirtualOption.ForceCompleteIfNeeded)); 244if (BaseReferenceInReceiverWasRewritten(node.ReceiverOpt, rewrittenReceiver) && node.Method.IsMetadataVirtual()) 592if (BaseReferenceInReceiverWasRewritten(originalArgument, rewrittenArgument) && method!.IsMetadataVirtual())
Symbols\MethodSymbolExtensions.cs (1)
46method.ParameterCount != 0 || method.Arity != 0 || !method.IsMetadataVirtual(MethodSymbol.IsMetadataVirtualOption.IgnoreInterfaceImplementationChanges))
Symbols\OverriddenOrHiddenMembersHelpers.cs (2)
1022if (!method.IsMetadataVirtual(ignoreInterfaceImplementationChanges) || method.IsStatic) 1041if (overridden.IsMetadataVirtual(ignoreInterfaceImplementationChanges))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1841else if (implementingMethod.IsMetadataVirtual(MethodSymbol.IsMetadataVirtualOption.IgnoreInterfaceImplementationChanges))
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
191return UnderlyingMethod.IsMetadataVirtual(option);