static private YieldExpression ( RubyContext context, ICollection |
||
context | RubyContext | |
arguments | ICollection |
|
splattedArgument | System.Linq.Expressions | |
rhsArgument | System.Linq.Expressions | |
blockArgument | System.Linq.Expressions | |
bfcVariable | System.Linq.Expressions | |
selfArgument | System.Linq.Expressions | |
return |
internal MSA.Expression /*!*/ TransformToYield(AstGenerator /*!*/ gen, MSA.Expression /*!*/ bfcVariable, MSA.Expression /*!*/ selfExpression) { var args = new List <MSA.Expression>(); var splatted = TransformToCallInternal(gen, args); return(AstFactory.YieldExpression(gen.Context, args, splatted, null, null, bfcVariable, selfExpression)); }
internal MSA.Expression /*!*/ TransformToYield(AstGenerator /*!*/ gen, MSA.Expression /*!*/ bfcVariable, MSA.Expression /*!*/ selfExpression) { var args = (_expressions != null) ? gen.TranformExpressions(_expressions) : new List <MSA.Expression>(); if (_maplets != null) { args.Add(gen.TransformToHashConstructor(_maplets)); } return(AstFactory.YieldExpression( args, (_array != null) ? _array.TransformRead(gen) : null, // splatted argument null, // rhs argument bfcVariable, selfExpression )); }