Skip to content

Commit

Permalink
missed cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
annelo-msft committed Aug 11, 2023
1 parent eda6cd8 commit 2a7c508
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit 2a7c508

Please sign in to comment.