private void GenerateMoveNextAndDispose( SynthesizedImplementationMethod moveNextMethod, SynthesizedImplementationMethod disposeMethod) { var rewriter = new IteratorMethodToStateMachineRewriter( F, method, stateField, currentField, variablesCaptured, nonReusableLocalProxies, diagnostics); rewriter.GenerateMoveNextAndDispose(body, moveNextMethod, disposeMethod); }
private void GenerateMoveNextAndDispose( SynthesizedImplementationMethod moveNextMethod, SynthesizedImplementationMethod disposeMethod) { var rewriter = new IteratorMethodToStateMachineRewriter( F, method, stateField, _currentField, hoistedVariables, nonReusableLocalProxies, synthesizedLocalOrdinals, slotAllocatorOpt, nextFreeHoistedLocalSlot, diagnostics); rewriter.GenerateMoveNextAndDispose(body, moveNextMethod, disposeMethod); }
private void GenerateMoveNextAndDispose( SynthesizedImplementationMethod moveNextMethod, SynthesizedImplementationMethod disposeMethod) { var rewriter = new IteratorMethodToStateMachineRewriter( F, method, stateField, _currentField, hoistedVariables, nonReusableLocalProxies, synthesizedLocalOrdinals, slotAllocatorOpt, nextFreeHoistedLocalSlot, diagnostics); rewriter.GenerateMoveNextAndDispose(body, moveNextMethod, disposeMethod); }
private void GenerateMoveNextAndDispose( SynthesizedImplementationMethod moveNextMethod, SynthesizedImplementationMethod disposeMethod) { var rewriter = new IteratorMethodToStateMachineRewriter( F, method, stateField, currentField, variablesCaptured, variableProxies, diagnostics, generateDebugInfo); rewriter.GenerateMoveNextAndDispose(body, moveNextMethod, disposeMethod); }