diff --git a/Source/Lib/Fluxor.Blazor.Web.Analyzers/CallBaseOnInitialized.cs b/Source/Lib/Fluxor.Blazor.Web.Analyzers/CallBaseOnInitialized.cs index 23a0c67..3d58966 100644 --- a/Source/Lib/Fluxor.Blazor.Web.Analyzers/CallBaseOnInitialized.cs +++ b/Source/Lib/Fluxor.Blazor.Web.Analyzers/CallBaseOnInitialized.cs @@ -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 && (