6 implementations of IsOverride
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
110public bool IsOverride
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
120bool ISymbol.IsOverride => false;
Symbols\PublicModel\Symbol.cs (1)
223bool ISymbol.IsOverride
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
53public bool IsOverride => _symbol.IsOverride;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1253Private ReadOnly Property ISymbol_IsOverride As Boolean Implements ISymbol.IsOverride, ISymbolInternal.IsOverride
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
110public bool IsOverride
81 references to IsOverride
ILLink.RoslynAnalyzer (2)
RequiresAnalyzerBase.cs (1)
128 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));
Microsoft.Analyzers.Extra (1)
AsyncMethodWithoutCancellation.cs (1)
76if (methodSymbol.IsOverride)
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
305if (type.IsOverride)
Microsoft.AspNetCore.App.Analyzers (3)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (2)
50current = current.IsOverride ? current.OverriddenMethod : null; 91current = current.IsOverride ? current.OverriddenProperty : null;
src\Shared\Roslyn\MvcFacts.cs (1)
103while (method.IsOverride)
Microsoft.AspNetCore.Mvc.Analyzers (3)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (2)
50current = current.IsOverride ? current.OverriddenMethod : null; 91current = current.IsOverride ? current.OverriddenProperty : null;
src\Shared\Roslyn\MvcFacts.cs (1)
103while (method.IsOverride)
Microsoft.AspNetCore.Mvc.Api.Analyzers (3)
src\Shared\Roslyn\CodeAnalysisExtensions.cs (2)
50current = current.IsOverride ? current.OverriddenMethod : null; 91current = current.IsOverride ? current.OverriddenProperty : null;
src\Shared\Roslyn\MvcFacts.cs (1)
103while (method.IsOverride)
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
4705isVirtual: method.IsVirtual || method.IsAbstract || method.IsOverride,
Microsoft.CodeAnalysis.CodeStyle (9)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
819methodSymbol.IsOverride ||
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
211method.IsOverride ||
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
357if (property.IsVirtual || property.IsOverride || property.IsSealed)
src\Workspaces\Core\Portable\Editing\DeclarationModifiers.cs (1)
84isOverride: symbol.IsOverride,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
625if (!member.IsAbstract && !member.IsVirtual && !member.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
93(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride)) 178(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
73return symbol.IsOverride ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
922if (newSymbol.IsOverride)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
40if (method.IsVirtual || method.IsOverride || method.IsAbstract)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISymbolExtensions.cs (1)
22isOverride: symbol.IsOverride,
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
940if (symbol.IsOverride)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
254if (@event.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (3)
238return !method.ExplicitInterfaceImplementations.Any() && !method.IsOverride 245Debug.Assert(method.ExplicitInterfaceImplementations.Any() || method.IsOverride); 369if (method.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
403if (property.IsOverride)
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2533{ IsVirtual: true } or { IsOverride: true } or { IsAbstract: true }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
7665Assert.False(symbol1.IsOverride); 8460Assert.False(symbol1.IsOverride);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\AssemblyAndNamespaceTests.cs (2)
41Assert.False(sym.IsOverride); 68Assert.False(sym.IsOverride);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Rename\CSharpRenameRewriterLanguageService.cs (1)
941if (symbol.IsOverride && symbol.GetOverriddenMember() != null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
254if (@event.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (3)
238return !method.ExplicitInterfaceImplementations.Any() && !method.IsOverride 245Debug.Assert(method.ExplicitInterfaceImplementations.Any() || method.IsOverride); 369if (method.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
403if (property.IsOverride)
Microsoft.CodeAnalysis.Features (5)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
53public bool IsOverride => _symbol.IsOverride;
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
819methodSymbol.IsOverride ||
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
211method.IsOverride ||
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
357if (property.IsVirtual || property.IsOverride || property.IsSealed)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
40if (method.IsVirtual || method.IsOverride || method.IsAbstract)
Microsoft.CodeAnalysis.VisualBasic (6)
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 (2)
645If IsOverloads(symbol) AndAlso Not symbol.IsOverride Then 650If symbol.IsOverride Then
Symbols\Symbol.vb (1)
1253Private ReadOnly Property ISymbol_IsOverride As Boolean Implements ISymbol.IsOverride, ISymbolInternal.IsOverride
VisualBasicExtensions.vb (1)
529Return symbol.IsOverride
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (1)
161If method.IsOverride Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (1)
203If [property].IsOverride 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)
161If method.IsOverride Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (1)
203If [property].IsOverride Then
Microsoft.CodeAnalysis.Workspaces (15)
Editing\DeclarationModifiers.cs (1)
84isOverride: symbol.IsOverride,
Editing\SyntaxGenerator.cs (1)
205if (method.IsOverride)
Rename\ConflictEngine\ConflictResolver.cs (1)
357if (symbol.IsOverride)
Rename\RenameUtilities.cs (2)
134if (symbol.IsOverride) 216if (symbol.IsOverride && symbol.GetOverriddenMember() != null)
Shared\Extensions\ISymbolExtensions.cs (2)
266if (symbol.IsOverride) 468else if (memberSymbol.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
625if (!member.IsAbstract && !member.IsVirtual && !member.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
93(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride)) 178(symbol.IsVirtual || symbol.IsAbstract || symbol.IsOverride);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (1)
73return symbol.IsOverride ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
922if (newSymbol.IsOverride)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISymbolExtensions.cs (1)
22isOverride: symbol.IsOverride,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
444where method.IsOverride &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
206where method.IsOverride &&
Microsoft.Gen.Logging (2)
Parsing\Parser.Records.cs (2)
106if ((property.IsVirtual || property.IsOverride) && 113if (property.IsOverride)
Microsoft.VisualStudio.LanguageServices (2)
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
378if (member.IsOverride)
Progression\GraphBuilder.cs (1)
491if (symbol.IsOverride)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ObjectBrowser\DescriptionBuilder.cs (1)
303else if (memberSymbol.IsOverride)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (1)
2539If symbol.IsOverride AndAlso symbol.Name = "Finalize" Then
ObjectBrowser\DescriptionBuilder.vb (1)
383If memberSymbol.IsOverride Then
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
123=> symbol.IsVirtual || symbol.IsOverride || symbol.IsAbstract;