コード例 #1
0
 public SpecifiedMethodCallRegistrar(IMetadataHost host, ILogger log, ReplacementRegistry registry)
 {
     this.host = host;
     this.log = log;
     this.registry = registry;
     reflector = new UnitReflector(host);
 }
コード例 #2
0
 public FieldAssignmentReplacementBuilder(FieldReference field, IMetadataHost host, ExpressionStatement assignment, ReplacementRegistry registry)
 {
     this.field = field;
     this.host = host;
     this.assignment = assignment;
     this.registry = registry;
 }
コード例 #3
0
        public void Execute(PostCompilerContext context)
        {
            host = context.Host;
            log = context.Log;
            registry = context.Registry;

            fakeNamespace = new FakeNamespace(context.AssemblyToAlter, host, log);
            AddInterceptionTargets();
        }
コード例 #4
0
 public FieldAccessorReplacementBuilder(IFieldReference field, ReplacementRegistry registry)
 {
     this.field = field;
     this.registry = registry;
 }
コード例 #5
0
 public FieldAssignmentReplacementRegistrar(FieldReference field, ReplacementRegistry registry)
 {
     this.field = field;
     this.registry = registry;
 }
コード例 #6
0
 public FieldAccessorReplacementFactory(FieldReference field, ReturnStatement firstStatement, ReplacementRegistry registry)
 {
     this.field = field;
     this.firstStatement = firstStatement;
     this.registry = registry;
 }
コード例 #7
0
 public FieldAssignmentVisitor(IStatement parent, ILogger log, ReplacementRegistry registry)
 {
     this.parent = parent;
     this.log = log;
     this.registry = registry;
 }
コード例 #8
0
 public StaticMethodCallReplacer(IMetadataHost host, ILogger log, ReplacementRegistry registry)
 {
     this.log = log;
     this.registry = registry;
     reflector = new UnitReflector(host);
 }