Skip to content

Commit

Permalink
Improve S3398: Fix code smells (#6827)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsolt-kolbay-sonarsource committed Mar 1, 2023
1 parent b48e7f6 commit cc3e1fd
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -178,7 +178,8 @@ private sealed record MethodUsedByTypes(MethodDeclarationSyntax Method, TypeDecl
/// <summary>
/// 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.
/// </summary>
private sealed class PotentialMethodReferenceCollector : CSharpSyntaxWalker
{
Expand Down

0 comments on commit cc3e1fd

Please sign in to comment.