Base:
property
IsVirtual
Microsoft.CodeAnalysis.CSharp.Symbol.IsVirtual
42 references to IsVirtual
Microsoft.CodeAnalysis.CSharp (26)
Symbols\Source\SourceMemberMethodSymbol.cs (2)
993if ((((hasBody || IsExtern) && !(IsStatic && IsVirtual)) || IsExplicitInterfaceImplementation) && !ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation) 998if (((!hasBody && IsAbstract) || IsVirtual) && !IsExplicitInterfaceImplementation && IsStatic && !ContainingAssembly.RuntimeSupportsStaticAbstractMembersInInterfaces)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
140addRefReadOnlyModifier: IsVirtual || IsAbstract, 703if (definition.IsVirtual != implementation.IsVirtual
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (6)
322Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 347else if (this.DeclaredAccessibility == Accessibility.Private && (IsVirtual || (IsAbstract && !isExplicitInterfaceImplementationInInterface) || IsOverride)) 351else if (IsOverride && (IsNew || IsVirtual)) 379else if (IsAbstract && IsVirtual) 388else if (IsVirtual && ContainingType.TypeKind == TypeKind.Struct) 403else if (IsVirtual && ContainingType.IsSealed)
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
533else if (IsVirtual && ContainingType.IsSealed && ContainingType.TypeKind != TypeKind.Struct) // error CS0106 on struct already
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
84if (IsStatic && (IsAbstract || IsVirtual))
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
84if (IsAbstract || IsVirtual || (name != WellKnownMemberNames.EqualityOperatorName && name != WellKnownMemberNames.InequalityOperatorName))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (12)
53!(IsAbstract || IsVirtual) && !IsExplicitInterfaceImplementation && 93else if (IsAbstract && IsVirtual) 391if (IsAbstract || IsVirtual) 467diagnostics.Add(IsAbstract || IsVirtual ? ErrorCode.ERR_AbstractConversionNotInvolvingContainedType : ErrorCode.ERR_ConversionNotInvolvingContainedType, this.Locations[0]); 603diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractUnaryOperatorSignature : ErrorCode.ERR_BadUnaryOperatorSignature, this.Locations[0]); 623diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractUnaryOperatorSignature : ErrorCode.ERR_BadUnaryOperatorSignature, this.Locations[0]); 673diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractIncDecSignature : ErrorCode.ERR_BadIncDecSignature, this.Locations[0]); 677(((IsAbstract || IsVirtual) && IsContainingType(parameterType) && IsSelfConstrainedTypeParameter(this.ReturnType)) || 682diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractIncDecRetType : ErrorCode.ERR_BadIncDecRetType, this.Locations[0]); 690return IsContainingType(type) || ((IsAbstract || IsVirtual) && IsSelfConstrainedTypeParameter(type)); 722diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractShiftOperatorSignature : ErrorCode.ERR_BadShiftOperatorSignature, this.Locations[0]); 741diagnostics.Add((IsAbstract || IsVirtual) ? ErrorCode.ERR_BadAbstractBinaryOperatorSignature : ErrorCode.ERR_BadBinaryOperatorSignature, this.Locations[0]);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\RecordStructTests.cs (2)
4311Assert.False(recordEquals.IsVirtual); 4320Assert.False(objectEquals.IsVirtual);
Semantics\RecordTests.cs (6)
18093Assert.True(recordEquals.IsVirtual); 18202Assert.True(recordEquals.IsVirtual); 18466Assert.True(recordEquals.IsVirtual); 18626Assert.True(recordEquals.IsVirtual); 18665Assert.False(recordEquals.IsVirtual); 18701Assert.False(recordEquals.IsVirtual);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\Source\MethodTests.cs (8)
1863Assert.True(method1.IsVirtual); 1864Assert.True(method2.IsVirtual); 1865Assert.False(method3.IsVirtual); 1866Assert.False(method4.IsVirtual); 1884Assert.True(method1.IsVirtual); 1885Assert.True(method2.IsVirtual); 1886Assert.False(method3.IsVirtual); 1887Assert.False(method4.IsVirtual);