2025-05-30 13:32:29 +08:00
|
|
|
|
using System.Text;
|
2025-05-21 09:23:29 +08:00
|
|
|
|
|
|
|
|
|
namespace Obfuz.ObfusPasses.SymbolObfus.NameMakers
|
|
|
|
|
{
|
|
|
|
|
public class DebugNameMaker : NameMakerBase
|
|
|
|
|
{
|
2025-06-22 10:48:08 +08:00
|
|
|
|
private class DebugNameScope : INameScope
|
2025-05-21 09:23:29 +08:00
|
|
|
|
{
|
2025-06-22 10:48:08 +08:00
|
|
|
|
|
|
|
|
|
public bool AddPreservedName(string name)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetNewName(string originalName, bool reuse)
|
|
|
|
|
{
|
|
|
|
|
return $"${originalName}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool IsNamePreserved(string name)
|
2025-05-21 09:23:29 +08:00
|
|
|
|
{
|
2025-06-22 10:48:08 +08:00
|
|
|
|
return false;
|
2025-05-21 09:23:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override INameScope CreateNameScope()
|
|
|
|
|
{
|
2025-06-22 10:48:08 +08:00
|
|
|
|
return new DebugNameScope();
|
2025-05-21 09:23:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|