Exemple #1
0
 protected virtual void Visit(Mono.Cecil.Cil.MethodBody methodBody, Context context)
 {
     foreach (ExceptionHandler handler in methodBody.ExceptionHandlers)
     {
         this.Visit(handler, context.Member(handler));
     }
     foreach (VariableDefinition definition in methodBody.Variables)
     {
         this.Visit(definition, context.LocalVariable(methodBody));
     }
     foreach (Instruction instruction in methodBody.Instructions)
     {
         this.Visit(instruction, context);
     }
 }