예제 #1
0
        private static Expression FallbackGet(DynamicMetaObjectBinder member, DynamicMetaObject[] args)
        {
            GetMemberBinder sa = member as GetMemberBinder;

            if (sa != null)
            {
                return(sa.FallbackGetMember(args[0]).Expression);
            }

            return(((PythonGetMemberBinder)member).Fallback(args[0], PythonContext.GetCodeContextMO(member)).Expression);
        }
예제 #2
0
 public override DynamicMetaObject /*!*/ BindInvokeMember(InvokeMemberBinder /*!*/ action, DynamicMetaObject /*!*/[] /*!*/ args)
 {
     return(new InvokeBinderHelper(this, action, args, PythonContext.GetCodeContextMO(action)).Bind(PythonContext.GetPythonContext(action).SharedContext, action.Name));
 }
예제 #3
0
 public override DynamicMetaObject /*!*/ BindGetMember(GetMemberBinder /*!*/ member)
 {
     return(MakeGetMember(member, PythonContext.GetCodeContextMO(member)));
 }