Operation() public static method

public static Operation ( BinaryOperationBinder operation, DynamicMetaObject target, DynamicMetaObject arg, DynamicMetaObject errorSuggestion ) : DynamicMetaObject
operation BinaryOperationBinder
target DynamicMetaObject
arg DynamicMetaObject
errorSuggestion DynamicMetaObject
return DynamicMetaObject
Beispiel #1
0
        public override DynamicMetaObject Bind(DynamicMetaObject target, DynamicMetaObject[] args)
        {
            if (target is IPythonOperable op)
            {
                DynamicMetaObject res = op.BindOperation(this, ArrayUtils.Insert(target, args));
                if (res != null)
                {
                    return(res);
                }
            }

            return(PythonProtocol.Operation(this, ArrayUtils.Insert(target, args)));
        }
 public override DynamicMetaObject /*!*/ BindUnaryOperation(UnaryOperationBinder /*!*/ binder)
 {
     return(PythonProtocol.Operation(binder, this, null));
 }
Beispiel #3
0
 public override DynamicMetaObject /*!*/ BindUnaryOperation(UnaryOperationBinder /*!*/ binder)
 {
     PerfTrack.NoteEvent(PerfTrack.Categories.Binding, "OldClass UnaryOperation" + binder.Operation);
     PerfTrack.NoteEvent(PerfTrack.Categories.BindingTarget, "OldClass UnaryOperation");
     return(PythonProtocol.Operation(binder, this, null));
 }
 public override DynamicMetaObject FallbackBinaryOperation(DynamicMetaObject target, DynamicMetaObject arg, DynamicMetaObject errorSuggestion)
 {
     return(PythonProtocol.Operation(this, target, arg, errorSuggestion));
 }