fix(SymbolObfus): still rename parameter names of .ctor and ..ctor even they aren't renamed
parent
7b06f0fed8
commit
977779c8b7
|
|
@ -538,6 +538,8 @@ namespace Obfuz.ObfusPasses.SymbolObfus
|
||||||
{
|
{
|
||||||
foreach (MethodDef method in type.Methods)
|
foreach (MethodDef method in type.Methods)
|
||||||
{
|
{
|
||||||
|
// always rename method params, even if the method is not renamed
|
||||||
|
RenameMethodParams(method);
|
||||||
if (method.IsVirtual)
|
if (method.IsVirtual)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -805,7 +807,6 @@ namespace Obfuz.ObfusPasses.SymbolObfus
|
||||||
private void Rename(MethodDef method, RefMethodMetas refMethodMetas, string newName)
|
private void Rename(MethodDef method, RefMethodMetas refMethodMetas, string newName)
|
||||||
{
|
{
|
||||||
ModuleDefMD mod = (ModuleDefMD)method.DeclaringType.Module;
|
ModuleDefMD mod = (ModuleDefMD)method.DeclaringType.Module;
|
||||||
RenameMethodParams(method);
|
|
||||||
RenameMethodBody(method);
|
RenameMethodBody(method);
|
||||||
if (refMethodMetas != null)
|
if (refMethodMetas != null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue