From cc3e1fd3eecef65ee15ff7b1a704edceff69857b Mon Sep 17 00:00:00 2001 From: Zsolt Kolbay <121798625+zsolt-kolbay-sonarsource@users.noreply.github.com> Date: Wed, 1 Mar 2023 14:15:03 +0100 Subject: [PATCH] Improve S3398: Fix code smells (#6827) --- .../Rules/PrivateStaticMethodUsedOnlyByNestedClass.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/analyzers/src/SonarAnalyzer.CSharp/Rules/PrivateStaticMethodUsedOnlyByNestedClass.cs b/analyzers/src/SonarAnalyzer.CSharp/Rules/PrivateStaticMethodUsedOnlyByNestedClass.cs index 44998f457b3..bfb3748020a 100644 --- a/analyzers/src/SonarAnalyzer.CSharp/Rules/PrivateStaticMethodUsedOnlyByNestedClass.cs +++ b/analyzers/src/SonarAnalyzer.CSharp/Rules/PrivateStaticMethodUsedOnlyByNestedClass.cs @@ -178,7 +178,8 @@ private sealed record MethodUsedByTypes(MethodDeclarationSyntax Method, TypeDecl /// /// Collects all the potential references to a set of methods inside the given syntax node. /// The collector looks for identifiers which match any of the methods' names, but does not try to resolve them to symbols with the semantic model. - /// Performance gains: by only using the syntax tree to find matches we can eliminate certain methods (which are only used by the type which has declared it) without using the more costly symbolic lookup. + /// Performance gains: by only using the syntax tree to find matches we can eliminate certain methods (which are only used by the type which has declared it) + /// without using the more costly symbolic lookup. /// private sealed class PotentialMethodReferenceCollector : CSharpSyntaxWalker {