mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
C#: Use nameof in nullability attributes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user