Skip to content

Commit

Permalink
Attempt to analyze razor files too.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpmorris committed Dec 22, 2024
1 parent bf6d2ad commit d9ed366
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ public sealed class CallBaseOnInitialized : DiagnosticAnalyzer

public override void Initialize(AnalysisContext context)
{
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
context.EnableConcurrentExecution();
context.RegisterSyntaxNodeAction(
action: AnalyzeMethod,
syntaxKinds: SyntaxKind.MethodDeclaration);
}


private static bool IsFluxorComponentBase(INamedTypeSymbol? symbol) =>
symbol is not null
&& (
Expand Down

0 comments on commit d9ed366

Please sign in to comment.