diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-26 22:14:25 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-26 22:14:25 -0400 |
commit | d3c5fe0764806684cc71508abf009473b9d7bc0a (patch) | |
tree | d68c8958f57e06e604e9ad833f88373ef0fe3350 /src/SMAPI/Framework/ModLoading/Rewriters | |
parent | 16161a214fddea19b908d7ca3dc0d39f81c259c8 (diff) | |
download | SMAPI-d3c5fe0764806684cc71508abf009473b9d7bc0a.tar.gz SMAPI-d3c5fe0764806684cc71508abf009473b9d7bc0a.tar.bz2 SMAPI-d3c5fe0764806684cc71508abf009473b9d7bc0a.zip |
rename new heuristic rewriters for clarity
Diffstat (limited to 'src/SMAPI/Framework/ModLoading/Rewriters')
-rw-r--r-- | src/SMAPI/Framework/ModLoading/Rewriters/HeuristicFieldRewriter.cs (renamed from src/SMAPI/Framework/ModLoading/Rewriters/FieldToPropertyRewriter.cs) | 6 | ||||
-rw-r--r-- | src/SMAPI/Framework/ModLoading/Rewriters/HeuristicMethodRewriter.cs (renamed from src/SMAPI/Framework/ModLoading/Rewriters/MethodWithMissingOptionalParameterRewriter.cs) | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Rewriters/FieldToPropertyRewriter.cs b/src/SMAPI/Framework/ModLoading/Rewriters/HeuristicFieldRewriter.cs index aaf04b79..5a088ed8 100644 --- a/src/SMAPI/Framework/ModLoading/Rewriters/FieldToPropertyRewriter.cs +++ b/src/SMAPI/Framework/ModLoading/Rewriters/HeuristicFieldRewriter.cs @@ -6,8 +6,8 @@ using StardewModdingAPI.Framework.ModLoading.Framework; namespace StardewModdingAPI.Framework.ModLoading.Rewriters { - /// <summary>Rewrites references to fields which no longer exist, but which have an equivalent property with the exact same name.</summary> - internal class FieldToPropertyRewriter : BaseInstructionHandler + /// <summary>Automatically fix references to fields that have been replaced by a property.</summary> + internal class HeuristicFieldRewriter : BaseInstructionHandler { /********* ** Fields @@ -21,7 +21,7 @@ namespace StardewModdingAPI.Framework.ModLoading.Rewriters *********/ /// <summary>Construct an instance.</summary> /// <param name="rewriteReferencesToAssemblies">The assembly names to which to rewrite broken references.</param> - public FieldToPropertyRewriter(string[] rewriteReferencesToAssemblies) + public HeuristicFieldRewriter(string[] rewriteReferencesToAssemblies) : base(defaultPhrase: "field changed to property") // ignored since we specify phrases { this.RewriteReferencesToAssemblies = new HashSet<string>(rewriteReferencesToAssemblies); diff --git a/src/SMAPI/Framework/ModLoading/Rewriters/MethodWithMissingOptionalParameterRewriter.cs b/src/SMAPI/Framework/ModLoading/Rewriters/HeuristicMethodRewriter.cs index 89c8ede7..21b42e12 100644 --- a/src/SMAPI/Framework/ModLoading/Rewriters/MethodWithMissingOptionalParameterRewriter.cs +++ b/src/SMAPI/Framework/ModLoading/Rewriters/HeuristicMethodRewriter.cs @@ -6,8 +6,8 @@ using StardewModdingAPI.Framework.ModLoading.Framework; namespace StardewModdingAPI.Framework.ModLoading.Rewriters { - /// <summary>Rewrites references to methods which only broke because the definition has new optional parameters.</summary> - internal class MethodWithMissingOptionalParameterRewriter : BaseInstructionHandler + /// <summary>Automatically fix references to methods that had extra optional parameters added.</summary> + internal class HeuristicMethodRewriter : BaseInstructionHandler { /********* ** Fields @@ -21,7 +21,7 @@ namespace StardewModdingAPI.Framework.ModLoading.Rewriters *********/ /// <summary>Construct an instance.</summary> /// <param name="rewriteReferencesToAssemblies">The assembly names to which to rewrite broken references.</param> - public MethodWithMissingOptionalParameterRewriter(string[] rewriteReferencesToAssemblies) + public HeuristicMethodRewriter(string[] rewriteReferencesToAssemblies) : base(defaultPhrase: "methods with missing parameters") // ignored since we specify phrases { this.RewriteReferencesToAssemblies = new HashSet<string>(rewriteReferencesToAssemblies); |