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); }
public override DynamicMetaObject /*!*/ BindInvokeMember(InvokeMemberBinder /*!*/ action, DynamicMetaObject /*!*/[] /*!*/ args) { return(new InvokeBinderHelper(this, action, args, PythonContext.GetCodeContextMO(action)).Bind(PythonContext.GetPythonContext(action).SharedContext, action.Name)); }
public override DynamicMetaObject /*!*/ BindGetMember(GetMemberBinder /*!*/ member) { return(MakeGetMember(member, PythonContext.GetCodeContextMO(member))); }