C#: Use nameof in nullability attributes

This commit is contained in:
Tamas Vajk
2024-02-20 10:05:34 +01:00
parent ce07d6ad9f
commit b3f5beb076
4 changed files with 4 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ namespace Semmle.Extraction.CSharp.Entities
}
}
[return: NotNullIfNotNull("constructor")]
[return: NotNullIfNotNull(nameof(constructor))]
public static new Constructor? Create(Context cx, IMethodSymbol? constructor)
{
if (constructor is null)