private void GenerateMoveNextAndDispose( SynthesizedImplementationMethod moveNextMethod, SynthesizedImplementationMethod disposeMethod) { var rewriter = new IteratorMethodToClassRewriter( F, method, stateField, currentField, variablesCaptured, variableProxies, diagnostics, generateDebugInfo); rewriter.GenerateMoveNextAndDispose(body, moveNextMethod, disposeMethod); }