Skip to content

Commit d2dc327

Browse files
committed
Changed reported location to only the delegate keyword
1 parent 7f711ee commit d2dc327

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

StyleCop.Analyzers/StyleCop.Analyzers/ReadabilityRules/SA1130UseLambdaSyntax.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private static void HandleAnonymousMethodExpression(SyntaxNodeAnalysisContext co
7676
}
7777
}
7878

79-
context.ReportDiagnostic(Diagnostic.Create(Descriptor, anonymousMethod.GetLocation()));
79+
context.ReportDiagnostic(Diagnostic.Create(Descriptor, anonymousMethod.DelegateKeyword.GetLocation()));
8080
}
8181
}
8282
}

0 commit comments

Comments
 (0)