public static BlockStatement ReplaceInvocations(BlockStatement block, Dictionary <FieldDefinition, CallSiteInfo> fieldToCallSiteInfoMap, Dictionary <VariableReference, CallSiteInfo> variableToCallSiteInfoMap, HashSet <Statement> statementsToRemove, TypeSystem typeSystem)
 {
     stackVariable3 = new CallSiteInvocationReplacer(fieldToCallSiteInfoMap, variableToCallSiteInfoMap, typeSystem);
     V_0            = (BlockStatement)stackVariable3.Visit(block);
     stackVariable3.ManageIsEventOperations(statementsToRemove);
     return(V_0);
 }
 public static BlockStatement ReplaceInvocations(BlockStatement block,
     Dictionary<FieldDefinition, CallSiteInfo> fieldToCallSiteInfoMap,
     Dictionary<VariableReference, CallSiteInfo> variableToCallSiteInfoMap,
     HashSet<Statement> statementsToRemove,
     TypeSystem typeSystem)
 {
     CallSiteInvocationReplacer replacer = new CallSiteInvocationReplacer(fieldToCallSiteInfoMap, variableToCallSiteInfoMap, typeSystem);
     BlockStatement body = (BlockStatement)replacer.Visit(block);
     replacer.ManageIsEventOperations(statementsToRemove);
     return body;
 }