2025-04-05 21:47:28 +08:00
|
|
|
|
using dnlib.DotNet;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2025-05-04 19:55:10 +08:00
|
|
|
|
namespace Obfuz.ObfusPasses.SymbolObfus
|
2025-04-05 21:47:28 +08:00
|
|
|
|
{
|
2025-04-16 13:50:58 +08:00
|
|
|
|
|
2025-04-16 18:05:21 +08:00
|
|
|
|
public class NameMaker : NameMakerBase
|
2025-04-05 21:47:28 +08:00
|
|
|
|
{
|
2025-05-05 10:24:13 +08:00
|
|
|
|
private readonly string _namePrefix;
|
2025-04-15 18:30:17 +08:00
|
|
|
|
private readonly List<string> _wordSet;
|
|
|
|
|
|
2025-05-05 10:24:13 +08:00
|
|
|
|
public NameMaker(string namePrefix, List<string> wordSet)
|
2025-04-15 18:30:17 +08:00
|
|
|
|
{
|
2025-05-05 10:24:13 +08:00
|
|
|
|
_namePrefix = namePrefix;
|
2025-04-15 18:30:17 +08:00
|
|
|
|
_wordSet = wordSet;
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-16 18:05:21 +08:00
|
|
|
|
protected override INameScope CreateNameScope()
|
2025-04-05 21:47:28 +08:00
|
|
|
|
{
|
2025-05-05 10:24:13 +08:00
|
|
|
|
return new NameScope(_namePrefix, _wordSet);
|
2025-04-05 21:47:28 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|