6 implementations of IsVirtual
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
102public bool IsVirtual
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
118bool ISymbol.IsVirtual => false;
Symbols\PublicModel\Symbol.cs (1)
218bool ISymbol.IsVirtual
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
59public bool IsVirtual => _symbol.IsVirtual;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1277Private ReadOnly Property ISymbol_IsVirtual As Boolean Implements ISymbol.IsVirtual, ISymbolInternal.IsVirtual
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
102public bool IsVirtual
64 references to IsVirtual
ILLink.RoslynAnalyzer (3)
RequiresAnalyzerBase.cs (1)
120 if ((member.IsVirtual || member.IsOverride) && member.TryGetOverriddenMember (out var overriddenMember) && HasMismatchingAttributes (member, overriddenMember))
TrimAnalysis\FlowAnnotations.cs (1)
94 return method.IsVirtual || method.IsOverride || (hasParameterAnnotation ?? HasParameterAnnotation (method));
TrimAnalysis\ReflectionAccessAnalyzer.cs (1)
154 if (methodSymbol.IsVirtual && FlowAnnotations.GetMethodReturnValueAnnotation (methodSymbol) != DynamicallyAccessedMemberTypes.None) {
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
300if (type.IsVirtual)
Microsoft.CodeAnalysis (6)
Operations\ControlFlowGraphBuilder.cs (6)
2504constrainedToType: unaryOperatorMethod is not null && (unaryOperatorMethod.IsAbstract || unaryOperatorMethod.IsVirtual) ? binOp.ConstrainedToType : null, 2546binOp.OperatorMethod is not null && (binOp.OperatorMethod.IsAbstract || binOp.OperatorMethod.IsVirtual) ? binOp.ConstrainedToType : null, 2607constrainedToType: unaryOperatorMethod.IsAbstract || unaryOperatorMethod.IsVirtual ? binOp.ConstrainedToType : null, 2636binOp.OperatorMethod.IsAbstract || binOp.OperatorMethod.IsVirtual ? binOp.ConstrainedToType : null, 4189var invocation = new InvocationOperation(method, constrainedToType: null, value, isVirtual: disposeMethod is (null or { IsVirtual: true } or { IsAbstract: true }), 4705isVirtual: method.IsVirtual || method.IsAbstract || method.IsOverride,
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
795methodSymbol.IsVirtual ||
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
210method.IsVirtual ||
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
361if (property.IsVirtual || property.IsOverride || property.IsSealed)
src\Workspaces\Core\Portable\Editing\DeclarationModifiers.cs (1)
83isVirtual: symbol.IsVirtual,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
242=> m.IsVirtual || m.IsAbstract; 625if (!member.IsAbstract && !member.IsVirtual && !member.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
92(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride)) 166(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride);
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AddAccessibilityModifiersHelpers.cs (1)
55if (symbol.IsVirtual)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
35if (method.IsVirtual || method.IsOverride || method.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISymbolExtensions.cs (1)
21isVirtual: symbol.IsVirtual,
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
956if (symbol.IsVirtual)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
304if (method.IsVirtual)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
391if (property.IsVirtual)
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
80if (!member.IsAbstract && !member.IsVirtual)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2533{ IsVirtual: true } or { IsOverride: true } or { IsAbstract: true }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
7666Assert.False(symbol1.IsVirtual); 8461Assert.False(symbol1.IsVirtual);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\AssemblyAndNamespaceTests.cs (2)
40Assert.False(sym.IsVirtual); 67Assert.False(sym.IsVirtual);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
833if (!(symbol.IsVirtual || symbol.IsAbstract))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
304if (method.IsVirtual)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
391if (property.IsVirtual)
Microsoft.CodeAnalysis.Features (6)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
59public bool IsVirtual => _symbol.IsVirtual;
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
795methodSymbol.IsVirtual ||
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
210method.IsVirtual ||
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
361if (property.IsVirtual || property.IsOverride || property.IsSealed)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AddAccessibilityModifiersHelpers.cs (1)
55if (symbol.IsVirtual)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
35if (method.IsVirtual || method.IsOverride || method.IsAbstract)
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\TestOperationVisitor.cs (3)
774if ((operatorMethod is null || !operatorMethod.IsStatic || (!operatorMethod.IsVirtual && !operatorMethod.IsAbstract)) && 775(unaryOperatorMethod is null || !unaryOperatorMethod.IsStatic || (!unaryOperatorMethod.IsVirtual && !unaryOperatorMethod.IsAbstract))) 876if (member is null || !member.IsStatic || (!member.IsVirtual && !member.IsAbstract))
Microsoft.CodeAnalysis.VisualBasic (5)
Operations\VisualBasicOperationFactory.vb (2)
443(targetMethod.IsVirtual OrElse targetMethod.IsAbstract OrElse targetMethod.IsOverride) AndAlso 762(method.IsAbstract OrElse method.IsOverride OrElse method.IsVirtual) AndAlso
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
639If symbol.IsVirtual Then
Symbols\Symbol.vb (1)
1277Private ReadOnly Property ISymbol_IsVirtual As Boolean Implements ISymbol.IsVirtual, ISymbolInternal.IsVirtual
VisualBasicExtensions.vb (1)
534Return symbol.IsVirtual
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (1)
157If method.IsVirtual Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (1)
199If [property].IsVirtual Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
2025If newSymbol.IsVirtual Or newSymbol.IsOverride Or newSymbol.IsAbstract Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (1)
157If method.IsVirtual Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (1)
199If [property].IsVirtual Then
Microsoft.CodeAnalysis.Workspaces (6)
Editing\DeclarationModifiers.cs (1)
83isVirtual: symbol.IsVirtual,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
242=> m.IsVirtual || m.IsAbstract; 625if (!member.IsAbstract && !member.IsVirtual && !member.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
92(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride)) 166(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISymbolExtensions.cs (1)
21isVirtual: symbol.IsVirtual,
Microsoft.Gen.Logging (1)
Parsing\Parser.Records.cs (1)
106if ((property.IsVirtual || property.IsOverride) &&
Microsoft.VisualStudio.LanguageServices (2)
CallHierarchy\CallHierarchyProvider.cs (1)
114if (symbol.IsVirtual || symbol.IsAbstract)
Progression\GraphBuilder.cs (1)
486if (symbol.IsVirtual)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ObjectBrowser\DescriptionBuilder.cs (1)
318else if (memberSymbol.IsVirtual)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ObjectBrowser\DescriptionBuilder.vb (1)
363If memberSymbol.IsVirtual Then
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
123=> symbol.IsVirtual || symbol.IsOverride || symbol.IsAbstract;