Initial Commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace System.Diagnostics.CodeAnalysis;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter)]
|
||||
internal sealed class AllowNullAttribute : Attribute
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace System.Diagnostics.CodeAnalysis;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Parameter)]
|
||||
internal class DoesNotReturnIfAttribute : Attribute
|
||||
{
|
||||
public DoesNotReturnIfAttribute(bool parameterValue)
|
||||
{
|
||||
ParameterValue = parameterValue;
|
||||
}
|
||||
|
||||
public bool ParameterValue { get; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace System.Diagnostics.CodeAnalysis;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter |
|
||||
AttributeTargets.ReturnValue)]
|
||||
internal sealed class MaybeNullAttribute : Attribute
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace System.Diagnostics.CodeAnalysis;
|
||||
|
||||
[AttributeUsage(
|
||||
AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter |
|
||||
AttributeTargets.ReturnValue, AllowMultiple = true)]
|
||||
internal sealed class NotNullAttribute : Attribute
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace System.Diagnostics.CodeAnalysis;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Parameter)]
|
||||
internal sealed class NotNullWhenAttribute : Attribute
|
||||
{
|
||||
public NotNullWhenAttribute(bool returnValue)
|
||||
{
|
||||
ReturnValue = returnValue;
|
||||
}
|
||||
|
||||
public bool ReturnValue { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user