protected internal override MemberAssignmentSlim VisitMemberAssignment(MemberAssignmentSlim node) { Append("Assignment("); Append(node.Member); Append(", "); Visit(node.Expression); Append(')'); return(node); }
/// <summary> /// Visits a member assignment slim tree node, produces a member assignment. /// </summary> /// <param name="node">Node to visit.</param> /// <param name="expression">Operand expression.</param> /// <returns>The member assignment represented by the member assignment slim node.</returns> protected override MemberAssignment MakeMemberAssignment(MemberAssignmentSlim node, Expression expression) { var member = MakeMember(node.Member); return(_factory.Bind(member, expression)); }
/// <summary> /// Visits a member assignment binding node. /// </summary> /// <param name="node">Node to visit.</param> /// <returns>Result of visiting the node.</returns> protected internal virtual MemberAssignmentSlim VisitMemberAssignment(MemberAssignmentSlim node) { return(node.Update(Visit(node.Expression))); }