diff --git a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/SymbolAnalyzerBase.cs b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/SymbolAnalyzerBase.cs index f04d800ca15..4062c38c03b 100644 --- a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/SymbolAnalyzerBase.cs +++ b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers/SymbolAnalyzerBase.cs @@ -14,8 +14,6 @@ public abstract class SymbolAnalyzerBase : DiagnosticAnalyzer public abstract SymbolKind[] SymbolKinds { get; } public abstract void Analyze(ISymbolAnalysisContext context); - public virtual void AnalyzeNode(SyntaxNodeAnalysisContext context) { } - protected INamedTypeSymbol ClientOptionsType { get; private set; } public override void Initialize(AnalysisContext context) @@ -51,9 +49,9 @@ protected bool IsClientOptionsType(ITypeSymbol typeSymbol) { return false; } - + ITypeSymbol baseType = typeSymbol.BaseType; - while (baseType != null) + while (baseType != null) { if (SymbolEqualityComparer.Default.Equals(baseType, ClientOptionsType)) {