public BlockStatement Process(DecompilationContext context, BlockStatement body) { this.methodContext = context.get_MethodContext(); this.Visit(body); body = CallSiteInvocationReplacer.ReplaceInvocations(body, this.fieldToCallSiteInfoMap, this.variableToCallSiteInfoMap, this.statementsToRemove, this.methodContext.get_Method().get_Module().get_TypeSystem()); this.RemoveStatements(); return(body); }
public BlockStatement Process(DecompilationContext context, BlockStatement body) { methodContext = context.MethodContext; Visit(body); body = CallSiteInvocationReplacer.ReplaceInvocations(body, fieldToCallSiteInfoMap, variableToCallSiteInfoMap, statementsToRemove, methodContext.Method.Module.TypeSystem); RemoveStatements(); return(body); }