Skip to content

Commit

Permalink
Analyzer - Remove parentheses from lambda param while passing context
Browse files Browse the repository at this point in the history
  • Loading branch information
psxvoid committed Jul 27, 2021
1 parent 35b2346 commit aafe0de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public override void Initialize(AnalysisContext context)
context.EnableConcurrentExecution();
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);

context.RegisterCompilationStartAction((context) =>
context.RegisterCompilationStartAction(context =>
{
if (!context.Compilation.TryGetOrCreateTypeByMetadataName(WellKnownTypeNames.SystemTextJsonSerializationJsonConstructorAttribute, out var jsonConstructorAttributeNamedSymbol))
{
Expand All @@ -53,7 +53,7 @@ public override void Initialize(AnalysisContext context)
var paramAnalyzer = new ParameterAnalyzer(jsonConstructorAttributeNamedSymbol);
context.RegisterSymbolStartAction((context) =>
context.RegisterSymbolStartAction(context =>
{
var constructors = ((INamedTypeSymbol)context.Symbol).InstanceConstructors;
Expand Down

0 comments on commit aafe0de

Please sign in to comment.