Analyzer to check that notnullableflag is being properly used (#3569)

This commit is contained in:
Paul Ritter
2022-12-21 00:11:04 +01:00
committed by GitHub
parent a0b067a062
commit bafbdb6363
39 changed files with 338 additions and 132 deletions

View File

@@ -0,0 +1,18 @@
using System;
#if NETSTANDARD2_0
namespace Robust.Shared.Analyzers.Implementation;
#else
namespace Robust.Shared.Analyzers;
#endif
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.GenericParameter)]
public sealed class NotNullableFlagAttribute : Attribute
{
public readonly string TypeParameterName;
public NotNullableFlagAttribute(string typeParameterName)
{
TypeParameterName = typeParameterName;
}
}