Skip to content

Commit

Permalink
feature: also analyze generated code (e.g. to support razor-files)
Browse files Browse the repository at this point in the history
  • Loading branch information
earloc committed Oct 26, 2024
1 parent fba25c2 commit b41d479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TypealizeR.Analyzers/UseIndexerAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public override void Initialize(AnalysisContext context)
{
context = context ?? throw new ArgumentNullException(nameof(context));

context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
context.EnableConcurrentExecution();

// See https://github.com/dotnet/roslyn/blob/main/docs/analyzers/Analyzer%20Actions%20Semantics.md for more information
Expand Down

0 comments on commit b41d479

Please sign in to comment.