Skip to content

Commit 4e5fe43

Browse files
committed
Merge pull request #1570 from vweijsters/fix-1564
Changed reported location for SA1130 to only the delegate keyword
2 parents 7f711ee + d2dc327 commit 4e5fe43

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)