Skip to content

Commit

Permalink
Restore JetBrains.Annotations.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas Gijzen committed Jan 8, 2024
1 parent 09bec63 commit fb3274c
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions CM.Text/[JetBrains.Annotations]/JetBrains.Annotations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ internal sealed class StringFormatMethodAttribute : Attribute
/// </param>
public StringFormatMethodAttribute([NotNull] string formatParameterName)
{
FormatParameterName = formatParameterName;
this.FormatParameterName = formatParameterName;
}

[NotNull]
Expand All @@ -166,7 +166,7 @@ internal sealed class ValueProviderAttribute : Attribute
{
public ValueProviderAttribute([NotNull] string name)
{
Name = name;
this.Name = name;
}

[NotNull]
Expand Down Expand Up @@ -257,7 +257,7 @@ public NotifyPropertyChangedInvocatorAttribute()

public NotifyPropertyChangedInvocatorAttribute([NotNull] string parameterName)
{
ParameterName = parameterName;
this.ParameterName = parameterName;
}

[CanBeNull]
Expand Down Expand Up @@ -328,8 +328,8 @@ public ContractAnnotationAttribute([NotNull] string contract) : this(contract, f

public ContractAnnotationAttribute([NotNull] string contract, bool forceFullStates)
{
Contract = contract;
ForceFullStates = forceFullStates;
this.Contract = contract;
this.ForceFullStates = forceFullStates;
}

[NotNull]
Expand Down Expand Up @@ -358,7 +358,7 @@ public LocalizationRequiredAttribute() : this(true)

public LocalizationRequiredAttribute(bool required)
{
Required = required;
this.Required = required;
}

public bool Required { get; }
Expand Down Expand Up @@ -410,7 +410,7 @@ internal sealed class BaseTypeRequiredAttribute : Attribute
{
public BaseTypeRequiredAttribute([NotNull] Type baseType)
{
BaseType = baseType;
this.BaseType = baseType;
}

[NotNull]
Expand Down Expand Up @@ -440,8 +440,8 @@ public UsedImplicitlyAttribute(ImplicitUseTargetFlags targetFlags) : this(Implic

public UsedImplicitlyAttribute(ImplicitUseKindFlags useKindFlags, ImplicitUseTargetFlags targetFlags)
{
UseKindFlags = useKindFlags;
TargetFlags = targetFlags;
this.UseKindFlags = useKindFlags;
this.TargetFlags = targetFlags;
}

public ImplicitUseTargetFlags TargetFlags { get; }
Expand Down Expand Up @@ -471,8 +471,8 @@ public MeansImplicitUseAttribute(ImplicitUseTargetFlags targetFlags) : this(Impl

public MeansImplicitUseAttribute(ImplicitUseKindFlags useKindFlags, ImplicitUseTargetFlags targetFlags)
{
UseKindFlags = useKindFlags;
TargetFlags = targetFlags;
this.UseKindFlags = useKindFlags;
this.TargetFlags = targetFlags;
}

[UsedImplicitly]
Expand Down Expand Up @@ -533,7 +533,7 @@ public PublicAPIAttribute()

public PublicAPIAttribute([NotNull] string comment)
{
Comment = comment;
this.Comment = comment;
}

[CanBeNull]
Expand Down Expand Up @@ -580,7 +580,7 @@ public MustUseReturnValueAttribute()

public MustUseReturnValueAttribute([NotNull] string justification)
{
Justification = justification;
this.Justification = justification;
}

[CanBeNull]
Expand Down Expand Up @@ -630,7 +630,7 @@ public PathReferenceAttribute()

public PathReferenceAttribute([NotNull] [PathReference] string basePath)
{
BasePath = basePath;
this.BasePath = basePath;
}

[CanBeNull]
Expand Down Expand Up @@ -725,7 +725,7 @@ internal sealed class AspMvcAreaMasterLocationFormatAttribute : Attribute
{
public AspMvcAreaMasterLocationFormatAttribute([NotNull] string format)
{
Format = format;
this.Format = format;
}

[NotNull]
Expand All @@ -737,7 +737,7 @@ internal sealed class AspMvcAreaPartialViewLocationFormatAttribute : Attribute
{
public AspMvcAreaPartialViewLocationFormatAttribute([NotNull] string format)
{
Format = format;
this.Format = format;
}

[NotNull]
Expand All @@ -749,7 +749,7 @@ internal sealed class AspMvcAreaViewLocationFormatAttribute : Attribute
{
public AspMvcAreaViewLocationFormatAttribute([NotNull] string format)
{
Format = format;
this.Format = format;
}

[NotNull]
Expand All @@ -761,7 +761,7 @@ internal sealed class AspMvcMasterLocationFormatAttribute : Attribute
{
public AspMvcMasterLocationFormatAttribute(string format)
{
Format = format;
this.Format = format;
}

public string Format { get; }
Expand All @@ -772,7 +772,7 @@ internal sealed class AspMvcPartialViewLocationFormatAttribute : Attribute
{
public AspMvcPartialViewLocationFormatAttribute([NotNull] string format)
{
Format = format;
this.Format = format;
}

[NotNull]
Expand All @@ -784,7 +784,7 @@ internal sealed class AspMvcViewLocationFormatAttribute : Attribute
{
public AspMvcViewLocationFormatAttribute([NotNull] string format)
{
Format = format;
this.Format = format;
}

[NotNull]
Expand All @@ -806,7 +806,7 @@ public AspMvcActionAttribute()

public AspMvcActionAttribute([NotNull] string anonymousProperty)
{
AnonymousProperty = anonymousProperty;
this.AnonymousProperty = anonymousProperty;
}

[CanBeNull]
Expand All @@ -827,7 +827,7 @@ public AspMvcAreaAttribute()

public AspMvcAreaAttribute([NotNull] string anonymousProperty)
{
AnonymousProperty = anonymousProperty;
this.AnonymousProperty = anonymousProperty;
}

[CanBeNull]
Expand All @@ -849,7 +849,7 @@ public AspMvcControllerAttribute()

public AspMvcControllerAttribute([NotNull] string anonymousProperty)
{
AnonymousProperty = anonymousProperty;
this.AnonymousProperty = anonymousProperty;
}

[CanBeNull]
Expand Down Expand Up @@ -979,7 +979,7 @@ public HtmlElementAttributesAttribute()

public HtmlElementAttributesAttribute([NotNull] string name)
{
Name = name;
this.Name = name;
}

[CanBeNull]
Expand All @@ -991,7 +991,7 @@ internal sealed class HtmlAttributeValueAttribute : Attribute
{
public HtmlAttributeValueAttribute([NotNull] string name)
{
Name = name;
this.Name = name;
}

[NotNull]
Expand All @@ -1017,7 +1017,7 @@ internal sealed class CollectionAccessAttribute : Attribute
{
public CollectionAccessAttribute(CollectionAccessType collectionAccessType)
{
CollectionAccessType = collectionAccessType;
this.CollectionAccessType = collectionAccessType;
}

public CollectionAccessType CollectionAccessType { get; }
Expand Down Expand Up @@ -1059,7 +1059,7 @@ internal sealed class AssertionConditionAttribute : Attribute
{
public AssertionConditionAttribute(AssertionConditionType conditionType)
{
ConditionType = conditionType;
this.ConditionType = conditionType;
}

public AssertionConditionType ConditionType { get; }
Expand Down Expand Up @@ -1148,8 +1148,8 @@ internal sealed class AspChildControlTypeAttribute : Attribute
{
public AspChildControlTypeAttribute([NotNull] string tagName, [NotNull] Type controlType)
{
TagName = tagName;
ControlType = controlType;
this.TagName = tagName;
this.ControlType = controlType;
}

[NotNull]
Expand Down Expand Up @@ -1179,7 +1179,7 @@ internal sealed class AspRequiredAttributeAttribute : Attribute
{
public AspRequiredAttributeAttribute([NotNull] string attribute)
{
Attribute = attribute;
this.Attribute = attribute;
}

[NotNull]
Expand All @@ -1191,7 +1191,7 @@ internal sealed class AspTypePropertyAttribute : Attribute
{
public AspTypePropertyAttribute(bool createConstructorReferences)
{
CreateConstructorReferences = createConstructorReferences;
this.CreateConstructorReferences = createConstructorReferences;
}

public bool CreateConstructorReferences { get; }
Expand All @@ -1202,7 +1202,7 @@ internal sealed class RazorImportNamespaceAttribute : Attribute
{
public RazorImportNamespaceAttribute([NotNull] string name)
{
Name = name;
this.Name = name;
}

[NotNull]
Expand All @@ -1214,8 +1214,8 @@ internal sealed class RazorInjectionAttribute : Attribute
{
public RazorInjectionAttribute([NotNull] string type, [NotNull] string fieldName)
{
Type = type;
FieldName = fieldName;
this.Type = type;
this.FieldName = fieldName;
}

[NotNull]
Expand All @@ -1230,7 +1230,7 @@ internal sealed class RazorDirectiveAttribute : Attribute
{
public RazorDirectiveAttribute([NotNull] string directive)
{
Directive = directive;
this.Directive = directive;
}

[NotNull]
Expand Down

0 comments on commit fb3274c

Please sign in to comment.