private static Expression /*!*/ PeekReference(PhpRoutine routine, DynamicMetaObject scriptContext, DynamicMetaObject arg, int argIndex) { if (arg != null) { // peeks the reference: return(PeekReferenceUnchecked(routine, scriptContext, arg, argIndex)); } else { return(Expression.Block( BinderHelper.ThrowMissingArgument(argIndex, routine.FullName), Expression.New(Constructors.PhpReference_Void))); } }
private static Expression /*!*/ PeekValue(PhpRoutine routine, DynamicMetaObject scriptContext, DynamicMetaObject arg, int argIndex) { if (arg != null) { // peeks the value: return(PeekValueUnchecked(routine, scriptContext, arg, argIndex)); } else { return(Expression.Block( BinderHelper.ThrowMissingArgument(argIndex, routine.FullName), Expression.Constant(null))); } }