summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.AssemblyRewriters/Rewriters
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-03-25 13:50:01 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-03-25 13:50:01 -0400
commit4d48bdfe7c3806ec1995cd499ca9382ace2d8a53 (patch)
tree38d7ec99b4fce57426a022be20a7a601bdbe9255 /src/StardewModdingAPI.AssemblyRewriters/Rewriters
parent2e58f853d27cc200be5b34a1ebef5bbdb7703a49 (diff)
downloadSMAPI-4d48bdfe7c3806ec1995cd499ca9382ace2d8a53.tar.gz
SMAPI-4d48bdfe7c3806ec1995cd499ca9382ace2d8a53.tar.bz2
SMAPI-4d48bdfe7c3806ec1995cd499ca9382ace2d8a53.zip
drop 'generic' prefix for rewriters since they're all generic now
Diffstat (limited to 'src/StardewModdingAPI.AssemblyRewriters/Rewriters')
-rw-r--r--src/StardewModdingAPI.AssemblyRewriters/Rewriters/FieldToPropertyRewriter.cs (renamed from src/StardewModdingAPI.AssemblyRewriters/Rewriters/GenericFieldToPropertyRewriter.cs)4
-rw-r--r--src/StardewModdingAPI.AssemblyRewriters/Rewriters/MethodParentRewriter.cs (renamed from src/StardewModdingAPI.AssemblyRewriters/Rewriters/GenericMethodMapper.cs)4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/StardewModdingAPI.AssemblyRewriters/Rewriters/GenericFieldToPropertyRewriter.cs b/src/StardewModdingAPI.AssemblyRewriters/Rewriters/FieldToPropertyRewriter.cs
index f58bcfbb..caf0a16c 100644
--- a/src/StardewModdingAPI.AssemblyRewriters/Rewriters/GenericFieldToPropertyRewriter.cs
+++ b/src/StardewModdingAPI.AssemblyRewriters/Rewriters/FieldToPropertyRewriter.cs
@@ -6,7 +6,7 @@ using StardewModdingAPI.AssemblyRewriters.Framework;
namespace StardewModdingAPI.AssemblyRewriters.Rewriters
{
/// <summary>Rewrites field references into property references.</summary>
- public class GenericFieldToPropertyRewriter : BaseFieldRewriter
+ public class FieldToPropertyRewriter : BaseFieldRewriter
{
/*********
** Properties
@@ -32,7 +32,7 @@ namespace StardewModdingAPI.AssemblyRewriters.Rewriters
/// <param name="type">The type whose field to which references should be rewritten.</param>
/// <param name="fieldName">The field name to rewrite.</param>
/// <param name="nounPhrase">A brief noun phrase indicating what the instruction finder matches (or <c>null</c> to generate one).</param>
- public GenericFieldToPropertyRewriter(Type type, string fieldName, string nounPhrase = null)
+ public FieldToPropertyRewriter(Type type, string fieldName, string nounPhrase = null)
{
this.Type = type;
this.FieldName = fieldName;
diff --git a/src/StardewModdingAPI.AssemblyRewriters/Rewriters/GenericMethodMapper.cs b/src/StardewModdingAPI.AssemblyRewriters/Rewriters/MethodParentRewriter.cs
index 49e0aad7..9c19f473 100644
--- a/src/StardewModdingAPI.AssemblyRewriters/Rewriters/GenericMethodMapper.cs
+++ b/src/StardewModdingAPI.AssemblyRewriters/Rewriters/MethodParentRewriter.cs
@@ -6,7 +6,7 @@ using StardewModdingAPI.AssemblyRewriters.Framework;
namespace StardewModdingAPI.AssemblyRewriters.Rewriters
{
/// <summary>Rewrites method references from one parent type to another if the signatures match.</summary>
- public class GenericMethodMapper : BaseMethodRewriter
+ public class MethodParentRewriter : BaseMethodRewriter
{
/*********
** Properties
@@ -36,7 +36,7 @@ namespace StardewModdingAPI.AssemblyRewriters.Rewriters
/// <param name="toType">The type with methods to map to.</param>
/// <param name="onlyIfPlatformChanged">Whether to only rewrite references if loading the assembly on a different platform than it was compiled on.</param>
/// <param name="nounPhrase">A brief noun phrase indicating what the instruction finder matches (or <c>null</c> to generate one).</param>
- public GenericMethodMapper(Type fromType, Type toType, bool onlyIfPlatformChanged = false, string nounPhrase = null)
+ public MethodParentRewriter(Type fromType, Type toType, bool onlyIfPlatformChanged = false, string nounPhrase = null)
{
this.FromType = fromType;
this.ToType = toType;