Boo.Lang.Compiler.Steps.GeneratorMethodProcessor.CreateYieldInvocation C# (CSharp) Метод

CreateYieldInvocation() приватный Метод

private CreateYieldInvocation ( Expression value, int newState ) : MethodInvocationExpression
value Boo.Lang.Compiler.Ast.Expression
newState int
Результат Boo.Lang.Compiler.Ast.MethodInvocationExpression
        MethodInvocationExpression CreateYieldInvocation(Expression value, int newState)
        {
            MethodInvocationExpression invocation = CodeBuilder.CreateMethodInvocation(
                CodeBuilder.CreateSelfReference(_enumerator.Entity),
                _yield,
                CodeBuilder.CreateIntegerLiteral(newState),
                value == null ? GetDefaultYieldValue() : value);
            if (null != value) invocation.LexicalInfo = value.LexicalInfo;
            return invocation;
        }