public TypeRewriter(ConfuserContext _context) { context = _context; Service = context.Registry.GetService <TypeService>(); RewriteFactory = new InstructionRewriterFactory() { new MethodSpecInstructionRewriter(), new MethodDefInstructionRewriter(), new MemberRefInstructionRewriter(), new TypeRefInstructionRewriter(), new TypeDefInstructionRewriter() }; }
internal TypeRewriter(ConfuserContext context) { Debug.Assert(context != null, $"{nameof(context)} != null"); Service = context.Registry.GetService <TypeService>(); Debug.Assert(Service != null, $"{nameof(Service)} != null"); RewriteFactory = new InstructionRewriterFactory() { new FieldDefInstructionRewriter(), new MethodSpecInstructionRewriter(), new MethodDefInstructionRewriter(), new MemberRefInstructionRewriter(), new TypeRefInstructionRewriter(), new TypeDefInstructionRewriter() }; }