mirror of https://github.com/abpframework/abp.git
13 changed files with 8 additions and 144 deletions
@ -1,12 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace JetBrains.Annotations |
|
||||
{ |
|
||||
[AttributeUsage( |
|
||||
AttributeTargets.Method | AttributeTargets.Parameter | |
|
||||
AttributeTargets.Property | AttributeTargets.Delegate | |
|
||||
AttributeTargets.Field)] |
|
||||
public sealed class CanBeNullAttribute : Attribute |
|
||||
{ |
|
||||
} |
|
||||
} |
|
||||
@ -1,23 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace JetBrains.Annotations |
|
||||
{ |
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)] |
|
||||
public sealed class ContractAnnotationAttribute : Attribute |
|
||||
{ |
|
||||
public string Contract { get; private set; } |
|
||||
|
|
||||
public bool ForceFullStates { get; private set; } |
|
||||
|
|
||||
public ContractAnnotationAttribute([NotNull] string contract) |
|
||||
: this(contract, false) |
|
||||
{ |
|
||||
} |
|
||||
|
|
||||
public ContractAnnotationAttribute([NotNull] string contract, bool forceFullStates) |
|
||||
{ |
|
||||
Contract = contract; |
|
||||
ForceFullStates = forceFullStates; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,14 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace JetBrains.Annotations |
|
||||
{ |
|
||||
[Flags] |
|
||||
public enum ImplicitUseKindFlags |
|
||||
{ |
|
||||
Default = Access | Assign | InstantiatedWithFixedConstructorSignature, |
|
||||
Access = 1, |
|
||||
Assign = 2, |
|
||||
InstantiatedWithFixedConstructorSignature = 4, |
|
||||
InstantiatedNoFixedConstructorSignature = 8 |
|
||||
} |
|
||||
} |
|
||||
@ -1,13 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace JetBrains.Annotations |
|
||||
{ |
|
||||
[Flags] |
|
||||
public enum ImplicitUseTargetFlags |
|
||||
{ |
|
||||
Default = Itself, |
|
||||
Itself = 1, |
|
||||
Members = 2, |
|
||||
WithMembers = Itself | Members |
|
||||
} |
|
||||
} |
|
||||
@ -1,9 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace JetBrains.Annotations |
|
||||
{ |
|
||||
[AttributeUsage(AttributeTargets.Parameter)] |
|
||||
public sealed class InvokerParameterNameAttribute : Attribute |
|
||||
{ |
|
||||
} |
|
||||
} |
|
||||
@ -1,9 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace JetBrains.Annotations |
|
||||
{ |
|
||||
[AttributeUsage(AttributeTargets.Parameter)] |
|
||||
internal sealed class NoEnumerationAttribute : Attribute |
|
||||
{ |
|
||||
} |
|
||||
} |
|
||||
@ -1,12 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace JetBrains.Annotations |
|
||||
{ |
|
||||
[AttributeUsage( |
|
||||
AttributeTargets.Method | AttributeTargets.Parameter | |
|
||||
AttributeTargets.Property | AttributeTargets.Delegate | |
|
||||
AttributeTargets.Field)] |
|
||||
public sealed class NotNullAttribute : Attribute |
|
||||
{ |
|
||||
} |
|
||||
} |
|
||||
@ -1,16 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace JetBrains.Annotations |
|
||||
{ |
|
||||
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Delegate)] |
|
||||
public sealed class StringFormatMethodAttribute : Attribute |
|
||||
{ |
|
||||
public StringFormatMethodAttribute([NotNull] string formatParameterName) |
|
||||
{ |
|
||||
FormatParameterName = formatParameterName; |
|
||||
} |
|
||||
|
|
||||
[NotNull] |
|
||||
public string FormatParameterName { get; private set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,34 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace JetBrains.Annotations |
|
||||
{ |
|
||||
[AttributeUsage(AttributeTargets.All)] |
|
||||
public sealed class UsedImplicitlyAttribute : Attribute |
|
||||
{ |
|
||||
public UsedImplicitlyAttribute() |
|
||||
: this(ImplicitUseKindFlags.Default, ImplicitUseTargetFlags.Default) |
|
||||
{ |
|
||||
} |
|
||||
|
|
||||
public UsedImplicitlyAttribute(ImplicitUseKindFlags useKindFlags) |
|
||||
: this(useKindFlags, ImplicitUseTargetFlags.Default) |
|
||||
{ |
|
||||
} |
|
||||
|
|
||||
public UsedImplicitlyAttribute(ImplicitUseTargetFlags targetFlags) |
|
||||
: this(ImplicitUseKindFlags.Default, targetFlags) |
|
||||
{ |
|
||||
} |
|
||||
|
|
||||
public UsedImplicitlyAttribute( |
|
||||
ImplicitUseKindFlags useKindFlags, ImplicitUseTargetFlags targetFlags) |
|
||||
{ |
|
||||
UseKindFlags = useKindFlags; |
|
||||
TargetFlags = targetFlags; |
|
||||
} |
|
||||
|
|
||||
public ImplicitUseKindFlags UseKindFlags { get; private set; } |
|
||||
|
|
||||
public ImplicitUseTargetFlags TargetFlags { get; private set; } |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue