-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5816 from bdukes/remove-source-generator-reference
Move DnnDeprecatedAttribute to Abstractions
- Loading branch information
Showing
39 changed files
with
653 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...atedExtensionMethod_AddsPartialWithObsoleteAttribute#DnnDeprecatedAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//HintName: DnnDeprecatedAttribute.g.cs | ||
namespace DotNetNuke.Internal.SourceGenerators; | ||
|
||
using System; | ||
using System.Diagnostics; | ||
|
||
/// <summary>Marks a type or member as deprecated.</summary> | ||
[Conditional("DNN_SOURCE_GENERATOR")] | ||
internal class DnnDeprecatedAttribute : Attribute | ||
{ | ||
/// <summary>Initializes a new instance of the <see cref="DnnDeprecatedAttribute"/> class.</summary> | ||
/// <param name="majorVersion">The major version in which the type or member was deprecated.</param> | ||
/// <param name="minorVersion">The minor version in which the type or member was deprecated.</param> | ||
/// <param name="patchVersion">The patch version in which the type or member was deprecated.</param> | ||
/// <param name="replacement">The suggested replacement or alternative.</param> | ||
public DnnDeprecatedAttribute(int majorVersion, int minorVersion, int patchVersion, string replacement) | ||
{ | ||
this.MajorVersion = majorVersion; | ||
this.MinorVersion = minorVersion; | ||
this.PatchVersion = patchVersion; | ||
this.Replacement = replacement; | ||
this.RemovalVersion = majorVersion + 2; | ||
} | ||
|
||
/// <summary>Gets the major version in which the type or member was deprecated.</summary> | ||
public int MajorVersion { get; } | ||
|
||
/// <summary>Gets the minor version in which the type or member was deprecated.</summary> | ||
public int MinorVersion { get; } | ||
|
||
/// <summary>Gets the patch version in which the type or member was deprecated.</summary> | ||
public int PatchVersion { get; } | ||
|
||
/// <summary>Gets the suggested replacement or alternative.</summary> | ||
public string Replacement { get; } | ||
|
||
/// <summary>Gets or sets the major version in which the type or member will be removed.</summary> | ||
public int RemovalVersion { get; set; } | ||
} |
39 changes: 39 additions & 0 deletions
39
...GenericPartialClass_AddsPartialWithObsoleteAttribute#DnnDeprecatedAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//HintName: DnnDeprecatedAttribute.g.cs | ||
namespace DotNetNuke.Internal.SourceGenerators; | ||
|
||
using System; | ||
using System.Diagnostics; | ||
|
||
/// <summary>Marks a type or member as deprecated.</summary> | ||
[Conditional("DNN_SOURCE_GENERATOR")] | ||
internal class DnnDeprecatedAttribute : Attribute | ||
{ | ||
/// <summary>Initializes a new instance of the <see cref="DnnDeprecatedAttribute"/> class.</summary> | ||
/// <param name="majorVersion">The major version in which the type or member was deprecated.</param> | ||
/// <param name="minorVersion">The minor version in which the type or member was deprecated.</param> | ||
/// <param name="patchVersion">The patch version in which the type or member was deprecated.</param> | ||
/// <param name="replacement">The suggested replacement or alternative.</param> | ||
public DnnDeprecatedAttribute(int majorVersion, int minorVersion, int patchVersion, string replacement) | ||
{ | ||
this.MajorVersion = majorVersion; | ||
this.MinorVersion = minorVersion; | ||
this.PatchVersion = patchVersion; | ||
this.Replacement = replacement; | ||
this.RemovalVersion = majorVersion + 2; | ||
} | ||
|
||
/// <summary>Gets the major version in which the type or member was deprecated.</summary> | ||
public int MajorVersion { get; } | ||
|
||
/// <summary>Gets the minor version in which the type or member was deprecated.</summary> | ||
public int MinorVersion { get; } | ||
|
||
/// <summary>Gets the patch version in which the type or member was deprecated.</summary> | ||
public int PatchVersion { get; } | ||
|
||
/// <summary>Gets the suggested replacement or alternative.</summary> | ||
public string Replacement { get; } | ||
|
||
/// <summary>Gets or sets the major version in which the type or member will be removed.</summary> | ||
public int RemovalVersion { get; set; } | ||
} |
39 changes: 39 additions & 0 deletions
39
...hOptionalParameters_AddsPartialWithObsoleteAttribute#DnnDeprecatedAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//HintName: DnnDeprecatedAttribute.g.cs | ||
namespace DotNetNuke.Internal.SourceGenerators; | ||
|
||
using System; | ||
using System.Diagnostics; | ||
|
||
/// <summary>Marks a type or member as deprecated.</summary> | ||
[Conditional("DNN_SOURCE_GENERATOR")] | ||
internal class DnnDeprecatedAttribute : Attribute | ||
{ | ||
/// <summary>Initializes a new instance of the <see cref="DnnDeprecatedAttribute"/> class.</summary> | ||
/// <param name="majorVersion">The major version in which the type or member was deprecated.</param> | ||
/// <param name="minorVersion">The minor version in which the type or member was deprecated.</param> | ||
/// <param name="patchVersion">The patch version in which the type or member was deprecated.</param> | ||
/// <param name="replacement">The suggested replacement or alternative.</param> | ||
public DnnDeprecatedAttribute(int majorVersion, int minorVersion, int patchVersion, string replacement) | ||
{ | ||
this.MajorVersion = majorVersion; | ||
this.MinorVersion = minorVersion; | ||
this.PatchVersion = patchVersion; | ||
this.Replacement = replacement; | ||
this.RemovalVersion = majorVersion + 2; | ||
} | ||
|
||
/// <summary>Gets the major version in which the type or member was deprecated.</summary> | ||
public int MajorVersion { get; } | ||
|
||
/// <summary>Gets the minor version in which the type or member was deprecated.</summary> | ||
public int MinorVersion { get; } | ||
|
||
/// <summary>Gets the patch version in which the type or member was deprecated.</summary> | ||
public int PatchVersion { get; } | ||
|
||
/// <summary>Gets the suggested replacement or alternative.</summary> | ||
public string Replacement { get; } | ||
|
||
/// <summary>Gets or sets the major version in which the type or member will be removed.</summary> | ||
public int RemovalVersion { get; set; } | ||
} |
39 changes: 39 additions & 0 deletions
39
...WithParamsParameter_AddsPartialWithObsoleteAttribute#DnnDeprecatedAttribute.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//HintName: DnnDeprecatedAttribute.g.cs | ||
namespace DotNetNuke.Internal.SourceGenerators; | ||
|
||
using System; | ||
using System.Diagnostics; | ||
|
||
/// <summary>Marks a type or member as deprecated.</summary> | ||
[Conditional("DNN_SOURCE_GENERATOR")] | ||
internal class DnnDeprecatedAttribute : Attribute | ||
{ | ||
/// <summary>Initializes a new instance of the <see cref="DnnDeprecatedAttribute"/> class.</summary> | ||
/// <param name="majorVersion">The major version in which the type or member was deprecated.</param> | ||
/// <param name="minorVersion">The minor version in which the type or member was deprecated.</param> | ||
/// <param name="patchVersion">The patch version in which the type or member was deprecated.</param> | ||
/// <param name="replacement">The suggested replacement or alternative.</param> | ||
public DnnDeprecatedAttribute(int majorVersion, int minorVersion, int patchVersion, string replacement) | ||
{ | ||
this.MajorVersion = majorVersion; | ||
this.MinorVersion = minorVersion; | ||
this.PatchVersion = patchVersion; | ||
this.Replacement = replacement; | ||
this.RemovalVersion = majorVersion + 2; | ||
} | ||
|
||
/// <summary>Gets the major version in which the type or member was deprecated.</summary> | ||
public int MajorVersion { get; } | ||
|
||
/// <summary>Gets the minor version in which the type or member was deprecated.</summary> | ||
public int MinorVersion { get; } | ||
|
||
/// <summary>Gets the patch version in which the type or member was deprecated.</summary> | ||
public int PatchVersion { get; } | ||
|
||
/// <summary>Gets the suggested replacement or alternative.</summary> | ||
public string Replacement { get; } | ||
|
||
/// <summary>Gets or sets the major version in which the type or member will be removed.</summary> | ||
public int RemovalVersion { get; set; } | ||
} |
Oops, something went wrong.