Base:
property
IsVirtual
Microsoft.CodeAnalysis.CSharp.Symbol.IsVirtual
27 references to IsVirtual
Microsoft.CodeAnalysis.CSharp (27)
Symbols\Source\SourceMemberMethodSymbol.cs (2)
1104
if ((((hasBody || IsExtern) && !(IsStatic &&
IsVirtual
)) || IsExplicitInterfaceImplementation) && !ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation)
1109
if (((!hasBody && IsAbstract) ||
IsVirtual
) && !IsExplicitInterfaceImplementation && IsStatic && !ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (9)
129
addRefReadOnlyModifier:
IsVirtual
|| IsAbstract,
526
if (definition.
IsVirtual
!= implementation.
IsVirtual
798
Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !
IsVirtual
)); // Otherwise should have been reported and cleared earlier.
823
else if (this.DeclaredAccessibility == Accessibility.Private && (
IsVirtual
|| (IsAbstract && !isExplicitInterfaceImplementationInInterface) || IsOverride))
827
else if (IsOverride && (IsNew ||
IsVirtual
))
855
else if (IsAbstract &&
IsVirtual
)
864
else if (
IsVirtual
&& ContainingType.TypeKind == TypeKind.Struct)
879
else if (
IsVirtual
&& ContainingType.IsSealed)
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
534
else if (
IsVirtual
&& ContainingType.IsSealed && ContainingType.TypeKind != TypeKind.Struct) // error CS0106 on struct already
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
84
if (IsStatic && (IsAbstract ||
IsVirtual
))
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
84
if (IsAbstract ||
IsVirtual
|| (name != WellKnownMemberNames.EqualityOperatorName && name != WellKnownMemberNames.InequalityOperatorName))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (13)
56
!(IsAbstract ||
IsVirtual
) && !IsExplicitInterfaceImplementation &&
96
else if (IsAbstract &&
IsVirtual
)
238
addRefReadOnlyModifier:
IsVirtual
|| IsAbstract,
394
if (IsAbstract ||
IsVirtual
)
470
diagnostics.Add(IsAbstract ||
IsVirtual
? ErrorCode.ERR_AbstractConversionNotInvolvingContainedType : ErrorCode.ERR_ConversionNotInvolvingContainedType, this.GetFirstLocation());
606
diagnostics.Add((IsAbstract ||
IsVirtual
) ? ErrorCode.ERR_BadAbstractUnaryOperatorSignature : ErrorCode.ERR_BadUnaryOperatorSignature, this.GetFirstLocation());
626
diagnostics.Add((IsAbstract ||
IsVirtual
) ? ErrorCode.ERR_BadAbstractUnaryOperatorSignature : ErrorCode.ERR_BadUnaryOperatorSignature, this.GetFirstLocation());
676
diagnostics.Add((IsAbstract ||
IsVirtual
) ? ErrorCode.ERR_BadAbstractIncDecSignature : ErrorCode.ERR_BadIncDecSignature, this.GetFirstLocation());
680
(((IsAbstract ||
IsVirtual
) && IsContainingType(parameterType) && IsSelfConstrainedTypeParameter(this.ReturnType)) ||
685
diagnostics.Add((IsAbstract ||
IsVirtual
) ? ErrorCode.ERR_BadAbstractIncDecRetType : ErrorCode.ERR_BadIncDecRetType, this.GetFirstLocation());
693
return IsContainingType(type) || ((IsAbstract ||
IsVirtual
) && IsSelfConstrainedTypeParameter(type));
725
diagnostics.Add((IsAbstract ||
IsVirtual
) ? ErrorCode.ERR_BadAbstractShiftOperatorSignature : ErrorCode.ERR_BadShiftOperatorSignature, this.GetFirstLocation());
744
diagnostics.Add((IsAbstract ||
IsVirtual
) ? ErrorCode.ERR_BadAbstractBinaryOperatorSignature : ErrorCode.ERR_BadBinaryOperatorSignature, this.GetFirstLocation());