private static void WriteClosureDelegateBodies(List <MethodInterpreter> closure, StringBuilder sb) { foreach (var interpreter in closure) { if (interpreter.Kind != MethodKind.Delegate) { continue; } sb.AppendLine(MethodInterpreterCodeWriter.WriteDelegateCallCode(interpreter)); } sb.AppendLine(DelegateManager.Instance.BuildDelegateContent()); }
static void WriteClosureDelegateBodies(List <MethodInterpreter> closure, CodeOutput codeOutput) { foreach (var interpreter in closure) { if (interpreter.Kind != MethodKind.Delegate) { continue; } codeOutput.Append(MethodInterpreterCodeWriter.WriteDelegateCallCode(interpreter)); } codeOutput.Append(DelegateManager.Instance.BuildDelegateContent()); }